1. 18 Apr, 2013 1 commit
    • andersca@apple.com's avatar
      Change storage factory functions to take a PageGroup and Page respectively · e44d33f5
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=114776
      
      Reviewed by Beth Dakin.
      
      Source/WebCore:
      
      Change StorageNamespace::localStorageNamespace to take a PageGroup since WebKit2 needs
      to know which local storage namespace belongs to which page group. Also remove the quota parameter from
      the sessionStorageNamespace function since that's trivial to get from the Page.
      
      * WebCore.exp.in:
      * page/Page.cpp:
      (WebCore::Page::sessionStorage):
      * page/PageGroup.cpp:
      (WebCore::PageGroup::localStorage):
      * storage/StorageNamespace.cpp:
      (WebCore::StorageNamespace::localStorageNamespace):
      (WebCore::StorageNamespace::sessionStorageNamespace):
      * storage/StorageNamespace.h:
      * storage/StorageNamespaceImpl.cpp:
      (WebCore::StorageNamespaceImpl::localStorageNamespace):
      (WebCore::StorageNamespaceImpl::sessionStorageNamespace):
      * storage/StorageNamespaceImpl.h:
      * storage/StorageStrategy.cpp:
      (WebCore::StorageStrategy::localStorageNamespace):
      (WebCore::StorageStrategy::sessionStorageNamespace):
      * storage/StorageStrategy.h:
      
      Source/WebKit2:
      
      Update for WebCore changes.
      
      * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
      (WebKit::WebPlatformStrategies::localStorageNamespace):
      (WebKit::WebPlatformStrategies::sessionStorageNamespace):
      * WebProcess/WebCoreSupport/WebPlatformStrategies.h:
      (WebPlatformStrategies):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148683 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e44d33f5
  2. 16 Apr, 2013 3 commits
    • bdakin@apple.com's avatar
      Re-name Page::layoutMilestones() to Page::requestedLayoutMilestones() · 6209dbe1
      bdakin@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=114713
      
      Reviewed by Simon Fraser.
      
      Source/WebCore: 
      
      * page/FrameView.cpp:
      (WebCore::FrameView::performPostLayoutTasks):
      * page/Page.cpp:
      (WebCore::Page::Page):
      (WebCore::Page::addLayoutMilestones):
      (WebCore::Page::removeLayoutMilestones):
      (WebCore::Page::isCountingRelevantRepaintedObjects):
      * page/Page.h:
      (WebCore::Page::requestedLayoutMilestones):
      (Page):
      * rendering/RenderLayerCompositor.cpp:
      (WebCore::RenderLayerCompositor::flushPendingLayerChanges):
      
      Source/WebKit/mac: 
      
      * WebView/WebView.mm:
      (-[WebView _layoutMilestones]):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148590 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6209dbe1
    • bdakin@apple.com's avatar
      Need a new layout milestone to notify bundle clients when the header has been · 60d628f6
      bdakin@apple.com authored
      flushed
      https://bugs.webkit.org/show_bug.cgi?id=114706
      -and corresponding-
      <rdar://problem/13657284>
      
      Reviewed by Simon Fraser.
      
      Source/WebCore: 
      
      New LayoutMilestone is DidFirstFlushForHeaderLayer.
      * page/LayoutMilestones.h:
              
      New API to allow removing a LayoutMilestone.
      * WebCore.exp.in:
      * page/Page.cpp:
      (WebCore::Page::removeLayoutMilestones):
      * page/Page.h:
      (Page):
      
      New boolean member variable m_headerLayerAwaitingFirstFlush keeps track of whether 
      we need to send the DidFirstFlushForHeaderLayer milestone.
      * rendering/RenderLayerCompositor.h:
      (RenderLayerCompositor):
      * rendering/RenderLayerCompositor.cpp:
      (WebCore::RenderLayerCompositor::RenderLayerCompositor):
      
      Send the milestone if appropriate.
      (WebCore::RenderLayerCompositor::flushPendingLayerChanges):
      
       Set m_headerLayerAwaitingFirstFlush to true for a newly created layer.
      (WebCore::RenderLayerCompositor::updateLayerForHeader):
      
      Source/WebKit2: 
      
      Make this new LayoutMilestone private at the API layer. 
      * Shared/API/c/WKPageLoadTypes.h:
      * Shared/API/c/WKPageLoadTypesPrivate.h: Added.
      
      Handle the new milestone.
      * Shared/API/c/WKSharedAPICast.h:
      (WebKit::toWKLayoutMilestones):
      (WebKit::toLayoutMilestones):
      
      New file to make the milestone private.
      * WebKit2.xcodeproj/project.pbxproj:
      
      Add or remove the DidFirstFlushForHeaderLayer millstone based on whether we just 
      added or removed a header.
      * WebProcess/WebPage/mac/WebPageMac.mm:
      (WebKit::WebPage::setHeaderLayerWithHeight):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148564 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      60d628f6
    • weinig@apple.com's avatar
      Remove more #includes from Frame.h · 13d777fe
      weinig@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=114642
      
      Reviewed by Anders Carlsson.
      
      Source/WebCore: 
      
      Convert Editor, FrameSelection, EventHandler and AnimationController into
      OwnPtrs, to avoid inclusion.
      
      * accessibility/AXObjectCache.cpp:
      * accessibility/AccessibilityObject.cpp:
      * accessibility/atk/WebKitAccessibleInterfaceEditableText.cpp:
      * accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
      * bindings/objc/DOM.mm:
      * dom/CharacterData.cpp:
      * dom/ContainerNode.cpp:
      * dom/Element.cpp:
      * editing/AlternativeTextController.cpp:
      * editing/CompositeEditCommand.cpp:
      * editing/DeleteButtonController.h:
      * editing/EditingStyle.cpp:
      * editing/InsertLineBreakCommand.cpp:
      * editing/SpellChecker.cpp:
      * editing/SpellingCorrectionCommand.cpp:
      * editing/TextInsertionBaseCommand.cpp:
      * history/CachedFrame.cpp:
      * html/HTMLAnchorElement.cpp:
      * html/HTMLInputElement.cpp:
      * html/HTMLPlugInElement.cpp:
      * html/HTMLSelectElement.cpp:
      * html/HTMLTextAreaElement.cpp:
      * html/HTMLTextFormControlElement.cpp:
      * html/TextFieldInputType.cpp:
      * html/shadow/ClearButtonElement.cpp:
      * html/shadow/MediaControlElements.cpp:
      * html/shadow/SliderThumbElement.cpp:
      * inspector/InspectorPageAgent.h:
      * loader/FrameLoader.cpp:
      * page/DOMWindow.cpp:
      * page/Frame.cpp:
      * page/Frame.h:
      * page/FrameView.cpp:
      * page/FrameView.h:
      * page/Page.cpp:
      * page/TouchAdjustment.cpp:
      * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.h:
      * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
      * platform/gtk/PasteboardGtk.cpp:
      * platform/qt/ClipboardQt.cpp:
      * rendering/HitTestResult.cpp:
      * rendering/RenderBlock.cpp:
      * rendering/RenderEmbeddedObject.cpp:
      * rendering/RenderLayer.cpp:
      * rendering/RenderNamedFlowThread.cpp:
      * rendering/RenderObject.cpp:
      * rendering/RenderSnapshottedPlugIn.cpp:
      * svg/graphics/SVGImage.cpp:
      * testing/Internals.cpp:
      
      Source/WebKit/mac: 
      
      * WebView/WebFrame.mm:
      * WebView/WebHTMLRepresentation.mm:
      * WebView/WebView.mm:
      
      Source/WebKit/qt: 
      
      * WebCoreSupport/DragClientQt.cpp:
      * WebCoreSupport/FrameLoaderClientQt.cpp:
      * WebCoreSupport/QWebFrameAdapter.cpp:
      * WebCoreSupport/QWebPageAdapter.cpp:
      
      Source/WebKit2: 
      
      * WebProcess/InjectedBundle/InjectedBundleNavigationAction.cpp:
      * WebProcess/Plugins/PluginView.cpp:
      * WebProcess/WebPage/WebFrame.cpp:
      * WebProcess/WebPage/gtk/WebPageGtk.cpp:
      * WebProcess/WebPage/mac/WebPageMac.mm:
      * WebProcess/WebPage/qt/WebPageQt.cpp:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148545 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      13d777fe
  3. 13 Apr, 2013 1 commit
    • weinig@apple.com's avatar
      Make Frame's ScriptController an OwnPtr and remove the #include · 123e4aae
      weinig@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=114105
      
      Reviewed by Dean Jackson.
      
      Source/WebCore: 
      
      * Modules/websockets/WebSocket.cpp:
      * bindings/generic/BindingSecurity.cpp:
      * bindings/js/JSEventListener.cpp:
      * bindings/js/JSLazyEventListener.cpp:
      * bindings/js/PageScriptDebugServer.cpp:
      * bindings/js/ScriptEventListener.cpp:
      * bindings/js/ScriptState.cpp:
      * bindings/objc/DOM.mm:
      * bindings/objc/DOMAbstractView.mm:
      * bindings/objc/DOMInternal.mm:
      * dom/DocumentStyleSheetCollection.cpp:
      * dom/EventTarget.cpp:
      * dom/ScriptElement.cpp:
      * history/CachedFrame.cpp:
      * html/HTMLCanvasElement.cpp:
      * html/HTMLDocument.cpp:
      * html/HTMLElement.cpp:
      * html/HTMLFormElement.cpp:
      * html/HTMLPlugInElement.cpp:
      * html/HTMLPlugInImageElement.cpp:
      * html/parser/HTMLParserOptions.cpp:
      * inspector/InspectorAgent.cpp:
      * inspector/InspectorController.cpp:
      * inspector/InspectorFrontendClientLocal.cpp:
      * inspector/InspectorFrontendHost.cpp:
      * inspector/InspectorInstrumentation.cpp:
      * inspector/InspectorOverlay.cpp:
      * inspector/InspectorPageAgent.cpp:
      * inspector/PageRuntimeAgent.cpp:
      * loader/DocumentWriter.cpp:
      * loader/NavigationScheduler.cpp:
      * loader/SubframeLoader.cpp:
      * loader/cache/CachedResourceLoader.cpp:
      * page/DOMWindow.cpp:
      * page/EventSource.cpp:
      * page/Frame.cpp:
      * page/Frame.h:
      * page/Navigator.cpp:
      * page/Page.cpp:
      * page/PageGroup.cpp:
      * xml/XMLHttpRequest.cpp:
      * xml/XMLTreeViewer.cpp:
      
      Source/WebKit/mac: 
      
      * Plugins/Hosted/HostedNetscapePluginStream.mm:
      * Plugins/WebNetscapePluginStream.mm:
      * Plugins/WebPluginContainerCheck.mm:
      * WebCoreSupport/WebGeolocationClient.mm:
      * WebCoreSupport/WebInspectorClient.mm:
      * WebView/WebFrame.mm:
      
      Source/WebKit2: 
      
      * Shared/WebHitTestResult.cpp:
      * Shared/WebHitTestResult.h:
      * UIProcess/Plugins/PlugInAutoStartProvider.cpp:
      * UIProcess/WebContext.h:
      * UIProcess/WebPageProxy.h:
      * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
      * WebProcess/InjectedBundle/InjectedBundleDOMWindowExtension.cpp:
      * WebProcess/Plugins/Netscape/NPJSObject.cpp:
      * WebProcess/Plugins/Netscape/NPRuntimeObjectMap.cpp:
      * WebProcess/Plugins/PDF/PDFPlugin.h:
      * WebProcess/Plugins/PluginView.cpp:
      * WebProcess/Storage/StorageAreaImpl.cpp:
      * WebProcess/Storage/StorageAreaMap.cpp:
      * WebProcess/WebPage/WebFrame.cpp:
      * WebProcess/WebPage/WebPage.cpp:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148373 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      123e4aae
  4. 10 Apr, 2013 1 commit
    • andersca@apple.com's avatar
      Remove unneeded headers from FrameLoader.h · 9b9d83ba
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=114223
      
      Reviewed by Geoffrey Garen.
      
      Source/JavaScriptCore:
      
      Update for WTF changes.
      
      * bytecode/SpeculatedType.h:
      * runtime/JSCJSValue.h:
      
      Source/WebCore:
      
      Remove unneeded headers from FrameLoader.h and add them back into the respective .cpp files where needed.
      
      * dom/Document.cpp:
      * history/CachedFrame.cpp:
      * history/PageCache.cpp:
      * inspector/InspectorResourceAgent.cpp:
      * loader/DocumentLoader.cpp:
      * loader/FrameLoader.cpp:
      (WebCore::FrameLoader::FrameLoader):
      (WebCore::FrameLoader::retryAfterFailedCacheOnlyMainResourceLoad):
      * loader/FrameLoader.h:
      (WebCore):
      (WebCore::FrameLoader::policyChecker):
      (WebCore::FrameLoader::history):
      (WebCore::FrameLoader::icon):
      * loader/MixedContentChecker.h:
      * loader/icon/IconLoader.cpp:
      * page/History.cpp:
      * page/Page.cpp:
      * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.h:
      * testing/Internals.cpp:
      
      Source/WebKit/blackberry:
      
      Include HistoryController.h from WebCore.
      
      * WebCoreSupport/FrameLoaderClientBlackBerry.cpp:
      
      Source/WebKit/mac:
      
      Include HistoryController.h from WebCore.
      
      * WebCoreSupport/WebFrameLoaderClient.mm:
      * WebView/WebView.mm:
      
      Source/WebKit/win:
      
      Include HistoryController.h from WebCore.
      
      * WebView.cpp:
      
      Source/WebKit2:
      
      Include HistoryController.h from WebCore.
      
      * WebProcess/Plugins/PDF/SimplePDFPlugin.h:
      * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
      * WebProcess/WebPage/WebPage.cpp:
      
      Source/WTF:
      
      * wtf/Forward.h:
      Add PrintStream.
      
      * wtf/HashTable.h:
      Don't include DataLog.h unless DUMP_HASHTABLE_STATS_PER_TABLE is 1.
      
      Tools:
      
      Add back headers implicitly included by other headers.
      
      * WebKitTestRunner/WorkQueueManager.cpp:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148123 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9b9d83ba
  5. 22 Mar, 2013 1 commit
    • cmuppala@apple.com's avatar
      Add runtime setting for hidden page DOM timer throttling and CSS animation suspension · a756fa61
      cmuppala@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=112308
      
      Reviewed by Gavin Barraclough.
      
      Source/WebCore:
      
      No new tests.  Only adding settings to enable/disable existing features
      and hence existing tests suffice.
      
      * WebCore.exp.in:
      * page/Page.cpp:
      (WebCore::Page::setVisibilityState): Check if DOM timer throttling
      and CSS animation suspension are enabled before turning them on.
      (WebCore::Page::hiddenPageDOMTimerThrottlingStateChanged): Start or stop
      DOM timer throttling based on page visibility and the new setting state.
      (WebCore::Page::hiddenPageCSSAnimationSuspensionStateChanged): Ditto
      for CSS animation suspension.
      * page/Page.h:
      * page/Settings.cpp:
      (WebCore::Settings::Settings): Initialize the flags for enabling hidden
      page DOM timer throttling and CSS animation suspension to false.
      (WebCore::Settings::setHiddenPageDOMTimerThrottlingEnabled): Update flag
      and notify page that the state of the setting has changed.
      (WebCore::Settings::setHiddenPageCSSAnimationSuspensionEnabled): Ditto.
      * page/Settings.h:
      (WebCore::Settings::hiddenPageDOMTimerThrottlingEnabled):
      (WebCore::Settings::hiddenPageCSSAnimationSuspensionEnabled):
      
      Source/WebKit/mac:
      
      Add private preference for enabling/disabling hidden page DOM timer
      throttling and CSS animation suspension.  The preference should be
      disabled by default to avoid compatibility issues.
      
      * WebView/WebPreferenceKeysPrivate.h:
      * WebView/WebPreferences.mm:
      (+[WebPreferences initialize]):
      (-[WebPreferences hiddenPageDOMTimerThrottlingEnabled]):
      (-[WebPreferences setHiddenPageDOMTimerThrottlingEnabled:]):
      (-[WebPreferences hiddenPageCSSAnimationSuspensionEnabled]):
      (-[WebPreferences setHiddenPageCSSAnimationSuspensionEnabled:]):
      * WebView/WebPreferencesPrivate.h:
      * WebView/WebView.mm:
      (-[WebView _preferencesChanged:]):
      
      Source/WebKit2:
      
      Add private preference for enabling/disabling hidden page DOM timer
      throttling and CSS animation suspension.  The preference should be
      enabled by default only on Mac, where WebKit2 is a private API and
      hence compatibility is less of a issue.
      
      * Shared/WebPreferencesStore.h:
      * UIProcess/API/C/WKPreferences.cpp:
      (WKPreferencesSetHiddenPageDOMTimerThrottlingEnabled):
      (WKPreferencesGetHiddenPageDOMTimerThrottlingEnabled):
      (WKPreferencesSetHiddenPageCSSAnimationSuspensionEnabled):
      (WKPreferencesGetHiddenPageCSSAnimationSuspensionEnabled):
      * UIProcess/API/C/WKPreferencesPrivate.h:
      * WebProcess/InjectedBundle/InjectedBundle.cpp:
      (WebKit::InjectedBundle::overrideBoolPreferenceForTestRunner): Allow
      WebKitTestRunner to override hiddenPageDOMTimerThrottlingEnabled.
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::updatePreferences):
      
      LayoutTests:
      
      Hidden page DOM timer throttling is disabled by default in WebKit1 and
      in WebKit2 for platforms other than Mac.  Override the preference to
      enable it during the test.
      
      * fast/dom/timer-throttling-hidden-page.html:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146704 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a756fa61
  6. 19 Mar, 2013 1 commit
    • commit-queue@webkit.org's avatar
      Web Inspector: split Console into two entities, a web-facing bound object and page console. · 7195ba53
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=111578
      
      Patch by Sergey Ryazanov <serya@chromium.org> on 2013-03-19
      Reviewed by Vsevolod Vlasov.
      
      Otherwise, a lot of logging in WebCore needs to go through the DOMWindow which is unnecessary.
      
      Source/WebCore:
      
      * CMakeLists.txt:
      * GNUmakefile.list.am:
      * Target.pri:
      * WebCore.exp.in:
      * WebCore.gypi:
      * WebCore.order:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.vcxproj/WebCore.vcxproj:
      * WebCore.vcxproj/WebCore.vcxproj.filters:
      * WebCore.xcodeproj/project.pbxproj:
      * bindings/js/JSCustomXPathNSResolver.cpp:
      (WebCore::JSCustomXPathNSResolver::lookupNamespaceURI):
      * bindings/v8/custom/V8CustomXPathNSResolver.cpp:
      (WebCore::V8CustomXPathNSResolver::lookupNamespaceURI):
      * dom/Document.cpp:
      (WebCore::Document::addConsoleMessage):
      (WebCore::Document::addMessage):
      * inspector/PageDebuggerAgent.cpp:
      (WebCore::PageDebuggerAgent::muteConsole):
      (WebCore::PageDebuggerAgent::unmuteConsole):
      * inspector/PageRuntimeAgent.cpp:
      (WebCore::PageRuntimeAgent::muteConsole):
      (WebCore::PageRuntimeAgent::unmuteConsole):
      * page/Console.cpp:
      (WebCore::internalAddMessage):
      * page/Console.h:
      (WebCore):
      (Console):
      * page/DOMWindow.cpp:
      (WebCore::DOMWindow::pageConsole):
      (WebCore):
      (WebCore::DOMWindow::dispatchMessageEventWithOriginCheck):
      (WebCore::DOMWindow::printErrorMessage):
      * page/DOMWindow.h:
      (WebCore):
      (DOMWindow):
      * page/Page.cpp:
      (WebCore::Page::Page):
      * page/Page.h:
      (WebCore):
      (WebCore::Page::console):
      (Page):
      * page/PageConsole.cpp: Added.
      (WebCore::PageConsole::PageConsole):
      (WebCore):
      (WebCore::PageConsole::~PageConsole):
      (WebCore::PageConsole::printSourceURLAndLine):
      (WebCore::PageConsole::printMessageSourceAndLevelPrefix):
      (WebCore::PageConsole::addMessage):
      (WebCore::PageConsole::mute):
      (WebCore::PageConsole::unmute):
      (WebCore::PageConsole::shouldPrintExceptions):
      (WebCore::PageConsole::setShouldPrintExceptions):
      * page/PageConsole.h: Copied from Source/WebCore/page/Console.h.
      (WebCore):
      (PageConsole):
      (WebCore::PageConsole::create):
      (WebCore::PageConsole::page):
      * xml/XSLStyleSheetLibxslt.cpp:
      (WebCore::XSLStyleSheet::parseString):
      * xml/XSLTProcessorLibxslt.cpp:
      (WebCore::XSLTProcessor::parseErrorFunc):
      (WebCore::docLoaderFunc):
      
      Source/WebKit/mac:
      
      * Misc/WebCoreStatistics.mm:
      (+[WebCoreStatistics shouldPrintExceptions]):
      (+[WebCoreStatistics setShouldPrintExceptions:]):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146208 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7195ba53
  7. 15 Mar, 2013 1 commit
    • inferno@chromium.org's avatar
      Replace static_casts with to* helper functions. · 92242cbf
      inferno@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=112401
      
      Reviewed by Stephen Chenney.
      
      to* helper functions are preferred over static_cast calls since they
      help to catch bad casts easily on the testing infrastructure.
      
      Source/WebCore:
      
      * accessibility/AccessibilityObject.cpp:
      (WebCore::appendAccessibilityObject):
      * accessibility/AccessibilityRenderObject.cpp:
      (WebCore::AccessibilityRenderObject::visiblePositionForPoint):
      * accessibility/AccessibilityScrollView.cpp:
      (WebCore::AccessibilityScrollView::webAreaObject):
      (WebCore::AccessibilityScrollView::documentFrameView):
      (WebCore::AccessibilityScrollView::parentObject):
      (WebCore::AccessibilityScrollView::parentObjectIfExists):
      * accessibility/chromium/AXObjectCacheChromium.cpp:
      (WebCore::AXObjectCache::postPlatformNotification):
      * bindings/js/JSPluginElementFunctions.cpp:
      (WebCore::pluginScriptObjectFromPluginViewBase):
      * bindings/js/PageScriptDebugServer.cpp:
      (WebCore::PageScriptDebugServer::setJavaScriptPaused):
      * bindings/js/ScriptController.cpp:
      (WebCore::ScriptController::createScriptInstanceForWidget):
      * bindings/js/ScriptControllerQt.cpp:
      (WebCore::ScriptController::createScriptInstanceForWidget):
      * bindings/v8/ScriptController.cpp:
      (WebCore::ScriptController::createScriptInstanceForWidget):
      * html/HTMLObjectElement.cpp:
      (WebCore::HTMLObjectElement::appendFormData):
      * page/EventHandler.cpp:
      (WebCore::EventHandler::subframeForTargetNode):
      (WebCore::EventHandler::passGestureEventToWidget):
      * page/Frame.cpp:
      (WebCore::Frame::frameForWidget):
      * page/FrameView.cpp:
      (WebCore::collectFrameViewChildren):
      (WebCore::FrameView::hasCustomScrollbars):
      (WebCore::FrameView::convertToContainingView):
      (WebCore::FrameView::convertFromContainingView):
      (WebCore::FrameView::removeChild):
      * page/FrameView.h:
      (WebCore::toFrameView):
      (WebCore):
      * page/Page.cpp:
      (WebCore::Page::collectPluginViews):
      * page/chromium/EventHandlerChromium.cpp:
      (WebCore::EventHandler::passWheelEventToWidget):
      * page/efl/EventHandlerEfl.cpp:
      (WebCore::EventHandler::passWheelEventToWidget):
      * page/gtk/EventHandlerGtk.cpp:
      (WebCore::EventHandler::passWheelEventToWidget):
      * page/mac/EventHandlerMac.mm:
      (WebCore::EventHandler::passWheelEventToWidget):
      * page/qt/EventHandlerQt.cpp:
      (WebCore::EventHandler::passWheelEventToWidget):
      * page/scrolling/ScrollingCoordinator.cpp:
      (WebCore::ScrollingCoordinator::computeNonFastScrollableRegion):
      * page/win/EventHandlerWin.cpp:
      (WebCore::EventHandler::passWheelEventToWidget):
      * page/wx/EventHandlerWx.cpp:
      (WebCore::EventHandler::passWheelEventToWidget):
      * platform/ScrollView.h:
      (WebCore::toScrollView):
      (WebCore):
      * platform/Scrollbar.cpp:
      (WebCore::Scrollbar::isScrollViewScrollbar):
      (WebCore::Scrollbar::mouseUp):
      (WebCore::Scrollbar::axObjectCache):
      * platform/Widget.h:
      (WebCore::Widget::isScrollView):
      * platform/blackberry/PlatformScreenBlackBerry.cpp:
      (WebCore::toUserSpace):
      * platform/efl/ScrollbarEfl.cpp:
      (ScrollbarEfl::setParent):
      * platform/qt/PlatformSupportQt.cpp:
      (WebCore::PlatformSupport::popupsAllowed):
      (WebCore::PlatformSupport::pluginScriptableObject):
      * plugins/IFrameShimSupport.cpp:
      (WebCore::getPluginOcclusions):
      * plugins/PluginView.h:
      (WebCore::toPluginView):
      (WebCore):
      * plugins/PluginViewBase.h:
      (WebCore::PluginViewBase::isPluginViewBase):
      (PluginViewBase):
      (WebCore::toPluginViewBase):
      (WebCore):
      * plugins/blackberry/PluginViewBlackBerry.cpp:
      (WebCore::PluginView::updatePluginWidget):
      (WebCore::PluginView::updateBuffer):
      (WebCore::PluginView::paint):
      (WebCore::PluginView::handleScrollEvent):
      (WebCore::PluginView::calculateClipRect):
      (WebCore::PluginView::handleFullScreenAllowedEvent):
      (WebCore::PluginView::handleFullScreenExitEvent):
      (WebCore::PluginView::setParent):
      (WebCore::PluginView::setNPWindowIfNeeded):
      (WebCore::PluginView::platformGetValue):
      (WebCore::PluginView::platformStart):
      (WebCore::PluginView::platformDestroy):
      (WebCore::PluginView::setBackgroundPlay):
      * plugins/blackberry/PluginViewPrivateBlackBerry.cpp:
      (WebCore::PluginViewPrivate::setVisibleRects):
      (WebCore::PluginViewPrivate::showKeyboard):
      (WebCore::PluginViewPrivate::requestFullScreen):
      (WebCore::PluginViewPrivate::requestCenterFitZoom):
      (WebCore::PluginViewPrivate::lockOrientation):
      (WebCore::PluginViewPrivate::unlockOrientation):
      (WebCore::PluginViewPrivate::preventIdle):
      * plugins/gtk/PluginViewGtk.cpp:
      (WebCore::PluginView::updatePluginWidget):
      * plugins/mac/PluginViewMac.mm:
      (WebCore::PluginView::platformStart):
      * plugins/qt/PluginViewQt.cpp:
      (WebCore::PluginView::updatePluginWidget):
      * plugins/win/PluginViewWin.cpp:
      (WebCore::PluginView::updatePluginWidget):
      (WebCore::PluginView::paintIntoTransformedContext):
      (WebCore::PluginView::paintWindowedPluginIntoContext):
      (WebCore::PluginView::paint):
      (WebCore::PluginView::handleMouseEvent):
      (WebCore::PluginView::setNPWindowRect):
      (WebCore::PluginView::snapshot):
      * rendering/RenderBox.cpp:
      (WebCore::RenderBox::addLayoutOverflow):
      * rendering/RenderBoxModelObject.cpp:
      (WebCore::RenderBoxModelObject::mapAbsoluteToLocalPoint):
      * rendering/RenderEmbeddedObject.cpp:
      (WebCore::RenderEmbeddedObject::allowsAcceleratedCompositing):
      (WebCore::RenderEmbeddedObject::viewCleared):
      (WebCore::RenderEmbeddedObject::nodeAtPoint):
      (WebCore::RenderEmbeddedObject::scroll):
      * rendering/RenderFlexibleBox.h:
      (WebCore::toRenderFlexibleBox):
      (WebCore):
      * rendering/RenderFrame.cpp:
      (WebCore::RenderFrame::viewCleared):
      * rendering/RenderFrameBase.cpp:
      (WebCore::RenderFrameBase::layoutWithFlattening):
      * rendering/RenderIFrame.cpp:
      (WebCore::RenderIFrame::contentRootRenderer):
      (WebCore::RenderIFrame::layoutSeamlessly):
      * rendering/RenderLayerBacking.cpp:
      (WebCore::RenderLayerBacking::updateGraphicsLayerConfiguration):
      * rendering/RenderLayerCompositor.cpp:
      (WebCore::RenderLayerCompositor::shouldPropagateCompositingToEnclosingFrame):
      * rendering/RenderPart.cpp:
      (WebCore::RenderPart::requiresAcceleratedCompositing):
      (WebCore::RenderPart::embeddedContentBox):
      (WebCore::RenderPart::nodeAtPoint):
      * rendering/RenderRuby.cpp:
      (WebCore::rubyBeforeBlock):
      (WebCore::rubyAfterBlock):
      (WebCore::lastRubyRun):
      (WebCore::findRubyRunParent):
      * rendering/RenderTreeAsText.cpp:
      (WebCore::write):
      * rendering/RenderWidget.cpp:
      (WebCore::RenderWidget::paintContents):
      (WebCore::RenderWidget::setOverlapTestResult):
      (WebCore::RenderWidget::updateWidgetPosition):
      
      Source/WebKit/blackberry:
      
      * Api/WebPage.cpp:
      (BlackBerry::WebKit::frameForNode):
      (BlackBerry::WebKit::needsLayoutRecursive):
      * WebCoreSupport/FrameLoaderClientBlackBerry.cpp:
      (WebCore::FrameLoaderClientBlackBerry::redirectDataToPlugin):
      * WebKitSupport/InputHandler.cpp:
      (BlackBerry::WebKit::InputHandler::ensureFocusPluginElementVisible):
      
      Source/WebKit/chromium:
      
      * src/WebPluginContainerImpl.cpp:
      (WebKit::WebPluginContainerImpl::scrollRect):
      (WebKit::WebPluginContainerImpl::setWantsWheelEvents):
      (WebKit::WebPluginContainerImpl::handleMouseEvent):
      * tests/ScrollingCoordinatorChromiumTest.cpp:
      (WebKit::TEST_F):
      
      Source/WebKit/efl:
      
      * WebCoreSupport/FrameLoaderClientEfl.cpp:
      (WebCore::FrameLoaderClientEfl::redirectDataToPlugin):
      
      Source/WebKit/gtk:
      
      * WebCoreSupport/FrameLoaderClientGtk.cpp:
      (WebKit::FrameLoaderClient::redirectDataToPlugin):
      
      Source/WebKit/mac:
      
      * WebView/WebRenderNode.mm:
      (copyRenderNode):
      * WebView/WebView.mm:
      (-[WebView _addScrollerDashboardRegionsForFrameView:dashboardRegions:]):
      
      Source/WebKit/qt:
      
      * WebCoreSupport/FrameLoaderClientQt.cpp:
      (WebCore::FrameLoaderClientQt::redirectDataToPlugin):
      
      Source/WebKit/win:
      
      * WebCoreSupport/EmbeddedWidget.cpp:
      (EmbeddedWidget::frameRectsChanged):
      * WebCoreSupport/WebFrameLoaderClient.cpp:
      (WebFrameLoaderClient::redirectDataToPlugin):
      
      Source/WebKit/wince:
      
      * WebCoreSupport/FrameLoaderClientWinCE.cpp:
      (WebKit::FrameLoaderClientWinCE::redirectDataToPlugin):
      
      Source/WebKit/wx:
      
      * WebKitSupport/FrameLoaderClientWx.cpp:
      (WebCore::FrameLoaderClientWx::redirectDataToPlugin):
      
      Source/WebKit2:
      
      * Shared/WebRenderObject.cpp:
      (WebKit::WebRenderObject::WebRenderObject):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@145913 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      92242cbf
  8. 14 Mar, 2013 1 commit
    • jer.noble@apple.com's avatar
      Crash in DumpRenderTree at com.apple.WebCore:... · c3419e02
      jer.noble@apple.com authored
      Crash in DumpRenderTree at com.apple.WebCore: WebCore::CaptionUserPreferences::captionPreferencesChanged + 185
      https://bugs.webkit.org/show_bug.cgi?id=112051
      
      Reviewed by Eric Carlson.
      
      No new tests; fixes a crash during media/video-controls-captions-trackmenu.html.
      
      Instead of relying on a registration system which can fail when an element's document does not have a page,
      Elements will register for captionPreferencesChanged() notifications directly with their owning Document.
      CaptionUserPreferences, in turn, will notify all Documents in its PageGroup, rather than only directly
      registered listeners.
      
      * dom/Document.cpp:
      (WebCore::Document::registerForCaptionPreferencesChangedCallbacks): Added. Notify the CaptionUserPreferences that someone
          is interested in captionPreferencesChanged notfications.
      (WebCore::Document::unregisterForCaptionPreferencesChangedCallbacks): Added.
      (WebCore::Document::captionPreferencesChanged): Added. Pass to all registered elements.
      * dom/Document.h:
      * dom/Element.h:
      (WebCore::Element::captionPreferencesChanged): Added. Empty; intended
          to be overridden by subclasses.
      * history/CachedPage.cpp:
      (WebCore::CachedPage::CachedPage): Initialize m_needsCaptionPreferenceChanged member.
      (WebCore::CachedPage::restore): Call captionPreferencesChanged() if necessary.
      * history/CachedPage.h:
      (WebCore::CachedPage::markForCaptionPreferencesChanged): Set the m_needsCaptionPreferenceChanged member.
      * history/PageCache.cpp:
      (WebCore::PageCache::markPagesForCaptionPreferencesChanged): Pass to every CachedPage.
      * history/PageCache.h:
      * html/HTMLMediaElement.cpp:
      (WebCore::HTMLMediaElement::HTMLMediaElement): Register with the Document.
      (WebCore::HTMLMediaElement::~HTMLMediaElement): Unregister with same.
      (WebCore::HTMLMediaElement::attach): Remove previous registration call.
      * html/HTMLMediaElement.h:
      * page/CaptionUserPreferences.cpp:
      (WebCore::CaptionUserPreferences::captionPreferencesChanged): Pass to the
          PageGroup.
      * page/CaptionUserPreferences.h:
      (WebCore::CaptionUserPreferences::setInterestedInCaptionPreferenceChanges):
          Empty; intended to be overridden by subclasses.
      * page/CaptionUserPreferencesMac.h:
      * page/CaptionUserPreferencesMac.mm:
      (WebCore::CaptionUserPreferencesMac::setInterestedInCaptionPreferenceChanges):
          Renamed from registerForPreferencesChangedCallbacks().
      (WebCore::CaptionUserPreferencesMac::captionPreferencesChanged):
          Replace call to havePreferenceChangeListeners() with m_listeningForPreferenceChanges.
      * page/Page.cpp:
      (WebCore::Page::captionPreferencesChanged):
          Pass to every contained Document.
      * page/Page.h:
      * page/CaptionUserPreferences.cpp:
      (WebCore::CaptionUserPreferences::captionPreferencesChanged): Pass to the PageGroup.
      * page/CaptionUserPreferences.h:
      * page/PageGroup.cpp:
      (WebCore::PageGroup::captionPreferencesChanged): Pass to every page, as well as pages in the PageCache.
      * page/PageGroup.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@145826 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c3419e02
  9. 08 Mar, 2013 1 commit
    • benjamin@webkit.org's avatar
      [Mac] Add a feature flag for 'view-mode' Media Feature, disable it on Mac · cc507c8c
      benjamin@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=111297
      
      Reviewed by Kenneth Rohde Christiansen.
      
      Source/WebCore: 
      
      The 'view-mode' Media Feature spec is implemented in WebCore but
      there is no WebKit support for it on Mac.
      Because of this, we always lie and report a windowed view mode.
      
      This patch add a feature flag for the feature and disable it on
      Mac so that we stop reporting incorrect default values.
      
      * WebCore.exp.in:
      * css/CSSValueKeywords.in:
      * css/MediaFeatureNames.h:
      (MediaFeatureNames):
      * css/MediaQueryEvaluator.cpp:
      * css/MediaQueryExp.cpp:
      (WebCore::featureWithCSSValueID):
      (WebCore::featureWithoutValue):
      * page/Page.cpp:
      (WebCore::Page::Page):
      * page/Page.h:
      (Page):
      
      Source/WebKit2: 
      
      * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
      * WebProcess/InjectedBundle/API/c/WKBundlePagePrivate.h:
      * WebProcess/WebPage/WebPage.cpp:
      * WebProcess/WebPage/WebPage.h:
      
      Source/WTF: 
      
      * wtf/FeatureDefines.h: Add a new feature flag for the view-mode
      CSS media: ENABLE_VIEW_MODE_CSS_MEDIA.
      
      Tools: 
      
      * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
      (WTR::TestRunner::setViewModeMediaFeature):
      
      LayoutTests: 
      
      * platform/mac/TestExpectations:
      Mark the view-mode tests as failing to track any regression
      or crash in this area.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@145255 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cc507c8c
  10. 01 Mar, 2013 1 commit
  11. 28 Feb, 2013 1 commit
  12. 27 Feb, 2013 1 commit
    • commit-queue@webkit.org's avatar
      Need to re-layout fixed position elements after scale when using... · 08ec4ad4
      commit-queue@webkit.org authored
      Need to re-layout fixed position elements after scale when using settings()->fixedElementsLayoutRelativeToFrame()
      https://bugs.webkit.org/show_bug.cgi?id=105486
      
      Patch by Tien-Ren Chen <trchen@chromium.org> on 2013-02-27
      Reviewed by James Robinson.
      
      In settings()->fixedElementsLayoutRelativeToFrame() mode, fixed-position
      elements are layout relative to the current visible viewport, which can
      be different from the layout viewport when using fixed-layout mode.
      We need to re-layout fixed-position elements in case of visible content
      size changes.
      
      The test is currently chromium-specific due to difficulties to make this
      test works on Mac. The mac port seems to work very differently with
      visible content size when a page is scaled. And there is no reliable way
      to hide scrollbars in mac-wk1 that doesn't cause a side effect.
      
      Source/WebCore:
      
      Test: platform/chromium/fast/repaint/relayout-fixed-position-after-scale.html
      
      * page/FrameView.h:
      (FrameView):
      * page/Page.cpp:
      (WebCore::Page::setPageScaleFactor):
      
      LayoutTests:
      
      * platform/chromium/fast/repaint/relayout-fixed-position-after-scale-expected.html: Added.
      * platform/chromium/fast/repaint/relayout-fixed-position-after-scale.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@144260 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      08ec4ad4
  13. 25 Feb, 2013 1 commit
  14. 21 Feb, 2013 2 commits
    • commit-queue@webkit.org's avatar
      Unreviewed, rolling out r143616. · 59a9c1a5
      commit-queue@webkit.org authored
      http://trac.webkit.org/changeset/143616
      https://bugs.webkit.org/show_bug.cgi?id=110491
      
      Caused a test failure on Chromium Mac. (Requested by vollick
      on #webkit).
      
      Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2013-02-21
      
      Source/WebCore:
      
      * page/FrameView.cpp:
      (WebCore::FrameView::visibleContentsResized):
      * page/FrameView.h:
      (FrameView):
      * page/Page.cpp:
      (WebCore::Page::setPageScaleFactor):
      
      LayoutTests:
      
      * platform/chromium/fast/repaint/relayout-fixed-position-after-scale-expected.html: Removed.
      * platform/chromium/fast/repaint/relayout-fixed-position-after-scale.html: Removed.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@143628 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      59a9c1a5
    • commit-queue@webkit.org's avatar
      Need to re-layout fixed position elements after scale when using... · 4c38a28c
      commit-queue@webkit.org authored
      Need to re-layout fixed position elements after scale when using settings()->fixedElementsLayoutRelativeToFrame()
      https://bugs.webkit.org/show_bug.cgi?id=105486
      
      Patch by Tien-Ren Chen <trchen@chromium.org> on 2013-02-21
      Reviewed by James Robinson.
      
      In settings()->fixedElementsLayoutRelativeToFrame() mode, fixed-position
      elements are layout relative to the current visible viewport, which can
      be different from the layout viewport when using fixed-layout mode.
      We need to re-layout fixed-position elements in case of visible content
      size changes.
      
      The test is currently chromium-specific due to difficulties to make this
      test works on Mac. The mac port seems to work very differently with
      visible content size when a page is scaled. And there is no reliable way
      to hide scrollbars in mac-wk1 that doesn't cause a side effect.
      
      Source/WebCore:
      
      Test: platform/chromium/fast/repaint/relayout-fixed-position-after-scale.html
      
      * page/FrameView.cpp:
      (WebCore::FrameView::visibleContentsResized):
      * page/FrameView.h:
      (FrameView):
      * page/Page.cpp:
      (WebCore::Page::setPageScaleFactor):
      
      LayoutTests:
      
      * platform/chromium/fast/repaint/relayout-fixed-position-after-scale-expected.html: Added.
      * platform/chromium/fast/repaint/relayout-fixed-position-after-scale.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@143616 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4c38a28c
  15. 19 Feb, 2013 2 commits
    • timothy_horton@apple.com's avatar
      Clarify isInWindow vs. isVisible path through to RenderLayerCompositor · e884ddb5
      timothy_horton@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=110261
      <rdar://problem/13196122>
      
      Reviewed by Simon Fraser.
      
      Remove RenderLayerCompositor::willMoveOffscreen/didMoveOnscreen.
      Add RenderLayerCompositor::setIsInWindow, and pipe in-window changes through from Page::setIsInWindow.
      Adjust a few Document functions that previously called RenderView::didMoveOnscreen/willMoveOffscreen to use setIsInWindow instead, since in-win$
      
      * WebCore.exp.in: Export Page::setIsInWindow.
      * dom/Document.cpp:
      (WebCore::Document::attach): Use setIsInWindow instead of didMoveOnscreen.
      (WebCore::Document::documentWillBecomeInactive): Use setIsInWindow instead of willMoveOffscreen.
      (WebCore::Document::documentDidResumeFromPageCache): Use setIsInWindow instead of didMoveOnscreen.
      * page/FrameView.cpp:
      (WebCore::FrameView::didMoveOnscreen):
      (WebCore::FrameView::willMoveOffscreen):
      RenderView doesn't care about moving on/offscreen, just in-window state.
      (WebCore::FrameView::setIsInWindow): Added. Forward isInWindow changes to our RenderView.
      * page/FrameView.h:
      (FrameView): Add setIsInWindow.
      * page/Page.cpp:
      (WebCore::Page::setIsInWindow): Added. Forward isInWindow changes to the Page's FrameViews.
      * page/Page.h:
      (Page): Add setIsInWindow.
      (WebCore::Page::isInWindow):
      * rendering/RenderLayerCompositor.cpp:
      (WebCore::RenderLayerCompositor::setIsInWindow): Added. Replace willMoveOffscreen/didMoveOnscreen with setIsInWindow,
      since that's the only change we actually care about.
      * rendering/RenderLayerCompositor.h:
      (RenderLayerCompositor): Add setIsInWindow.
      * rendering/RenderView.cpp:
      (WebCore::RenderView::setIsInWindow): Added. Replace willMoveOffscreen/didMoveOnscreen with setIsInWindow,
      since that's the only change RenderLayerCompositor actually cares about.
      * rendering/RenderView.h:
      (RenderView): Add setIsInWindow.
      
      * WebView/WebView.mm:
      (-[WebView viewWillMoveToWindow:]):
      (-[WebView viewDidMoveToWindow]):
      Use Page::setIsInWindow in addition to willMoveOffscreen/didMoveOnscreen.
      
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::setIsInWindow):
      Use Page::setIsInWindow in addition to willMoveOffscreen/didMoveOnscreen.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@143428 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e884ddb5
    • commit-queue@webkit.org's avatar
      Allow UI clients to handle vertical wheel events. · 358feb17
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=110006
      
      Patch by Conrad Shultz <conrad_shultz@apple.com> on 2013-02-19
      Reviewed by Tim Horton.
      
      Source/WebCore:
      
      Add API to allow matching changes in WebKit2 to control rubber-banding behavior at vertical page extrema.
      If rubber-banding is disabled during a scroll event that would otherwise trigger rubber-banding, dispatch
      didNotHandleWheelEvent() to the page UI client.
      
      * WebCore.exp.in:
      Export new rubber-banding API.
      
      * page/Page.cpp:
      (WebCore):
      (WebCore::Page::rubberBandsAtBottom):
      Proxy for the corresponding function in ScrollingCoordinator.
      (WebCore::Page::setRubberBandsAtBottom):
      Ditto.
      (WebCore::Page::rubberBandsAtTop):
      Ditto.
      (WebCore::Page::setRubberBandsAtTop):
      Ditto.
      
      * page/Page.h:
      (Page):
      Declare new rubber-banding API (above).
      
      * page/scrolling/ScrollingCoordinator.h:
      (WebCore::ScrollingCoordinator::rubberBandsAtBottom):
      Stub API implementation.
      (WebCore::ScrollingCoordinator::setRubberBandsAtBottom):
      Ditto.
      (WebCore::ScrollingCoordinator::rubberBandsAtTop):
      Ditto.
      (WebCore::ScrollingCoordinator::setRubberBandsAtTop):
      Ditto.
      
      * page/scrolling/ScrollingTree.cpp:
      (WebCore::ScrollingTree::ScrollingTree):
      Initialize new member variables.
      (WebCore::ScrollingTree::setMainFramePinState):
      Set top/bottom pinned states.
      (WebCore::ScrollingTree::rubberBandsAtBottom):
      New accessor function.
      (WebCore::ScrollingTree::setRubberBandsAtBottom):
      New mutator function.
      (WebCore::ScrollingTree::rubberBandsAtTop):
      New accessor function.
      (WebCore::ScrollingTree::setRubberBandsAtTop):
      New mutator function.
      (WebCore::ScrollingTree::willWheelEventStartSwipeGesture):
      Start a vertical swipe event if the frame is pinned at the top or bottom and associated rubber-banding is disabled.
      
      * page/scrolling/ScrollingTree.h:
      (ScrollingTree):
      Declare new rubber-banding API and associated member variables.
      
      * page/scrolling/mac/ScrollingCoordinatorMac.h:
      (ScrollingCoordinatorMac):
      Declare API overrides.
      
      * page/scrolling/mac/ScrollingCoordinatorMac.mm:
      (WebCore::ScrollingCoordinatorMac::rubberBandsAtBottom):
      Method override; proxy to corresponding function in ScrollingTree.
      (WebCore::ScrollingCoordinatorMac::setRubberBandsAtBottom):
      Ditto.
      (WebCore::ScrollingCoordinatorMac::rubberBandsAtTop):
      Ditto.
      (WebCore::ScrollingCoordinatorMac::setRubberBandsAtTop):
      Ditto.
      
      * page/scrolling/mac/ScrollingTreeScrollingNodeMac.mm:
      (WebCore::ScrollingTreeScrollingNodeMac::pinnedInDirection):
      Remove trailing whitespace.
      (WebCore::ScrollingTreeScrollingNodeMac::updateMainFramePinState):
      Calculate and pass vertical pinning state to ScrollingTree::setMainFramePinState().
      
      Source/WebKit2:
      
      Add API to allow clients to selectively control rubber-banding at vertical page extrema.
      
      * UIProcess/API/C/WKPage.cpp:
      (WKPageRubberBandsAtBottom):
      Proxy for the corresponding function in WebCore::Page.
      (WKPageSetRubberBandsAtBottom):
      Ditto.
      (WKPageRubberBandsAtTop):
      Ditto.
      (WKPageSetRubberBandsAtTop):
      Ditto.
      
      * UIProcess/API/C/WKPage.h:
      Declare new API.
      
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::WebPageProxy):
      Initialize new member variables.
      (WebKit::WebPageProxy::setRubberBandsAtBottom):
      New function; dispatches a matching message to the WebKit::WebPage.
      (WebKit::WebPageProxy::setRubberBandsAtTop):
      Ditto.
      
      * UIProcess/WebPageProxy.h:
      (WebPageProxy):
      Declare new API.
      (WebKit::WebPageProxy::rubberBandsAtBottom):
      New accessor function.
      (WebKit::WebPageProxy::rubberBandsAtTop):
      Ditto.
      
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::setRubberBandsAtBottom):
      New function; call the matching function on the associated WebCore::Page.
      (WebKit::WebPage::setRubberBandsAtTop):
      Ditto.
      
      * WebProcess/WebPage/WebPage.h:
      (WebPage):
      Declare new rubber-banding API.
      
      * WebProcess/WebPage/WebPage.messages.in:
      Declare new rubber-banding API.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@143418 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      358feb17
  16. 08 Feb, 2013 1 commit
    • mkwst@chromium.org's avatar
      Add a new IGNORE_EXCEPTION helper to ignore ExceptionCodes when they are expected but uninteresting · 33cdf43a
      mkwst@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=108771
      
      Reviewed by Eric Seidel.
      
      In cases where the ExceptionCode passed into a function is completely
      ignored, this patch replaces it with a new IGNORE_EXCEPTION macro. This
      makes our expectations about possible exceptions (or lack thereof)
      explicit, rather than relying on implicit assumptions about whether a
      variable is intentionally uninitialized or not. It also removes
      knowledge about the internals of ExceptionCodes (that they're currently
      ints, for instance) from code that shouldn't care, which will help with
      future refactorings.
      
      The implementation is entirely based upon ASSERT_NO_EXCEPTION, and
      shouldn't have any visible effect on the web. As long as all the
      current tests pass, we're good.
      
      * Modules/indexeddb/IDBRequest.cpp:
      (WebCore::IDBRequest::dispatchEvent):
      (WebCore::IDBRequest::uncaughtExceptionInEventHandler):
      * Modules/indexeddb/IDBTransaction.cpp:
      (WebCore::IDBTransaction::stop):
      * Modules/websockets/WebSocketChannel.cpp:
      (WebCore::WebSocketChannel::processBuffer):
      * dom/Document.cpp:
      (WebCore::Document::processHttpEquiv):
      * dom/ExceptionCodePlaceholder.h:
      (WebCore):
      * dom/Node.cpp:
      (WebCore::Node::normalize):
      * dom/Text.cpp:
      (WebCore::Text::replaceWholeText):
      * editing/AlternativeTextController.cpp:
      (WebCore::AlternativeTextController::insertDictatedText):
      * editing/AppendNodeCommand.cpp:
      (WebCore::AppendNodeCommand::doApply):
      (WebCore::AppendNodeCommand::doUnapply):
      * editing/CompositeEditCommand.cpp:
      (WebCore::CompositeEditCommand::insertNewDefaultParagraphElementAt):
      * editing/DeleteFromTextNodeCommand.cpp:
      (WebCore::DeleteFromTextNodeCommand::doUnapply):
      * editing/Editor.cpp:
      (WebCore::dispatchEditableContentChangedEvents):
      (WebCore::Editor::applyEditingStyleToElement):
      * editing/EditorCommand.cpp:
      (WebCore::executeFormatBlock):
      * editing/FormatBlockCommand.cpp:
      (WebCore::FormatBlockCommand::elementForFormatBlockCommand):
      * editing/InsertIntoTextNodeCommand.cpp:
      (WebCore::InsertIntoTextNodeCommand::doApply):
      (WebCore::InsertIntoTextNodeCommand::doUnapply):
      * editing/InsertListCommand.cpp:
      (WebCore::InsertListCommand::doApplyForSingleParagraph):
      * editing/InsertNodeBeforeCommand.cpp:
      (WebCore::InsertNodeBeforeCommand::doApply):
      (WebCore::InsertNodeBeforeCommand::doUnapply):
      * editing/RemoveCSSPropertyCommand.cpp:
      (WebCore::RemoveCSSPropertyCommand::doApply):
      (WebCore::RemoveCSSPropertyCommand::doUnapply):
      * editing/RemoveNodeCommand.cpp:
      (WebCore::RemoveNodeCommand::doApply):
      (WebCore::RemoveNodeCommand::doUnapply):
      * editing/ReplaceSelectionCommand.cpp:
      (WebCore::ReplaceSelectionCommand::removeRedundantStylesAndKeepStyleSpanInline):
      * editing/TextIterator.cpp:
      (WebCore::TextIterator::getLocationAndLengthFromRange):
      * editing/WrapContentsInDummySpanCommand.cpp:
      (WebCore::WrapContentsInDummySpanCommand::executeApply):
      (WebCore::WrapContentsInDummySpanCommand::doUnapply):
      * editing/htmlediting.cpp:
      (WebCore::comparePositions):
      * editing/markup.cpp:
      (WebCore::highestAncestorToWrapMarkup):
      * html/FTPDirectoryDocument.cpp:
      (WebCore::FTPDirectoryDocumentParser::appendEntry):
      (WebCore::FTPDirectoryDocumentParser::createTDForFilename):
      (WebCore::FTPDirectoryDocumentParser::loadDocumentTemplate):
      (WebCore::FTPDirectoryDocumentParser::createBasicDocument):
      * html/HTMLMediaElement.cpp:
      (WebCore::HTMLMediaElement::rewind):
      (WebCore::HTMLMediaElement::returnToRealtime):
      (WebCore::HTMLMediaElement::playInternal):
      (WebCore::HTMLMediaElement::percentLoaded):
      (WebCore::HTMLMediaElement::mediaPlayerTimeChanged):
      (WebCore::HTMLMediaElement::mediaPlayerDurationChanged):
      (WebCore::HTMLMediaElement::applyMediaFragmentURI):
      * html/HTMLOutputElement.cpp:
      (WebCore::HTMLOutputElement::setTextContentInternal):
      * html/HTMLSelectElement.cpp:
      (WebCore::HTMLSelectElement::remove):
      * html/HTMLTableElement.cpp:
      (WebCore::HTMLTableElement::createTHead):
      (WebCore::HTMLTableElement::deleteTHead):
      (WebCore::HTMLTableElement::createTFoot):
      (WebCore::HTMLTableElement::deleteTFoot):
      (WebCore::HTMLTableElement::createCaption):
      (WebCore::HTMLTableElement::deleteCaption):
      * html/HTMLTextAreaElement.cpp:
      (WebCore::HTMLTextAreaElement::setDefaultValue):
      * html/ImageDocument.cpp:
      (WebCore::ImageDocument::createDocumentStructure):
      * html/InputType.cpp:
      (WebCore::InputType::stepUpFromRenderer):
      * html/MediaController.cpp:
      (MediaController::bringElementUpToSpeed):
      (MediaController::asyncEventTimerFired):
      * html/MediaDocument.cpp:
      (WebCore::MediaDocumentParser::createDocumentStructure):
      (WebCore::MediaDocument::replaceMediaElementTimerFired):
      * html/PluginDocument.cpp:
      (WebCore::PluginDocumentParser::createDocumentStructure):
      * html/RangeInputType.cpp:
      (WebCore::RangeInputType::handleKeydownEvent):
      * html/TimeRanges.cpp:
      (TimeRanges::contain):
      (TimeRanges::nearest):
      * html/canvas/CanvasRenderingContext2D.cpp:
      (WebCore::CanvasRenderingContext2D::drawImageFromRect):
      * html/shadow/MediaControlElementTypes.cpp:
      (WebCore::MediaControlSeekButtonElement::seekTimerFired):
      * html/shadow/MediaControlElements.cpp:
      (WebCore::MediaControlPanelElement::setPosition):
      (WebCore::MediaControlPanelElement::resetPosition):
      (WebCore::MediaControlStatusDisplayElement::update):
      (WebCore::MediaControlRewindButtonElement::defaultEventHandler):
      (WebCore::MediaControlTimelineElement::defaultEventHandler):
      * html/shadow/MediaControls.cpp:
      (WebCore::MediaControls::updateCurrentTimeDisplay):
      (WebCore::MediaControls::createTextTrackDisplay):
      * html/shadow/MediaControlsApple.cpp:
      (WebCore::MediaControlsApple::updateCurrentTimeDisplay):
      * html/shadow/MediaControlsBlackBerry.cpp:
      (WebCore::MediaControlEmbeddedPanelElement::setPosition):
      (WebCore::MediaControlEmbeddedPanelElement::resetPosition):
      (WebCore::MediaControlFullscreenTimelineElement::defaultEventHandler):
      (WebCore::MediaControlsBlackBerry::updateCurrentTimeDisplay):
      * html/shadow/MediaControlsChromium.cpp:
      (WebCore::MediaControlsChromium::updateCurrentTimeDisplay):
      * html/track/InbandTextTrack.cpp:
      (WebCore::InbandTextTrack::addGenericCue):
      * inspector/InspectorCSSAgent.cpp:
      (WebCore::InspectorCSSAgent::buildArrayForMatchedRuleList):
      * inspector/InspectorHistory.cpp:
      (WebCore::InspectorHistory::markUndoableState):
      * inspector/InspectorResourceAgent.cpp:
      (WebCore::InspectorResourceAgent::replayXHR):
      * page/ContextMenuController.cpp:
      (WebCore::ContextMenuController::contextMenuItemSelected):
      * page/DOMWindow.cpp:
      (WebCore::didAddStorageEventListener):
      * page/DragController.cpp:
      (WebCore::documentFragmentFromDragData):
      * page/EventHandler.cpp:
      (WebCore::EventHandler::dispatchDragEvent):
      (WebCore::EventHandler::keyEvent):
      (WebCore::EventHandler::handleTextInputEvent):
      * page/Page.cpp:
      (WebCore::Page::findStringMatchingRanges):
      * platform/efl/RenderThemeEfl.cpp:
      (WebCore::RenderThemeEfl::paintMediaSliderTrack):
      * platform/graphics/blackberry/MediaPlayerPrivateBlackBerry.cpp:
      (WebCore::MediaPlayerPrivate::percentLoaded):
      * platform/gtk/RenderThemeGtk.cpp:
      (WebCore::RenderThemeGtk::paintMediaSliderTrack):
      * platform/mac/PasteboardMac.mm:
      (WebCore::Pasteboard::getDataSelection):
      (WebCore::documentFragmentWithImageResource):
      (WebCore::Pasteboard::documentFragment):
      * platform/mac/WebVideoFullscreenHUDWindowController.mm:
      (-[WebVideoFullscreenHUDWindowController setCurrentTime:]):
      (-[WebVideoFullscreenHUDWindowController setVolume:]):
      * platform/qt/RenderThemeQt.cpp:
      (WebCore::RenderThemeQt::paintMediaSliderTrack):
      * rendering/RenderNamedFlowThread.cpp:
      (WebCore::RenderNamedFlowThread::getRanges):
      * rendering/RenderThemeMac.mm:
      (WebCore::RenderThemeMac::paintMediaSliderTrack):
      * svg/SVGTRefElement.cpp:
      (WebCore::SVGTRefElement::detachTarget):
      * xml/XMLTreeViewer.cpp:
      (WebCore::XMLTreeViewer::transformDocumentToTreeView):
      * xml/parser/XMLDocumentParserLibxml2.cpp:
      (WebCore::XMLDocumentParser::endElementNs):
      * xml/parser/XMLDocumentParserQt.cpp:
      (WebCore::XMLDocumentParser::parseEndElement):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@142271 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      33cdf43a
  17. 01 Feb, 2013 1 commit
    • loislo@chromium.org's avatar
      Web Inspector: Native Memory Instrumentation: provide edge names to class... · a7d09fcf
      loislo@chromium.org authored
      Web Inspector: Native Memory Instrumentation: provide edge names to class members in all WebCore instrumented classes.
      https://bugs.webkit.org/show_bug.cgi?id=107369
      
      Reviewed by Yury Semikhatsky.
      
      It is almost mechanical change generated by a script.
      Late I'll implement name to edge name consistency check in clang plugin.
      
      * Modules/webaudio/AudioContext.cpp:
      (WebCore::AudioContext::reportMemoryUsage):
      * Modules/webaudio/AudioNode.cpp:
      (WebCore::AudioNode::reportMemoryUsage):
      * bindings/js/ScriptWrappable.h:
      (WebCore::ScriptWrappable::reportMemoryUsage):
      * bindings/v8/DOMDataStore.cpp:
      (WebCore::DOMDataStore::reportMemoryUsage):
      * bindings/v8/DOMWrapperMap.h:
      (WebCore::DOMWrapperMap::reportMemoryUsage):
      * bindings/v8/V8PerIsolateData.cpp:
      (WebCore::V8PerIsolateData::reportMemoryUsage):
      * bindings/v8/V8ValueCache.cpp:
      (WebCore::StringCache::reportMemoryUsage):
      * css/CSSBorderImageSliceValue.cpp:
      (WebCore::CSSBorderImageSliceValue::reportDescendantMemoryUsage):
      * css/CSSCalculationValue.cpp:
      * css/CSSCanvasValue.cpp:
      (WebCore::CSSCanvasValue::reportDescendantMemoryUsage):
      * css/CSSCharsetRule.cpp:
      (WebCore::CSSCharsetRule::reportMemoryUsage):
      * css/CSSComputedStyleDeclaration.cpp:
      (WebCore::CSSComputedStyleDeclaration::reportMemoryUsage):
      * css/CSSCrossfadeValue.cpp:
      (WebCore::CSSCrossfadeValue::reportDescendantMemoryUsage):
      * css/CSSCursorImageValue.cpp:
      (WebCore::CSSCursorImageValue::reportDescendantMemoryUsage):
      * css/CSSFontFaceRule.cpp:
      (WebCore::CSSFontFaceRule::reportMemoryUsage):
      * css/CSSFontFaceSrcValue.cpp:
      (WebCore::CSSFontFaceSrcValue::reportDescendantMemoryUsage):
      * css/CSSFunctionValue.cpp:
      (WebCore::CSSFunctionValue::reportDescendantMemoryUsage):
      * css/CSSGradientValue.cpp:
      (WebCore::CSSGradientColorStop::reportMemoryUsage):
      (WebCore::CSSGradientValue::reportBaseClassMemoryUsage):
      (WebCore::CSSLinearGradientValue::reportDescendantMemoryUsage):
      (WebCore::CSSRadialGradientValue::reportDescendantMemoryUsage):
      * css/CSSGroupingRule.cpp:
      (WebCore::CSSGroupingRule::reportMemoryUsage):
      * css/CSSImageGeneratorValue.cpp:
      (WebCore::CSSImageGeneratorValue::reportBaseClassMemoryUsage):
      * css/CSSImageSetValue.cpp:
      (WebCore::CSSImageSetValue::reportDescendantMemoryUsage):
      (WebCore::CSSImageSetValue::ImageWithScale::reportMemoryUsage):
      * css/CSSImageValue.cpp:
      (WebCore::CSSImageValue::reportDescendantMemoryUsage):
      * css/CSSImportRule.cpp:
      (WebCore::CSSImportRule::reportMemoryUsage):
      * css/CSSMediaRule.cpp:
      (WebCore::CSSMediaRule::reportMemoryUsage):
      * css/CSSPageRule.cpp:
      (WebCore::CSSPageRule::reportMemoryUsage):
      * css/CSSPrimitiveValue.cpp:
      (WebCore::CSSPrimitiveValue::reportDescendantMemoryUsage):
      * css/CSSProperty.cpp:
      (WebCore::CSSProperty::reportMemoryUsage):
      * css/CSSReflectValue.cpp:
      (WebCore::CSSReflectValue::reportDescendantMemoryUsage):
      * css/CSSRule.cpp:
      (WebCore::CSSRule::reportMemoryUsage):
      * css/CSSRuleList.cpp:
      (WebCore::StaticCSSRuleList::reportMemoryUsage):
      * css/CSSRuleList.h:
      * css/CSSSelectorList.cpp:
      (WebCore::CSSSelectorList::reportMemoryUsage):
      * css/CSSStyleRule.cpp:
      (WebCore::CSSStyleRule::reportMemoryUsage):
      * css/CSSStyleSheet.cpp:
      (WebCore::CSSStyleSheet::reportMemoryUsage):
      * css/CSSValue.cpp:
      (WebCore::TextCloneCSSValue::reportDescendantMemoryUsage):
      * css/CSSValueList.cpp:
      (WebCore::CSSValueList::reportDescendantMemoryUsage):
      * css/CSSVariableValue.h:
      (WebCore::CSSVariableValue::reportDescendantMemoryUsage):
      * css/FontFeatureValue.cpp:
      (WebCore::FontFeatureValue::reportDescendantMemoryUsage):
      * css/FontValue.cpp:
      (WebCore::FontValue::reportDescendantMemoryUsage):
      * css/MediaList.cpp:
      (WebCore::MediaQuerySet::reportMemoryUsage):
      (WebCore::MediaList::reportMemoryUsage):
      * css/MediaQuery.cpp:
      (WebCore::MediaQuery::reportMemoryUsage):
      * css/MediaQueryExp.cpp:
      (WebCore::MediaQueryExp::reportMemoryUsage):
      * css/PropertySetCSSStyleDeclaration.cpp:
      (WebCore::PropertySetCSSStyleDeclaration::reportMemoryUsage):
      (WebCore::StyleRuleCSSStyleDeclaration::reportMemoryUsage):
      (WebCore::InlineCSSStyleDeclaration::reportMemoryUsage):
      * css/RuleFeature.cpp:
      (WebCore::RuleFeatureSet::reportMemoryUsage):
      * css/RuleSet.cpp:
      (WebCore::RuleData::reportMemoryUsage):
      (WebCore::RuleSet::reportMemoryUsage):
      (WebCore::RuleSet::RuleSetSelectorPair::reportMemoryUsage):
      * css/ShadowValue.cpp:
      (WebCore::ShadowValue::reportDescendantMemoryUsage):
      * css/StylePropertySet.cpp:
      (WebCore::StylePropertySet::reportMemoryUsage):
      * css/StyleResolver.cpp:
      (WebCore::StyleResolver::MatchedProperties::reportMemoryUsage):
      (WebCore::StyleResolver::MatchedPropertiesCacheItem::reportMemoryUsage):
      (WebCore::MediaQueryResult::reportMemoryUsage):
      (WebCore::StyleResolver::reportMemoryUsage):
      * css/StyleRule.cpp:
      (WebCore::StyleRule::reportDescendantMemoryUsage):
      (WebCore::StyleRulePage::reportDescendantMemoryUsage):
      (WebCore::StyleRuleFontFace::reportDescendantMemoryUsage):
      (WebCore::StyleRuleGroup::reportDescendantMemoryUsage):
      (WebCore::StyleRuleMedia::reportDescendantMemoryUsage):
      (WebCore::StyleRuleRegion::reportDescendantMemoryUsage):
      (WebCore::StyleRuleViewport::reportDescendantMemoryUsage):
      * css/StyleRuleImport.cpp:
      (WebCore::StyleRuleImport::reportDescendantMemoryUsage):
      * css/StyleScopeResolver.cpp:
      (WebCore::StyleScopeResolver::reportMemoryUsage):
      * css/StyleSheetContents.cpp:
      (WebCore::StyleSheetContents::reportMemoryUsage):
      * css/WebKitCSSKeyframeRule.cpp:
      (WebCore::StyleKeyframe::reportMemoryUsage):
      (WebCore::WebKitCSSKeyframeRule::reportMemoryUsage):
      * css/WebKitCSSKeyframesRule.cpp:
      (WebCore::StyleRuleKeyframes::reportDescendantMemoryUsage):
      (WebCore::WebKitCSSKeyframesRule::reportMemoryUsage):
      * css/WebKitCSSSVGDocumentValue.cpp:
      (WebCore::WebKitCSSSVGDocumentValue::reportDescendantMemoryUsage):
      * css/WebKitCSSShaderValue.cpp:
      (WebCore::WebKitCSSShaderValue::reportDescendantMemoryUsage):
      * css/WebKitCSSViewportRule.cpp:
      (WebCore::WebKitCSSViewportRule::reportMemoryUsage):
      * dom/Attribute.h:
      (WebCore::Attribute::reportMemoryUsage):
      * dom/CharacterData.cpp:
      (WebCore::CharacterData::reportMemoryUsage):
      * dom/ContainerNode.cpp:
      (WebCore::ContainerNode::reportMemoryUsage):
      * dom/ContainerNode.h:
      (ContainerNode):
      * dom/Document.cpp:
      (WebCore::Document::reportMemoryUsage):
      * dom/DocumentEventQueue.cpp:
      (WebCore::DocumentEventQueue::reportMemoryUsage):
      * dom/DocumentOrderedMap.cpp:
      (WebCore::DocumentOrderedMap::reportMemoryUsage):
      * dom/DocumentStyleSheetCollection.cpp:
      (WebCore::DocumentStyleSheetCollection::reportMemoryUsage):
      * dom/Element.cpp:
      (WebCore::Element::reportMemoryUsage):
      * dom/ElementAttributeData.cpp:
      (WebCore::ElementAttributeData::reportMemoryUsage):
      * dom/ElementRareData.cpp:
      (WebCore::ElementRareData::reportMemoryUsage):
      * dom/ElementShadow.cpp:
      (WebCore::ElementShadow::reportMemoryUsage):
      * dom/Event.cpp:
      (WebCore::Event::reportMemoryUsage):
      * dom/LiveNodeList.cpp:
      (WebCore::LiveNodeListBase::reportMemoryUsage):
      * dom/Node.cpp:
      (WebCore::Node::reportMemoryUsage):
      * dom/NodeRareData.cpp:
      (WebCore::NodeListsNodeData::reportMemoryUsage):
      (WebCore::NodeRareData::reportMemoryUsage):
      * dom/QualifiedName.cpp:
      (WebCore::QualifiedName::reportMemoryUsage):
      (WebCore::QualifiedName::QualifiedNameImpl::reportMemoryUsage):
      * dom/ScriptExecutionContext.cpp:
      (WebCore::ScriptExecutionContext::reportMemoryUsage):
      * dom/SecurityContext.cpp:
      (WebCore::SecurityContext::reportMemoryUsage):
      * dom/ShadowRoot.cpp:
      (WebCore::ShadowRoot::reportMemoryUsage):
      * dom/TreeScope.cpp:
      (WebCore::TreeScope::reportMemoryUsage):
      * html/HTMLCanvasElement.cpp:
      (WebCore::HTMLCanvasElement::reportMemoryUsage):
      * html/HTMLFormControlElement.cpp:
      (WebCore::HTMLFormControlElement::reportMemoryUsage):
      * html/HTMLImageElement.cpp:
      (WebCore::HTMLImageElement::reportMemoryUsage):
      * html/HTMLInputElement.cpp:
      (WebCore::HTMLInputElement::reportMemoryUsage):
      * html/HTMLMediaElement.cpp:
      (WebCore::HTMLMediaElement::reportMemoryUsage):
      * html/HTMLTextFormControlElement.cpp:
      (WebCore::HTMLTextFormControlElement::reportMemoryUsage):
      * inspector/HeapGraphSerializer.cpp:
      (WebCore::HeapGraphSerializer::HeapGraphSerializer):
      (WebCore::HeapGraphSerializer::reportNode):
      (WebCore::HeapGraphSerializer::reportMemoryUsage):
      * inspector/HeapGraphSerializer.h:
      (HeapGraphSerializer):
      * inspector/InspectorBaseAgent.cpp:
      (WebCore::InspectorBaseAgentInterface::reportMemoryUsage):
      * inspector/InspectorController.cpp:
      (WebCore::InspectorController::reportMemoryUsage):
      * inspector/InspectorDOMStorageAgent.cpp:
      (WebCore::InspectorDOMStorageAgent::reportMemoryUsage):
      * inspector/InspectorDOMStorageResource.cpp:
      (WebCore::InspectorDOMStorageResource::reportMemoryUsage):
      * inspector/InspectorDebuggerAgent.cpp:
      (WebCore::InspectorDebuggerAgent::reportMemoryUsage):
      (WebCore::ScriptDebugListener::Script::reportMemoryUsage):
      * inspector/InspectorMemoryAgent.cpp:
      (WebCore::InspectorMemoryAgent::reportMemoryUsage):
      * inspector/InspectorOverlay.cpp:
      (WebCore::InspectorOverlay::reportMemoryUsage):
      * inspector/InspectorProfilerAgent.cpp:
      (WebCore::InspectorProfilerAgent::reportMemoryUsage):
      * inspector/InspectorResourceAgent.cpp:
      (WebCore::InspectorResourceAgent::reportMemoryUsage):
      * inspector/MemoryInstrumentationImpl.cpp:
      (WebCore::MemoryInstrumentationClientImpl::reportMemoryUsage):
      (WebCore::MemoryInstrumentationImpl::reportMemoryUsage):
      * inspector/NetworkResourcesData.cpp:
      (WebCore::XHRReplayData::reportMemoryUsage):
      (WebCore::NetworkResourcesData::ResourceData::reportMemoryUsage):
      (WebCore::NetworkResourcesData::reportMemoryUsage):
      * loader/CachedMetadata.cpp:
      (WebCore::CachedMetadata::reportMemoryUsage):
      * loader/DocumentLoader.cpp:
      (WebCore::DocumentLoader::reportMemoryUsage):
      * loader/FrameLoader.cpp:
      (WebCore::FrameLoader::reportMemoryUsage):
      * loader/MainResourceLoader.cpp:
      (WebCore::MainResourceLoader::reportMemoryUsage):
      * loader/Prerenderer.cpp:
      (WebCore::Prerenderer::reportMemoryUsage):
      * loader/ResourceBuffer.cpp:
      (WebCore::ResourceBuffer::reportMemoryUsage):
      * loader/ResourceLoader.cpp:
      (WebCore::ResourceLoader::reportMemoryUsage):
      * loader/SubresourceLoader.cpp:
      (WebCore::SubresourceLoader::reportMemoryUsage):
      * loader/SubstituteData.cpp:
      (WebCore::SubstituteData::reportMemoryUsage):
      * loader/cache/CachedCSSStyleSheet.cpp:
      (WebCore::CachedCSSStyleSheet::reportMemoryUsage):
      * loader/cache/CachedFont.cpp:
      (WebCore::CachedFont::reportMemoryUsage):
      * loader/cache/CachedImage.cpp:
      (WebCore::CachedImage::reportMemoryUsage):
      * loader/cache/CachedResource.cpp:
      (WebCore::CachedResource::reportMemoryUsage):
      * loader/cache/CachedResourceHandle.cpp:
      (WebCore::CachedResourceHandleBase::reportMemoryUsage):
      * loader/cache/CachedResourceLoader.cpp:
      (WebCore::CachedResourceLoader::reportMemoryUsage):
      * loader/cache/CachedSVGDocument.cpp:
      (WebCore::CachedSVGDocument::reportMemoryUsage):
      * loader/cache/CachedScript.cpp:
      (WebCore::CachedScript::reportMemoryUsage):
      * loader/cache/CachedShader.cpp:
      (WebCore::CachedShader::reportMemoryUsage):
      * loader/cache/CachedXSLStyleSheet.cpp:
      (WebCore::CachedXSLStyleSheet::reportMemoryUsage):
      * loader/cache/MemoryCache.cpp:
      (WebCore::MemoryCache::reportMemoryUsage):
      * page/DOMTimer.cpp:
      (WebCore::DOMTimer::reportMemoryUsage):
      * page/Frame.cpp:
      (WebCore::Frame::reportMemoryUsage):
      * page/Page.cpp:
      (WebCore::Page::reportMemoryUsage):
      * platform/KURL.cpp:
      (WebCore::KURL::reportMemoryUsage):
      * platform/KURLGoogle.cpp:
      (WebCore::KURLGooglePrivate::reportMemoryUsage):
      * platform/KURLWTFURLImpl.h:
      (WebCore::KURLWTFURLImpl::reportMemoryUsage):
      * platform/ScrollableArea.cpp:
      (WebCore::ScrollableArea::reportMemoryUsage):
      * platform/SharedBuffer.cpp:
      (WebCore::SharedBuffer::reportMemoryUsage):
      * platform/audio/AudioArray.h:
      (WebCore::AudioArray::reportMemoryUsage):
      * platform/audio/FFTFrame.cpp:
      (WebCore::FFTFrame::reportMemoryUsage):
      * platform/audio/HRTFDatabase.cpp:
      (WebCore::HRTFDatabase::reportMemoryUsage):
      * platform/audio/HRTFDatabaseLoader.cpp:
      (WebCore::HRTFDatabaseLoader::reportMemoryUsage):
      * platform/audio/HRTFElevation.cpp:
      (WebCore::HRTFElevation::reportMemoryUsage):
      * platform/audio/HRTFKernel.cpp:
      (WebCore::HRTFKernel::reportMemoryUsage):
      * platform/audio/ffmpeg/FFTFrameFFMPEG.cpp:
      (reportMemoryUsage):
      * platform/graphics/BitmapImage.cpp:
      (WebCore::BitmapImage::reportMemoryUsage):
      (WebCore::FrameData::reportMemoryUsage):
      * platform/graphics/CrossfadeGeneratedImage.cpp:
      (WebCore::CrossfadeGeneratedImage::reportMemoryUsage):
      * platform/graphics/GeneratorGeneratedImage.cpp:
      (WebCore::GeneratorGeneratedImage::reportMemoryUsage):
      * platform/graphics/GraphicsLayer.cpp:
      (WebCore::GraphicsLayer::reportMemoryUsage):
      * platform/graphics/ImageBuffer.cpp:
      (WebCore::ImageBuffer::reportMemoryUsage):
      * platform/graphics/ImageSource.cpp:
      (WebCore::ImageSource::reportMemoryUsage):
      * platform/graphics/chromium/GraphicsLayerChromium.cpp:
      (WebCore::GraphicsLayerChromium::reportMemoryUsage):
      * platform/graphics/skia/ImageBufferSkia.cpp:
      (WebCore::ImageBufferData::reportMemoryUsage):
      * platform/graphics/skia/MemoryInstrumentationSkia.cpp:
      (reportMemoryUsage):
      * platform/graphics/skia/NativeImageSkia.cpp:
      (WebCore::NativeImageSkia::reportMemoryUsage):
      * platform/image-decoders/ImageDecoder.cpp:
      (WebCore::ImageFrame::reportMemoryUsage):
      (WebCore):
      (WebCore::ImageDecoder::reportMemoryUsage):
      * platform/image-decoders/skia/ImageDecoderSkia.cpp:
      (WebCore::ImageFrame::reportMemoryUsage):
      * platform/network/FormData.cpp:
      (WebCore::FormData::reportMemoryUsage):
      (WebCore::FormDataElement::reportMemoryUsage):
      * platform/network/ResourceRequestBase.cpp:
      (WebCore::ResourceRequestBase::reportMemoryUsageBase):
      * platform/network/ResourceResponseBase.cpp:
      (WebCore::ResourceResponseBase::reportMemoryUsage):
      * platform/network/chromium/ResourceRequest.cpp:
      (WebCore::ResourceRequest::reportMemoryUsage):
      * rendering/InlineBox.cpp:
      (WebCore::InlineBox::reportMemoryUsage):
      * rendering/InlineFlowBox.cpp:
      (WebCore::InlineFlowBox::reportMemoryUsage):
      * rendering/InlineTextBox.cpp:
      (WebCore::InlineTextBox::reportMemoryUsage):
      * rendering/RenderBlock.cpp:
      (WebCore::RenderBlock::reportMemoryUsage):
      * rendering/RenderBox.cpp:
      (WebCore::RenderBox::reportMemoryUsage):
      * rendering/RenderFrameSet.cpp:
      (WebCore::RenderFrameSet::reportMemoryUsage):
      (WebCore::RenderFrameSet::GridAxis::reportMemoryUsage):
      * rendering/RenderInline.cpp:
      (WebCore::RenderInline::reportMemoryUsage):
      * rendering/RenderLayer.cpp:
      (WebCore::RenderLayer::reportMemoryUsage):
      * rendering/RenderLayerBacking.cpp:
      (WebCore::RenderLayerBacking::reportMemoryUsage):
      * rendering/RenderLayerCompositor.cpp:
      (WebCore::RenderLayerCompositor::reportMemoryUsage):
      * rendering/RenderListMarker.cpp:
      (WebCore::RenderListMarker::reportMemoryUsage):
      * rendering/RenderObject.cpp:
      (WebCore::RenderObject::reportMemoryUsage):
      * rendering/RenderTableCol.cpp:
      (WebCore::RenderTableCol::reportMemoryUsage):
      * rendering/RenderTableRow.cpp:
      (WebCore::RenderTableRow::reportMemoryUsage):
      * rendering/RenderTableSection.cpp:
      (WebCore::RenderTableSection::reportMemoryUsage):
      (WebCore::RenderTableSection::RowStruct::reportMemoryUsage):
      (WebCore::RenderTableSection::CellStruct::reportMemoryUsage):
      * rendering/RenderText.cpp:
      (WebCore::RenderText::reportMemoryUsage):
      * rendering/RenderView.cpp:
      (WebCore::RenderView::reportMemoryUsage):
      * rendering/style/DataRef.h:
      (WebCore::DataRef::reportMemoryUsage):
      * rendering/style/RenderStyle.cpp:
      (WebCore::RenderStyle::reportMemoryUsage):
      * rendering/style/StyleRareInheritedData.cpp:
      (WebCore::StyleRareInheritedData::reportMemoryUsage):
      * rendering/style/StyleRareNonInheritedData.cpp:
      (WebCore::StyleRareNonInheritedData::reportMemoryUsage):
      * svg/SVGPaint.cpp:
      (WebCore::SVGPaint::reportDescendantMemoryUsage):
      * svg/graphics/SVGImage.cpp:
      (WebCore::SVGImage::reportMemoryUsage):
      * xml/XMLHttpRequest.cpp:
      (WebCore::XMLHttpRequest::reportMemoryUsage):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@141570 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a7d09fcf
  18. 28 Jan, 2013 1 commit
    • aelias@chromium.org's avatar
      Make page scale shrink FrameView in applyPageScaleInCompositor mode · d230b355
      aelias@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=107424
      
      Reviewed by Levi Weintraub.
      
      If applyPageScaleFactorInCompositor is enabled (Chromium-only setting),
      instead of the entire document expanding as the user pinch zooms, the
      viewport shrinks instead. This patch applies the pageScaleFactor to
      visibleContentRect to get this behavior, and simplifies Chromium's
      resize logic to stop hiding the true viewport size from WebCore.
      
      I verified that the scaling makes sense for all the callers of
      visibleContentRect. The exceptions are clip-layer size,
      layout size in non-fixed-layout mode, and text autosizing, which need
      the original unscaled size. Therefore I added a new method
      unscaledVisibleContentSize() to ScrollView/FrameView.
      
      This patch also modifies Page::setPageScaleFactor to perform no
      invalidates or layout when applyPageScaleFactorInCompositor is true,
      and also writes pageScaleFactor into HistoryItems instead of using
      frameScaleFactor.
      
      Since all behavior changes are tied to applyPageScaleFactorInCompositor,
      this patch should be a no-op for non-Chromium ports.
      
      Source/Platform:
      
      * chromium/public/WebLayerTreeView.h:
      (WebLayerTreeView):
      (WebKit::WebLayerTreeView::adjustEventPointForPinchZoom):
      
      Source/WebCore:
      
      New unit tests in WebFrameTest.cpp.
      
      * loader/HistoryController.cpp:
      (WebCore::HistoryController::saveScrollPositionAndViewStateToItem):
      Use pageScaleFactor here because frameScaleFactor always returns 1
      with our setting.
      * page/FrameView.cpp:
      (WebCore::FrameView::visibleContentScaleFactor):
      (WebCore):
      * page/FrameView.h:
      (FrameView):
      * page/Page.cpp:
      (WebCore::Page::setPageScaleFactor): Make setPageScaleFactor stop
      invalidating/layouting as this is handled by our compositor.
      * platform/ScrollView.cpp:
      (WebCore::ScrollView::unscaledVisibleContentSize): This new method
      just returns the original visible rect without pageScaleFactor being
      applied.
      (WebCore):
      (WebCore::ScrollView::visibleContentRect): This now is divided by
      pageScaleFactor if our setting is active.
      (WebCore::ScrollView::layoutSize):
      * platform/ScrollView.h:
      (WebCore::ScrollView::visibleContentScaleFactor): Returns
      pageScaleFactor if the visible rect is scaled, 1 normally.
      (ScrollView):
      (WebCore::ScrollView::layoutWidth):
      (WebCore::ScrollView::layoutHeight):
      * rendering/RenderLayerCompositor.cpp:
      (WebCore::RenderLayerCompositor::frameViewDidChangeSize):
      (WebCore::RenderLayerCompositor::updateRootLayerPosition): Clip layer
      should use unscaled size, because it's above the root scroll layer
      on the layer tree (i.e. page scale isn't applied on it).
      * rendering/TextAutosizer.cpp:
      (WebCore::TextAutosizer::processSubtree): Text autosizer should use
      unscaled size, because it cares about physical screen size.
      
      Source/WebKit/chromium:
      
      * src/WebViewImpl.cpp:
      (WebKit::WebViewImpl::scaledSize): Returns the post page-scale size
      similar to what visibleContentRect() now returns, except that it may
      be at a different scale than the current one.
      (WebKit::WebViewImpl::size): Back to returning density-independent
      size without any tricks, not the "layoutSize()" fake viewport.
      (WebKit::WebViewImpl::resize):
      (WebKit::WebViewImpl::handleInputEvent): No need to apply
      implTransform anymore as WebKit knows the true scroll offset; just
      divide event coords by pageScaleFactor.
      (WebKit::WebViewImpl::clampOffsetAtScale): Make this method support
      applyPageScaleFactorInCompositor.  This is used to pre-clamp scroll
      offsets at a given viewport size.
      (WebKit::WebViewImpl::setPageScaleFactorPreservingScrollOffset): Make
      this method support applyPageScaleFactorInCompositor (don't scale
      scroll offsets as they are now scale-independent).
      (WebKit::WebViewImpl::setPageScaleFactor): Make this method always use
      clampOffsetAtScale instead of bypassing it, since it's now supported.
      Also notify the compositor to update its state.
      (WebKit::WebViewImpl::contentsSize): Convenience method, removed
      difference between scaled and unscaled.
      (WebKit::WebViewImpl::layoutSize): This method returned the "fake"
      size we used to give FrameView.  Now no longer used for much.
      (WebKit::WebViewImpl::computePageScaleFactorLimits):
      (WebKit::WebViewImpl::didChangeContentsSize): Remove unnecessary
      resize() now that we can give the true size to FrameView.
      (WebKit::WebViewImpl::updateLayerTreeViewport): Use layoutSize()
      directly now that FrameView no longer uses it.
      * src/WebViewImpl.h:
      (WebViewImpl):
      * tests/WebFrameTest.cpp:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@141053 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d230b355
  19. 15 Jan, 2013 2 commits
    • bdakin@apple.com's avatar
      https://bugs.webkit.org/show_bug.cgi?id=106940 · 00fae4a7
      bdakin@apple.com authored
      Suspend CSS animations for background tabs
      
      Reviewed by Simon Fraser.
      
      * page/Page.cpp:
      (WebCore::Page::setVisibilityState):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@139800 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      00fae4a7
    • enrica@apple.com's avatar
      Add a new set of WebKit2 APIs for text search and · ebd80c2b
      enrica@apple.com authored
      search results management.
      https://bugs.webkit.org/show_bug.cgi?id=106834.
      <rdar://problem/12597159>
      
      Source/WebCore: 
      
      Reviewed by Simon Fraser.
              
      Adding new API to perform text search in WebKit2 without using
      the stock UI. The new interface provides all the information
      necessary to write a custom UI for search.
      
      Added new TextWebKitAPI test.
      
      * WebCore.exp.in: Added new exported methods.
      * editing/Editor.cpp:
      (WebCore::Editor::countMatchesForText): Added new parameter to store
      all the ranges relative to the matches found.
      * editing/Editor.h: Modified the interface of countMatchesForText and removed
      the other definition of countMatchesForText with a different signature.
      * page/Page.cpp:
      (WebCore::Page::findStringMatchingRanges): Added.
      (WebCore::Page::markAllMatchesForText): Changed to use the new unified
      countMatchesForText.
      * page/Page.h:
      
      Source/WebKit/mac: 
      
      Reviewed by Simon Fraser.
              
      Adding new API to perform text search in WebKit2 without using
      the stock UI. The new interface provides all the information
      necessary to write a custom UI for search.
      
      Added new TextWebKitAPI test.
      
      * WebView/WebHTMLView.mm:
      (-[WebHTMLView countMatchesForText:inDOMRange:options:limit:markMatches:]):
      Modified to reflect the changes to Editor::countMatchesForText interface.
      
      Source/WebKit2: 
      
      Reviewed by Simon Fraser.
              
      Adding new API to perform text search in WebKit2 without using
      the stock UI. The new interface provides all the information
      necessary to write a custom UI for search. The main logic is
      implemented in the new functions added to FindController.
      
      Added new TextWebKitAPI test.
      
      * UIProcess/API/C/WKPage.cpp:
      (WKPageFindStringMatches): Added.
      (WKPageGetImageForFindMatch): Added.
      (WKPageSelectFindMatch): Added.
      (WKPageSetPageFindMatchesClient): Added.
      * UIProcess/API/C/WKPage.h: Added the new API definitions.
      * UIProcess/WebFindClient.cpp: Added new client callbacks.
      (WebKit::WebFindMatchesClient::didFindStringMatches):
      (WebKit::WebFindMatchesClient::didGetImageForMatchResult):
      * UIProcess/WebFindClient.h:
      (WebFindMatchesClient): Added.
      * UIProcess/WebPageProxy.cpp: Added proxy methods.
      (WebKit::WebPageProxy::initializeFindMatchesClient):
      (WebKit::WebPageProxy::findStringMatches):
      (WebKit::WebPageProxy::getImageForFindMatch):
      (WebKit::WebPageProxy::selectFindMatch):
      (WebKit::WebPageProxy::didGetImageForFindMatch):
      (WebKit::WebPageProxy::didFindStringMatches):
      * UIProcess/WebPageProxy.h:
      * UIProcess/WebPageProxy.messages.in:
      * WebProcess/WebPage/FindController.cpp:
      (WebKit::FindController::findStringMatches): Finds all the matching
      text according to the find options. All the matching text ranges are
      stored in a vector until the next call to findStringMatches or until
      hideFindUI is called. The message that is sent back to the UI process
      contains a vector containing an entry for each find match (i.e. for each
      range) and each entry is represented by a vector of the corresponding
      text rects. It also returns the index in the vector of matches corresponding
      to the first match after the user selection.
      If there is no selection the index is always 0 and if there are no
      matches after the user selection, the index returned is -1.
      (WebKit::FindController::getFindIndicatorBitmapAndRect): Helper function
      to share code between updateFindIndicator and getImageForFindMatch.
      (WebKit::FindController::getImageForFindMatch): Creates the image corresponding
      to the text matched at the given match index.
      (WebKit::FindController::selectFindMatch): creates a selection for the range
      corresponding to the given match index.
      (WebKit::FindController::hideFindUI): Added logic to clear the vector
      of matched ranges.
      (WebKit::FindController::updateFindIndicator): Updated to use the
      new helper function getFindIndicatorBitmapAndRect.
      * WebProcess/WebPage/FindController.h:
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::findStringMatches):
      (WebKit::WebPage::getImageForFindMatch):
      (WebKit::WebPage::selectFindMatch):
      * WebProcess/WebPage/WebPage.h:
      * WebProcess/WebPage/WebPage.messages.in:
      
      Tools: 
      
      Added new test for the new WebKit2 API for
      text search.
              
      Reviewed by Simon Fraser.
      
      * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
      * TestWebKitAPI/Tests/WebKit2/FindMatches.mm: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@139796 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ebd80c2b
  20. 14 Jan, 2013 1 commit
    • loislo@chromium.org's avatar
      Web Inspector: Native Memory Instrumentation: fix instrumentation for already... · 771ab1fe
      loislo@chromium.org authored
      Web Inspector: Native Memory Instrumentation: fix instrumentation for already instrumented classes 2/N
      https://bugs.webkit.org/show_bug.cgi?id=106546
      
      Reviewed by Vsevolod Vlasov.
      
      Many nontrivial class members were added into reportMemoryUsage methods.
      
      * bindings/v8/V8PerIsolateData.cpp:
      (WebCore::V8PerIsolateData::reportMemoryUsage):
      * css/CSSMediaRule.cpp:
      (WebCore::CSSMediaRule::reportMemoryUsage):
      * css/CSSProperty.cpp:
      (WebCore::CSSProperty::reportMemoryUsage):
      * css/CSSStyleSheet.cpp:
      (WebCore::CSSStyleSheet::reportMemoryUsage):
      * css/MediaList.cpp:
      (WebCore::MediaList::reportMemoryUsage):
      * css/RuleSet.cpp:
      (WebCore::RuleData::reportMemoryUsage):
      (WebCore::RuleSet::reportMemoryUsage):
      (WebCore::RuleSet::RuleSetSelectorPair::reportMemoryUsage):
      * css/StyleResolver.cpp:
      (WebCore::StyleResolver::MatchedPropertiesCacheItem::reportMemoryUsage):
      (WebCore::StyleResolver::reportMemoryUsage):
      * css/StyleSheetContents.cpp:
      (WebCore::StyleSheetContents::reportMemoryUsage):
      * dom/TreeScope.cpp:
      (WebCore::TreeScope::reportMemoryUsage):
      * inspector/HeapGraphSerializer.cpp:
      (WebCore::HeapGraphSerializer::reportMemoryUsage):
      * inspector/InspectorMemoryAgent.cpp:
      * inspector/InspectorProfilerAgent.cpp:
      (WebCore::InspectorProfilerAgent::reportMemoryUsage):
      * inspector/MemoryInstrumentationImpl.cpp:
      (WebCore::MemoryInstrumentationClientImpl::reportMemoryUsage):
      * loader/DocumentLoader.cpp:
      (WebCore::DocumentLoader::reportMemoryUsage):
      * loader/FrameLoader.cpp:
      (WebCore::FrameLoader::reportMemoryUsage):
      * loader/MainResourceLoader.cpp:
      (WebCore::MainResourceLoader::reportMemoryUsage):
      * loader/Prerenderer.cpp:
      (WebCore::Prerenderer::reportMemoryUsage):
      * loader/ResourceLoader.cpp:
      (WebCore::ResourceLoader::reportMemoryUsage):
      * loader/cache/CachedImage.cpp:
      (WebCore::CachedImage::reportMemoryUsage):
      * page/Page.cpp:
      (WebCore::Page::reportMemoryUsage):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@139589 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      771ab1fe
  21. 10 Jan, 2013 2 commits
    • loislo@chromium.org's avatar
      Unreviewed, rolling out r139306. · 7696fea4
      loislo@chromium.org authored
      http://trac.webkit.org/changeset/139306
      https://bugs.webkit.org/show_bug.cgi?id=106550
      
      it broke inspector-protocol/nmi-webaudio-leak-test.html
      (Requested by loislo on #webkit).
      
      Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2013-01-10
      
      * bindings/v8/V8PerIsolateData.cpp:
      (WebCore::V8PerIsolateData::reportMemoryUsage):
      * css/CSSMediaRule.cpp:
      (WebCore::CSSMediaRule::reportMemoryUsage):
      * css/CSSProperty.cpp:
      (WebCore::CSSProperty::reportMemoryUsage):
      * css/CSSStyleSheet.cpp:
      (WebCore::CSSStyleSheet::reportMemoryUsage):
      * css/MediaList.cpp:
      (WebCore::MediaList::reportMemoryUsage):
      * css/RuleSet.cpp:
      (WebCore::RuleData::reportMemoryUsage):
      (WebCore::RuleSet::reportMemoryUsage):
      (WebCore::RuleSet::RuleSetSelectorPair::reportMemoryUsage):
      * css/StyleResolver.cpp:
      (WebCore::StyleResolver::MatchedPropertiesCacheItem::reportMemoryUsage):
      (WebCore::StyleResolver::reportMemoryUsage):
      * css/StyleSheetContents.cpp:
      (WebCore::StyleSheetContents::reportMemoryUsage):
      * dom/TreeScope.cpp:
      (WebCore::TreeScope::reportMemoryUsage):
      * inspector/HeapGraphSerializer.cpp:
      (WebCore::HeapGraphSerializer::reportMemoryUsage):
      * inspector/InspectorMemoryAgent.cpp:
      * inspector/InspectorProfilerAgent.cpp:
      (WebCore::InspectorProfilerAgent::reportMemoryUsage):
      * inspector/MemoryInstrumentationImpl.cpp:
      (WebCore::MemoryInstrumentationClientImpl::reportMemoryUsage):
      * loader/DocumentLoader.cpp:
      (WebCore::DocumentLoader::reportMemoryUsage):
      * loader/FrameLoader.cpp:
      (WebCore::FrameLoader::reportMemoryUsage):
      * loader/MainResourceLoader.cpp:
      (WebCore::MainResourceLoader::reportMemoryUsage):
      * loader/Prerenderer.cpp:
      (WebCore::Prerenderer::reportMemoryUsage):
      * loader/ResourceLoader.cpp:
      (WebCore::ResourceLoader::reportMemoryUsage):
      * loader/cache/CachedImage.cpp:
      (WebCore::CachedImage::reportMemoryUsage):
      * page/Page.cpp:
      (WebCore::Page::reportMemoryUsage):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@139310 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7696fea4
    • loislo@chromium.org's avatar
      Web Inspector: Native Memory Instrumentation: fix instrumentation for already... · ba8b9bed
      loislo@chromium.org authored
      Web Inspector: Native Memory Instrumentation: fix instrumentation for already instrumented classes 2/N
      https://bugs.webkit.org/show_bug.cgi?id=106546
      
      Reviewed by Vsevolod Vlasov.
      
      Many nontrivial class members were instrumented in reportMemoryUsage methods.
      
      * bindings/v8/V8PerIsolateData.cpp:
      (WebCore::V8PerIsolateData::reportMemoryUsage):
      * css/CSSMediaRule.cpp:
      (WebCore::CSSMediaRule::reportMemoryUsage):
      * css/CSSProperty.cpp:
      (WebCore::CSSProperty::reportMemoryUsage):
      * css/CSSStyleSheet.cpp:
      (WebCore::CSSStyleSheet::reportMemoryUsage):
      * css/MediaList.cpp:
      (WebCore::MediaList::reportMemoryUsage):
      * css/RuleSet.cpp:
      (WebCore::RuleData::reportMemoryUsage):
      (WebCore::RuleSet::reportMemoryUsage):
      (WebCore::RuleSet::RuleSetSelectorPair::reportMemoryUsage):
      * css/StyleResolver.cpp:
      (WebCore::StyleResolver::MatchedPropertiesCacheItem::reportMemoryUsage):
      (WebCore::StyleResolver::reportMemoryUsage):
      * css/StyleSheetContents.cpp:
      (WebCore::StyleSheetContents::reportMemoryUsage):
      * dom/TreeScope.cpp:
      (WebCore::TreeScope::reportMemoryUsage):
      * inspector/HeapGraphSerializer.cpp:
      (WebCore::HeapGraphSerializer::reportMemoryUsage):
      * inspector/InspectorMemoryAgent.cpp:
      * inspector/InspectorProfilerAgent.cpp:
      (WebCore::InspectorProfilerAgent::reportMemoryUsage):
      * inspector/MemoryInstrumentationImpl.cpp:
      (WebCore::MemoryInstrumentationClientImpl::reportMemoryUsage):
      * loader/DocumentLoader.cpp:
      (WebCore::DocumentLoader::reportMemoryUsage):
      * loader/FrameLoader.cpp:
      (WebCore::FrameLoader::reportMemoryUsage):
      * loader/MainResourceLoader.cpp:
      (WebCore::MainResourceLoader::reportMemoryUsage):
      * loader/Prerenderer.cpp:
      (WebCore::Prerenderer::reportMemoryUsage):
      * loader/ResourceLoader.cpp:
      (WebCore::ResourceLoader::reportMemoryUsage):
      * loader/cache/CachedImage.cpp:
      (WebCore::CachedImage::reportMemoryUsage):
      * page/Page.cpp:
      (WebCore::Page::reportMemoryUsage):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@139306 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ba8b9bed
  22. 09 Jan, 2013 1 commit
    • loislo@chromium.org's avatar
      Web Inspector: Native Memory Instrumentation: fix instrumentation for already... · 9ed01ec8
      loislo@chromium.org authored
      Web Inspector: Native Memory Instrumentation: fix instrumentation for already instrumented classes 1/N
      https://bugs.webkit.org/show_bug.cgi?id=106445
      
      Reviewed by Vsevolod Vlasov.
      
      The patch has almost mechanical changes.
      
      * bindings/v8/V8Binding.cpp:
      * bindings/v8/V8ValueCache.cpp:
      (WTF):
      (WebCore::StringCache::reportMemoryUsage):
      (WebCore):
      * dom/Document.cpp:
      (WebCore::Document::reportMemoryUsage):
      * dom/DocumentStyleSheetCollection.cpp:
      (WebCore::DocumentStyleSheetCollection::reportMemoryUsage):
      * dom/ElementRareData.cpp:
      (WebCore::ElementRareData::reportMemoryUsage):
      * loader/cache/CachedResource.cpp:
      (WebCore::CachedResource::reportMemoryUsage):
      * page/Frame.cpp:
      (WebCore::Frame::reportMemoryUsage):
      * page/Page.cpp:
      (WebCore::Page::reportMemoryUsage):
      * platform/graphics/skia/NativeImageSkia.cpp:
      (WebCore::NativeImageSkia::reportMemoryUsage):
      * platform/network/FormData.cpp:
      (WebCore::FormData::reportMemoryUsage):
      (WebCore):
      (WebCore::FormDataElement::reportMemoryUsage):
      * platform/network/FormData.h:
      (FormDataElement):
      * rendering/RenderView.cpp:
      (WebCore::RenderView::reportMemoryUsage):
      * rendering/style/StyleRareNonInheritedData.cpp:
      (WebCore::StyleRareNonInheritedData::reportMemoryUsage):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@139192 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9ed01ec8
  23. 07 Jan, 2013 1 commit
  24. 27 Dec, 2012 3 commits
    • dglazkov@chromium.org's avatar
      Move visited link-checking (and caching) code out of SelectorChecker. · b19b6a2d
      dglazkov@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=105752
      
      SelectorChecker knew too much about visited links and how links are stored in DOM. This change
      moves the code to more relevant locations and moves the visited links cache all the way up to Document,
      introducing VisitedLinkState class to manage the state of visited links.
      Relanding without a null-ptr ref.
      
      Reviewed by Antti Koivisto.
      
      No change in behavior, covered by existing tests.
      
      * CMakeLists.txt: Added VisitedLinkState to build system.
      * GNUmakefile.list.am: Ditto.
      * Target.pri: Ditto.
      * WebCore.gypi: Ditto.
      * WebCore.xcodeproj/project.pbxproj: Ditto.
      * css/SelectorChecker.cpp: Moved visited-link state code out to VisitedLinkState class.
      * css/SelectorChecker.h: Ditto.
      * css/StyleResolver.cpp:
      (WebCore::StyleResolver::initElement): Changed callsite to use VisitedLinkState.
      * css/StyleResolver.h: Removed plumb-throughs that are now unnecessary.
      * dom/DOMAllInOne.cpp: Added VisitedLinkState to build system.
      * dom/Document.cpp: Added VisitedLinkState initalizer.
      * dom/Document.h: Added VisitedLinkState member.
      * dom/VisitedLinkState.cpp: Added.
      * dom/VisitedLinkState.h: Added.
      * history/CachedPage.cpp:
      (WebCore::CachedPage::restore): Changed callsite to use VisitedLinkState.
      * page/Page.cpp:
      (WebCore::Page::allVisitedStateChanged): Ditto.
      (WebCore::Page::visitedStateChanged): Ditto.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@138515 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b19b6a2d
    • commit-queue@webkit.org's avatar
      Unreviewed, rolling out r138509. · 68e415e2
      commit-queue@webkit.org authored
      http://trac.webkit.org/changeset/138509
      https://bugs.webkit.org/show_bug.cgi?id=105806
      
      Caused several tests to crash (Requested by fsamuel on
      #webkit).
      
      Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2012-12-27
      
      * CMakeLists.txt:
      * GNUmakefile.list.am:
      * Target.pri:
      * WebCore.gypi:
      * WebCore.xcodeproj/project.pbxproj:
      * css/SelectorChecker.cpp:
      (WebCore::linkAttribute):
      (WebCore):
      (WebCore::SelectorChecker::determineLinkStateSlowCase):
      (WebCore::SelectorChecker::allVisitedStateChanged):
      (WebCore::SelectorChecker::visitedStateChanged):
      * css/SelectorChecker.h:
      (SelectorChecker):
      (WebCore::SelectorChecker::determineLinkState):
      (WebCore):
      * css/StyleResolver.cpp:
      (WebCore::StyleResolver::initElement):
      * css/StyleResolver.h:
      (WebCore::StyleResolver::allVisitedStateChanged):
      (WebCore::StyleResolver::visitedStateChanged):
      (StyleResolver):
      * dom/DOMAllInOne.cpp:
      * dom/Document.cpp:
      (WebCore::Document::Document):
      * dom/Document.h:
      (WebCore):
      (Document):
      * dom/VisitedLinkState.cpp: Removed.
      * dom/VisitedLinkState.h: Removed.
      * history/CachedPage.cpp:
      (WebCore::CachedPage::restore):
      * page/Page.cpp:
      (WebCore::Page::allVisitedStateChanged):
      (WebCore::Page::visitedStateChanged):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@138512 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      68e415e2
    • dglazkov@chromium.org's avatar
      Move visited link-checking (and caching) code out of SelectorChecker. · 2606db9b
      dglazkov@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=105752
      
      SelectorChecker knew too much about visited links and how links are stored in DOM. This change
      moves the code to more relevant locations and moves the visited links cache all the way up to Document,
      introducing VisitedLinkState class to manage the state of visited links.
      
      Reviewed by Antti Koivisto.
      
      No change in behavior, covered by existing tests.
      
      * CMakeLists.txt: Added VisitedLinkState to build system.
      * GNUmakefile.list.am: Ditto.
      * Target.pri: Ditto.
      * WebCore.gypi: Ditto.
      * WebCore.xcodeproj/project.pbxproj: Ditto.
      * css/SelectorChecker.cpp: Moved visited-link state code out to VisitedLinkState class.
      * css/SelectorChecker.h: Ditto.
      * css/StyleResolver.cpp:
      (WebCore::StyleResolver::initElement): Changed callsite to use VisitedLinkState.
      * css/StyleResolver.h: Removed plumb-throughs that are now unnecessary.
      * dom/DOMAllInOne.cpp: Added VisitedLinkState to build system.
      * dom/Document.cpp: Added VisitedLinkState initalizer.
      * dom/Document.h: Added VisitedLinkState member.
      * dom/VisitedLinkState.cpp: Added.
      * dom/VisitedLinkState.h: Added.
      * history/CachedPage.cpp:
      (WebCore::CachedPage::restore): Changed callsite to use VisitedLinkState.
      * page/Page.cpp:
      (WebCore::Page::allVisitedStateChanged): Ditto.
      (WebCore::Page::visitedStateChanged): Ditto.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@138509 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2606db9b
  25. 17 Dec, 2012 1 commit
  26. 11 Dec, 2012 1 commit
    • wangxianzhu@chromium.org's avatar
      Add window.internals.mainThreadScrollReasonsAsText for testing slow scrolling · 0991b596
      wangxianzhu@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=104714
      
      Reviewed by Eric Seidel.
      
      .:
      
      Export symbol Page::mainThreadScrollingReasonsAsText().
      
      * Source/autotools/symbols.filter:
      
      Source/WebCore:
      
      No new tests. Adds test api for bug 102543 and other bugs.
      
      * WebCore.exp.in:
      * page/Page.cpp:
      (WebCore::ScrollingCoordinator::mainThreadScrollingReasonsAsText): Extracted from ScrollingStateScrollingNode::dumpProperties for layout tests.
      (WebCore):
      * page/Page.h:
      (Page):
      * page/scrolling/ScrollingCoordinator.cpp:
      (WebCore::ScrollingCoordinator::mainThreadScrollingReasonsAsText):
      (WebCore):
      * page/scrolling/ScrollingCoordinator.h:
      (ScrollingCoordinator):
      * page/scrolling/ScrollingStateScrollingNode.cpp:
      (WebCore::ScrollingStateScrollingNode::dumpProperties): Moved code for mainThreadScrollingReasons to ScrollingCoordinator.cpp.
      * testing/Internals.cpp:
      (WebCore::Internals::mainThreadScrollingReasons):
      (WebCore):
      * testing/Internals.h:
      * testing/Internals.idl:
      
      Source/WebKit2:
      
      Export symbol Page::mainThreadScrollingReasonsAsText().
      
      * win/WebKit2.def.in:
      
      LayoutTests:
      
      * platform/mac/tiled-drawing/scrolling-tree-slow-scrolling-expected.txt: Updated according to the change of mainThreadScrollingReasons about the trailing comma.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137388 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0991b596
  27. 10 Dec, 2012 3 commits
    • jonlee@apple.com's avatar
      Keep track of plug-in snapshots clicked by user · f494c4f8
      jonlee@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=103206
      <rdar://problem/12746483>
      
      Reviewed by Anders Carlsson.
      
      Source/WebCore:
      
      * html/HTMLPlugInImageElement.cpp:
      (WebCore::HTMLPlugInImageElement::HTMLPlugInImageElement): Initially the hash is
      unknown. Set to 0. Move the check for whether to snapshot the plugin into the
      new function subframeLoaderWillLoadPlugIn.
      (WebCore::HTMLPlugInImageElement::userDidClickSnapshot): Rename
      setPendingClickEvent to userDidClickSnapshot. In addition to holding onto the
      click event used to activate the plug-in, the function now also tells the plug-in
      client to add the origin hash as an auto-start origin.
      (WebCore::HTMLPlugInImageElement::subframeLoaderWillLoadPlugIn): Calculate the
      hash based on the provided URL, which is the URL the plug-in will load. Extend
      the check that used to be in the constructor to see if the plug-in should not
      automatically load, including checking the plug-in size and whether the hash
      is an auto-start origin.
      * html/HTMLPlugInImageElement.h: Rename setPendingClickEvent to userDidClickSnapshot
      and add a variable for the origin hash.
      
      * loader/SubframeLoader.cpp:
      (WebCore::SubframeLoader::requestPlugin): When the loader is about to load the
      plug-in, pass the URL to the element, so that it can calculate the hash.
      
      * page/Page.cpp:
      (WebCore::Page::Page): Take the plugInClient from the page clients.
      (WebCore::Page::~Page): If the client exists, tell it that the page is being
      destroyed.
      (WebCore::Page::PageClients::PageClients): Initialize this optional client to
      null.
      * page/Page.h: Add PlugInClient to page clients.
      (PageClients): Add PlugInClient variable.
      (WebCore::Page::plugInClient):
      * page/PlugInClient.h: Added.
      
      * rendering/RenderSnapshottedPlugIn.cpp:
      (WebCore::RenderSnapshottedPlugIn::handleEvent): Call the renamed function
      userDidClickSnapshot().
      (WebCore::RenderSnapshottedPlugIn::layout): Move the check of the plug-in size
      to subframeLoaderWillLoadPlugIn.
      
      Add PlugInClient.h.
      * GNUmakefile.list.am:
      * Target.pri:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.xcodeproj/project.pbxproj:
      
      Source/WebKit2:
      
      Create a new provider class for the web context that maintains a mapping of the plug-in origins
      allowed to auto-start for a specific page origin.
      
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::WebPage): Create and set WebPlugInClient.
      
      Implement WebCore::PlugInClient.
      * WebProcess/WebCoreSupport/WebPlugInClient.cpp: Added.
      (WebKit::WebPlugInClient::WebPlugInClient):
      (WebKit::WebPlugInClient::~WebPlugInClient):
      (WebKit::WebPlugInClient::pageDestroyed):
      (WebKit::WebPlugInClient::isAutoStartOrigin): Forward to WebProcess.
      (WebKit::WebPlugInClient::addAutoStartOrigin): Forward to WebProcess.
      * WebProcess/WebCoreSupport/WebPlugInClient.h: Added.
      
      * WebProcess/WebProcess.cpp: Maintains a copy of the hash set.
      (WebKit::WebProcess::isPlugInAutoStartOrigin): Look for the hash in the set.
      (WebKit::WebProcess::addPlugInAutoStartOrigin): Tell the UI process to add the hash for the page.
      (WebKit::WebProcess::didAddPlugInAutoStartOrigin): Add the hash to the cached set.
      * WebProcess/WebProcess.h:
      * WebProcess/WebProcess.messages.in: Add DidAddPlugInAutoStartOrigin.
      
      Add the auto-start provider.
      * UIProcess/WebContext.cpp:
      (WebKit::WebContext::WebContext): Initialize the provider.
      (WebKit::WebContext::addPlugInAutoStartOriginHash): Forward to the provider.
      * UIProcess/WebContext.h:
      * UIProcess/WebContext.messages.in: Add AddPlugInAutoStartOriginHash.
      
      The provider class maintains a map of page domains to hashes, and a set of all the hashes.
      The latter will be used to initialize new web processes without having to crawl through the
      whole map.
      * UIProcess/Plugins/PlugInAutoStartProvider.cpp: Added.
      (WebKit::PlugInAutoStartProvider::PlugInAutoStartProvider):
      (WebKit::PlugInAutoStartProvider::addAutoStartOrigin): Add the origin to the map and set. Tell
      all processes to add the origin to their local copies.
      * UIProcess/Plugins/PlugInAutoStartProvider.h: Added.
      
      Add PlugInAutoStartProvider and WebPlugInClient.
      * CMakeLists.txt:
      * GNUmakefile.list.am:
      * Target.pri:
      * WebKit2.xcodeproj/project.pbxproj:
      * win/WebKit2.vcproj:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137230 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f494c4f8
    • bdakin@apple.com's avatar
      https://bugs.webkit.org/show_bug.cgi?id=104602 · 86d5058b
      bdakin@apple.com authored
      DidHitRelevantRepaintedObjectsAreaThreshold LayoutMilestone fires too 
      early on some pages with iframes
      
      Reviewed by Simon Fraser.
      
      This change makes it so that any RenderObjects inside iframes are not 
      considered relevant.
      * page/Page.cpp:
      (WebCore::Page::addRelevantRepaintedObject):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137224 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      86d5058b
    • commit-queue@webkit.org's avatar
      Source/WebCore: Make hiddenPageDomTimerInterval a setting · 6ca353e0
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=104555
      
      Patch by Parth Patel <parpatel@rim.com> on 2012-12-10
      Reviewed by Yong Li.
      
      Make hiddenPageDomTimerInterval a setting so client can customize it.
      
      No new tests are needed.
      
      * page/Page.cpp:
      (WebCore):
      (WebCore::Page::setVisibilityState):
      * page/Settings.cpp:
      (WebCore):
      (WebCore::Settings::setHiddenPageDOMTimerAlignmentInterval):
      (WebCore::Settings::hiddenPageDOMTimerAlignmentInterval):
      * page/Settings.h:
      (Settings):
      
      Source/WebKit/blackberry: [BlackBerry] Make hiddenPageDomTimerInterval a setting
      https://bugs.webkit.org/show_bug.cgi?id=104555
      
      Patch by Parth Patel <parpatel@rim.com> on 2012-12-10
      Reviewed by Yong Li.
      
      HiddenPageDomTimerInterval in setting in webcore can be utilized by browser application
      when needed.
      
      * Api/BlackBerryGlobal.cpp:
      (BlackBerry::WebKit::globalInitialize):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137185 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6ca353e0
  28. 03 Dec, 2012 1 commit
    • commit-queue@webkit.org's avatar
      Unreviewed, rolling out r135271. · 2a054f9c
      commit-queue@webkit.org authored
      http://trac.webkit.org/changeset/135271
      https://bugs.webkit.org/show_bug.cgi?id=103940
      
      Some user stylesheet API clients broken (Requested by anttik
      on #webkit).
      
      Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2012-12-03
      
      * css/StyleResolver.cpp:
      (WebCore::StyleResolver::StyleResolver):
      (WebCore::StyleResolver::collectRulesFromUserStyleSheets):
      (WebCore::collectCSSOMWrappers):
      * css/StyleResolver.h:
      (StyleResolver):
      * dom/Document.cpp:
      (WebCore::Document::setCompatibilityMode):
      * dom/DocumentStyleSheetCollection.cpp:
      (WebCore::DocumentStyleSheetCollection::~DocumentStyleSheetCollection):
      (WebCore::DocumentStyleSheetCollection::pageUserSheet):
      (WebCore::DocumentStyleSheetCollection::clearPageUserSheet):
      (WebCore::DocumentStyleSheetCollection::updatePageUserSheet):
      (WebCore::collectActiveCSSStyleSheetsFromSeamlessParents):
      (WebCore::DocumentStyleSheetCollection::updateActiveStyleSheets):
      (WebCore::DocumentStyleSheetCollection::reportMemoryUsage):
      * dom/DocumentStyleSheetCollection.h:
      (DocumentStyleSheetCollection):
      (WebCore::DocumentStyleSheetCollection::documentUserStyleSheets):
      * page/Page.cpp:
      (WebCore::Page::userStyleSheetLocationChanged):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136449 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2a054f9c
  29. 21 Nov, 2012 1 commit
  30. 20 Nov, 2012 1 commit
    • antti@apple.com's avatar
      Collect user style sheets in DocumentStyleSheetCollection · 27280e47
      antti@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=102683
      
      Reviewed by Andreas Kling.
      
      Move the user stylesheet collection logic from StyleResolver to DocumentStyleSheetCollection.
              
      * css/StyleResolver.cpp:
      (WebCore::StyleResolver::StyleResolver):
      (WebCore::StyleResolver::collectRulesFromUserStyleSheets):
      (WebCore::collectCSSOMWrappers):
      * css/StyleResolver.h:
      (StyleResolver):
      * dom/DocumentStyleSheetCollection.cpp:
      (WebCore::DocumentStyleSheetCollection::~DocumentStyleSheetCollection):
      (WebCore::DocumentStyleSheetCollection::pageUserStyleSheet):
      (WebCore::DocumentStyleSheetCollection::clearPageUserStyleSheet):
      (WebCore::DocumentStyleSheetCollection::updatePageUserStyleSheet):
      (WebCore::DocumentStyleSheetCollection::analyzeStyleSheetChange):
      (WebCore::collectActiveStyleSheetsFromSeamlessParents):
      (WebCore::DocumentStyleSheetCollection::updateStyleResolver):
              
          Factor the StyleResolver updating code to function.
      
      (WebCore):
      (WebCore::DocumentStyleSheetCollection::updateActiveStyleSheets):
              
          Collect the user style sheets. Some renaming and other minor refactoring.
      
      (WebCore::DocumentStyleSheetCollection::reportMemoryUsage):
      * dom/DocumentStyleSheetCollection.h:
      (WebCore::DocumentStyleSheetCollection::activeUserStyleSheets):
              
          Add activeUserStyleSheets vector that contains all user stylesheets from different sources,
          similar to activeAuthorStyleSheets.
      
      (DocumentStyleSheetCollection):
      (WebCore::DocumentStyleSheetCollection::documentUserStyleSheets):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@135271 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      27280e47