2010-12-29 Justin Schuh Reviewed by Darin Adler. Check SVG element type in FrameView::scrollToAnchor https://bugs.webkit.org/show_bug.cgi?id=51718 Test: svg/custom/scroll-to-anchor-in-symbol.svg * page/FrameView.cpp: (WebCore::FrameView::scrollToAnchor): 2010-12-29 Anton Muhin Reviewed by Eric Seidel. [v8] Minor cleanup: remove unused method (the only method which can mutate context of V8DOMWindowShell) https://bugs.webkit.org/show_bug.cgi?id=51704 * bindings/v8/V8DOMWindowShell.cpp: * bindings/v8/V8DOMWindowShell.h: 2010-12-29 Kenichi Ishibashi Reviewed by Darin Adler. Use a HashMap for m_continuation to save memory https://bugs.webkit.org/show_bug.cgi?id=43716 Saving memory consumption by applying a HashMap convention to continuation pointers of RenderInline and RenderBlock classes. * rendering/RenderBlock.cpp: Removed m_continuation. (WebCore::RenderBlock::RenderBlock): (WebCore::RenderBlock::destroy): (WebCore::RenderBlock::inlineElementContinuation): (WebCore::RenderBlock::blockElementContinuation): * rendering/RenderBlock.h: Removed m_continuation. * rendering/RenderBoxModelObject.cpp: Added a hash map for continuations. (WebCore::RenderBoxModelObject::destroy): Added an assertion. (WebCore::RenderBoxModelObject::continuation): Added. (WebCore::RenderBoxModelObject::setContinuation): Added. * rendering/RenderBoxModelObject.h: * rendering/RenderInline.cpp: Removed m_continuation. (WebCore::RenderInline::RenderInline): (WebCore::RenderInline::destroy): (WebCore::RenderInline::inlineElementContinuation): * rendering/RenderInline.h: Removed m_continuation. 2010-12-27 Amruth Raj and Ravi Kasibhatla Reviewed by Martin Robinson. [GTK] Enable building whatever already exists of WebKit2 https://bugs.webkit.org/show_bug.cgi?id=37369 No new functionality added or deleted. Only makefile change. Hence, no tests added. * GNUmakefile.am: Removed bindings/gobject from webcore_sources & webcore_cppflags and added them to WebKit/gtk/GNUmakefile.am * platform/network/soup/cache/webkit/soup-cache.h: Remove include and declare WEBKIT_API directly 2010-12-29 Eric Seidel Unreviewed. Simplify make-hash-tools.pl https://bugs.webkit.org/show_bug.cgi?id=49922 Added HashTools.h to the project file now that its not autogenerated. I also sorted the project file using sort-xcode-project-file * WebCore.xcodeproj/project.pbxproj: 2010-12-29 Pavel Feldman Not reviewed: revert r74755 and 74757. 2010-12-29 Martin Robinson Reviewed by Sam Weinig. JSDataViewCustom.cpp gives the fastcall calling convention to functions called via C++ https://bugs.webkit.org/show_bug.cgi?id=51722 Remove the JSC_HOST_CALL from methods that are called from C++. JSC_HOST_CALL gives methods the fastcall calling convention, which leads to runtime errors when they are called from C++. Also remove a bit of unnecessary code duplication. No new tests. This is covered by fast/canvas/webgl/data-view-test.html. * bindings/js/JSDataViewCustom.cpp: (WebCore::getDataViewMember): Remove duplicated code. (WebCore::JSDataView::getInt8): Remove JSC_HOST_CALL. (WebCore::JSDataView::getUint8): Ditto. (WebCore::JSDataView::getFloat32): Ditto. (WebCore::JSDataView::getFloat64): Ditto. (WebCore::setDataViewMember): Remove duplicated code. (WebCore::JSDataView::setInt8): Remove JSC_HOST_CALL. (WebCore::JSDataView::setUint8): Ditto. 2010-12-29 Dan Bernstein Reviewed by Kenneth Russel. A more robust fix for https://bugs.webkit.org/show_bug.cgi?id=51681 * html/HTMLCanvasElement.cpp: (WebCore::HTMLCanvasElement::attach): Added. Like recalcStyle(), calls CanvasRenderingContext2D::updateFont() if necessary. This covers the case of a detach/ attach-type style recalc. * html/HTMLCanvasElement.h: * html/canvas/CanvasRenderingContext2D.cpp: (WebCore::CanvasRenderingContext2D::drawTextInternal): Removed the early return added in r74716. A font that is loading custom fonts is okay to use, as long as it is valid. (WebCore::CanvasRenderingContext2D::accessFont): Added a call to Document::updateStyleIfNeeded(). This ensures that any pending style recalc will take place and update the font if it is invalid. * platform/graphics/Font.h: (WebCore::Font::loadingCustomFonts): Made this private. 2010-12-29 Pavel Feldman Not reviewed: Qt build fix. * inspector/InspectorController.cpp: 2010-12-29 Pavel Feldman Reviewed by Yury Semikhatsky. Web Inspector: extract Database & DOM Storage agents; remove InspectorBackend. https://bugs.webkit.org/show_bug.cgi?id=51707 This change brushes up storage agents + removes redundant InspectorBackend class. * CMakeLists.txt: * GNUmakefile.am: * WebCore.gypi: * WebCore.pro: * WebCore.vcproj/WebCore.vcproj: * WebCore.xcodeproj/project.pbxproj: * inspector/CodeGeneratorInspector.pm: * inspector/InjectedScriptHost.cpp: (WebCore::InjectedScriptHost::databaseForId): (WebCore::InjectedScriptHost::selectDatabase): (WebCore::InjectedScriptHost::selectDOMStorage): (WebCore::InjectedScriptHost::inspectorDOMAgent): * inspector/Inspector.idl: * inspector/InspectorBackend.cpp: Removed. * inspector/InspectorBackend.h: Removed. * inspector/InspectorController.cpp: (WebCore::InspectorController::InspectorController): (WebCore::InspectorController::~InspectorController): (WebCore::InspectorController::connectFrontend): (WebCore::InspectorController::releaseFrontendLifetimeAgents): (WebCore::InspectorController::didUseDOMStorage): (WebCore::InspectorController::setInjectedScriptSource): (WebCore::InspectorController::dispatchOnInjectedScript): (WebCore::InspectorController::releaseWrapperObjectGroup): * inspector/InspectorController.h: * inspector/InspectorDOMStorageAgent.cpp: Added. (WebCore::InspectorDOMStorageAgent::~InspectorDOMStorageAgent): (WebCore::InspectorDOMStorageAgent::getDOMStorageEntries): (WebCore::InspectorDOMStorageAgent::setDOMStorageItem): (WebCore::InspectorDOMStorageAgent::removeDOMStorageItem): (WebCore::InspectorDOMStorageAgent::selectDOMStorage): (WebCore::InspectorDOMStorageAgent::InspectorDOMStorageAgent): (WebCore::InspectorDOMStorageAgent::getDOMStorageResourceForId): * inspector/InspectorDOMStorageAgent.h: Copied from WebCore/inspector/InspectorStorageAgent.h. (WebCore::InspectorDOMStorageAgent::create): (WebCore::InspectorDOMStorageAgent::frontend): * inspector/InspectorDatabaseAgent.cpp: Renamed from WebCore/inspector/InspectorStorageAgent.cpp. (WebCore::InspectorDatabaseAgent::~InspectorDatabaseAgent): (WebCore::InspectorDatabaseAgent::getDatabaseTableNames): (WebCore::InspectorDatabaseAgent::executeSQL): (WebCore::InspectorDatabaseAgent::databaseForId): (WebCore::InspectorDatabaseAgent::selectDatabase): (WebCore::InspectorDatabaseAgent::clearFrontend): (WebCore::InspectorDatabaseAgent::InspectorDatabaseAgent): * inspector/InspectorDatabaseAgent.h: Renamed from WebCore/inspector/InspectorStorageAgent.h. (WebCore::InspectorDatabaseAgent::create): (WebCore::InspectorDatabaseAgent::frontend): * inspector/InspectorFrontendClientLocal.cpp: * inspector/InspectorFrontendClientLocal.h: * inspector/front-end/ScriptsPanel.js: (WebInspector.ScriptsPanel.prototype.show): 2010-12-29 Tony Gentilcore Reviewed by Eric Seidel. Assertion failure: element->inDocument() in AsyncScriptRunner::executeScriptSoon() https://bugs.webkit.org/show_bug.cgi?id=51067 Typically when a script element is removed from the document, the cached script client is removed. However, during the before load event, the cached script client hasn't been created yet so it can't be removed. This patch handles that case by explicitly checking if the script element was removed during the beforeload event. Also, it avoids caching the Document references over the arbitrary script execution in the before load event. Test: fast/dom/HTMLScriptElement/move-in-beforeload.html fast/dom/HTMLScriptElement/remove-in-beforeload.html * dom/ScriptElement.cpp: (WebCore::ScriptElement::requestScript): 2010-12-29 Alexander Pavlov Reviewed by Yury Semikhatsky. Web Inspector: Element highlight tooltip displays wrong element size when zoomed in https://bugs.webkit.org/show_bug.cgi?id=51703 * inspector/InspectorController.cpp: (WebCore::InspectorController::drawElementTitle): 2010-12-29 Yael Aharon Reviewed by Kent Tamura. [HTML5][Forms] Support for :in-range and :out-of-range CSS selectors https://bugs.webkit.org/show_bug.cgi?id=29071 Use InputType::rangeUnderflow() and InputType::rangeOverflow() to determine if a control is in-range or out-of-range. Tests: fast/css/pseudo-in-range-invalid-value.html fast/css/pseudo-in-range.html fast/css/pseudo-out-of-range.html * css/CSSSelector.cpp: (WebCore::CSSSelector::pseudoId): (WebCore::nameToPseudoTypeMap): (WebCore::CSSSelector::extractPseudoType): * css/CSSSelector.h: * css/CSSStyleSelector.cpp: (WebCore::CSSStyleSelector::canShareStyleWithElement): (WebCore::CSSStyleSelector::SelectorChecker::checkOneSelector): * dom/Element.h: (WebCore::Element::isInRange): (WebCore::Element::isOutOfRange): * html/BaseDateAndTimeInputType.cpp: (WebCore::BaseDateAndTimeInputType::supportsRangeLimitation): * html/BaseDateAndTimeInputType.h: * html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::isInRange): (WebCore::HTMLInputElement::isOutOfRange): * html/HTMLInputElement.h: * html/InputType.cpp: (WebCore::InputType::supportsRangeLimitation): * html/InputType.h: * html/NumberInputType.cpp: (WebCore::NumberInputType::supportsRangeLimitation): * html/NumberInputType.h: * html/RangeInputType.cpp: (WebCore::RangeInputType::supportsRangeLimitation): * html/RangeInputType.h: 2010-12-29 Abhishek Arya Reviewed by Eric Seidel. When cloning an anonymous block, make sure to set the childrenInline flag based on the state of the block to be cloned. https://bugs.webkit.org/show_bug.cgi?id=51489 Test: fast/multicol/span/clone-anonymous-block-non-inline-child-crash.html * rendering/RenderBlock.cpp: (WebCore::RenderBlock::clone): add code to handle cloning of anonymous blocks. (WebCore::RenderBlock::splitBlocks): remove anonymous block creation calls since it is now handled by clone(). 2010-12-29 Patrick Gansterer Unreviewed build fix for WinCE after r73802. Reapply parts from r72585: Port ContextMenuWin.cpp to WinCE https://bugs.webkit.org/show_bug.cgi?id=48408 * CMakeLists.txt: * platform/ContextMenu.h: * platform/win/ContextMenuWin.cpp: (WebCore::ContextMenu::getContextMenuItems): (WebCore::ContextMenu::createNativeMenuFromItems): 2010-12-29 Kent Hansen Reviewed by Simon Hausmann. [Qt] Fix compilation with Qt in namespace https://bugs.webkit.org/show_bug.cgi?id=51701 * platform/graphics/ContextShadow.h: * platform/graphics/GraphicsContext3D.h: * platform/network/NetworkingContext.h: * platform/network/qt/QtNAMThreadSafeProxy.h: * plugins/PluginView.h: 2010-12-28 Alexander Pavlov Reviewed by Pavel Feldman. Web Inspector: A disabled style property should get enabled when edited https://bugs.webkit.org/show_bug.cgi?id=51679 Test: inspector/styles-disable-then-change.html * inspector/front-end/CSSStyleModel.js: (WebInspector.CSSProperty.prototype.setText): (WebInspector.CSSProperty.prototype.setText.callback): 2010-12-29 Patrick Gansterer Reviewed by Andreas Kling. [CMake] Remove WebKitGenerators https://bugs.webkit.org/show_bug.cgi?id=50445 * CMakeLists.txt: Pass preprocessor to generate-bindings.pl. 2010-12-28 Pratik Solanki Reviewed by Eric Seidel. https://bugs.webkit.org/show_bug.cgi?id=51522 Use deviceRGBColorSpaceRef() instead of calling CGColorSpaceCreateDeviceRGB() * page/win/FrameCGWin.cpp: (WebCore::imageFromRect): * platform/graphics/cg/GradientCG.cpp: (WebCore::Gradient::platformGradient): * platform/graphics/cg/GraphicsContext3DCG.cpp: (WebCore::GraphicsContext3D::paintToCanvas): * platform/graphics/cg/ImageCG.cpp: (WebCore::BitmapImage::checkForSolidColor): * platform/graphics/gstreamer/ImageGStreamerCG.mm: (ImageGStreamer::ImageGStreamer): * platform/graphics/win/GraphicsContextCGWin.cpp: (WebCore::CGContextWithHDC): (WebCore::GraphicsContext::releaseWindowsContext): (WebCore::GraphicsContext::drawWindowsBitmap): * platform/graphics/win/ImageCGWin.cpp: (WebCore::BitmapImage::create): (WebCore::BitmapImage::getHBITMAPOfSize): * platform/image-decoders/cg/ImageDecoderCG.cpp: (WebCore::createColorSpace): * platform/win/DragImageCGWin.cpp: (WebCore::allocImage): (WebCore::createCgContextFromBitmap): * rendering/RenderThemeMac.mm: (WebCore::RenderThemeMac::paintMenuListButtonGradients): (WebCore::RenderThemeMac::paintSliderTrack): * rendering/RenderThemeSafari.cpp: (WebCore::RenderThemeSafari::paintMenuListButtonGradients): (WebCore::RenderThemeSafari::paintSliderTrack): 2010-12-28 Daniel Bates Reviewed by Sam Weinig. Substitute // MARK: for compiler-specific #pragma mark https://bugs.webkit.org/show_bug.cgi?id=51657 Fix compilation warnings about "#pragma mark" on GTK+ bots by substituting "// MARK:" for "#pragma mark", which provides analogous code-bookmarking functionality under Xcode. * platform/graphics/cg/PathCG.cpp: * platform/graphics/mac/WebLayer.mm: 2010-12-28 Jan Erik Hanssen Reviewed by Eric Seidel. [Qt] GraphicsContext::getCTM() does not need to make a copy of QPainter::combinedTransform() https://bugs.webkit.org/show_bug.cgi?id=51687 Use a const reference instead of a copy of QPainter::combinedTransform() in GraphicsContext::getCTM() * platform/graphics/qt/GraphicsContextQt.cpp: (WebCore::GraphicsContext::getCTM): 2010-12-28 Takashi Toyoshima Reviewed by Eric Seidel. gcc detected 'control reaches end of non-void function' with -finstrument-functions option. https://bugs.webkit.org/show_bug.cgi?id=51669 No new tests. These fixes are trivial. * dom/Element.cpp: (WebCore::Element::childTypeAllowed): * inspector/InspectorResourceAgent.cpp: (WebCore::cachedResourceTypeString): 2010-12-28 Tony Gentilcore Reviewed by Eric Seidel. Remove unused member of PendingScript https://bugs.webkit.org/show_bug.cgi?id=51684 This was used when HTMLScriptRunner::runScript created a PendingScript for inline scripts. But now it just calls executeScript() directly. External scripts always have the minimum starting line number. No new tests because no changed functionality. * dom/PendingScript.cpp: (WebCore::PendingScript::releaseElementAndClear): * dom/PendingScript.h: (WebCore::PendingScript::PendingScript): (WebCore::PendingScript::operator=): * html/parser/HTMLScriptRunner.cpp: (WebCore::HTMLScriptRunner::sourceFromPendingScript): 2010-12-20 Antonio Gomes Reviewed by Daniel Bates. Spatial Navigation: code clean up (Part VI) https://bugs.webkit.org/show_bug.cgi?id=50666 No new tests needed. * page/FocusController.cpp: (WebCore::updatFocusCandidateIfNeeded): Assert renderer() and isElementNode() now that we are bailing out earlier in both the FocusCandidate constructor and FocusController::findFocusCandidateInContainer(). * page/SpatialNavigation.h: Swapped the parameters order in canScrollInDirection and virtualRectForAreaElementAndDirection functions. (WebCore::FocusController::findFocusCandidateInContainer): (WebCore::FocusController::advanceFocusDirectionallyInContainer): Adjusted callsites of canScrollInDirection(), and added an early return if !isElementNode(). (WebCore::FocusController::advanceFocusDirectionally): Adjusted callsite of virtualRectForAreaElementAndDirection(); * page/SpatialNavigation.cpp: (WebCore::FocusCandidate::FocusCandidate): Assert if node is not a element node; (WebCore::isScrollableNode): Renamed from isScrollableContainerNode; (WebCore::scrollInDirection): Adjusted callsite after function name change; (WebCore::scrollableEnclosingBoxOrParentFrameForNodeInDi:rection): Assert if node is a documentNode. (WebCore::canScrollInDirection): Signature changed. (WebCore::canBeScrolledIntoView): Ditto. (WebCore::virtualRectForAreaElementAndDirection): Ditto. 2010-12-28 Adrienne Walker Reviewed by Kenneth Russell. [chromium] Fix tiled compositor assertion after GPU process recovery. https://bugs.webkit.org/show_bug.cgi?id=51682 After the GPU process recovers, the layer size is set to IntSize(), but IntRect::unite() has a special case for empty rects. This behavior was causing the layer size to be too small, causing an out-of-bounds array access elsewhere. No new tests. * platform/graphics/chromium/LayerTilerChromium.cpp: (WebCore::LayerTilerChromium::growLayerToContain): 2010-12-23 Zhenyao Mo Reviewed by Kenneth Russell. Initialize to 0 for undefined values in CopyTexImage2D https://bugs.webkit.org/show_bug.cgi?id=51421 * html/canvas/WebGLFramebuffer.cpp: Track width/height/internalFormat of color buffer. (WebCore::WebGLFramebuffer::WebGLFramebuffer): (WebCore::WebGLFramebuffer::setAttachment): (WebCore::WebGLFramebuffer::getWidth): (WebCore::WebGLFramebuffer::getHeight): (WebCore::WebGLFramebuffer::getColorBufferFormat): * html/canvas/WebGLFramebuffer.h: * html/canvas/WebGLRenderingContext.cpp: (WebCore::WebGLRenderingContext::copyTexImage2D): Initialize undefined pixels to 0. (WebCore::WebGLRenderingContext::copyTexSubImage2D): (WebCore::WebGLRenderingContext::framebufferTexture2D): (WebCore::WebGLRenderingContext::renderbufferStorage): (WebCore::WebGLRenderingContext::getBoundFramebufferWidth): (WebCore::WebGLRenderingContext::getBoundFramebufferHeight): * html/canvas/WebGLRenderingContext.h: * html/canvas/WebGLTexture.cpp: Track width/height/internalFormat of a texture by target/level. (WebCore::WebGLTexture::getInternalFormat): (WebCore::WebGLTexture::getWidth): (WebCore::WebGLTexture::getHeight): (WebCore::WebGLTexture::mapTargetToIndex): (WebCore::WebGLTexture::getLevelInfo): * html/canvas/WebGLTexture.h: (WebCore::WebGLTexture::isTexture): * platform/graphics/GraphicsContext3D.h: Add getInternalFramebufferSize() function. * platform/graphics/opengl/GraphicsContext3DOpenGL.cpp: (WebCore::GraphicsContext3D::getInternalFramebufferSize): * platform/graphics/qt/GraphicsContext3DQt.cpp: (WebCore::GraphicsContext3D::getInternalFramebufferSize): 2010-12-23 Zhenyao Mo Reviewed by Kenneth Russell. Map GLsizei to long instead of unsigned long in WebGLRenderingContext and GraphicsContext3D https://bugs.webkit.org/show_bug.cgi?id=39855 * html/canvas/WebGLRenderingContext.cpp: (WebCore::WebGLRenderingContext::copyTexImage2D): Map GLsizei to long. (WebCore::WebGLRenderingContext::copyTexSubImage2D): Ditto. (WebCore::WebGLRenderingContext::renderbufferStorage): Ditto. (WebCore::WebGLRenderingContext::scissor): Ditto. (WebCore::WebGLRenderingContext::texImage2DBase): Ditto. (WebCore::WebGLRenderingContext::texImage2D): Ditto. (WebCore::WebGLRenderingContext::texSubImage2DBase): Ditto. (WebCore::WebGLRenderingContext::texSubImage2DImpl): Ditto. (WebCore::WebGLRenderingContext::texSubImage2D): Ditto. (WebCore::WebGLRenderingContext::viewport): Ditto. (WebCore::WebGLRenderingContext::validateSize): Check the sizes are non-negative. * html/canvas/WebGLRenderingContext.h: * html/canvas/WebGLRenderingContext.idl: 2010-12-28 Abhishek Arya Reviewed by Kenneth Russell. Fix crash with invalid font in m_fontList by not drawing text when a custom font is in the process of loading. https://bugs.webkit.org/show_bug.cgi?id=51681 Test: canvas/philip/tests/2d.text-custom-font-load-crash.html * html/canvas/CanvasRenderingContext2D.cpp: (WebCore::CanvasRenderingContext2D::drawTextInternal): bail out if a custom font is loading. * platform/graphics/Font.cpp: (WebCore::Font::operator==): Replace condition with new function loadingCustomFonts() (WebCore::Font::drawText): Replace condition with new function loadingCustomFonts() (WebCore::Font::drawEmphasisMarks): Replace condition with new function loadingCustomFonts() * platform/graphics/Font.h: (WebCore::Font::loadingCustomFonts): new function that returns if a custom font is loading. 2010-12-28 Dimitri Glazkov Reviewed by Eric Seidel. Combine setShadowRoot and clearShadowRoot into a simpler API https://bugs.webkit.org/show_bug.cgi?id=50971 No change in behavior, and API is not used yet. * dom/Element.cpp: (WebCore::Element::setShadowRoot): Combined clearing and setting of the shadowRoot, also hooked up with setting and clearing of the corresponding shadowHost values. * dom/Element.h: renamed clearShadowRoot to removeShadowRoot and made it private. * dom/Node.h: Made shadow host-related functions public so that Element::setShadowRoot can access setShadowHost. It seems logical to make shadowHost public as well to keep the defs together. 2010-12-28 Andrey Kosyakov Reviewed by Pavel Feldman. Web Inspector: [Chromium] Expose extension API to select a node in WebInspector Do not request content for resources with non-numeric identifiers. https://bugs.webkit.org/show_bug.cgi?id=49727 Test: http/tests/inspector/extensions-resources-redirect.html * inspector/front-end/NetworkManager.js: (WebInspector.NetworkManager.prototype._appendRedirect): 2010-12-28 Ilya Tikhonovsky Unreviewed build fix for Qt. ResourceTreeModel.js was added. * inspector/front-end/WebKit.qrc: 2010-12-28 Mikhail Naganov Reviewed by Pavel Feldman. [Chromium] Fix memory leak in Profiles tab concerned with heap profiles views. https://bugs.webkit.org/show_bug.cgi?id=51680 * inspector/front-end/ProfilesPanel.js: (WebInspector.ProfilesPanel.prototype._reset): 2010-12-28 Alexander Pavlov Reviewed by Pavel Feldman. Web Inspector: REGRESSION: Clicking image resource in style sidebar doesn't actually go to resource anymore https://bugs.webkit.org/show_bug.cgi?id=51663 The base URI is now computed correctly for links from CSS property uri(...) values. Additionally, optional quotes/apostrophes and spaces are now allowed inside uri(...). Test: inspector/styles-url-linkify.html * inspector/front-end/StylesSidebarPane.js: (WebInspector.StylePropertyTreeElement.prototype.updateTitle.linkifyURL): (WebInspector.StylePropertyTreeElement.prototype.updateTitle): 2010-12-21 Ilya Tikhonovsky Reviewed by Pavel Feldman. Web Inspector: Protocol cleanup task. Introduce Network, DOMStorage and Database domains. Domain was changed for Resources, FileSystem etc. related methods. ResourcesManager was renamed to NetworkManager. ResourceTreeModel was extracted as separate file. FileSystem, Database, DOMStorage and ApplicationCache methods were removed from NetworkManager and added to corresponding classes. https://bugs.webkit.org/show_bug.cgi?id=51334 * WebCore.gypi: * WebCore.vcproj/WebCore.vcproj: * inspector/CodeGeneratorInspector.pm: * inspector/Inspector.idl: * inspector/front-end/AuditRules.js: (WebInspector.AuditRules.UnusedCssRule.prototype.doRun.evalCallback.selectorsCallback): * inspector/front-end/CSSStyleModel.js: (WebInspector.CSSStyleModel.prototype._styleSheetChanged.callback): (WebInspector.CSSStyleModel.prototype._styleSheetChanged): * inspector/front-end/ConsoleView.js: (WebInspector.ConsoleView.prototype.addMessage): (WebInspector.ConsoleView.prototype.clearMessages): * inspector/front-end/DOMAgent.js: (WebInspector.ApplicationCache.updateApplicationCacheStatus): (WebInspector.ApplicationCache.updateNetworkState): * inspector/front-end/DOMStorage.js: (WebInspector.DOMStorage.addDOMStorage): (WebInspector.DOMStorage.selectDOMStorage): (WebInspector.DOMStorage.updateDOMStorage): * inspector/front-end/Database.js: (WebInspector.Database.prototype.executeSql): (WebInspector.Database.addDatabase): (WebInspector.Database.selectDatabase): (WebInspector.Database.sqlTransactionSucceeded): (WebInspector.Database.sqlTransactionFailed): * inspector/front-end/FileSystemView.js: (WebInspector.FileSystem.didGetFileSystemPath): (WebInspector.FileSystem.didGetFileSystemError): (WebInspector.FileSystem.didGetFileSystemDisabled): * inspector/front-end/NetworkItemView.js: (WebInspector.NetworkItemView): * inspector/front-end/NetworkManager.js: Added. (WebInspector.NetworkManager): (WebInspector.NetworkManager.prototype._createResource): (WebInspector.NetworkManager.prototype.identifierForInitialRequest): (WebInspector.NetworkManager.prototype.willSendRequest): (WebInspector.NetworkManager.prototype._updateResourceWithRequest): (WebInspector.NetworkManager.prototype._appendRedirect): (WebInspector.NetworkManager.prototype.markResourceAsCached): (WebInspector.NetworkManager.prototype.didReceiveResponse): (WebInspector.NetworkManager.prototype._updateResourceWithResponse): (WebInspector.NetworkManager.prototype.didReceiveContentLength): (WebInspector.NetworkManager.prototype.didFinishLoading): (WebInspector.NetworkManager.prototype.didFailLoading): (WebInspector.NetworkManager.prototype.didLoadResourceFromMemoryCache): (WebInspector.NetworkManager.prototype._updateResourceWithCachedResource): (WebInspector.NetworkManager.prototype.setInitialContent): (WebInspector.NetworkManager.prototype.didCommitLoadForFrame): (WebInspector.NetworkManager.prototype.frameDetachedFromParent): (WebInspector.NetworkManager.prototype.didCreateWebSocket): (WebInspector.NetworkManager.prototype.willSendWebSocketHandshakeRequest): (WebInspector.NetworkManager.prototype.didReceiveWebSocketHandshakeResponse): (WebInspector.NetworkManager.prototype.didCloseWebSocket): (WebInspector.NetworkManager.prototype._processCachedResources): (WebInspector.NetworkManager.prototype._addFramesRecursively): (WebInspector.NetworkManager.requestContent): * inspector/front-end/NetworkPanel.js: (WebInspector.NetworkPanel.prototype.refreshResource): * inspector/front-end/Resource.js: (WebInspector.Resource.prototype._innerRequestContent): * inspector/front-end/ResourceManager.js: Removed. * inspector/front-end/ResourceTreeModel.js: Added. (WebInspector.ResourceTreeModel): (WebInspector.ResourceTreeModel.prototype.addOrUpdateFrame): (WebInspector.ResourceTreeModel.prototype.didCommitLoadForFrame): (WebInspector.ResourceTreeModel.prototype.frameDetachedFromParent): (WebInspector.ResourceTreeModel.prototype._clearChildFramesAndResources): (WebInspector.ResourceTreeModel.prototype.addResourceToFrame): (WebInspector.ResourceTreeModel.prototype._clearResources): (WebInspector.ResourceTreeModel.prototype.forAllResources): (WebInspector.ResourceTreeModel.prototype.addConsoleMessage): (WebInspector.ResourceTreeModel.prototype.clearConsoleMessages): (WebInspector.ResourceTreeModel.prototype._callForFrameResources): (WebInspector.ResourceTreeModel.prototype.resourceForURL): (WebInspector.ResourceTreeModel.prototype.bindResourceURL): (WebInspector.ResourceTreeModel.prototype._unbindResourceURL): (WebInspector.ResourceTreeModel.createResource): * inspector/front-end/ResourceView.js: (WebInspector.ResourceView.createResourceView): (WebInspector.ResourceView.resourceViewTypeMatchesResource): (WebInspector.ResourceView.resourceViewForResource): (WebInspector.ResourceView.recreateResourceView): (WebInspector.ResourceView.existingResourceViewForResource): * inspector/front-end/ResourcesPanel.js: (WebInspector.ResourcesPanel.prototype.canShowSourceLine): (WebInspector.ResourcesPanel.prototype.showSourceLine): (WebInspector.ResourcesPanel.prototype.showResource): (WebInspector.ResourcesPanel.prototype.get searchableViews.callback): (WebInspector.ResourcesPanel.prototype.get searchableViews): (WebInspector.FrameResourceTreeElement.prototype._errorsWarningsUpdated): (WebInspector.FrameResourceTreeElement.prototype._contentChanged): * inspector/front-end/ScriptsPanel.js: (WebInspector.ScriptsPanel.prototype._addScript): (WebInspector.ScriptsPanel.prototype.reset): (WebInspector.ScriptsPanel.prototype._sourceFrameForResource): (WebInspector.ScriptsPanel.prototype._showScriptOrResource): * inspector/front-end/WebKit.qrc: * inspector/front-end/inspector.html: * inspector/front-end/inspector.js: (WebInspector.forAllResources): (WebInspector.resourceForURL): 2010-12-27 Helder Correia Reviewed by Ariya Hidayat. ContextShadow should use AffineTransform instead of TransformationMatrix https://bugs.webkit.org/show_bug.cgi?id=51661 ContextShadow needs the CTM to make sure shadows are not affected by transformations when drawing on a canvas. AffineTransform is sufficient in this case. Existing tests: fast/canvas/canvas*shadow*html * platform/graphics/ContextShadow.cpp: (WebCore::ContextShadow::mustUseContextShadow): (WebCore::ContextShadow::adjustBlurDistance): (WebCore::ContextShadow::calculateLayerBoundingRect): * platform/graphics/ContextShadow.h: * platform/graphics/cairo/ContextShadowCairo.cpp: (WebCore::ContextShadow::getTransformationMatrixFromContext): * platform/graphics/qt/ContextShadowQt.cpp: (WebCore::ContextShadow::getTransformationMatrixFromContext): 2010-12-27 Daniel Bates Reviewed by Antonio Gomes. Clean up: Rename HTMLFrameElementBase::getMarginWidth() and HTMLFrameElementBase::getMarginHeight() https://bugs.webkit.org/show_bug.cgi?id=51634 Rename HTMLFrameElementBase::getMarginWidth() and HTMLFrameElementBase::getMarginHeight() to HTMLFrameElementBase::marginWidth() and HTMLFrameElementBase::marginHeight(), respectively. This will make the names of these getters consistent with the naming convention we use for getters. * html/HTMLBodyElement.cpp: (WebCore::HTMLBodyElement::insertedIntoDocument): * html/HTMLFrameElementBase.h: (WebCore::HTMLFrameElementBase::marginWidth): Renamed; Formerly getMarginWidth(). (WebCore::HTMLFrameElementBase::marginHeight): Renamed; Formerly getMarginHeight(). * loader/SubframeLoader.cpp: (WebCore::SubframeLoader::loadSubframe): * page/FrameView.cpp: (WebCore::FrameView::init): * rendering/RenderEmbeddedObject.cpp: (WebCore::RenderEmbeddedObject::viewCleared): Also renamed variables marginw and marginh to marginWidth and marginHeight, respectively. This makes the names of these variables consistent with the names of similar variables in SubframeLoader::loadSubframe() and FrameView::init(). * rendering/RenderFrame.cpp: (WebCore::RenderFrame::viewCleared): Ditto. 2010-12-27 Martin Robinson Reviewed by Daniel Bates. [GTK] RenderThemeGtk::m_HScale and RenderThemeGtk::m_VScale are not initialized https://bugs.webkit.org/show_bug.cgi?id=51654 Properly initialize slider members of RenderThemeGtk. This can lead to test crashes on some debug configurations. No new tests. This is already covered by current slider tests. It isn't crashing on the bots, but it does crash locally. * platform/gtk/RenderThemeGtk.cpp: (WebCore::RenderThemeGtk::RenderThemeGtk): Properly initialize members. 2010-12-27 Anton Muhin Reviewed by David Levin. [v8] Remove unused methods to protect/unprotect wrappers during garbage collection https://bugs.webkit.org/show_bug.cgi?id=51648 * bindings/v8/ScriptController.cpp: * bindings/v8/ScriptController.h: * bindings/v8/V8GCController.cpp: (WebCore::V8GCController::gcEpilogue): * bindings/v8/V8GCController.h: 2010-12-27 Yury Semikhatsky Unreviewed. Removed trailing spaces from a localized string to make it the same as the one used in the code. * English.lproj/localizedStrings.js: 2010-12-27 Yael Aharon Reviewed by Eric Seidel. Browser is failing 16 baseline test from Selector API Test Suite https://bugs.webkit.org/show_bug.cgi?id=42968 Throw an exception if there is no argument to querySelector or querySelectorAll. This replaces the current behavior of passing the string "undefined" as the argument. No new tests, just updating the existing results for fast/dom/SelectorAPI/resig-SelectorAPI-test.xhtml. * dom/Document.idl: * dom/DocumentFragment.idl: * dom/Element.idl: 2010-12-26 MORITA Hajime Reviewed by Dan Bernstein. For box-shadow, non-primary shadows should have specified radii. https://bugs.webkit.org/show_bug.cgi?id=51386 On paintBoxShadow(), the spread value accidentally accumulated accidentally during the loop, which should be applied individually for radius of each shadow. This change makes the radii for rects computed for each shadow. Test: fast/box-shadow/spread-multiple-normal.html * rendering/RenderBoxModelObject.cpp: (WebCore::RenderBoxModelObject::paintBoxShadow): 2010-12-26 Patrick Gansterer Reviewed by Eric Seidel. Improve output of HTML parser benchmark https://bugs.webkit.org/show_bug.cgi?id=51611 Calculate and show median, min and max values. * benchmarks/parser/html-parser.html: 2010-12-26 Abhishek Arya Reviewed by Simon Fraser. Remove the bad assert in paintPaginatedChildLayer, hitTestPaginatedChildLayer. https://bugs.webkit.org/show_bug.cgi?id=48772 Test: fast/multicol/renderer-positioned-assert-crash.html * rendering/RenderLayer.cpp: (WebCore::RenderLayer::paintPaginatedChildLayer): (WebCore::RenderLayer::hitTestPaginatedChildLayer): 2010-12-25 Peter Rybin Reviewed by Adam Barth. Adds currentColumn (and currentLine) to SegmentedString. Switches HTMLTreeBuilder to HTMLDocumentParser::textPosition when it needs position for a