1. 28 Sep, 2013 1 commit
  2. 27 Sep, 2013 2 commits
    • darin@apple.com's avatar
      rename KURL to URL · 5ffbb5c7
      darin@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=16214
      
      Reviewed by Andreas Kling.
      
      Source/WebCore:
      
      * many files: Renamed, using script.
      
      Source/WebKit:
      
      * WebKit.vcxproj/WebKitExportGenerator/WebKitExports.def.in:
      Let the script to try to rename here.
      
      Source/WebKit/blackberry:
      
      * many files: Renamed, using script.
      
      Source/WebKit/efl:
      
      * many files: Renamed, using script.
      
      Source/WebKit/gtk:
      
      * many files: Renamed, using script.
      
      Source/WebKit/mac:
      
      * many files: Renamed, using script.
      
      Source/WebKit/qt:
      
      * many files: Renamed, using script.
      
      Source/WebKit/win:
      
      * many files: Renamed, using script.
      
      Source/WebKit/wince:
      
      * many files: Renamed, using script.
      
      Source/WebKit2:
      
      * many files: Renamed, using script.
      
      Tools:
      
      * many files: Renamed, using script.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156550 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5ffbb5c7
    • darin@apple.com's avatar
      Add empty MainFrame class · ade301ac
      darin@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=121770
      
      Reviewed by Andreas Kling.
      
      Source/WebCore:
      
      For now, MainFrame simply derives from Frame and adds nothing.
      Next, we will make each Frame point back to its MainFrame.
      
      * CMakeLists.txt: Added MainFrame.cpp/h.
      * GNUmakefile.list.am: Ditto.
      * Target.pri: Ditto.
      * WebCore.exp.in: Ditto.
      * WebCore.vcxproj/WebCore.vcxproj: Ditto.
      * WebCore.vcxproj/WebCore.vcxproj.filters: Ditto.
      * WebCore.xcodeproj/project.pbxproj: Ditto.
      
      * page/Frame.cpp:
      (WebCore::Frame::Frame): Use references instead of pointers for constructor.
      (WebCore::Frame::create): Pass references instead of pointers to constructor.
      * page/Frame.h: Made constructor protected instead of private, and marked
      destructor virtual explicitly. Also marked virtual functions OVERRIDE and FINAL.
      
      * page/MainFrame.cpp: Added.
      * page/MainFrame.h: Added.
      
      * page/Page.cpp:
      (WebCore::Page::Page): Use MainFrame::create instead of Frame::create.
      (WebCore::Page::frameIsMainFrame): Moved here, no longer inline.
      (WebCore::Page::renderTreeSize): Use const Frame* instead of Frame*.
      (WebCore::Page::checkSubframeCountConsistency): Ditto.
      * page/Page.h: Changed mainFrame() to return MainFrame& and m_mainFrame to
      be a RefPtr<MainFrame>.
      
      * accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
      * bindings/js/PageScriptDebugServer.cpp:
      * bindings/js/ScriptProfiler.cpp:
      * bindings/js/ScriptState.cpp:
      * css/MediaQueryEvaluator.cpp:
      * dom/Document.cpp:
      * history/CachedFrame.cpp:
      * history/CachedPage.cpp:
      * history/PageCache.cpp:
      * html/HTMLPlugInImageElement.cpp:
      * inspector/InspectorAgent.cpp:
      * inspector/InspectorCanvasAgent.cpp:
      * inspector/InspectorClient.cpp:
      * inspector/InspectorDOMAgent.cpp:
      * inspector/InspectorFrontendClientLocal.cpp:
      * inspector/InspectorFrontendHost.cpp:
      * inspector/InspectorInputAgent.cpp:
      * inspector/InspectorInstrumentation.cpp:
      * inspector/InspectorOverlay.cpp:
      * inspector/InspectorPageAgent.cpp:
      * inspector/PageRuntimeAgent.cpp:
      * loader/FrameLoader.cpp:
      * loader/HistoryController.cpp:
      * loader/archive/mhtml/MHTMLArchive.cpp:
      * page/AutoscrollController.cpp:
      * page/Chrome.cpp:
      * page/ContextMenuController.cpp:
      * page/DOMWindow.cpp:
      * page/DragController.cpp:
      * page/EventHandler.cpp:
      * page/FocusController.cpp:
      * page/FrameTree.cpp:
      * page/FrameView.cpp:
      * page/GestureTapHighlighter.cpp:
      * page/PageGroup.cpp:
      * page/PageGroupLoadDeferrer.cpp:
      * page/PageSerializer.cpp:
      * page/PageThrottler.cpp:
      * page/Settings.cpp:
      * page/SpatialNavigation.cpp:
      * page/mac/DragControllerMac.mm:
      * page/mac/PageMac.cpp:
      * page/scrolling/ScrollingCoordinator.cpp:
      * page/scrolling/mac/ScrollingCoordinatorMac.mm:
      * platform/graphics/texmap/coordinated/CompositingCoordinator.cpp:
      * plugins/DOMMimeType.cpp:
      * storage/StorageEventDispatcher.cpp:
      * svg/graphics/SVGImage.cpp:
      * testing/InternalSettings.cpp:
      * testing/Internals.cpp:
      Include MainFrame.h instead of Frame.h as needed.
      
      Source/WebKit/efl:
      
      * WebCoreSupport/AcceleratedCompositingContextEfl.cpp:
      * WebCoreSupport/InspectorClientEfl.cpp:
      * ewk/ewk_view.cpp:
      Include MainFrame.h instead of Frame.h as needed.
      
      Source/WebKit/gtk:
      
      * WebCoreSupport/AcceleratedCompositingContextGL.cpp:
      * WebCoreSupport/ChromeClientGtk.cpp:
      * WebCoreSupport/FrameLoaderClientGtk.cpp:
      * WebCoreSupport/GtkAdjustmentWatcher.cpp:
      * webkit/webkitwebframe.cpp:
      * webkit/webkitwebview.cpp:
      * webkit/webkitviewportattributes.cpp:
      Include MainFrame.h instead of Frame.h as needed.
      
      Source/WebKit/mac:
      
      * WebCoreSupport/WebDragClient.mm:
      * WebCoreSupport/WebInspectorClient.mm:
      * WebCoreSupport/WebPlatformStrategies.mm:
      * WebView/WebFrame.mm:
      * WebView/WebHTMLView.mm:
      * WebView/WebView.mm:
      Include MainFrame.h instead of Frame.h as needed.
      
      Source/WebKit/qt:
      
      * Source/WebKit/qt/WebCoreSupport/InspectorClientQt.cpp:
      * Source/WebKit/qt/WebCoreSupport/ChromeClientQt.cpp:
      * Source/WebKit/qt/WebCoreSupport/QWebFrameAdapter.cpp:
      * Source/WebKit/qt/WebCoreSupport/DumpRenderTreeSupportQt.cpp:
      * Source/WebKit/qt/WebCoreSupport/FrameLoaderClientQt.cpp:
      * Source/WebKit/qt/WebCoreSupport/QWebPageAdapter.cpp:
      Include MainFrame.h instead of Frame.h as needed.
      
      Source/WebKit/win:
      
      * win/WebCoreSupport/WebDragClient.cpp:
      * win/WebCoreSupport/WebContextMenuClient.cpp:
      * win/WebDropSource.cpp:
      * win/WebFrame.cpp:
      * win/WebView.cpp:
      Include MainFrame.h instead of Frame.h as needed.
      
      Source/WebKit2:
      
      * WebProcess/FullScreen/WebFullScreenManager.cpp:
      * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
      * WebProcess/InjectedBundle/InjectedBundle.cpp:
      * WebProcess/Plugins/PluginView.cpp:
      * WebProcess/Storage/StorageAreaMap.cpp:
      * WebProcess/WebCoreSupport/WebChromeClient.cpp:
      * WebProcess/WebCoreSupport/WebContextMenuClient.cpp:
      * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
      * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
      * WebProcess/WebCoreSupport/mac/WebContextMenuClientMac.mm:
      * WebProcess/WebPage/FindController.cpp:
      * WebProcess/WebPage/PageOverlay.cpp:
      * WebProcess/WebPage/WebInspector.cpp:
      * WebProcess/WebPage/WebPage.cpp:
      * WebProcess/WebPage/atk/WebPageAccessibilityObjectAtk.cpp:
      * WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp:
      * WebProcess/WebPage/mac/LayerTreeHostMac.mm:
      * WebProcess/WebPage/mac/RemoteLayerTreeContext.mm:
      * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
      * WebProcess/WebPage/mac/WKAccessibilityWebPageObject.mm:
      * WebProcess/WebPage/mac/WebPageMac.mm:
      Include MainFrame.h instead of Frame.h as needed.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156543 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ade301ac
  3. 25 Sep, 2013 1 commit
    • bfulgham@apple.com's avatar
      ../WebCore: [Windows] Refactor RuntimeEnabledFeatures as a Singleton · 234e0122
      bfulgham@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=121883
      
      Windows is experiencing crashes when client programs (such as
      DumpRenderTree) attemp to change settings on the RuntimeEnabledFeatures
      object. The inlined static accessor methods are not accessing
      memory safely (when compiled by Visual Studio) resulting in
      crashes.
      
      Reviewed by Jer Noble.
      
      * WebCore.exp.in: Remove static accessors for RuntimeEnabledFeatures.
      * bindings/generic/RuntimeEnabledFeatures.cpp: Switch methods to
      conform to a singleton pattern.
      (WebCore::RuntimeEnabledFeatures::RuntimeEnabledFeatures):
      (WebCore::RuntimeEnabledFeatures::sharedRuntimeEnabledFeatures):
      (WebCore::RuntimeEnabledFeatures::fileSystemEnabled):
      (WebCore::RuntimeEnabledFeatures::javaScriptI18NAPIEnabled):
      (WebCore::RuntimeEnabledFeatures::audioEnabled):
      (WebCore::RuntimeEnabledFeatures::htmlMediaElementEnabled):
      (WebCore::RuntimeEnabledFeatures::htmlAudioElementEnabled):
      (WebCore::RuntimeEnabledFeatures::htmlVideoElementEnabled):
      (WebCore::RuntimeEnabledFeatures::htmlSourceElementEnabled):
      (WebCore::RuntimeEnabledFeatures::mediaControllerEnabled):
      (WebCore::RuntimeEnabledFeatures::mediaErrorEnabled):
      (WebCore::RuntimeEnabledFeatures::timeRangesEnabled):
      (WebCore::RuntimeEnabledFeatures::sharedWorkerEnabled):
      (WebCore::RuntimeEnabledFeatures::webSocketEnabled):
      (WebCore::RuntimeEnabledFeatures::openDatabaseEnabled):
      (WebCore::RuntimeEnabledFeatures::openDatabaseSyncEnabled):
      * bindings/generic/RuntimeEnabledFeatures.h: Ditto.
      (WebCore::RuntimeEnabledFeatures::setLocalStorageEnabled):
      (WebCore::RuntimeEnabledFeatures::localStorageEnabled):
      (WebCore::RuntimeEnabledFeatures::setSessionStorageEnabled):
      (WebCore::RuntimeEnabledFeatures::sessionStorageEnabled):
      (WebCore::RuntimeEnabledFeatures::setWebkitNotificationsEnabled):
      (WebCore::RuntimeEnabledFeatures::webkitNotificationsEnabled):
      (WebCore::RuntimeEnabledFeatures::setApplicationCacheEnabled):
      (WebCore::RuntimeEnabledFeatures::applicationCacheEnabled):
      (WebCore::RuntimeEnabledFeatures::setDataTransferItemsEnabled):
      (WebCore::RuntimeEnabledFeatures::dataTransferItemsEnabled):
      (WebCore::RuntimeEnabledFeatures::setGeolocationEnabled):
      (WebCore::RuntimeEnabledFeatures::geolocationEnabled):
      (WebCore::RuntimeEnabledFeatures::setWebkitIndexedDBEnabled):
      (WebCore::RuntimeEnabledFeatures::webkitIndexedDBEnabled):
      (WebCore::RuntimeEnabledFeatures::indexedDBEnabled):
      (WebCore::RuntimeEnabledFeatures::setCanvasPathEnabled):
      (WebCore::RuntimeEnabledFeatures::canvasPathEnabled):
      (WebCore::RuntimeEnabledFeatures::setCSSExclusionsEnabled):
      (WebCore::RuntimeEnabledFeatures::cssExclusionsEnabled):
      (WebCore::RuntimeEnabledFeatures::setCSSShapesEnabled):
      (WebCore::RuntimeEnabledFeatures::cssShapesEnabled):
      (WebCore::RuntimeEnabledFeatures::setCSSRegionsEnabled):
      (WebCore::RuntimeEnabledFeatures::cssRegionsEnabled):
      (WebCore::RuntimeEnabledFeatures::setCSSCompositingEnabled):
      (WebCore::RuntimeEnabledFeatures::cssCompositingEnabled):
      (WebCore::RuntimeEnabledFeatures::setFontLoadEventsEnabled):
      (WebCore::RuntimeEnabledFeatures::fontLoadEventsEnabled):
      (WebCore::RuntimeEnabledFeatures::webkitFullScreenAPIEnabled):
      (WebCore::RuntimeEnabledFeatures::setWebkitFullScreenAPIEnabled):
      (WebCore::RuntimeEnabledFeatures::webkitRequestFullScreenEnabled):
      (WebCore::RuntimeEnabledFeatures::webkitIsFullScreenEnabled):
      (WebCore::RuntimeEnabledFeatures::webkitFullScreenKeyboardInputAllowedEnabled):
      (WebCore::RuntimeEnabledFeatures::webkitCurrentFullScreenElementEnabled):
      (WebCore::RuntimeEnabledFeatures::webkitCancelFullScreenEnabled):
      (WebCore::RuntimeEnabledFeatures::webkitFullscreenEnabledEnabled):
      (WebCore::RuntimeEnabledFeatures::webkitFullscreenElementEnabled):
      (WebCore::RuntimeEnabledFeatures::webkitExitFullscreenEnabled):
      (WebCore::RuntimeEnabledFeatures::webkitRequestFullscreenEnabled):
      (WebCore::RuntimeEnabledFeatures::touchEnabled):
      (WebCore::RuntimeEnabledFeatures::setTouchEnabled):
      (WebCore::RuntimeEnabledFeatures::setDeviceMotionEnabled):
      (WebCore::RuntimeEnabledFeatures::deviceMotionEnabled):
      (WebCore::RuntimeEnabledFeatures::deviceMotionEventEnabled):
      (WebCore::RuntimeEnabledFeatures::ondevicemotionEnabled):
      (WebCore::RuntimeEnabledFeatures::setDeviceOrientationEnabled):
      (WebCore::RuntimeEnabledFeatures::deviceOrientationEnabled):
      (WebCore::RuntimeEnabledFeatures::deviceOrientationEventEnabled):
      (WebCore::RuntimeEnabledFeatures::ondeviceorientationEnabled):
      (WebCore::RuntimeEnabledFeatures::setSpeechInputEnabled):
      (WebCore::RuntimeEnabledFeatures::speechInputEnabled):
      (WebCore::RuntimeEnabledFeatures::webkitSpeechEnabled):
      (WebCore::RuntimeEnabledFeatures::webkitGrammarEnabled):
      (WebCore::RuntimeEnabledFeatures::setScriptedSpeechEnabled):
      (WebCore::RuntimeEnabledFeatures::scriptedSpeechEnabled):
      (WebCore::RuntimeEnabledFeatures::webkitSpeechRecognitionEnabled):
      (WebCore::RuntimeEnabledFeatures::webkitSpeechRecognitionErrorEnabled):
      (WebCore::RuntimeEnabledFeatures::webkitSpeechRecognitionEventEnabled):
      (WebCore::RuntimeEnabledFeatures::webkitSpeechGrammarEnabled):
      (WebCore::RuntimeEnabledFeatures::webkitSpeechGrammarListEnabled):
      (WebCore::RuntimeEnabledFeatures::setFileSystemEnabled):
      (WebCore::RuntimeEnabledFeatures::setJavaScriptI18NAPIEnabled):
      (WebCore::RuntimeEnabledFeatures::mediaStreamEnabled):
      (WebCore::RuntimeEnabledFeatures::setMediaStreamEnabled):
      (WebCore::RuntimeEnabledFeatures::webkitGetUserMediaEnabled):
      (WebCore::RuntimeEnabledFeatures::webkitMediaStreamEnabled):
      (WebCore::RuntimeEnabledFeatures::peerConnectionEnabled):
      (WebCore::RuntimeEnabledFeatures::setPeerConnectionEnabled):
      (WebCore::RuntimeEnabledFeatures::webkitRTCPeerConnectionEnabled):
      (WebCore::RuntimeEnabledFeatures::setLegacyCSSVendorPrefixesEnabled):
      (WebCore::RuntimeEnabledFeatures::legacyCSSVendorPrefixesEnabled):
      (WebCore::RuntimeEnabledFeatures::setWebkitGetGamepadsEnabled):
      (WebCore::RuntimeEnabledFeatures::webkitGetGamepadsEnabled):
      (WebCore::RuntimeEnabledFeatures::quotaEnabled):
      (WebCore::RuntimeEnabledFeatures::setQuotaEnabled):
      (WebCore::RuntimeEnabledFeatures::mediaSourceEnabled):
      (WebCore::RuntimeEnabledFeatures::setMediaSourceEnabled):
      (WebCore::RuntimeEnabledFeatures::encryptedMediaEnabled):
      (WebCore::RuntimeEnabledFeatures::setEncryptedMediaEnabled):
      (WebCore::RuntimeEnabledFeatures::webkitVideoTrackEnabled):
      (WebCore::RuntimeEnabledFeatures::setWebkitVideoTrackEnabled):
      (WebCore::RuntimeEnabledFeatures::shadowDOMEnabled):
      (WebCore::RuntimeEnabledFeatures::setShadowDOMEnabled):
      (WebCore::RuntimeEnabledFeatures::authorShadowDOMForAnyElementEnabled):
      (WebCore::RuntimeEnabledFeatures::setAuthorShadowDOMForAnyElementEnabled):
      (WebCore::RuntimeEnabledFeatures::customDOMElementsEnabled):
      (WebCore::RuntimeEnabledFeatures::setCustomDOMElements):
      (WebCore::RuntimeEnabledFeatures::styleScopedEnabled):
      (WebCore::RuntimeEnabledFeatures::setStyleScopedEnabled):
      (WebCore::RuntimeEnabledFeatures::inputTypeDateEnabled):
      (WebCore::RuntimeEnabledFeatures::setInputTypeDateEnabled):
      (WebCore::RuntimeEnabledFeatures::inputTypeDateTimeEnabled):
      (WebCore::RuntimeEnabledFeatures::setInputTypeDateTimeEnabled):
      (WebCore::RuntimeEnabledFeatures::inputTypeDateTimeLocalEnabled):
      (WebCore::RuntimeEnabledFeatures::setInputTypeDateTimeLocalEnabled):
      (WebCore::RuntimeEnabledFeatures::inputTypeMonthEnabled):
      (WebCore::RuntimeEnabledFeatures::setInputTypeMonthEnabled):
      (WebCore::RuntimeEnabledFeatures::inputTypeTimeEnabled):
      (WebCore::RuntimeEnabledFeatures::setInputTypeTimeEnabled):
      (WebCore::RuntimeEnabledFeatures::inputTypeWeekEnabled):
      (WebCore::RuntimeEnabledFeatures::setInputTypeWeekEnabled):
      (WebCore::RuntimeEnabledFeatures::experimentalContentSecurityPolicyFeaturesEnabled):
      (WebCore::RuntimeEnabledFeatures::setExperimentalContentSecurityPolicyFeaturesEnabled):
      (WebCore::RuntimeEnabledFeatures::seamlessIFramesEnabled):
      (WebCore::RuntimeEnabledFeatures::setSeamlessIFramesEnabled):
      (WebCore::RuntimeEnabledFeatures::langAttributeAwareFormControlUIEnabled):
      (WebCore::RuntimeEnabledFeatures::setLangAttributeAwareFormControlUIEnabled):
      * bindings/js/JSCSSStyleDeclarationCustom.cpp:
      (WebCore::getCSSPropertyNamePrefix): Use singleton accessors.
      (WebCore::cssPropertyIDForJSCSSPropertyName): Ditto.
      * bindings/scripts/CodeGeneratorJS.pm:
      (GetRuntimeEnableFunctionName): Generate singleton version of
      accessors.
      * css/CSSFontFace.cpp:
      (WebCore::CSSFontFace::fontLoaded): Use singleton accessors.
      (WebCore::CSSFontFace::getFontData): Ditto.
      * css/CSSFontSelector.cpp:
      (WebCore::CSSFontSelector::addFontFaceRule): Ditto.
      * css/CSSParser.cpp:
      (WebCore::isSimpleLengthPropertyID): Ditto.
      (WebCore::isValidKeywordPropertyAndValue):
      (WebCore::CSSParser::parseValue):
      (WebCore::CSSParser::rewriteSpecifiers):
      * css/CSSSegmentedFontFace.cpp:
      (WebCore::CSSSegmentedFontFace::fontLoaded): Ditto.
      * css/StyleResolver.h:
      (WebCore::StyleResolver::ensureScopeResolver): Ditto.
      * dom/Document.cpp:
      (WebCore::Document::cssRegionsEnabled): Ditto.
      (WebCore::Document::cssCompositingEnabled):
      (WebCore::Document::shouldDisplaySeamlesslyWithParent):
      (WebCore::Document::getCachedLocale):
      * dom/Element.cpp:
      (WebCore::Element::createShadowRoot): Ditto.
      * dom/Position.cpp:
      (WebCore::Position::Position): Ditto.
      (WebCore::Position::findParent):
      * dom/TreeScope.cpp:
      (WebCore::TreeScope::getSelection): Ditto.
      * dom/make_names.pl:
      (printConstructorInterior): Generate singleton version of accessors.
      (printWrapperFunctions): Ditto.
      * html/HTMLInputElement.cpp:
      (WebCore::HTMLInputElement::isSpeechEnabled): Use singleton accessors.
      (WebCore::HTMLInputElement::setupDateTimeChooserParameters): Ditto.
      * html/HTMLMediaElement.cpp:
      (WebCore::HTMLMediaElement::finishParsingChildren): Ditto.
      (WebCore::HTMLMediaElement::scheduleDelayedAction):
      (WebCore::HTMLMediaElement::loadTimerFired):
      (WebCore::HTMLMediaElement::prepareForLoad):
      (WebCore::HTMLMediaElement::loadInternal):
      (WebCore::HTMLMediaElement::setReadyState):
      (WebCore::HTMLMediaElement::playbackProgressTimerFired):
      (WebCore::HTMLMediaElement::mediaPlayerDidAddAudioTrack):
      (WebCore::HTMLMediaElement::mediaPlayerDidAddTextTrack):
      (WebCore::HTMLMediaElement::mediaPlayerDidAddVideoTrack):
      (WebCore::HTMLMediaElement::addAudioTrack):
      (WebCore::HTMLMediaElement::addTextTrack):
      (WebCore::HTMLMediaElement::addVideoTrack):
      (WebCore::HTMLMediaElement::removeAudioTrack):
      (WebCore::HTMLMediaElement::removeTextTrack):
      (WebCore::HTMLMediaElement::removeVideoTrack):
      (WebCore::HTMLMediaElement::audioTracks):
      (WebCore::HTMLMediaElement::textTracks):
      (WebCore::HTMLMediaElement::videoTracks):
      (WebCore::HTMLMediaElement::didAddTextTrack):
      (WebCore::HTMLMediaElement::didRemoveTextTrack):
      (WebCore::HTMLMediaElement::mediaPlayerTimeChanged):
      (WebCore::HTMLMediaElement::userCancelledLoad):
      (WebCore::HTMLMediaElement::hasClosedCaptions):
      (WebCore::HTMLMediaElement::setClosedCaptionsVisible):
      (WebCore::HTMLMediaElement::configureTextTrackDisplay):
      * html/HTMLStyleElement.cpp:
      (WebCore::HTMLStyleElement::parseAttribute): Ditto.
      (WebCore::HTMLStyleElement::scopedAttributeChanged):
      (WebCore::HTMLStyleElement::unregisterWithScopingNode):
      (WebCore::HTMLStyleElement::scoped):
      * html/HTMLTrackElement.cpp:
      (WebCore::HTMLTrackElement::parseAttribute): Ditto.
      (WebCore::HTMLTrackElement::scheduleLoad):
      (WebCore::HTMLTrackElement::canLoadUrl):
      * html/InputType.cpp:
      (WebCore::createInputTypeFactoryMap): Ditto.
      * page/ContentSecurityPolicy.cpp:
      (WebCore::ContentSecurityPolicy::experimentalFeaturesEnabled): Ditto.
      * page/DOMWindow.cpp:
      (WebCore::DOMWindow::addEventListener): Ditto.
      * page/FrameView.cpp:
      (WebCore::FrameView::performPostLayoutTasks): Ditto.
      * testing/InternalSettings.cpp:
      (WebCore::InternalSettings::Backup::Backup): Ditto.
      (WebCore::InternalSettings::Backup::restoreTo):
      (WebCore::InternalSettings::setShadowDOMEnabled):
      (WebCore::InternalSettings::setAuthorShadowDOMForAnyElementEnabled):
      (WebCore::InternalSettings::setStyleScopedEnabled):
      (WebCore::InternalSettings::setCSSExclusionsEnabled):
      (WebCore::InternalSettings::setCSSShapesEnabled):
      (WebCore::InternalSettings::setLangAttributeAwareFormControlUIEnabled):
      
      ../WebKit: [Windows] Refactor RuntimeEnabledFeatures as a Singleton 
      https://bugs.webkit.org/show_bug.cgi?id=121883
      
      Reviewed by Jer Noble.
      
      * WebKit.vcxproj/WebKitExportGenerator/WebKitExports.def.in:
      Expose singleton accessor for DLL clients.
      
      ../WebKit/blackberry: Refactor RuntimeEnabledFeatures as a Singleton.
      https://bugs.webkit.org/show_bug.cgi?id=121883.
      
      Reviewed by Jer Noble.
      
      * WebKitSupport/DumpRenderTreeSupport.cpp:
      (DumpRenderTreeSupport::setStyleScopedEnabled): use
      singleton accessor.
      
      ../WebKit/efl: Refactor RuntimeEnabledFeatures as a Singleton.
      https://bugs.webkit.org/show_bug.cgi?id=121883.
      
      Reviewed by Jer Noble.
      
      * WebCoreSupport/DumpRenderTreeSupportEfl.cpp:
      (DumpRenderTreeSupportEfl::setCSSRegionsEnabled): Use singleton.
      (DumpRenderTreeSupportEfl::setSeamlessIFramesEnabled): Ditto.
      * ewk/ewk_settings.cpp:
      (ewk_settings_shadow_dom_enable_get): Ditto.
      (ewk_settings_shadow_dom_enable_set):
      * ewk/ewk_view.cpp:
      (_ewk_view_priv_new): Ditto.
      
      ../WebKit/gtk: Refactor RuntimeEnabledFeatures as a Singleton.
      https://bugs.webkit.org/show_bug.cgi?id=121883.
      
      Reviewed by Jer Noble.
      
      * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
      (DumpRenderTreeSupportGtk::setCSSRegionsEnabled): Use singleton.
      (DumpRenderTreeSupportGtk::setExperimentalContentSecurityPolicyFeaturesEnabled):
      (DumpRenderTreeSupportGtk::setSeamlessIFramesEnabled):
      (DumpRenderTreeSupportGtk::setShadowDOMEnabled):
      (DumpRenderTreeSupportGtk::setStyleScopedEnabled):
      * webkit/webkitwebview.cpp:
      (webkit_web_view_update_settings): Ditto.
      
      ../WebKit/mac: Refactor RuntimeEnabledFeatures as a Singleton.
      https://bugs.webkit.org/show_bug.cgi?id=121883.
      
      Reviewed by Jer Noble.
      
      * WebView/WebView.mm:
      (-[WebView _preferencesChanged:]): Use singleton accessor.
      (-[WebView _setDashboardBehavior:to:]): Ditto.
      
      ../WebKit/qt: Refactor RuntimeEnabledFeatures as a Singleton.
      https://bugs.webkit.org/show_bug.cgi?id=121883.
      
      Reviewed by Jer Noble.
      
      * Api/qwebsettings.cpp:
      (QWebSettingsPrivate::apply): Use singleton accessor.
      * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
      (DumpRenderTreeSupportQt::setSeamlessIFramesEnabled): Ditto.
      
      ../WebKit/win: [Windows] Refactor RuntimeEnabledFeatures as a Singleton.
      https://bugs.webkit.org/show_bug.cgi?id=121883
      
      Reviewed by Jer Noble.
      
      * WebView.cpp:
      (WebView::notifyPreferencesChanged): Use singleton accessor
      
      ../WebKit2: Refactor RuntimeEnabledFeatures as a Singleton.
      https://bugs.webkit.org/show_bug.cgi?id=121883.
      
      Reviewed by Jer Noble.
      
      * WebProcess/InjectedBundle/InjectedBundle.cpp:
      (WebKit::InjectedBundle::overrideBoolPreferenceForTestRunner): Use
      Singleton accessor.
      (WebKit::InjectedBundle::setShadowDOMEnabled):
      (WebKit::InjectedBundle::setCSSRegionsEnabled):
      (WebKit::InjectedBundle::setCSSCompositingEnabled):
      (WebKit::InjectedBundle::setSeamlessIFramesEnabled):
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::updatePreferences): Ditto.
      * WebProcess/qt/WebProcessQt.cpp:
      (WebKit::WebProcess::platformInitializeWebProcess): Ditto.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156424 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      234e0122
  4. 24 Sep, 2013 2 commits
  5. 23 Sep, 2013 1 commit
  6. 20 Sep, 2013 1 commit
    • mario@webkit.org's avatar
      [ATK] Do not expose aria-help in ATK based platforms · 74ae3467
      mario@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=121675
      
      Patch by Mario Sanchez Prada <mario.prada@samsung.com> on 2013-09-20
      Reviewed by Chris Fleizach.
      
      Source/WebCore:
      
      Stop exposing the value for the 'aria-help' attribute as an
      AtkObject attribute, based in AccessibilityObject::helpText().
      
      * accessibility/atk/WebKitAccessibleWrapperAtk.cpp:
      (webkitAccessibleGetAttributes): Remove the mapping.
      
      Source/WebKit/efl:
      
      Removed accessibilityHelpText() helper method from
      DumpRenderSupportEfl's API, since it's not longer needed.
      
      * WebCoreSupport/DumpRenderTreeSupportEfl.cpp: Removed method.
      * WebCoreSupport/DumpRenderTreeSupportEfl.h: Ditto.
      
      Source/WebKit/gtk:
      
      Removed accessibilityHelpText() helper method from
      DumpRenderSupportGtk's API, since it's not longer needed.
      
      * WebCoreSupport/DumpRenderTreeSupportGtk.cpp: Removed method.
      * WebCoreSupport/DumpRenderTreeSupportGtk.h: Ditto.
      
      Tools:
      
      Remove the implementations for AccessibilityUIElement::helpText()
      from DRT and WKTR for GTK and EFL, since they are based on the
      AccessibilityObject::helpText() method and the 'aria-help'
      attributes, which is wrong since they should not depend on that
      but in ATK specific API (see also http://webkit.org/b/121684).
      
      * DumpRenderTree/atk/AccessibilityUIElementAtk.cpp:
      (AccessibilityUIElement::helpText): Added a new and empty
      implementation, now that we are no longer using this in ATK.
      * DumpRenderTree/efl/AccessibilityUIElementEfl.cpp: Removed file
      as the only function provided here was helpText().
      * DumpRenderTree/gtk/AccessibilityUIElementGtk.cpp: Ditto.
      * DumpRenderTree/efl/CMakeLists.txt: AccessibilityUIElementEfl.cpp
      removed from the list of sources to compile.
      * GNUmakefile.am: Likewise, but for AccessibilityUIElementGtk.cpp.
      * WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp:
      (WTR::AccessibilityUIElement::helpText): Replaced old implementation
      based in DumpRenderTreeSupportGtk with an empty one.
      
      LayoutTests:
      
      Moved test based in helpText() into the Mac directory, and update
      expectations for platforms as needed.
      
      * platform/mac/accessibility/aria-help-expected.txt: Renamed from LayoutTests/accessibility/aria-help-expected.txt.
      * platform/mac/accessibility/aria-help.html: Renamed from LayoutTests/accessibility/aria-help.html.
      * platform/gtk-wk2/TestExpectations: Removed failure expectation
      for aria-help, now moved to Mac, and for aria-describedby-on-input,
      which is now moved to the generic TestExpectations file for GTK.
      * platform/gtk/TestExpectations: Added aria-describedby-on-input,
      linking it to the newly filed bug 121684.
      * platform/gtk-wk2/TestExpectations: Removed failure expectation.
      * platform/win/TestExpectations: Removed failure expectation.
      * platform/wincairo/TestExpectations: Ditto.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156203 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      74ae3467
  7. 17 Sep, 2013 1 commit
    • enrica@apple.com's avatar
      Remove unused function didSetSelectionTypesForPasteboard from EditorClient. · 70fbd1e2
      enrica@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=121464
      
      Reviewed by Darin Adler.
      
      Source/WebCore: 
      
      This method was only implemented in WebEditorClient.mm for Mac where it was
      calling a private delegate that is no longer in use.
      This patch removes it for all the platforms.
      I've also removed setTypes and writeAfterSettingTypes from the implementation
      of the Pasteboard class for Mac.
      
      * editing/mac/EditorMac.mm:
      (WebCore::Editor::writeSelectionToPasteboard): Now calls write instead of
      setTypes and writeAfterSettingTypes.
      * loader/EmptyClients.h: Removed didSetSelectionTypesForPasteboard.
      * page/EditorClient.h: Ditto.
      * platform/Pasteboard.h: Removed setTypes and writeAfterSettingTypes.
      * platform/ios/PasteboardIOS.mm:
      (WebCore::Pasteboard::writeSelection): Removed call to didSetSelectionTypesForPasteboard.
      * platform/mac/PasteboardMac.mm:
      (WebCore::Pasteboard::write): Added to replace setTypes and writeAfterSettingTypes.
      
      Source/WebKit/efl: 
      
      * WebCoreSupport/EditorClientEfl.cpp:
      * WebCoreSupport/EditorClientEfl.h:
      
      Source/WebKit/gtk: 
      
      * WebCoreSupport/EditorClientGtk.cpp:
      * WebCoreSupport/EditorClientGtk.h:
      
      Source/WebKit/mac: 
      
      This method was only implemented in WebEditorClient.mm for Mac where it was
      calling a private delegate that is no longer in use.
      
      * DefaultDelegates/WebDefaultEditingDelegate.m:
      * WebCoreSupport/WebEditorClient.h:
      * WebCoreSupport/WebEditorClient.mm:
      * WebView/WebEditingDelegatePrivate.h:
      
      Source/WebKit/qt: 
      
      * WebCoreSupport/EditorClientQt.cpp:
      * WebCoreSupport/EditorClientQt.h:
      
      Source/WebKit/win: 
      
      * WebCoreSupport/WebEditorClient.cpp:
      * WebCoreSupport/WebEditorClient.h:
      
      Source/WebKit/wince: 
      
      * WebCoreSupport/EditorClientWinCE.cpp:
      * WebCoreSupport/EditorClientWinCE.h:
      
      Source/WebKit2: 
      
      * WebProcess/WebCoreSupport/WebEditorClient.cpp:
      * WebProcess/WebCoreSupport/WebEditorClient.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155971 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      70fbd1e2
  8. 16 Sep, 2013 1 commit
    • kov@webkit.org's avatar
      [GTK] Make symbol export filter more strict, and disable for dev/test builds · b9513f7a
      kov@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=120586
      
      Reviewed by Martin Robinson.
      
      .:
      
      * GNUmakefile.am: only include test-related automake files when developer
      mode is on.
      * Source/autotools/ReadCommandLineArguments.m4: add --enable-developer-mode,
      defaults to no, and to yes for debug builds.
      * Source/autotools/SetupAutomake.m4: add ENABLE_DEVELOPER_MODE conditional.
      * Source/autotools/symbols.filter: make the exported symbols list much shorter,
      covering only the public ABI and a few symbols required by WebKit2 processes.
      
      Source/WebKit/gtk:
      
      * GNUmakefile.am: only use the version script when in developer mode..
      
      Source/WebKit2:
      
      * GNUmakefile.am: only use the version script if developer mode is disabled.
      
      Tools:
      
      * GNUmakefile.am: moved GtkLauncher and documentation builds to their own
      makefiles, so they can be included unconditionally.
      * GtkLauncher/GNUmakefile.am: added.
      * Scripts/webkitdirs.pm:
      (runAutogenForAutotoolsProjectIfNecessary): always pass --enable-developer-mode
      to configure, since we consider builds done through build-webkit to be development
      and test builds.
      * gtk/GNUmakefile.am: added.
      * gtk/common.py: do not use the Scripts directory as a reference to the top path;
      it's not necessary and it will not work now that the Scripts directory is not
      shipped in the tarball.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155918 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b9513f7a
  9. 14 Sep, 2013 1 commit
    • berto@igalia.com's avatar
      [GTK] WebKitGTK+ is linking against libxslt in too many places · 67459d83
      berto@igalia.com authored
      https://bugs.webkit.org/show_bug.cgi?id=121356
      
      Reviewed by Martin Robinson.
      
      Source/WebCore:
      
      Don't use LIBXSLT_CFLAGS when compiling libWebCorePlatform and
      libWebCoreGtk, no source files use libxslt there.
      
      * GNUmakefile.am:
      
      Source/WebKit/gtk:
      
      Don't use LIBXSLT_CFLAGS when compiling libwebkitgtk, no source
      files use libxslt there.
      
      The webkit tests don't use libxslt, so we shouldn't link against
      it.
      
      * GNUmakefile.am:
      
      Source/WebKit2:
      
      Don't use LIBXSLT_CFLAGS when compiling libWebCoreGtk2, no source
      files use libxslt there.
      
      * GNUmakefile.am:
      
      Tools:
      
      TestWebCore, WebKitTestRunner and MiniBrowser don't use libxslt,
      so we don't need to link against it.
      
      * MiniBrowser/gtk/GNUmakefile.am:
      * TestWebKitAPI/GNUmakefile.am:
      * WebKitTestRunner/GNUmakefile.am:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155768 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      67459d83
  10. 13 Sep, 2013 2 commits
    • kov@webkit.org's avatar
      [GTK] Move to the new web inspector · 86b826a5
      kov@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=120647
      
      Patch by Gustavo Noronha Silva <gustavo.noronha@collabora.com> on 2013-09-13
      Reviewed by Carlos Garcia Campos.
      
      .:
      
      * GNUmakefile.am: include the new WebInspectorUI GNUmakefile.am.
      
      Source/WebCore:
      
      No tests for the new inspector UI as of yet.
      
      * GNUmakefile.am: no longer install the deprecated inspector UI files.
      * WebCore.exp.in: add SchemeRegistry symbol that is now used.
      
      Source/WebInspectorUI:
      
      * GNUmakefile.am: Added. Generate the GResource source and link it into libWebCore.
      
      Source/WebKit/gtk:
      
      * WebCoreSupport/InspectorClientGtk.cpp:
      (WebKit::InspectorClient::openInspectorFrontend): update paths to the internal resource ones.
      (WebKit::InspectorClient::inspectorFilesPath): ditto.
      * tests/testwebinspector.c:
      (consoleMessageCallback): the new inspector currently emits an error when loading, so add it to
      the list of messages which are not considered failures.
      * webkit/webkitglobals.cpp:
      (webkitInit): register resource as a local scheme; currently used by the inspector.
      
      Source/WebKit2:
      
      * GNUmakefile.am: bundle the remote inspector page list HTML into libwebkit2gtk as a GResource.
      * UIProcess/API/gtk/tests/GNUmakefile.am: no need to set WEBKIT_INSPECTOR_PATH anymore.
      * UIProcess/API/gtk/tests/InspectorTestServer.cpp:
      (main): ditto.
      * UIProcess/API/gtk/tests/TestInspector.cpp:
      (beforeAll): ditto.
      * UIProcess/API/gtk/tests/TestInspectorServer.cpp:
      (testInspectorServerPageList): update paths to the internal resource ones.
      * UIProcess/InspectorServer/WebInspectorServer.h:
      * UIProcess/InspectorServer/gtk/WebInspectorServerGtk.cpp:
      (WebKit::WebInspectorServer::platformResourceForPath): ditto.
      (WebKit::WebInspectorServer::buildPageList): ditto.
      * UIProcess/WebInspectorProxy.cpp:
      (WebKit::isMainInspectorPage): factor out checking for the inspector main resource, to make
      the code more readable.
      (WebKit::decidePolicyForNavigationAction): use SchemeRegistry to figure out whether the
      request is for a local resource instead of KURL::isLocalFile() to allow using schemes
      other than file:// for the inspector resources.
      * UIProcess/gtk/WebInspectorProxyGtk.cpp:
      (WebKit::WebInspectorProxy::inspectorPageURL): use the new internal resource URL; since it's now
      static we no longer need to generate and store the string.
      (WebKit::WebInspectorProxy::inspectorBaseURL): ditto.
      * WebProcess/WebPage/gtk/WebInspectorGtk.cpp:
      (WebKit::WebInspector::localizedStringsURL): use the new internal resource URL.
      * UIProcess/gtk/WebContextGtk.cpp:
      (WebKit::WebContext::platformInitializeWebProcess): register resource as a local scheme.
      
      Tools:
      
      * GtkLauncher/main.c:
      (main): no longer set WEBKIT_INSPECTOR_PATH.
      * MiniBrowser/gtk/main.c:
      (main): ditto.
      * Scripts/old-run-webkit-tests:
      (openDumpTool): ditto.
      * Scripts/run-gtk-tests: ditto.
      * Scripts/webkitpy/port/gtk.py:
      (GtkPort.setup_environ_for_server): ditto.
      
      LayoutTests:
      
      * platform/gtk/TestExpectations: the new inspector UI does not support the current
      inspector testing harness so keep it skipped, a new one will eventually be landed.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155714 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      86b826a5
    • berto@igalia.com's avatar
      download-requested arg should be WEBKIT_TYPE_DOWNLOAD not G_TYPE_OBJECT · c27fca1e
      berto@igalia.com authored
      https://bugs.webkit.org/show_bug.cgi?id=57634
      
      Reviewed by Darin Adler.
      
      * webkit/webkitwebview.cpp:
      (webkit_web_view_class_init):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155677 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c27fca1e
  11. 12 Sep, 2013 1 commit
    • zandobersek@gmail.com's avatar
      [GTK][WK1] Block accelerated compositing under non-X11 displays · 1b5151c7
      zandobersek@gmail.com authored
      https://bugs.webkit.org/show_bug.cgi?id=121165
      
      Reviewed by Martin Robinson.
      
      This is analogous to the changes in r154728 and r154729 that enforce disabling accelerated compositing
      under Wayland displays and made the RedirectedXCompositeWindow use in WebKit2 limited only to the X11 displays.
      
      * WebCoreSupport/AcceleratedCompositingContextGL.cpp: Remove two unnecessary header includes that also
      introduce symbols that conflict with the symbols defined in the X headers. Include the <gdk/gdkx.h> header
      if the GTK+ dependency can provide it.
      (WebKit::AcceleratedCompositingContext::initialize): Only set up the RedirectedXCompositeWindow instance
      if running under an X11 display.
      (WebKit::AcceleratedCompositingContext::renderLayersToWindow): The removal of the unnecessary header
      inclusions also removed the std::max() injection into the global scope. Using std::max directly instead.
      (WebKit::AcceleratedCompositingContext::scheduleLayerFlush): Ditto.
      * webkit/webkitwebview.cpp:
      (updateAcceleratedCompositingSetting): A helper function that ensures the accelerated compositing feature
      stays disabled under Wayland displays. It also prints out a warning message the first time the user tries
      to enable accelerated compositing under Wayland displays, telling that the feature is not supported and
      will remain disabled.
      (webkit_web_view_update_settings): Call updateAcceleratedCompositingSetting() to enable the feature if possible.
      (webkit_web_view_settings_notify): Ditto.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155619 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1b5151c7
  12. 11 Sep, 2013 3 commits
    • mario@webkit.org's avatar
      [GTK] Remove Gail dependency from build system for GTK3 · 888b8c1d
      mario@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=119673
      
      Reviewed by Gustavo Noronha Silva.
      
      .:
      
      * Source/autotools/FindDependencies.m4: Don't look for GAIL at all.
      * Source/autotools/Versions.m4: Removed any reference to GAIL.
      * Source/cmake/FindGAIL3.cmake: Removed.
      * Source/cmake/OptionsGTK.cmake: Don't look for the GAIL package.
      
      Source/WebCore:
      
      * GNUmakefile.am: Removed GAIL_CFLAGS.
      * PlatformGTK.cmake: Removed GAIL3_INCLUDE_DIRS and GAIL3_LIBRARIES.
      
      Source/WebKit/gtk:
      
      * GNUmakefile.am: Removed GAIL_CFLAGS and GAIL_LIBS.
      
      Source/WebKit2:
      
      * GNUmakefile.am: Removed GAIL_LIBS.
      
      Tools:
      
      * EWSTools/ubuntu-ews-packages: Removed libgail-dev package.
      * Scripts/webkitpy/port/gtk.py:
      (GtkPort.setup_environ_for_server): Do not load the 'gail' module anymore.
      * TestWebKitAPI/GNUmakefile.am: Removed GAIL_LIBS.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155534 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      888b8c1d
    • mario@webkit.org's avatar
      [GTK] Reimplement atk_text_get_text_*_offset for LINE boundaries · dc76999d
      mario@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=114872
      
      Reviewed by Gustavo Noronha Silva.
      
      Source/WebCore:
      
      Re-implement these functions without using GailTextUtil nor Pango.
      
      * accessibility/atk/WebKitAccessibleInterfaceText.cpp:
      (lineAtPositionForAtkBoundary): New helper function to find the
      line at a given position considering values of AtkTextBoundary.
      (webkitAccessibleTextLineForBoundary): New function,
      implementing atk_text_get_text_*_offset for LINE.
      (webkitAccessibleTextGetTextForOffset): Replace usage of Gail for
      LINE boundaries with webkitAccessibleTextLineForBoundary().
      
      Source/WebKit/gtk:
      
      Fixed wrong unit test.
      
      * tests/testatk.c:
      (testWebkitAtkGetTextAtOffsetWithPreformattedText): This test was
      reporting a trailing '\n' for some reason for a <pre> block, which
      is plainly wrong since, in order to return that, there should be
      at least a trailing empty space after that and before the </pre>
      closing tag. This is fixed now.
      (testWebkitAtkGetTextAtOffsetWithWrappedLines): Uncommented tests
      that were previously not passing due to a bug in GailTextUtil.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155516 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      dc76999d
    • gyuyoung.kim@samsung.com's avatar
      Generate more HTML type checks and casting · 29a2662e
      gyuyoung.kim@samsung.com authored
      https://bugs.webkit.org/show_bug.cgi?id=121080
      
      Reviewed by Andreas Kling.
      
      Clean-up remained functions of HTML elements using auto-generated isFooElement(),
      and replace toFooElement() with ELEMENT_TYPE_CASTS() macro.
      
      Besides this patch clean-up unnecessary checks which are being supported by
      auto-generated isFooElement().
      
      Source/WebCore:
      
      No new tests, no behavior change.
      
      * accessibility/atk/AXObjectCacheAtk.cpp:
      (WebCore::notifyChildrenSelectionChange):
      * html/HTMLFrameElementBase.h:
      (WebCore::toHTMLFrameElementBase):
      * html/HTMLIFrameElement.h:
      * html/HTMLImageLoader.cpp:
      (WebCore::HTMLImageLoader::dispatchLoadEvent):
      (WebCore::HTMLImageLoader::notifyFinished):
      * html/HTMLObjectElemenaeh:
      * html/HTMLOptionsCollection.cpp:
      (WebCore::HTMLOptionsCollection::HTMLOptionsCollection):
      * html/HTMLSelectElement.h:
      * html/HTMLTagNames.in:
      * html/HTMLVideoElement.h:
      * html/shadow/HTMLContentElement.h:
      * loader/ImageLoader.cpp:
      (WebCore::ImageLoader::dispatchPendingBeforeLoadEvent):
      * loader/archive/cf/LegacyWebArchive.cpp:
      (WebCore::LegacyWebArchive::create):
      * page/PageSerializer.cpp:
      (WebCore::frameOwnerURLAttributeName):
      * page/SpatialNavigation.cpp:
      (WebCore::canScrollInDirection):
      * platform/gtk/PasteboardGtk.cpp:
      (WebCore::getURLForImageNode):
      * plugins/IFrameShimSupport.cpp:
      (WebCore::getPluginOcclusions):
      * rendering/HitTestResult.cpp:
      (WebCore::HitTestResult::mediaSupportsFullscreen):
      (WebCore::HitTestResult::mediaElement):
      (WebCore::HitTestResult::enterFullscreenForVideo):
      (WebCore::HitTestResult::mediaIsVideo):
      
      * rendering/RenderLayerCompositor.cpp:
      (WebCore::RenderLayerCompositor::requiresCompositingForVideo):
      * rendering/RenderListBox.cpp:
      (WebCore::RenderListBox::RenderListBox):
      * rendering/RenderMenuList.cpp:
      (WebCore::RenderMenuList::RenderMenuList):
      * testing/Internals.cpp:
      (WebCore::Internals::isSelectPopupVisible):
      
      Source/WebKit/blackberry:
      
      * Api/WebPage.cpp:
      (BlackBerry::WebKit::WebPagePrivate::adjustRectOffsetForFrameOffset):
      (BlackBerry::WebKit::WebPage::notifyFullScreenVideoExited):
      (BlackBerry::WebKit::WebPagePrivate::enterFullscreenForNode):
      (BlackBerry::WebKit::WebPagePrivate::exitFullscreenForNode):
      (BlackBerry::WebKit::WebPagePrivate::enterFullScreenForElement):
      (BlackBerry::WebKit::WebPagePrivate::exitFullScreenForElement):
      * WebCoreSupport/ChromeClientBlackBerry.cpp:
      (WebCore::ChromeClientBlackBerry::supportsFullscreenForNode):
      * WebCoreSupport/EditorClientBlackBerry.cpp:
      (WebCore::EditorClientBlackBerry::shouldChangeSelectedRange):
      * WebKitSupport/DOMSupport.cpp:
      (BlackBerry::WebKit::DOMSupport::isElementTypePlugin):
      * WebKitSupport/InputHandler.cpp:
      (BlackBerry::WebKit::InputHandler::willOpenPopupForNode):
      (BlackBerry::WebKit::InputHandler::didNodeOpenPopup):
      * WebKitSupport/SelectionHandler.cpp:
      (BlackBerry::WebKit::SelectionHandler::selectionPositionChanged):
      
      Source/WebKit/gtk:
      
      No new tests, no behavior change.
      
      * WebCoreSupport/ChromeClientGtk.cpp:
      (WebKit::ChromeClient::supportsFullscreenForNode):
      
      Source/WebKit/mac:
      
      No new tests, no behavior change.
      
      * Plugins/WebPluginController.mm:
      * WebCoreSupport/WebChromeClient.mm:
      (WebChromeClient::supportsFullscreenForNode):
      * WebView/WebView.mm:
      (-[WebView _enterFullscreenForNode:WebCore::]):
      
      Source/WebKit/qt:
      
      * WebCoreSupport/ChromeClientQt.cpp:
      
      Source/WebKit/win:
      
      * WebCoreSupport/WebChromeClient.cpp:
      (WebChromeClient::supportsFullscreenForNode):
      * WebView.cpp:
      (WebView::enterFullscreenForNode):
      
      Source/WebKit2:
      
      * WebProcess/WebPage/WebFrame.cpp:
      (WebKit::WebFrame::containsAnyFormControls):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155507 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      29a2662e
  13. 04 Sep, 2013 1 commit
    • zandobersek@gmail.com's avatar
      [GTK] Add support for the Wayland build target · 500ca7b6
      zandobersek@gmail.com authored
      https://bugs.webkit.org/show_bug.cgi?id=120627
      
      Reviewed by Gustavo Noronha Silva.
      
      .: 
      
      Add support for building the GTK port with Wayland as the target. The Wayland target can be the sole target
      that's enabled, or it can be enabled in parallel with the X11 target.
      
      Each of those two targets, when enabled, checks for the corresponding GTK+ windowing dependency being present.
      In the case of only the Wayland target being enabled, the accelerated compositing feature is disabled at
      build-time as the feature is not yet supported under the Wayland display protocol. X11-based plugin support is
      also disabled under that configuration, even if the WebKitPluginProcess is still built but is left non-operational.
      GLX support is also disabled if not building the X11 target.
      
      The Wayland target can be enabled through using the --with-target configuration option that now accepts two
      additional values:
      - 'wayland' - only enables the Wayland target,
      - 'x11,wayland' - enables the X11 and Wayland targets that are to be built in parallel.
      
      This makes it possible to build the GTK port of WebKit with the Wayland target, relying solely on the GTK+
      dependency that only has the Wayland backend enabled, and removes linking against any X11-related library.
      Note that at the moment there seem to be other dependencies that still link to X11-related libraries.
      Complete functionality is not yet guaranteed, but is of course the goal.
      
      * Source/autotools/FindDependencies.m4: Store the version of the basic GTK+ dependency that was found.
      This is later used to check that the GTK+ X11 and GTK+ Wayland dependencies are of the same version. The
      X11-specific dependencies are grouped into one section (apart from the XComposite and XDamage dependencies),
      also checking for the GTK+ X11 dependency. If the X11 target is not enabled, the GLX dependency is disabled.
      Additionally check for the GTK+ Wayland dependency if the Wayland target is enabled.
      We only check for the presence and correct version of the GTK+ X11 and Wayland dependencies, if necessary.
      Check for the XComposite and XDamage dependencies if the X11 target is enabled (in addition to the OpenGL
      headers being present).
      In case of the Wayland target being enabled while the X11 target is not, disable the accelerated compositing
      feature as there's no support yet for it under the Wayland display protocol.
      * Source/autotools/PrintBuildConfiguration.m4: The build configuration should now print out 'GDK targets'.
      * Source/autotools/ReadCommandLineArguments.m4: The --with-target option can now take two additional values,
      'wayland' and 'x11,wayland'. The first one enables only the Wayland target, while the second one enables both
      X11 and Wayland targets. This makes it possible to build the GTK port with both X11 and Wayland display protocols
      supported in the same build.
      We must now check the outcoming with_target variable to see if the special case of building one or both of the
      possible parallel targets was chosen. We define with_x11_target and with_wayland_target variables if the
      with_target value applies to that case.
      * Source/autotools/SetupAutoconfHeader.m4: Do not define the XP_UNIX macro on builds that enable the Wayland-only
      target. It should still be defined if we're building both X11 and Wayland targets in parallel.
      * Source/autotools/SetupAutomake.m4: Define TARGET_X11 and TARGET_WAYLAND Automake conditionals if the new
      with_x11_target or with_wayland_target variables were set, respectively. Additionall, define the TARGET_X11_OR_WAYLAND
      Automake conditional if we're building either of the two targets.
      
      Source/WebCore: 
      
      * GNUmakefile.list.am: Reorder the Source/WebCore/plugins/np* source files.
      The X11-specific source files should only be included if the X11 target is being built. PluginPackageNone and
      PluginViewNone source files must be included in non-X11-target builds. Other source files that were previously
      guarded with the TARGET_X11 conditional should also be built for the Wayland target, so the new TARGET_X11_OR_WAYLAND
      conditional is used. If neither of those two targets is being built we fall back to adding source files to the build
      as necessary by the actual build target.
      * platform/gtk/GtkVersioning.c:
      (gdk_screen_get_monitor_workarea): Additionally guard bits of code that depend on the GDK_WINDOWING_X11 macro being
      defined - these should only be built when building the X11 target, checked for with PLATFORM(X11).
      
      Source/WebKit/gtk: 
      
      * WebCoreSupport/ChromeClientGtk.cpp:
      (WebKit::createBackingStore): Additionally guard the <gdk/gdkx.h> inclusion and the inclusion and use of
      WidgetBackingStoreGtkX11 with PLATFORM(X11), ensuring this code is built when also building with X11 target
      enabled. GDK_WINDOWING_X11 macro can be defined even if the X11 target is disabled.
      
      Source/WebKit2: 
      
      * GNUmakefile.list.am: Build X11-specific NetscapePluginModule and NetscapePlugin classes if building the X11 target,
      fall back to the generic, empty classes otherwise.
      * PluginProcess/unix/PluginProcessMainUnix.cpp:
      (WebKit::PluginProcessMainUnix): Guard the NetscapePluginModule::scanPlugin() invocation with PLUGIN_ARCHITECTURE(X11),
      it's at the moment specific to the X11 implementation of the Netscape plugins.
      * UIProcess/Plugins/unix/PluginProcessProxyUnix.cpp: Guard PluginProcessProxy::scanPlugin() with PLUGIN_ARCHITECTURE(X11),
      just like it's guarded in the PluginProcessProxy class declaration.
      * UIProcess/cairo/BackingStoreCairo.cpp: Additionally guard <gdk/gdkx.h> and WidgetBackingStoreGtkX11 inclusion and use
      with PLATFORM(X11), this code should only be built when building the X11 target.
      (WebKit::createBackingStoreForGTK):
      * UIProcess/gtk/WebPageProxyGtk.cpp: Guard the createPluginContainer() and windowedPluginGeometryDidChange() methods and their
      helper functions and objects with PLUGIN_ARCHITECTURE(X11), just like they're guarded in the WebPageProxy class declaration.
      * config.h: Only define PLUGIN_ARCHITECTURE_X11 to 1 if we're actually building the X11 target.
      
      Tools: 
      
      * GNUmakefile.am: Define the additional macros also if building the Wayland target.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155032 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      500ca7b6
  14. 02 Sep, 2013 1 commit
    • commit-queue@webkit.org's avatar
      [ATK] Leak: Leaks in testatk.c · e648d131
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=118675
      
      Patch by Brian Holt <brian.holt@samsung.com> on 2013-09-02
      Reviewed by Mario Sanchez Prada.
      
      Fixed memory leaks by matching ref calls with unrefs.
      
      * tests/testatk.c:
      (testWebkitAtkCaretOffsets):
      (testWebkitAtkCaretOffsetsAndExtranousWhiteSpaces):
      (testWebkitAtkGetTextAtOffset):
      (testWebkitAtkGetTextAtOffsetNewlines):
      (testWebkitAtkGetTextAtOffsetTextarea):
      (testWebkitAtkGetTextAtOffsetTextInput):
      (testWebkitAtkGetTextInParagraphAndBodySimple):
      (testWebkitAtkGetTextInParagraphAndBodyModerate):
      (testWebkitAtkTextAttributes):
      (testWebkitAtkTextSelections):
      (testWebkitAtkListsOfItems):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154953 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e648d131
  15. 29 Aug, 2013 2 commits
    • zandobersek@gmail.com's avatar
      [Automake] libWebCoreDOM.la could use a better name · 4fe2d206
      zandobersek@gmail.com authored
      https://bugs.webkit.org/show_bug.cgi?id=120232
      
      Reviewed by Martin Robinson.
      
      Source/WebCore: 
      
      * bindings/gobject/GNUmakefile.am: Rename the libWebCoreDOM library to libGObjectDOMBindings.
      
      Source/WebKit/gtk: 
      
      * GNUmakefile.am: libWebCoreDOM has a new name - libGObjectDOMBindings.
      
      Source/WebKit2: 
      
      * GNUmakefile.am: libWebCoreDOM has a new name - libGObjectDOMBindings.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154830 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4fe2d206
    • a.renevier@samsung.com's avatar
      [cairo] canvas drawing on itself doesn't work with accelerated canvas · 242efe66
      a.renevier@samsung.com authored
      https://bugs.webkit.org/show_bug.cgi?id=118808
      
      Reviewed by Martin Robinson.
      
      Source/WebCore:
      
      When copying an accelerated image, we try to get its dimensions with
      cairo_image_surface_get_width/cairo_image_surface_get_height. As
      surface is not an image, this returns width and height of 0.
      
      Many other places use cairo_image_surface_get although the surface may
      be a gl surface.
      
      This patch fixes those issues by implementing a cairoSurfaceSize
      helper that returns the surface size whatever type it is.
      
      It use cairo_surface_create_similar instead of
      cairo_image_surface_create in copyCairoImageSurface. It also calls
      cairo_paint in encodeImage when a drawing over a black background is
      needed.
      
      It copies the surface to an image surface if needed in extractImage.
      
      No new tests. Covered by existing tests.
      
      * platform/graphics/cairo/BitmapImageCairo.cpp:
      (WebCore::BitmapImage::BitmapImage):
      (WebCore::BitmapImage::draw):
      (WebCore::BitmapImage::checkForSolidColor):
      * platform/graphics/cairo/CairoUtilities.cpp:
      (WebCore::copyCairoImageSurface):
      (WebCore::cairoSurfaceSize):
      * platform/graphics/cairo/CairoUtilities.h:
      * platform/graphics/cairo/GraphicsContext3DCairo.cpp:
      (WebCore::GraphicsContext3D::ImageExtractor::extractImage):
      * platform/graphics/gtk/GdkCairoUtilities.cpp:
      (cairoSurfaceToGdkPixbuf):
      * platform/graphics/gtk/GdkCairoUtilities.h:
      * platform/graphics/gtk/ImageBufferGtk.cpp:
      (WebCore::encodeImage):
      * platform/graphics/gtk/ImageGtk.cpp:
      (WebCore::BitmapImage::getGdkPixbuf):
      * platform/gtk/DragIcon.cpp:
      (WebCore::DragIcon::setImage):
      
      Source/WebKit/gtk:
      
      Change cairoImageSurfaceToGdkPixbuf to cairoSurfaceToGdkPixbuf.
      
      * webkit/webkitfavicondatabase.cpp:
      (getIconPixbufSynchronously):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154819 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      242efe66
  16. 27 Aug, 2013 1 commit
  17. 26 Aug, 2013 4 commits
    • rniwa@webkit.org's avatar
      Another GTK+ build fix. · 0ed17abb
      rniwa@webkit.org authored
      * WebCoreSupport/FrameLoaderClientGtk.cpp:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154637 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0ed17abb
    • rniwa@webkit.org's avatar
      GTK+ build fix. Like r154620. · ecee4cb7
      rniwa@webkit.org authored
      * webkit/webkitwebframe.cpp:
      (webkit_web_frame_new):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154636 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ecee4cb7
    • psolanki@apple.com's avatar
      PageGroup::groupSettings() should return a reference · 95fe3e51
      psolanki@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=120319
      
      Reviewed by Andreas Kling.
      
      PageGroup::m_groupSettings is never NULL so we can just return a reference from groupSettings().
      
      Source/WebCore:
      
      * Modules/indexeddb/IDBFactory.cpp:
      * page/PageGroup.h:
      (WebCore::PageGroup::groupSettings):
      * storage/StorageNamespaceImpl.cpp:
      (WebCore::StorageNamespaceImpl::localStorageNamespace):
      * workers/DefaultSharedWorkerRepository.cpp:
      (WebCore::SharedWorkerProxy::groupSettings):
      * workers/WorkerMessagingProxy.cpp:
      (WebCore::WorkerMessagingProxy::startWorkerGlobalScope):
      
      Source/WebKit/blackberry:
      
      * Api/WebPage.cpp:
      (BlackBerry::WebKit::WebPagePrivate::didChangeSettings):
      
      Source/WebKit/gtk:
      
      * webkit/webkitwebdatabase.cpp:
      (webkit_set_web_database_directory_path):
      
      Source/WebKit2:
      
      * WebProcess/Storage/StorageNamespaceImpl.cpp:
      (WebKit::StorageNamespaceImpl::createLocalStorageNamespace):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154618 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      95fe3e51
    • akling@apple.com's avatar
      WebCore: Let Page create the main Frame. · 8e830e40
      akling@apple.com authored
      <https://webkit.org/b/119964>
      
      Source/WebCore:
      
      Reviewed by Anders Carlsson.
      
      Previously, Frame::create() would call Page::setMainFrame() when constructing the
      main Frame for a Page. Up until that point, Page had a null mainFrame().
      
      To guarantee that Page::mainFrame() is never null, we re-order things so that
      Page is responsible for creating its own main Frame. We do this at the earliest
      possible point; in the Page constructor initializer list.
      
      Constructing a Frame requires a FrameLoaderClient*, so I've added such a field to
      the PageClients struct.
      
      When creating a WebKit-layer frame, we now wrap the already-instantiated
      Page::mainFrame() instead of creating a new Frame.
      
      * loader/EmptyClients.cpp:
      (WebCore::fillWithEmptyClients):
      
          Add an EmptyFrameLoaderClient to the PageClients constructed here.
      
      * inspector/InspectorOverlay.cpp:
      (WebCore::InspectorOverlay::overlayPage):
      * svg/graphics/SVGImage.cpp:
      (WebCore::SVGImage::dataChanged):
      
          Updated to wrap Page::mainFrame() in a FrameView instead of creating their
          own Frame manually.
      
      * page/Frame.cpp:
      (WebCore::Frame::create):
      * page/Page.h:
      
          Remove Page::setMainFrame() and the only call site.
      
      * page/Page.cpp:
      (WebCore::Page::Page):
      
          Construct Page::m_mainFrame in the initializer list.
      
      (WebCore::Page::PageClients::PageClients):
      
          Add "FrameLoaderClient* loaderClientForMainFrame" to PageClients.
      
      (WebCore::Page::setNeedsRecalcStyleInAllFrames):
      
          Null-check the Frame::document() before calling through on it. This would
          otherwise crash when changing font-related Settings before calling init() on
          the Frame (like InspectorOverlay does.)
      
      Source/WebKit/gtk:
      
      Tweak WebKit1/GTK for changes in WebCore.
      
      Patch by Zan Dobersek <zdobersek@igalia.com>
      Reviewed by Gustavo Noronha Silva.
      
      * WebCoreSupport/FrameLoaderClientGtk.h:
      (WebKit::FrameLoaderClient::setWebFrame):
      * webkit/webkitwebframe.cpp:
      (webkit_web_frame_new):
      * webkit/webkitwebview.cpp:
      (webkit_web_view_init):
      
      Source/WebKit/mac:
      
      Reviewed by Anders Carlsson.
      
      * WebCoreSupport/WebFrameLoaderClient.h:
      (WebFrameLoaderClient::setWebFrame):
      
          Make it possible to construct a WebFrameLoaderClient with a null WebFrame*.
          A WebFrame* is later hooked up with a call to setWebFrame().
      
      * WebView/WebFrame.mm:
      (+[WebFrame _createMainFrameWithPage:frameName:frameView:]):
      
          Customized this method to wrap the Page::mainFrame() instead of creating a
          new Frame.
      
      * WebView/WebView.mm:
      (-[WebView _commonInitializationWithFrameName:groupName:]):
      
          Add a WebFrameLoaderClient to the PageClients passed to Page().
      
      Source/WebKit2:
      
      Reviewed by Anders Carlsson.
      
      * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
      * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
      (WebKit::WebFrameLoaderClient::WebFrameLoaderClient):
      
          This starts out with a null WebFrame* pointer now.
      
      (WebKit::WebFrameLoaderClient::setWebFrame):
      
          WebFrame hooks itself up through this as soon as it's constructed.
      
      (WebKit::WebFrameLoaderClient::frameLoaderDestroyed):
      
          Tweak an out-of-date comment. The ref() we're balancing out comes from
          WebFrame::create().
      
      * WebProcess/WebPage/WebFrame.cpp:
      (WebKit::WebFrame::createWithCoreMainFrame):
      
          Rewrote createMainFrame() as createWithCoreMainFrame(). The new method wraps
          an existing WebCore::Frame instead of creating a new one.
      
      (WebKit::WebFrame::createSubframe):
      
          Merged WebFrame::init() into here since the logic isn't shared with main
          Frame creation anymore.
      
      (WebKit::WebFrame::create):
      (WebKit::WebFrame::WebFrame):
      
          Call WebFrameLoaderClient::setWebFrame(this).
      
      * WebProcess/WebPage/WebFrame.h:
      
          WebFrame::m_frameLoaderClient is now an OwnPtr rather than an inline member.
          This way it can be created before the WebFrame.
      
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::WebPage):
      
          Set up a WebFrameLoaderClient and pass it to the Page constructor along with
          the other PageClients.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154616 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8e830e40
  18. 24 Aug, 2013 1 commit
    • darin@apple.com's avatar
      Frame::tree should return a reference instead of a pointer · fed4d16e
      darin@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=120259
      
      Reviewed by Andreas Kling.
      
      Source/WebCore:
      
      * page/Frame.h:
      (WebCore::Frame::tree): Return a reference instead of a pointer.
      
      * bindings/js/JSDOMWindowCustom.cpp:
      (WebCore::childFrameGetter):
      (WebCore::indexGetter):
      (WebCore::JSDOMWindow::getOwnPropertySlot):
      (WebCore::JSDOMWindow::getOwnPropertySlotByIndex):
      (WebCore::JSDOMWindow::setLocation):
      * bindings/js/PageScriptDebugServer.cpp:
      (WebCore::PageScriptDebugServer::setJavaScriptPaused):
      * dom/Document.cpp:
      (WebCore::canAccessAncestor):
      (WebCore::Document::adoptNode):
      (WebCore::Document::canNavigate):
      (WebCore::Document::findUnsafeParentScrollPropagationBoundary):
      (WebCore::Document::notifySeamlessChildDocumentsOfStylesheetUpdate):
      (WebCore::Document::openSearchDescriptionURL):
      (WebCore::Document::setDesignMode):
      (WebCore::Document::parentDocument):
      (WebCore::Document::initSecurityContext):
      (WebCore::Document::initContentSecurityPolicy):
      (WebCore::Document::requestFullScreenForElement):
      (WebCore::Document::webkitExitFullscreen):
      (WebCore::Document::didRemoveTouchEventHandler):
      * dom/TreeScope.cpp:
      (WebCore::focusedFrameOwnerElement):
      * editing/FrameSelection.cpp:
      (WebCore::FrameSelection::selectFrameElementInParentIfFullySelected):
      * history/CachedFrame.cpp:
      (WebCore::CachedFrameBase::CachedFrameBase):
      (WebCore::CachedFrameBase::restore):
      (WebCore::CachedFrame::CachedFrame):
      * history/CachedPage.cpp:
      (WebCore::CachedPage::restore):
      * history/PageCache.cpp:
      (WebCore::logCanCacheFrameDecision):
      (WebCore::PageCache::canCachePageContainingThisFrame):
      * html/HTMLDocument.cpp:
      (WebCore::HTMLDocument::hasFocus):
      * html/HTMLPlugInImageElement.cpp:
      (WebCore::HTMLPlugInImageElement::restartSimilarPlugIns):
      * inspector/InspectorApplicationCacheAgent.cpp:
      (WebCore::InspectorApplicationCacheAgent::getFramesWithManifests):
      * inspector/InspectorCanvasAgent.cpp:
      (WebCore::InspectorCanvasAgent::findFramesWithUninstrumentedCanvases):
      (WebCore::InspectorCanvasAgent::frameNavigated):
      * inspector/InspectorDOMAgent.cpp:
      (WebCore::InspectorDOMAgent::documents):
      * inspector/InspectorFileSystemAgent.cpp:
      (WebCore::InspectorFileSystemAgent::assertScriptExecutionContextForOrigin):
      * inspector/InspectorPageAgent.cpp:
      (WebCore::InspectorPageAgent::getCookies):
      (WebCore::InspectorPageAgent::deleteCookie):
      (WebCore::InspectorPageAgent::searchInResources):
      (WebCore::InspectorPageAgent::findFrameWithSecurityOrigin):
      (WebCore::InspectorPageAgent::buildObjectForFrame):
      (WebCore::InspectorPageAgent::buildObjectForFrameTree):
      * inspector/PageRuntimeAgent.cpp:
      (WebCore::PageRuntimeAgent::reportExecutionContextCreation):
      * loader/DocumentLoader.cpp:
      (WebCore::DocumentLoader::willSendRequest):
      (WebCore::DocumentLoader::mainResource):
      * loader/DocumentWriter.cpp:
      (WebCore::DocumentWriter::createDecoderIfNeeded):
      * loader/FrameLoader.cpp:
      (WebCore::FrameLoader::submitForm):
      (WebCore::FrameLoader::allChildrenAreComplete):
      (WebCore::FrameLoader::allAncestorsAreComplete):
      (WebCore::FrameLoader::loadURLIntoChildFrame):
      (WebCore::FrameLoader::outgoingReferrer):
      (WebCore::FrameLoader::updateFirstPartyForCookies):
      (WebCore::FrameLoader::setFirstPartyForCookies):
      (WebCore::FrameLoader::completed):
      (WebCore::FrameLoader::started):
      (WebCore::FrameLoader::loadURL):
      (WebCore::FrameLoader::loadWithDocumentLoader):
      (WebCore::FrameLoader::stopAllLoaders):
      (WebCore::FrameLoader::commitProvisionalLoad):
      (WebCore::FrameLoader::closeOldDataSources):
      (WebCore::FrameLoader::prepareForCachedPageRestore):
      (WebCore::FrameLoader::subframeIsLoading):
      (WebCore::FrameLoader::subresourceCachePolicy):
      (WebCore::FrameLoader::detachChildren):
      (WebCore::FrameLoader::closeAndRemoveChild):
      (WebCore::FrameLoader::checkLoadComplete):
      (WebCore::FrameLoader::numPendingOrLoadingRequests):
      (WebCore::FrameLoader::detachFromParent):
      (WebCore::FrameLoader::shouldClose):
      (WebCore::FrameLoader::handleBeforeUnloadEvent):
      (WebCore::FrameLoader::continueLoadAfterNewWindowPolicy):
      (WebCore::FrameLoader::shouldInterruptLoadForXFrameOptions):
      (WebCore::FrameLoader::findFrameForNavigation):
      (WebCore::FrameLoader::effectiveSandboxFlags):
      (WebCore::createWindow):
      * loader/HistoryController.cpp:
      (WebCore::HistoryController::saveDocumentState):
      (WebCore::HistoryController::saveDocumentAndScrollState):
      (WebCore::HistoryController::restoreDocumentState):
      (WebCore::HistoryController::goToItem):
      (WebCore::HistoryController::updateForRedirectWithLockedBackForwardList):
      (WebCore::HistoryController::recursiveUpdateForCommit):
      (WebCore::HistoryController::recursiveUpdateForSameDocumentNavigation):
      (WebCore::HistoryController::initializeItem):
      (WebCore::HistoryController::createItemTree):
      (WebCore::HistoryController::recursiveSetProvisionalItem):
      (WebCore::HistoryController::recursiveGoToItem):
      (WebCore::HistoryController::currentFramesMatchItem):
      * loader/NavigationScheduler.cpp:
      (WebCore::NavigationScheduler::mustLockBackForwardList):
      (WebCore::NavigationScheduler::scheduleFormSubmission):
      * loader/ProgressTracker.cpp:
      (WebCore::ProgressTracker::progressStarted):
      (WebCore::ProgressTracker::progressCompleted):
      (WebCore::ProgressTracker::isMainLoadProgressing):
      * loader/appcache/ApplicationCacheGroup.cpp:
      (WebCore::ApplicationCacheGroup::selectCache):
      (WebCore::ApplicationCacheGroup::selectCacheWithoutManifestURL):
      * loader/archive/cf/LegacyWebArchive.cpp:
      (WebCore::LegacyWebArchive::create):
      * loader/cache/CachedResourceLoader.cpp:
      (WebCore::CachedResourceLoader::checkInsecureContent):
      * loader/icon/IconController.cpp:
      (WebCore::IconController::urlsForTypes):
      (WebCore::IconController::startLoader):
      * page/Chrome.cpp:
      (WebCore::canRunModalIfDuringPageDismissal):
      (WebCore::Chrome::windowScreenDidChange):
      * page/DOMWindow.cpp:
      (WebCore::DOMWindow::length):
      (WebCore::DOMWindow::name):
      (WebCore::DOMWindow::setName):
      (WebCore::DOMWindow::parent):
      (WebCore::DOMWindow::top):
      (WebCore::DOMWindow::open):
      * page/EventHandler.cpp:
      (WebCore::EventHandler::scrollRecursively):
      (WebCore::EventHandler::logicalScrollRecursively):
      (WebCore::EventHandler::handleMouseMoveEvent):
      * page/FocusController.cpp:
      (WebCore::FocusController::setContainingWindowIsVisible):
      * page/Frame.cpp:
      (WebCore::parentPageZoomFactor):
      (WebCore::parentTextZoomFactor):
      (WebCore::Frame::setPrinting):
      (WebCore::Frame::shouldUsePrintingLayout):
      (WebCore::Frame::dispatchVisibilityStateChangeEvent):
      (WebCore::Frame::willDetachPage):
      (WebCore::Frame::setPageAndTextZoomFactors):
      (WebCore::Frame::deviceOrPageScaleFactorChanged):
      (WebCore::Frame::notifyChromeClientWheelEventHandlerCountChanged):
      (WebCore::Frame::isURLAllowed):
      * page/FrameTree.cpp:
      (WebCore::FrameTree::~FrameTree):
      (WebCore::FrameTree::setName):
      (WebCore::FrameTree::transferChild):
      (WebCore::FrameTree::appendChild):
      (WebCore::FrameTree::actuallyAppendChild):
      (WebCore::FrameTree::removeChild):
      (WebCore::FrameTree::uniqueChildName):
      (WebCore::FrameTree::scopedChild):
      (WebCore::FrameTree::scopedChildCount):
      (WebCore::FrameTree::childCount):
      (WebCore::FrameTree::child):
      (WebCore::FrameTree::find):
      (WebCore::FrameTree::isDescendantOf):
      (WebCore::FrameTree::traverseNext):
      (WebCore::FrameTree::traversePreviousWithWrap):
      (WebCore::FrameTree::deepLastChild):
      (WebCore::FrameTree::top):
      (printFrames):
      (showFrameTree):
      * page/FrameView.cpp:
      (WebCore::FrameView::setFrameRect):
      (WebCore::FrameView::hasCompositedContentIncludingDescendants):
      (WebCore::FrameView::hasCompositingAncestor):
      (WebCore::FrameView::flushCompositingStateIncludingSubframes):
      (WebCore::FrameView::updateCanBlitOnScrollRecursively):
      (WebCore::FrameView::setIsOverlapped):
      (WebCore::FrameView::shouldUseLoadTimeDeferredRepaintDelay):
      (WebCore::FrameView::updateLayerFlushThrottlingInAllFrames):
      (WebCore::FrameView::serviceScriptedAnimations):
      (WebCore::FrameView::updateBackgroundRecursively):
      (WebCore::FrameView::parentFrameView):
      (WebCore::FrameView::paintContentsForSnapshot):
      (WebCore::FrameView::setTracksRepaints):
      (WebCore::FrameView::notifyWidgetsInAllFrames):
      * page/Location.cpp:
      (WebCore::Location::ancestorOrigins):
      * page/Page.cpp:
      (WebCore::networkStateChanged):
      (WebCore::Page::~Page):
      (WebCore::Page::renderTreeSize):
      (WebCore::Page::updateStyleForAllPagesAfterGlobalChangeInEnvironment):
      (WebCore::Page::setNeedsRecalcStyleInAllFrames):
      (WebCore::Page::refreshPlugins):
      (WebCore::Page::takeAnyMediaCanStartListener):
      (WebCore::incrementFrame):
      (WebCore::Page::setDefersLoading):
      (WebCore::Page::setMediaVolume):
      (WebCore::Page::setDeviceScaleFactor):
      (WebCore::Page::setShouldSuppressScrollbarAnimations):
      (WebCore::Page::didMoveOnscreen):
      (WebCore::Page::willMoveOffscreen):
      (WebCore::Page::setIsInWindow):
      (WebCore::Page::suspendScriptedAnimations):
      (WebCore::Page::resumeScriptedAnimations):
      (WebCore::Page::userStyleSheetLocationChanged):
      (WebCore::Page::allVisitedStateChanged):
      (WebCore::Page::visitedStateChanged):
      (WebCore::Page::setDebugger):
      (WebCore::Page::setMemoryCacheClientCallsEnabled):
      (WebCore::Page::setMinimumTimerInterval):
      (WebCore::Page::setTimerAlignmentInterval):
      (WebCore::Page::dnsPrefetchingStateChanged):
      (WebCore::Page::collectPluginViews):
      (WebCore::Page::storageBlockingStateChanged):
      (WebCore::Page::privateBrowsingStateChanged):
      (WebCore::Page::checkSubframeCountConsistency):
      (WebCore::Page::suspendActiveDOMObjectsAndAnimations):
      (WebCore::Page::resumeActiveDOMObjectsAndAnimations):
      (WebCore::Page::captionPreferencesChanged):
      * page/PageGroup.cpp:
      (WebCore::PageGroup::invalidateInjectedStyleSheetCacheInAllFrames):
      * page/PageGroupLoadDeferrer.cpp:
      (WebCore::PageGroupLoadDeferrer::PageGroupLoadDeferrer):
      (WebCore::PageGroupLoadDeferrer::~PageGroupLoadDeferrer):
      * page/PageSerializer.cpp:
      (WebCore::PageSerializer::serializeFrame):
      * page/PageThrottler.cpp:
      (WebCore::PageThrottler::throttlePage):
      (WebCore::PageThrottler::unthrottlePage):
      * page/Settings.cpp:
      (WebCore::setImageLoadingSettings):
      (WebCore::Settings::setTextAutosizingFontScaleFactor):
      * page/SpatialNavigation.cpp:
      (WebCore::rectToAbsoluteCoordinates):
      * page/animation/AnimationController.cpp:
      (WebCore::AnimationControllerPrivate::suspendAnimations):
      (WebCore::AnimationControllerPrivate::resumeAnimations):
      * page/mac/PageMac.cpp:
      (WebCore::Page::addSchedulePair):
      (WebCore::Page::removeSchedulePair):
      * page/scrolling/ScrollingCoordinator.cpp:
      (WebCore::ScrollingCoordinator::computeNonFastScrollableRegion):
      (WebCore::ScrollingCoordinator::computeCurrentWheelEventHandlerCount):
      * plugins/PluginView.cpp:
      (WebCore::PluginView::performRequest):
      (WebCore::PluginView::load):
      * rendering/HitTestResult.cpp:
      (WebCore::HitTestResult::targetFrame):
      * rendering/RenderLayerCompositor.cpp:
      (WebCore::RenderLayerCompositor::enclosingCompositorFlushingLayers):
      (WebCore::RenderLayerCompositor::updateCompositingLayers):
      (WebCore::RenderLayerCompositor::notifyIFramesOfCompositingChange):
      * rendering/TextAutosizer.cpp:
      (WebCore::TextAutosizer::processSubtree):
      * storage/StorageEventDispatcher.cpp:
      (WebCore::StorageEventDispatcher::dispatchSessionStorageEvents):
      (WebCore::StorageEventDispatcher::dispatchLocalStorageEvents):
      * svg/SVGSVGElement.cpp:
      (WebCore::SVGSVGElement::currentScale):
      (WebCore::SVGSVGElement::setCurrentScale):
      * testing/Internals.cpp:
      (WebCore::Internals::formControlStateOfPreviousHistoryItem):
      (WebCore::Internals::setFormControlStateOfPreviousHistoryItem):
      (WebCore::Internals::numberOfScrollableAreas):
      * xml/parser/XMLDocumentParserLibxml2.cpp:
      (WebCore::hasNoStyleInformation):
      Use tree(). instead of tree()->.
      
      Source/WebKit/blackberry:
      
      * Api/WebPage.cpp:
      (BlackBerry::WebKit::closeURLRecursively):
      (BlackBerry::WebKit::enableCrossSiteXHRRecursively):
      (BlackBerry::WebKit::WebPagePrivate::setScreenOrientation):
      * WebCoreSupport/FrameLoaderClientBlackBerry.cpp:
      (WebCore::FrameLoaderClientBlackBerry::createFrame):
      * WebKitSupport/DOMSupport.cpp:
      (BlackBerry::WebKit::DOMSupport::convertPointToFrame):
      (BlackBerry::WebKit::DOMSupport::incrementFrame):
      Use tree(). instead of tree()->.
      
      Source/WebKit/efl:
      
      * WebCoreSupport/DumpRenderTreeSupportEfl.cpp:
      (DumpRenderTreeSupportEfl::clearFrameName):
      (DumpRenderTreeSupportEfl::frameChildren):
      (DumpRenderTreeSupportEfl::frameParent):
      * ewk/ewk_frame.cpp:
      (_ewk_frame_children_iterator_next):
      (ewk_frame_child_find):
      (ewk_frame_name_get):
      (ewk_frame_child_add):
      * ewk/ewk_view.cpp:
      (ewk_view_frame_create):
      Use tree(). instead of tree()->.
      
      Source/WebKit/gtk:
      
      * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
      (DumpRenderTreeSupportGtk::getFrameChildren):
      (DumpRenderTreeSupportGtk::clearMainFrameName):
      * WebCoreSupport/FrameLoaderClientGtk.cpp:
      (WebKit::FrameLoaderClient::createFrame):
      * webkit/webkitwebframe.cpp:
      (webkit_web_frame_get_name):
      (webkit_web_frame_get_parent):
      (webkit_web_frame_find_frame):
      * webkit/webkitwebview.cpp:
      (webkit_web_view_set_highlight_text_matches):
      Use tree(). instead of tree()->.
      
      Source/WebKit/mac:
      
      * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
      (WebKit::NetscapePluginInstanceProxy::performRequest):
      * Plugins/WebBaseNetscapePluginView.mm:
      (-[WebBaseNetscapePluginView resolvedURLStringForURL:target:]):
      * Plugins/WebNetscapePluginView.mm:
      (-[WebNetscapePluginView loadPluginRequest:]):
      * WebCoreSupport/WebFrameLoaderClient.mm:
      (applyAppleDictionaryApplicationQuirkNonInlinePart):
      (WebFrameLoaderClient::prepareForDataSourceReplacement):
      (WebFrameLoaderClient::createFrame):
      * WebView/WebFrame.mm:
      (+[WebFrame _createFrameWithPage:frameName:frameView:ownerElement:]):
      (-[WebFrame _updateBackgroundAndUpdatesWhileOffscreen]):
      (-[WebFrame _unmarkAllBadGrammar]):
      (-[WebFrame _unmarkAllMisspellings]):
      (-[WebFrame _atMostOneFrameHasSelection]):
      (-[WebFrame _findFrameWithSelection]):
      (-[WebFrame _drawRect:contentsOnly:]):
      (-[WebFrame _isDescendantOfFrame:]):
      (-[WebFrame _recursive_resumeNullEventsForAllNetscapePlugins]):
      (-[WebFrame _recursive_pauseNullEventsForAllNetscapePlugins]):
      (-[WebFrame name]):
      (-[WebFrame findFrameNamed:]):
      (-[WebFrame parentFrame]):
      (-[WebFrame childFrames]):
      * WebView/WebView.mm:
      (-[WebView _attachScriptDebuggerToAllFrames]):
      (-[WebView _detachScriptDebuggerFromAllFrames]):
      (-[WebView _clearMainFrameName]):
      (-[WebView _isUsingAcceleratedCompositing]):
      (-[WebView _isSoftwareRenderable]):
      (-[WebView setHostWindow:]):
      (incrementFrame):
      Use tree(). instead of tree()->.
      
      Source/WebKit/qt:
      
      * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
      (DumpRenderTreeSupportQt::clearFrameName):
      * WebCoreSupport/FrameLoaderClientQt.cpp:
      (drtDescriptionSuitableForTestResult):
      (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad):
      (WebCore::FrameLoaderClientQt::dispatchDidFinishDocumentLoad):
      (WebCore::FrameLoaderClientQt::postProgressStartedNotification):
      (WebCore::FrameLoaderClientQt::didPerformFirstNavigation):
      (WebCore::FrameLoaderClientQt::createFrame):
      * WebCoreSupport/QWebFrameAdapter.cpp:
      (QWebFrameData::QWebFrameData):
      (QWebFrameAdapter::load):
      (QWebFrameAdapter::uniqueName):
      (QWebFrameAdapter::childFrames):
      * WebCoreSupport/QWebPageAdapter.cpp:
      (QWebPageAdapter::findText):
      Use tree(). instead of tree()->.
      
      Source/WebKit/win:
      
      * WebCoreSupport/WebFrameLoaderClient.cpp:
      (WebFrameLoaderClient::createFrame):
      * WebFrame.cpp:
      (WebFrame::name):
      (WebFrame::findFrameNamed):
      (WebFrame::parentFrame):
      (EnumChildFrames::EnumChildFrames):
      (EnumChildFrames::Next):
      (EnumChildFrames::Skip):
      (EnumChildFrames::Reset):
      (WebFrame::isDescendantOfFrame):
      (WebFrame::unmarkAllMisspellings):
      (WebFrame::unmarkAllBadGrammar):
      * WebView.cpp:
      (WebView::initWithFrame):
      (incrementFrame):
      (WebView::clearMainFrameName):
      Use tree(). instead of tree()->.
      
      Source/WebKit/wince:
      
      * WebView.cpp:
      (WebView::createFrame):
      Use tree(). instead of tree()->.
      
      Source/WebKit2:
      
      * WebProcess/Plugins/PluginView.cpp:
      (WebKit::PluginView::performJavaScriptURLRequest):
      * WebProcess/Storage/StorageAreaMap.cpp:
      (WebKit::StorageAreaMap::dispatchSessionStorageEvent):
      (WebKit::StorageAreaMap::dispatchLocalStorageEvent):
      * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
      (WebKit::WebFrameLoaderClient::createFrame):
      * WebProcess/WebCoreSupport/mac/WebContextMenuClientMac.mm:
      (WebKit::WebContextMenuClient::searchWithSpotlight):
      * WebProcess/WebPage/FindController.cpp:
      (WebKit::frameWithSelection):
      (WebKit::FindController::rectsForTextMatches):
      * WebProcess/WebPage/WebFrame.cpp:
      (WebKit::WebFrame::init):
      (WebKit::WebFrame::contentsAsString):
      (WebKit::WebFrame::name):
      (WebKit::WebFrame::childFrames):
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::clearMainFrameName):
      (WebKit::WebPage::setDrawsBackground):
      (WebKit::WebPage::setDrawsTransparentBackground):
      (WebKit::WebPage::setWindowResizerSize):
      (WebKit::frameWithSelection):
      (WebKit::WebPage::unmarkAllMisspellings):
      (WebKit::WebPage::unmarkAllBadGrammar):
      (WebKit::pageContainsAnyHorizontalScrollbars):
      * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
      (WebKit::TiledCoreAnimationDrawingArea::forceRepaint):
      Use tree(). instead of tree()->.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154558 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fed4d16e
  19. 21 Aug, 2013 1 commit
  20. 19 Aug, 2013 1 commit
    • psolanki@apple.com's avatar
      <https://webkit.org/b/119918> Frame::selection() should return a reference · 87ae63d7
      psolanki@apple.com authored
      Reviewed by Darin Adler.
      
      m_selection is never NULL so return a reference from Frame::selection(). Also removed some
      unnecessary null checks and assert diff ts exposed as a result.
      
      Source/WebCore:
      
      * accessibility/AccessibilityRenderObject.cpp:
      (WebCore::AccessibilityRenderObject::selection):
      (WebCore::AccessibilityRenderObject::setSelectedTextRange):
      (WebCore::AccessibilityRenderObject::isFocused):
      (WebCore::AccessibilityRenderObject::setSelectedVisiblePositionRange):
      (WebCore::AccessibilityRenderObject::handleActiveDescendantChanged):
      * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:
      (-[WebAccessibilityObjectWrapper accessibilityModifySelection:increase:]):
      (-[WebAccessibilityObjectWrapper accessibilityMoveSelectionToMarker:]):
      (-[WebAccessibilityObjectWrapper _convertToNSRange:]):
      (-[WebAccessibilityObjectWrapper _convertToDOMRange:]):
      * accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
      (-[WebAccessibilityObjectWrapper accessibilitySetValue:forAttribute:]):
      * css/SelectorChecker.cpp:
      (WebCore::SelectorChecker::isFrameFocused):
      * dom/CharacterData.cpp:
      (WebCore::CharacterData::setDataAndUpdate):
      * dom/Document.cpp:
      (WebCore::Document::nodeChildrenWillBeRemoved):
      (WebCore::Document::nodeWillBeRemoved):
      * dom/Element.cpp:
      (WebCore::Element::updateFocusAppearance):
      * editing/AlternativeTextController.cpp:
      (WebCore::AlternativeTextController::stopPendingCorrection):
      (WebCore::AlternativeTextController::applyAlternativeTextToRange):
      (WebCore::AlternativeTextController::applyAutocorrectionBeforeTypingIfAppropriate):
      (WebCore::AlternativeTextController::respondToUnappliedSpellCorrection):
      (WebCore::AlternativeTextController::timerFired):
      (WebCore::AlternativeTextController::respondToChangedSelection):
      * editing/DeleteButtonController.cpp:
      (WebCore::DeleteButtonController::respondToChangedSelection):
      (WebCore::DeleteButtonController::enable):
      (WebCore::DeleteButtonController::deleteTarget):
      * editing/DeleteSelectionCommand.cpp:
      (WebCore::DeleteSelectionCommand::calculateTypingStyleAfterDelete):
      * editing/DictationCommand.cpp:
      (WebCore::DictationCommand::insertText):
      * editing/EditCommand.cpp:
      (WebCore::EditCommand::EditCommand):
      * editing/EditingStyle.cpp:
      (WebCore::EditingStyle::mergeTypingStyle):
      * editing/Editor.cpp:
      (WebCore::Editor::selectionForCommand):
      (WebCore::Editor::canEdit):
      (WebCore::Editor::canEditRichly):
      (WebCore::Editor::canDHTMLCut):
      (WebCore::Editor::canDHTMLCopy):
      (WebCore::Editor::canCopy):
      (WebCore::Editor::canDelete):
      (WebCore::Editor::canSmartCopyOrDelete):
      (WebCore::Editor::deleteWithDirection):
      (WebCore::Editor::deleteSelectionWithSmartDelete):
      (WebCore::Editor::replaceSelectionWithFragment):
      (WebCore::Editor::selectedRange):
      (WebCore::Editor::tryDHTMLCopy):
      (WebCore::Editor::tryDHTMLCut):
      (WebCore::Editor::hasBidiSelection):
      (WebCore::Editor::selectionUnorderedListState):
      (WebCore::Editor::selectionOrderedListState):
      (WebCore::Editor::increaseSelectionListLevel):
      (WebCore::Editor::increaseSelectionListLevelOrdered):
      (WebCore::Editor::increaseSelectionListLevelUnordered):
      (WebCore::Editor::decreaseSelectionListLevel):
      (WebCore::Editor::findEventTargetFromSelection):
      (WebCore::Editor::applyStyle):
      (WebCore::Editor::applyParagraphStyle):
      (WebCore::Editor::applyStyleToSelection):
      (WebCore::Editor::applyParagraphStyleToSelection):
      (WebCore::Editor::selectionStartHasStyle):
      (WebCore::Editor::selectionHasStyle):
      (WebCore::Editor::selectionStartCSSPropertyValue):
      (WebCore::Editor::appliedEditing):
      (WebCore::Editor::insertTextWithoutSendingTextEvent):
      (WebCore::Editor::insertLineBreak):
      (WebCore::Editor::insertParagraphSeparator):
      (WebCore::Editor::cut):
      (WebCore::Editor::copy):
      (WebCore::Editor::paste):
      (WebCore::Editor::baseWritingDirectionForSelectionStart):
      (WebCore::Editor::selectComposition):
      (WebCore::Editor::setComposition):
      (WebCore::Editor::ignoreSpelling):
      (WebCore::Editor::learnSpelling):
      (WebCore::Editor::advanceToNextMisspelling):
      (WebCore::Editor::misspelledWordAtCaretOrRange):
      (WebCore::Editor::isSelectionUngrammatical):
      (WebCore::Editor::guessesForMisspelledOrUngrammatical):
      (WebCore::Editor::markMisspellingsAfterTypingToWord):
      (WebCore::Editor::isSpellCheckingEnabledInFocusedNode):
      (WebCore::Editor::markAndReplaceFor):
      (WebCore::Editor::updateMarkersForWordsAffectedByEditing):
      (WebCore::Editor::revealSelectionAfterEditingOperation):
      (WebCore::Editor::getCompositionSelection):
      (WebCore::Editor::transpose):
      (WebCore::Editor::changeSelectionAfterCommand):
      (WebCore::Editor::selectedText):
      (WebCore::Editor::computeAndSetTypingStyle):
      (WebCore::Editor::findString):
      (WebCore::Editor::respondToChangedSelection):
      (WebCore::Editor::selectionStartHasMarkerFor):
      (WebCore::Editor::toggleOverwriteModeEnabled):
      * editing/EditorCommand.cpp:
      (WebCore::executeToggleStyleInList):
      (WebCore::expandSelectionToGranularity):
      (WebCore::stateTextWritingDirection):
      (WebCore::executeDelete):
      (WebCore::executeDeleteToMark):
      (WebCore::executeMoveBackward):
      (WebCore::executeMoveBackwardAndModifySelection):
      (WebCore::executeMoveDown):
      (WebCore::executeMoveDownAndModifySelection):
      (WebCore::executeMoveForward):
      (WebCore::executeMoveForwardAndModifySelection):
      (WebCore::executeMoveLeft):
      (WebCore::executeMoveLeftAndModifySelection):
      (WebCore::executeMovePageDown):
      (WebCore::executeMovePageDownAndModifySelection):
      (WebCore::executeMovePageUp):
      (WebCore::executeMovePageUpAndModifySelection):
      (WebCore::executeMoveRight):
      (WebCore::executeMoveRightAndModifySelection):
      (WebCore::executeMoveToBeginningOfDocument):
      (WebCore::executeMoveToBeginningOfDocumentAndModifySelection):
      (WebCore::executeMoveToBeginningOfLine):
      (WebCore::executeMoveToBeginningOfLineAndModifySelection):
      (WebCore::executeMoveToBeginningOfParagraph):
      (WebCore::executeMoveToBeginningOfParagraphAndModifySelection):
      (WebCore::executeMoveToBeginningOfSentence):
      (WebCore::executeMoveToBeginningOfSentenceAndModifySelection):
      (WebCore::executeMoveToEndOfDocument):
      (WebCore::executeMoveToEndOfDocumentAndModifySelection):
      (WebCore::executeMoveToEndOfSentence):
      (WebCore::executeMoveToEndOfSentenceAndModifySelection):
      (WebCore::executeMoveToEndOfLine):
      (WebCore::executeMoveToEndOfLineAndModifySelection):
      (WebCore::executeMoveToEndOfParagraph):
      (WebCore::executeMoveToEndOfParagraphAndModifySelection):
      (WebCore::executeMoveParagraphBackwardAndModifySelection):
      (WebCore::executeMoveParagraphForwardAndModifySelection):
      (WebCore::executeMoveUp):
      (WebCore::executeMoveUpAndModifySelection):
      (WebCore::executeMoveWordBackward):
      (WebCore::executeMoveWordBackwardAndModifySelection):
      (WebCore::executeMoveWordForward):
      (WebCore::executeMoveWordForwardAndModifySelection):
      (WebCore::executeMoveWordLeft):
      (WebCore::executeMoveWordLeftAndModifySelection):
      (WebCore::executeMoveWordRight):
      (WebCore::executeMoveWordRightAndModifySelection):
      (WebCore::executeMoveToLeftEndOfLine):
      (WebCore::executeMoveToLeftEndOfLineAndModifySelection):
      (WebCore::executeMoveToRightEndOfLine):
      (WebCore::executeMoveToRightEndOfLineAndModifySelection):
      (WebCore::executeSelectAll):
      (WebCore::executeSelectToMark):
      (WebCore::executeSetMark):
      (WebCore::executeSwapWithMark):
      (WebCore::executeUnselect):
      (WebCore::enabledInRichlyEditableText):
      (WebCore::enabledRangeInEditableText):
      (WebCore::enabledRangeInRichlyEditableText):
      (WebCore::valueFormatBlock):
      * editing/FrameSelection.cpp:
      (WebCore::FrameSelection::setSelection):
      (WebCore::FrameSelection::selectFrameElementInParentIfFullySelected):
      * editing/InsertLineBreakCommand.cpp:
      (WebCore::InsertLineBreakCommand::doApply):
      * editing/InsertTextCommand.cpp:
      (WebCore::InsertTextCommand::doApply):
      * editing/ModifySelectionListLevel.cpp:
      (WebCore::IncreaseSelectionListLevelCommand::canIncreaseSelectionListLevel):
      (WebCore::DecreaseSelectionListLevelCommand::canDecreaseSelectionListLevel):
      * editing/RemoveFormatCommand.cpp:
      (WebCore::RemoveFormatCommand::doApply):
      * editing/ReplaceSelectionCommand.cpp:
      (WebCore::ReplaceSelectionCommand::doApply):
      * editing/SetSelectionCommand.cpp:
      (WebCore::SetSelectionCommand::doApply):
      (WebCore::SetSelectionCommand::doUnapply):
      * editing/SpellingCorrectionCommand.cpp:
      (WebCore::SpellingCorrectionCommand::doApply):
      * editing/TextInsertionBaseCommand.cpp:
      (WebCore::TextInsertionBaseCommand::applyTextInsertionCommand):
      * editing/TypingCommand.cpp:
      (WebCore::TypingCommand::deleteSelection):
      (WebCore::TypingCommand::updateSelectionIfDifferentFromCurrentSelection):
      (WebCore::TypingCommand::insertText):
      (WebCore::TypingCommand::deleteKeyPressed):
      (WebCore::TypingCommand::forwardDeleteKeyPressed):
      * editing/ios/EditorIOS.mm:
      (WebCore::Editor::setTextAlignmentForChangedBaseWritingDirection):
      (WebCore::styleForSelectionStart):
      (WebCore::Editor::fontForSelection):
      * editing/mac/EditorMac.mm:
      (WebCore::styleForSelectionStart):
      (WebCore::Editor::fontForSelection):
      (WebCore::Editor::canCopyExcludingStandaloneImages):
      (WebCore::Editor::readSelectionFromPasteboard):
      * html/HTMLAnchorElement.cpp:
      (WebCore::HTMLAnchorElement::defaultEventHandler):
      (WebCore::HTMLAnchorElement::setActive):
      * html/HTMLInputElement.cpp:
      (WebCore::HTMLInputElement::updateFocusAppearance):
      * html/HTMLTextAreaElement.cpp:
      (WebCore::HTMLTextAreaElement::updateFocusAppearance):
      (WebCore::HTMLTextAreaElement::handleBeforeTextInsertedEvent):
      * html/HTMLTextFormControlElement.cpp:
      (WebCore::HTMLTextFormControlElement::setSelectionRange):
      (WebCore::HTMLTextFormControlElement::computeSelectionStart):
      (WebCore::HTMLTextFormControlElement::computeSelectionEnd):
      (WebCore::HTMLTextFormControlElement::computeSelectionDirection):
      (WebCore::HTMLTextFormControlElement::selectionChanged):
      * html/TextFieldInputType.cpp:
      (WebCore::TextFieldInputType::handleBeforeTextInsertedEvent):
      * loader/FrameLoader.cpp:
      (WebCore::FrameLoader::clear):
      * loader/archive/cf/LegacyWebArchive.cpp:
      (WebCore::LegacyWebArchive::createFromSelection):
      * page/ContextMenuController.cpp:
      (WebCore::insertUnicodeCharacter):
      (WebCore::ContextMenuController::contextMenuItemSelected):
      (WebCore::selectionContainsPossibleWord):
      (WebCore::ContextMenuController::populate):
      (WebCore::ContextMenuController::checkOrEnableIfNeeded):
      * page/DOMSelection.cpp:
      (WebCore::selectionShadowAncestor):
      (WebCore::DOMSelection::visibleSelection):
      (WebCore::DOMSelection::isCollapsed):
      (WebCore::DOMSelection::type):
      (WebCore::DOMSelection::rangeCount):
      (WebCore::DOMSelection::collapse):
      (WebCore::DOMSelection::collapseToEnd):
      (WebCore::DOMSelection::collapseToStart):
      (WebCore::DOMSelection::empty):
      (WebCore::DOMSelection::setBaseAndExtent):
      (WebCore::DOMSelection::setPosition):
      (WebCore::DOMSelection::modify):
      (WebCore::DOMSelection::extend):
      (WebCore::DOMSelection::getRangeAt):
      (WebCore::DOMSelection::removeAllRanges):
      (WebCore::DOMSelection::addRange):
      (WebCore::DOMSelection::deleteFromDocument):
      (WebCore::DOMSelection::containsNode):
      (WebCore::DOMSelection::toString):
      * page/DragController.cpp:
      (WebCore::DragController::dragIsMove):
      (WebCore::setSelectionToDragCaret):
      (WebCore::DragController::concludeEditDrag):
      (WebCore::DragController::draggableElement):
      (WebCore::selectElement):
      (WebCore::dragLocForSelectionDrag):
      (WebCore::DragController::startDrag):
      * page/DragController.h:
      * page/EventHandler.cpp:
      (WebCore::setSelectionIfNeeded):
      (WebCore::EventHandler::updateSelectionForMouseDownDispatchingSelectStart):
      (WebCore::EventHandler::handleMousePressEventDoubleClick):
      (WebCore::EventHandler::handleMousePressEventSingleClick):
      (WebCore::EventHandler::updateSelectionForMouseDrag):
      (WebCore::EventHandler::lostMouseCapture):
      (WebCore::EventHandler::handleMouseReleaseEvent):
      (WebCore::nodeIsNotBeingEdited):
      (WebCore::EventHandler::selectCursor):
      (WebCore::EventHandler::handleMousePressEvent):
      (WebCore::EventHandler::handleMouseDoubleClickEvent):
      (WebCore::EventHandler::dispatchMouseEvent):
      (WebCore::EventHandler::sendContextMenuEvent):
      (WebCore::EventHandler::sendContextMenuEventForKey):
      (WebCore::handleKeyboardSelectionMovement):
      (WebCore::EventHandler::handleDrag):
      * page/FocusController.cpp:
      (WebCore::FocusController::setFocusedFrame):
      (WebCore::FocusController::setFocused):
      (WebCore::FocusController::advanceFocusInDocumentOrder):
      (WebCore::clearSelectionIfNeeded):
      (WebCore::FocusController::setActive):
      * page/Frame.cpp:
      (WebCore::Frame::dragImageForSelection):
      * page/Frame.h:
      (WebCore::Frame::selection):
      * page/FrameView.cpp:
      (WebCore::FrameView::performPostLayoutTasks):
      (WebCore::FrameView::paintContentsForSnapshot):
      * page/Page.cpp:
      (WebCore::Page::findString):
      (WebCore::Page::findStringMatchingRanges):
      (WebCore::Page::selection):
      * page/mac/FrameMac.mm:
      (WebCore::Frame::dragImageForSelection):
      * page/mac/FrameSnapshottingMac.mm:
      (WebCore::selectionImage):
      * page/win/FrameWin.cpp:
      (WebCore::imageFromSelection):
      (WebCore::Frame::dragImageForSelection):
      * platform/ios/PasteboardIOS.mm:
      (WebCore::Pasteboard::documentFragmentForPasteboardItemAtIndex):
      * rendering/HitTestResult.cpp:
      (WebCore::HitTestResult::isSelected):
      * rendering/RenderBlock.cpp:
      (WebCore::RenderBlock::paintCaret):
      * rendering/RenderImage.cpp:
      (WebCore::RenderImage::paintAreaElementFocusRing):
      * rendering/RenderLayer.cpp:
      (WebCore::RenderLayer::scrollTo):
      * rendering/RenderListBox.cpp:
      (WebCore::RenderListBox::paintItemForeground):
      (WebCore::RenderListBox::paintItemBackground):
      * rendering/RenderObject.cpp:
      (WebCore::RenderObject::selectionBackgroundColor):
      (WebCore::RenderObject::selectionColor):
      * rendering/RenderTextControlSingleLine.cpp:
      (WebCore::RenderTextControlSingleLine::capsLockStateMayHaveChanged):
      * rendering/RenderTheme.cpp:
      (WebCore::RenderTheme::isFocused):
      * rendering/RenderThemeWin.cpp:
      (WebCore::RenderThemeWin::adjustSearchFieldStyle):
      * rendering/RenderTreeAsText.cpp:
      (WebCore::writeSelection):
      * rendering/RenderView.cpp:
      (WebCore::RenderView::setSelection):
      * svg/SVGSVGElement.cpp:
      (WebCore::SVGSVGElement::deselectAll):
      * svg/SVGTextContentElement.cpp:
      (WebCore::SVGTextContentElement::selectSubString):
      * testing/Internals.cpp:
      (WebCore::Internals::absoluteCaretBounds):
      (WebCore::Internals::selectionBounds):
      
      Source/WebKit/blackberry:
      
      * Api/InRegionScroller.cpp:
      (BlackBerry::WebKit::InRegionScrollerPrivate::setLayerScrollPosition):
      * WebKitSupport/DatePickerClient.cpp:
      (BlackBerry::WebKit::DatePickerClient::setValueAndClosePopup):
      * WebKitSupport/InPageSearchManager.cpp:
      (BlackBerry::WebKit::InPageSearchManager::findNextString):
      (BlackBerry::WebKit::InPageSearchManager::clearTextMatches):
      * WebKitSupport/InputHandler.cpp:
      (BlackBerry::WebKit::InputHandler::focusedNodeChanged):
      (BlackBerry::WebKit::InputHandler::requestSpellingCheckingOptions):
      (BlackBerry::WebKit::InputHandler::setElementUnfocused):
      (BlackBerry::WebKit::InputHandler::setInputModeEnabled):
      (BlackBerry::WebKit::InputHandler::setElementFocused):
      (BlackBerry::WebKit::InputHandler::openDatePopup):
      (BlackBerry::WebKit::InputHandler::ensureFocusTextElementVisible):
      (BlackBerry::WebKit::InputHandler::selectionPosition):
      (BlackBerry::WebKit::InputHandler::setSelection):
      (BlackBerry::WebKit::InputHandler::deleteSelection):
      (BlackBerry::WebKit::InputHandler::setRelativeCursorPosition):
      * WebKitSupport/SelectionHandler.cpp:
      (BlackBerry::WebKit::SelectionHandler::cancelSelection):
      (BlackBerry::WebKit::SelectionHandler::shouldUpdateSelectionOrCaretForPoint):
      (BlackBerry::WebKit::SelectionHandler::setCaretPosition):
      (BlackBerry::WebKit::SelectionHandler::extendSelectionToFieldBoundary):
      (BlackBerry::WebKit::SelectionHandler::updateOrHandleInputSelection):
      (BlackBerry::WebKit::SelectionHandler::setSelection):
      (BlackBerry::WebKit::SelectionHandler::startCaretViewportRect):
      (BlackBerry::WebKit::SelectionHandler::selectNextParagraph):
      (BlackBerry::WebKit::SelectionHandler::expandSelectionToGranularity):
      (BlackBerry::WebKit::SelectionHandler::selectObject):
      (BlackBerry::WebKit::directionOfEnclosingBlock):
      (BlackBerry::WebKit::SelectionHandler::selectionPositionChanged):
      (BlackBerry::WebKit::SelectionHandler::notifyCaretPositionChangedIfNeeded):
      (BlackBerry::WebKit::SelectionHandler::caretPositionChanged):
      (BlackBerry::WebKit::SelectionHandler::selectionContains):
      * WebKitSupport/SpellingHandler.cpp:
      (BlackBerry::WebKit::SpellingHandler::spellCheckTextBlock):
      
      Source/WebKit/efl:
      
      * WebCoreSupport/DumpRenderTreeSupportEfl.cpp:
      (DumpRenderTreeSupportEfl::selectionRectangle):
      (DumpRenderTreeSupportEfl::firstRectForCharacterRange):
      (DumpRenderTreeSupportEfl::selectedRange):
      * WebCoreSupport/EditorClientEfl.cpp:
      (WebCore::EditorClientEfl::handleEditingKeyboardEvent):
      * ewk/ewk_frame.cpp:
      (ewk_frame_text_selection_type_get):
      
      Source/WebKit/gtk:
      
      * WebCoreSupport/ChromeClientGtk.cpp:
      (WebKit::ChromeClient::paint):
      * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
      (DumpRenderTreeSupportGtk::firstRectForCharacterRange):
      (DumpRenderTreeSupportGtk::selectedRange):
      (DumpRenderTreeSupportGtk::rectangleForSelection):
      * WebCoreSupport/EditorClientGtk.cpp:
      (WebKit::collapseSelection):
      (WebKit::setSelectionPrimaryClipboardIfNeeded):
      * webkit/webkitwebframe.cpp:
      (webkit_web_frame_get_range_for_word_around_caret):
      * webkit/webkitwebview.cpp:
      (getLocationForKeyboardGeneratedContextMenu):
      
      Source/WebKit/mac:
      
      * Plugins/WebPluginController.mm:
      * WebView/WebFrame.mm:
      (-[WebFrame _hasSelection]):
      (-[WebFrame _rangeByAlteringCurrentSelection:FrameSelection::direction:granularity:]):
      (-[WebFrame _selectionGranularity]):
      (-[WebFrame _convertToNSRange:]):
      (-[WebFrame _convertToDOMRange:]):
      (-[WebFrame _insertParagraphSeparatorInQuotedContent]):
      (-[WebFrame _typingStyle]):
      (-[WebFrame _selectedNSRange]):
      (-[WebFrame _selectNSRange:]):
      (-[WebFrame _replaceSelectionWithFragment:selectReplacement:smartReplace:matchStyle:]):
      (-[WebFrame _replaceSelectionWithText:selectReplacement:smartReplace:]):
      * WebView/WebHTMLRepresentation.mm:
      (-[WebHTMLRepresentation currentForm]):
      * WebView/WebHTMLView.mm:
      (-[WebHTMLView readSelectionFromPasteboard:]):
      (-[WebHTMLView _selectedRange]):
      (-[WebHTMLView _hasSelection]):
      (-[WebHTMLView _hasSelectionOrInsertionPoint]):
      (-[WebHTMLView _hasInsertionPoint]):
      (-[WebHTMLView _isEditable]):
      (-[WebHTMLView jumpToSelection:]):
      (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]):
      (-[WebHTMLView maintainsInactiveSelection]):
      (isTextInput):
      (isInPasswordField):
      (-[WebHTMLView centerSelectionInVisibleArea:]):
      (-[WebHTMLView _canSmartCopyOrDelete]):
      (-[WebHTMLView _lookUpInDictionaryFromMenu:]):
      (-[WebHTMLView _updateSelectionForInputManager]):
      (-[WebHTMLView selectionRect]):
      (-[WebHTMLView selectionTextRects]):
      (-[WebHTMLView selectionImageRect]):
      (-[WebHTMLView selectAll]):
      (-[WebHTMLView deselectAll]):
      (-[WebHTMLView selectedAttributedString]):
      * WebView/WebTextCompletionController.mm:
      (-[WebTextCompletionController doCompletion]):
      * WebView/WebView.mm:
      (-[WebView setSelectedDOMRange:affinity:]):
      (-[WebView selectedDOMRange]):
      (-[WebView selectionAffinity]):
      (-[WebView setEditable:]):
      (-[WebView _selectionIsCaret]):
      (-[WebView _selectionIsAll]):
      
      Source/WebKit/qt:
      
      * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
      (DumpRenderTreeSupportQt::selectedRange):
      (DumpRenderTreeSupportQt::firstRectForCharacterRange):
      * WebCoreSupport/EditorClientQt.cpp:
      (WebCore::EditorClientQt::respondToChangedSelection):
      (WebCore::EditorClientQt::handleKeyboardEvent):
      * WebCoreSupport/QWebPageAdapter.cpp:
      (QWebPageAdapter::hasSelection):
      (QWebPageAdapter::selectedText):
      (QWebPageAdapter::findText):
      (QWebPageAdapter::inputMethodEvent):
      (QWebPageAdapter::inputMethodQuery):
      
      Source/WebKit/win:
      
      * WebFrame.cpp:
      (WebFrame::currentForm):
      * WebView.cpp:
      (WebView::updateFocusedAndActiveState):
      (WebView::selectionRect):
      (WebView::centerSelectionInVisibleArea):
      (WebView::hasSelectedRange):
      (WebView::replaceSelectionWithText):
      (WebView::clearSelection):
      (WebView::prepareCandidateWindow):
      (WebView::onIMERequestCharPosition):
      (WebView::onIMERequestReconvertString):
      (WebView::firstRectForCharacterRangeForTesting):
      (WebView::selectedRangeForTesting):
      
      Source/WebKit/wince:
      
      * WebCoreSupport/EditorClientWinCE.cpp:
      (WebKit::EditorClientWinCE::handleEditingKeyboardEvent):
      
      Source/WebKit2:
      
      * WebProcess/WebCoreSupport/WebEditorClient.cpp:
      (WebKit::WebEditorClient::updateGlobalSelection):
      * WebProcess/WebCoreSupport/gtk/WebEditorClientGtk.cpp:
      (WebKit::collapseSelection):
      (WebKit::WebEditorClient::updateGlobalSelection):
      * WebProcess/WebCoreSupport/mac/WebContextMenuClientMac.mm:
      (WebKit::WebContextMenuClient::lookUpInDictionary):
      (WebKit::WebContextMenuClient::searchWithSpotlight):
      * WebProcess/WebPage/FindController.cpp:
      (WebKit::frameWithSelection):
      (WebKit::FindController::updateFindUIAfterPageScroll):
      (WebKit::FindController::getFindIndicatorBitmapAndRect):
      (WebKit::FindController::getImageForFindMatch):
      (WebKit::FindController::selectFindMatch):
      (WebKit::FindController::updateFindIndicator):
      (WebKit::FindController::drawRect):
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::editorState):
      (WebKit::WebPage::scaledSnapshotWithOptions):
      (WebKit::WebPage::centerSelectionInVisibleArea):
      (WebKit::frameWithSelection):
      (WebKit::WebPage::clearSelection):
      (WebKit::WebPage::confirmComposition):
      (WebKit::WebPage::setComposition):
      (WebKit::WebPage::currentSelectionAsRange):
      * WebProcess/WebPage/mac/WebPageMac.mm:
      (WebKit::WebPage::setComposition):
      (WebKit::WebPage::insertText):
      (WebKit::WebPage::insertDictatedText):
      (WebKit::WebPage::getMarkedRange):
      (WebKit::WebPage::getSelectedRange):
      (WebKit::WebPage::getAttributedSubstringFromRange):
      (WebKit::WebPage::characterIndexForPoint):
      (WebKit::convertToRange):
      (WebKit::WebPage::performDictionaryLookupAtLocation):
      (WebKit::WebPage::readSelectionFromPasteboard):
      (WebKit::WebPage::getStringSelectionForPasteboard):
      (WebKit::WebPage::getDataSelectionForPasteboard):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154286 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      87ae63d7
  21. 17 Aug, 2013 1 commit
    • darin@apple.com's avatar
      <https://webkit.org/b/119941> Make Page::dragController return a reference · a5e48bb2
      darin@apple.com authored
      Reviewed by Andreas Kling.
      
      Source/WebCore:
      
      * page/Page.h:
      (WebCore::Page::dragController): Return a reference instead of a pointer.
      
      * page/DragController.cpp:
      (WebCore::DragController::concludeEditDrag):
      * page/EventHandler.cpp:
      (WebCore::EventHandler::eventMayStartDrag):
      (WebCore::EventHandler::updateDragSourceActionsAllowed):
      (WebCore::EventHandler::handleDrag):
      * page/mac/EventHandlerMac.mm:
      (WebCore::EventHandler::passSubframeEventToSubframe):
      Updated call sites.
      
      Source/WebKit/gtk:
      
      * webkit/webkitwebview.cpp:
      (dragExitedCallback):
      (webkit_web_view_drag_motion):
      (webkit_web_view_drag_data_received):
      (webkit_web_view_drag_drop):
      Updated call sites.
      
      Source/WebKit/mac:
      
      * WebView/WebFrameView.mm:
      (-[WebFrameView _setDocumentView:]):
      * WebView/WebHTMLView.mm:
      (-[WebHTMLView draggingSourceOperationMaskForLocal:]):
      (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]):
      * WebView/WebView.mm:
      (-[WebView _setInitiatedDrag:]):
      (-[WebView draggingEntered:]):
      (-[WebView draggingUpdated:]):
      (-[WebView draggingExited:]):
      (-[WebView performDragOperation:]):
      (-[WebView moveDragCaretToPoint:]):
      (-[WebView removeDragCaret]):
      Updated call sites.
      
      Source/WebKit/qt:
      
      * WebCoreSupport/DragClientQt.cpp:
      (WebCore::DragClientQt::startDrag):
      * WebCoreSupport/QWebPageAdapter.cpp:
      (QWebPageAdapter::dragEntered):
      (QWebPageAdapter::dragLeaveEvent):
      (QWebPageAdapter::dragUpdated):
      (QWebPageAdapter::performDrag):
      Updated call sites.
      
      Source/WebKit/win:
      
      * WebCoreSupport/WebDragClient.cpp:
      (WebDragClient::startDrag):
      * WebView.cpp:
      (WebView::keyStateToDragOperation):
      (WebView::DragEnter):
      (WebView::DragOver):
      (WebView::DragLeave):
      (WebView::Drop):
      Updated call sites.
      
      Source/WebKit2:
      
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::performDragControllerAction):
      (WebKit::WebPage::dragEnded):
      Updated call sites.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154224 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a5e48bb2
  22. 16 Aug, 2013 2 commits
    • psolanki@apple.com's avatar
      <https://webkit.org/b/119852> Frame::scriptController() should return a reference · c5b5dad7
      psolanki@apple.com authored
      Reviewed by Andreas Kling.
      
      m_script is never NULL so we can just return a reference. Also remove some pointless null
      checks as a result of doing this.
      
      Source/WebCore:
      
      * Modules/websockets/WebSocket.cpp:
      (WebCore::WebSocket::connect):
      * bindings/js/JSDOMWindowBase.cpp:
      (WebCore::toJS):
      (WebCore::toJSDOMWindow):
      * bindings/js/JSDOMWindowShell.cpp:
      (WebCore::toJS):
      (WebCore::toJSDOMWindowShell):
      * bindings/js/JSEventListener.cpp:
      (WebCore::JSEventListener::handleEvent):
      * bindings/js/JSLazyEventListener.cpp:
      (WebCore::JSLazyEventListener::initializeJSFunction):
      * bindings/js/PageScriptDebugServer.cpp:
      (WebCore::PageScriptDebugServer::setJavaScriptPaused):
      * bindings/js/ScheduledAction.cpp:
      (WebCore::ScheduledAction::execute):
      * bindings/js/ScriptCachedFrameData.cpp:
      (WebCore::ScriptCachedFrameData::ScriptCachedFrameData):
      (WebCore::ScriptCachedFrameData::restore):
      * bindings/js/ScriptEventListener.cpp:
      (WebCore::createAttributeEventListener):
      (WebCore::eventListenerHandlerScriptState):
      * bindings/js/ScriptState.cpp:
      (WebCore::mainWorldScriptState):
      (WebCore::scriptStateFromNode):
      (WebCore::scriptStateFromPage):
      * bindings/objc/DOM.mm:
      (-[DOMNode JSC::Bindings::]):
      * bindings/objc/DOMInternal.mm:
      (-[WebScriptObject _initializeScriptDOMNodeImp]):
      * dom/Document.cpp:
      (WebCore::Document::disableEval):
      (WebCore::Document::ensurePlugInsInjectedScript):
      * dom/ScriptElement.cpp:
      (WebCore::ScriptElement::prepareScript):
      (WebCore::ScriptElement::executeScript):
      * history/CachedFrame.cpp:
      (WebCore::CachedFrameBase::restore):
      * html/HTMLCanvasElement.cpp:
      (WebCore::HTMLCanvasElement::createRenderer):
      * html/HTMLElement.cpp:
      (WebCore::HTMLElement::rendererIsNeeded):
      * html/HTMLMediaElement.cpp:
      (WebCore::HTMLMediaElement::controls):
      * html/HTMLPlugInElement.cpp:
      (WebCore::HTMLPlugInElement::getInstance):
      (WebCore::HTMLPlugInElement::getNPObject):
      * html/HTMLPlugInImageElement.cpp:
      (WebCore::HTMLPlugInImageElement::didAddUserAgentShadowRoot):
      * html/parser/HTMLParserOptions.cpp:
      (WebCore::HTMLParserOptions::HTMLParserOptions):
      * inspector/InspectorAgent.cpp:
      (WebCore::InspectorAgent::didClearWindowObjectInWorld):
      * inspector/InspectorClient.cpp:
      (WebCore::InspectorClient::doDispatchMessageOnFrontendPage):
      * inspector/InspectorFrontendClientLocal.cpp:
      (WebCore::InspectorFrontendClientLocal::evaluateAsBoolean):
      (WebCore::InspectorFrontendClientLocal::evaluateOnLoad):
      * inspector/InspectorOverlay.cpp:
      (WebCore::InspectorOverlay::evaluateInOverlay):
      * inspector/InspectorPageAgent.cpp:
      (WebCore::InspectorPageAgent::getScriptExecutionStatus):
      (WebCore::InspectorPageAgent::didClearWindowObjectInWorld):
      * inspector/PageRuntimeAgent.cpp:
      (WebCore::PageRuntimeAgent::reportExecutionContextCreation):
      * loader/DocumentWriter.cpp:
      (WebCore::DocumentWriter::begin):
      * loader/FrameLoader.cpp:
      (WebCore::FrameLoader::urlSelected):
      (WebCore::FrameLoader::submitForm):
      (WebCore::FrameLoader::cancelAndClear):
      (WebCore::FrameLoader::clear):
      (WebCore::FrameLoader::prepareForCachedPageRestore):
      (WebCore::FrameLoader::dispatchDidClearWindowObjectsInAllWorlds):
      (WebCore::FrameLoader::dispatchDidClearWindowObjectInWorld):
      * loader/SubframeLoader.cpp:
      (WebCore::SubframeLoader::requestFrame):
      * loader/cache/CachedResourceLoader.cpp:
      (WebCore::CachedResourceLoader::canRequest):
      * page/EventSource.cpp:
      (WebCore::EventSource::create):
      * page/Frame.cpp:
      (WebCore::Frame::willDetachPage):
      * page/Frame.h:
      (WebCore::Frame::script):
      * page/Navigator.cpp:
      (WebCore::shouldHideFourDot):
      * page/Page.cpp:
      (WebCore::Page::setDebugger):
      * platform/graphics/wince/MediaPlayerProxy.cpp:
      (WebCore::WebMediaPlayerProxy::pluginInstance):
      (WebCore::WebMediaPlayerProxy::invokeMethod):
      * plugins/PluginView.cpp:
      (WebCore::PluginView::~PluginView):
      (WebCore::PluginView::performRequest):
      (WebCore::PluginView::load):
      (WebCore::PluginView::bindingInstance):
      (WebCore::PluginView::getValue):
      * plugins/efl/PluginViewEfl.cpp:
      (WebCore::PluginView::platformGetValue):
      * xml/XMLHttpRequest.cpp:
      (WebCore::XMLHttpRequest::open):
      * xml/XMLTreeViewer.cpp:
      (WebCore::XMLTreeViewer::transformDocumentToTreeView):
      
      Source/WebKit/blackberry:
      
      * Api/WebPage.cpp:
      (BlackBerry::WebKit::WebPagePrivate::load):
      (BlackBerry::WebKit::WebPagePrivate::executeJavaScript):
      (BlackBerry::WebKit::WebPagePrivate::executeJavaScriptInIsolatedWorld):
      (BlackBerry::WebKit::WebPage::executeJavaScriptFunction):
      (BlackBerry::WebKit::WebPage::globalContext):
      * WebCoreSupport/FrameLoaderClientBlackBerry.cpp:
      (WebCore::FrameLoaderClientBlackBerry::dispatchDidClearWindowObjectInWorld):
      
      Source/WebKit/efl:
      
      * WebCoreSupport/DumpRenderTreeSupportEfl.cpp:
      (DumpRenderTreeSupportEfl::evaluateScriptInIsolatedWorld):
      (DumpRenderTreeSupportEfl::globalContextRefForFrame):
      * WebCoreSupport/FrameLoaderClientEfl.cpp:
      (WebCore::FrameLoaderClientEfl::dispatchDidClearWindowObjectInWorld):
      * ewk/ewk_frame.cpp:
      (ewk_frame_script_execute):
      * ewk/ewk_view.cpp:
      (ewk_view_js_object_add):
      
      Source/WebKit/gtk:
      
      * WebCoreSupport/FrameLoaderClientGtk.cpp:
      (WebKit::FrameLoaderClient::dispatchDidClearWindowObjectInWorld):
      * webkit/webkitwebframe.cpp:
      (webkit_web_frame_get_global_context):
      * webkit/webkitwebview.cpp:
      (webkit_web_view_execute_script):
      
      Source/WebKit/mac:
      
      * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
      (WebKit::NetscapePluginInstanceProxy::cleanup):
      (WebKit::NetscapePluginInstanceProxy::getWindowNPObject):
      (WebKit::NetscapePluginInstanceProxy::getPluginElementNPObject):
      (WebKit::NetscapePluginInstanceProxy::evaluate):
      (WebKit::NetscapePluginInstanceProxy::invoke):
      (WebKit::NetscapePluginInstanceProxy::invokeDefault):
      (WebKit::NetscapePluginInstanceProxy::construct):
      (WebKit::NetscapePluginInstanceProxy::getProperty):
      (WebKit::NetscapePluginInstanceProxy::setProperty):
      (WebKit::NetscapePluginInstanceProxy::removeProperty):
      (WebKit::NetscapePluginInstanceProxy::hasProperty):
      (WebKit::NetscapePluginInstanceProxy::hasMethod):
      (WebKit::NetscapePluginInstanceProxy::enumerate):
      (WebKit::NetscapePluginInstanceProxy::demarshalValueFromArray):
      * Plugins/WebNetscapePluginView.mm:
      (-[WebNetscapePluginView getVariable:value:]):
      (-[WebNetscapePluginView _destroyPlugin]):
      * Plugins/WebPluginController.mm:
      * WebCoreSupport/WebFrameLoaderClient.mm:
      * WebCoreSupport/WebInspectorClient.mm:
      (WebInspectorFrontendClient::save):
      (WebInspectorFrontendClient::append):
      * WebView/WebFrame.mm:
      (-[WebFrame _attachScriptDebugger]):
      (-[WebFrame _stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
      (-[WebFrame _stringByEvaluatingJavaScriptFromString:withGlobalObject:inScriptWorld:]):
      (-[WebFrame _globalContextForScriptWorld:]):
      (-[WebFrame jsWrapperForNode:inScriptWorld:]):
      (-[WebFrame windowObject]):
      (-[WebFrame globalContext]):
      (-[WebFrame javaScriptContext]):
      * WebView/WebScriptDebugger.mm:
      (WebScriptDebugger::initGlobalCallFrame):
      (WebScriptDebugger::callEvent):
      * WebView/WebView.mm:
      (-[WebView windowScriptObject]):
      (-[WebView aeDescByEvaluatingJavaScriptFromString:]):
      
      Source/WebKit/qt:
      
      * Api/qwebelement.cpp:
      (setupScriptContext):
      (QWebElement::evaluateJavaScript):
      * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
      (DumpRenderTreeSupportQt::evaluateScriptInIsolatedWorld):
      * WebCoreSupport/QWebFrameAdapter.cpp:
      (QWebFrameAdapter::evaluateJavaScript):
      (QWebFrameAdapter::addToJavaScriptWindowObject):
      
      Source/WebKit/win:
      
      * WebFrame.cpp:
      (WebFrame::globalContext):
      (WebFrame::globalContextForScriptWorld):
      (WebFrame::dispatchDidClearWindowObjectInWorld):
      (WebFrame::stringByEvaluatingJavaScriptInScriptWorld):
      * WebView.cpp:
      (WebView::stringByEvaluatingJavaScriptFromString):
      
      Source/WebKit2:
      
      * WebProcess/Plugins/Netscape/NPRuntimeObjectMap.cpp:
      (WebKit::NPRuntimeObjectMap::globalObject):
      * WebProcess/Plugins/PluginView.cpp:
      (WebKit::PluginView::performJavaScriptURLRequest):
      (WebKit::PluginView::windowScriptNPObject):
      (WebKit::PluginView::pluginElementNPObject):
      * WebProcess/WebPage/WebFrame.cpp:
      (WebKit::WebFrame::jsContext):
      (WebKit::WebFrame::jsContextForWorld):
      (WebKit::WebFrame::jsWrapperForWorld):
      * WebProcess/WebPage/WebInspector.cpp:
      (WebKit::WebInspector::didSave):
      (WebKit::WebInspector::didAppend):
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::runJavaScriptInMainFrame):
      
      Tools:
      
      * DumpRenderTree/blackberry/DumpRenderTree.cpp:
      (BlackBerry::WebKit::DumpRenderTree::resetToConsistentStateBeforeTesting):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154192 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c5b5dad7
    • zandobersek@gmail.com's avatar
      Unreviewed GTK build fix for debug configurations. · 3b296395
      zandobersek@gmail.com authored
      * webkit/webkitwebframe.cpp:
      (WebKit::kit): Remove the bogus assertion for Frame::loader() that now returns a reference.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154164 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3b296395
  23. 15 Aug, 2013 2 commits
    • andersca@apple.com's avatar
      <https://webkit.org/b/119859> Frame::loader() should return a reference · df550b96
      andersca@apple.com authored
      Reviewed by Andreas Kling.
      
      Source/WebCore:
      
      * Modules/websockets/WebSocketChannel.cpp:
      (WebCore::WebSocketChannel::willOpenSocketStream):
      * WebCore.xcodeproj/project.pbxproj:
      * accessibility/AccessibilityObject.cpp:
      (WebCore::AccessibilityObject::press):
      * accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
      (-[WebAccessibilityObjectWrapper remoteAccessibilityParentObject]):
      * bindings/ScriptControllerBase.cpp:
      (WebCore::ScriptController::canExecuteScripts):
      * bindings/js/ScriptController.cpp:
      (WebCore::ScriptController::initScript):
      * css/CSSFontSelector.cpp:
      (WebCore::CSSFontSelector::beginLoadTimerFired):
      * dom/DOMImplementation.cpp:
      (WebCore::DOMImplementation::createDocument):
      * dom/Document.cpp:
      (WebCore::Document::Document):
      (WebCore::Document::setVisualUpdatesAllowed):
      (WebCore::Document::updateTitle):
      (WebCore::Document::open):
      (WebCore::Document::explicitClose):
      (WebCore::Document::implicitClose):
      (WebCore::Document::userAgent):
      (WebCore::Document::canNavigate):
      (WebCore::Document::processHttpEquiv):
      (WebCore::Document::referrer):
      (WebCore::Document::documentDidResumeFromPageCache):
      (WebCore::Document::openSearchDescriptionURL):
      (WebCore::Document::finishedParsing):
      (WebCore::Document::addIconURL):
      (WebCore::Document::initSecurityContext):
      (WebCore::Document::updateURLForPushOrReplaceState):
      (WebCore::Document::loadEventDelayTimerFired):
      (WebCore::Document::loader):
      (WebCore::Document::decrementActiveParserCount):
      * history/CachedFrame.cpp:
      (WebCore::CachedFrameBase::CachedFrameBase):
      (WebCore::CachedFrameBase::restore):
      (WebCore::CachedFrame::CachedFrame):
      (WebCore::CachedFrame::open):
      (WebCore::CachedFrame::destroy):
      * history/PageCache.cpp:
      (WebCore::logCanCacheFrameDecision):
      (WebCore::logCanCachePageDecision):
      (WebCore::PageCache::canCachePageContainingThisFrame):
      (WebCore::PageCache::canCache):
      * html/HTMLAnchorElement.cpp:
      (WebCore::HTMLAnchorElement::handleClick):
      * html/HTMLAppletElement.cpp:
      (WebCore::HTMLAppletElement::updateWidget):
      * html/HTMLElement.cpp:
      (WebCore::HTMLElement::rendererIsNeeded):
      * html/HTMLEmbedElement.cpp:
      (WebCore::HTMLEmbedElement::updateWidget):
      * html/HTMLFormElement.cpp:
      (WebCore::HTMLFormElement::prepareForSubmission):
      (WebCore::HTMLFormElement::submit):
      * html/HTMLFrameElementBase.cpp:
      (WebCore::HTMLFrameElementBase::openURL):
      * html/HTMLFrameOwnerElement.cpp:
      (WebCore::HTMLFrameOwnerElement::disconnectContentFrame):
      * html/HTMLFrameSetElement.cpp:
      (WebCore::HTMLFrameSetElement::insertedInto):
      (WebCore::HTMLFrameSetElement::removedFrom):
      * html/HTMLHtmlElement.cpp:
      (WebCore::HTMLHtmlElement::insertedByParser):
      * html/HTMLMediaElement.cpp:
      (WebCore::HTMLMediaElement::createRenderer):
      (WebCore::HTMLMediaElement::attach):
      (WebCore::HTMLMediaElement::loadResource):
      (WebCore::HTMLMediaElement::getPluginProxyParams):
      (WebCore::HTMLMediaElement::createMediaPlayerProxy):
      (WebCore::HTMLMediaElement::updateWidget):
      (WebCore::HTMLMediaElement::mediaPlayerReferrer):
      (WebCore::HTMLMediaElement::mediaPlayerUserAgent):
      * html/HTMLObjectElement.cpp:
      (WebCore::HTMLObjectElement::parametersForPlugin):
      (WebCore::HTMLObjectElement::updateWidget):
      * html/HTMLPlugInImageElement.cpp:
      (WebCore::HTMLPlugInImageElement::isImageType):
      (WebCore::HTMLPlugInImageElement::wouldLoadAsNetscapePlugin):
      (WebCore::HTMLPlugInImageElement::restartSimilarPlugIns):
      * html/HTMLVideoElement.cpp:
      (WebCore::HTMLVideoElement::setDisplayMode):
      * html/ImageDocument.cpp:
      (WebCore::ImageDocumentParser::appendBytes):
      (WebCore::ImageDocumentParser::finish):
      (WebCore::ImageDocument::createDocumentStructure):
      * html/MediaDocument.cpp:
      (WebCore::MediaDocumentParser::createDocumentStructure):
      * html/PluginDocument.cpp:
      (WebCore::PluginDocumentParser::createDocumentStructure):
      (WebCore::PluginDocumentParser::appendBytes):
      (WebCore::PluginDocument::detach):
      (WebCore::PluginDocument::cancelManualPluginLoad):
      * html/canvas/WebGLRenderingContext.cpp:
      (WebCore::WebGLRenderingContext::create):
      (WebCore::WebGLRenderingContext::loseContextImpl):
      (WebCore::WebGLRenderingContext::maybeRestoreContext):
      * html/parser/HTMLConstructionSite.cpp:
      (WebCore::HTMLConstructionSite::dispatchDocumentElementAvailableIfNeeded):
      (WebCore::HTMLConstructionSite::insertHTMLBodyElement):
      * html/parser/HTMLParserOptions.cpp:
      (WebCore::HTMLParserOptions::HTMLParserOptions):
      * html/parser/XSSAuditor.cpp:
      (WebCore::XSSAuditor::init):
      * html/parser/XSSAuditorDelegate.cpp:
      (WebCore::XSSAuditorDelegate::generateViolationReport):
      (WebCore::XSSAuditorDelegate::didBlockScript):
      * inspector/InspectorApplicationCacheAgent.cpp:
      (WebCore::InspectorApplicationCacheAgent::updateApplicationCacheStatus):
      (WebCore::InspectorApplicationCacheAgent::getFramesWithManifests):
      * inspector/InspectorFrontendClientLocal.cpp:
      (WebCore::InspectorFrontendClientLocal::openInNewTab):
      * inspector/InspectorFrontendHost.cpp:
      (WebCore::InspectorFrontendHost::loadResourceSynchronously):
      * inspector/InspectorOverlay.cpp:
      (WebCore::InspectorOverlay::overlayPage):
      * inspector/InspectorPageAgent.cpp:
      (WebCore::InspectorPageAgent::mainResourceContent):
      (WebCore::InspectorPageAgent::reload):
      (WebCore::InspectorPageAgent::navigate):
      (WebCore::allResourcesURLsForFrame):
      (WebCore::InspectorPageAgent::searchInResource):
      (WebCore::InspectorPageAgent::assertDocumentLoader):
      (WebCore::InspectorPageAgent::buildObjectForFrame):
      * inspector/InspectorResourceAgent.cpp:
      (WebCore::InspectorResourceAgent::didFailLoading):
      * loader/CookieJar.cpp:
      (WebCore::networkingContext):
      * loader/DocumentLoader.cpp:
      (WebCore::DocumentLoader::frameLoader):
      (WebCore::DocumentLoader::document):
      (WebCore::DocumentLoader::stopLoading):
      (WebCore::DocumentLoader::removeSubresourceLoader):
      (WebCore::DocumentLoader::subresourceLoaderFinishedLoadingOnePart):
      (WebCore::DocumentLoader::iconLoadDecisionAvailable):
      (WebCore::DocumentLoader::continueIconLoadWithDecision):
      * loader/DocumentThreadableLoader.cpp:
      (WebCore::DocumentThreadableLoader::didReceiveResponse):
      (WebCore::DocumentThreadableLoader::didFinishLoading):
      (WebCore::DocumentThreadableLoader::didFail):
      (WebCore::DocumentThreadableLoader::preflightFailure):
      (WebCore::DocumentThreadableLoader::loadRequest):
      * loader/DocumentWriter.cpp:
      (WebCore::DocumentWriter::replaceDocument):
      (WebCore::DocumentWriter::createDocument):
      (WebCore::DocumentWriter::begin):
      * loader/FrameLoader.cpp:
      (WebCore::FrameLoader::~FrameLoader):
      (WebCore::FrameLoader::allChildrenAreComplete):
      (WebCore::FrameLoader::allAncestorsAreComplete):
      (WebCore::FrameLoader::loadURLIntoChildFrame):
      (WebCore::FrameLoader::outgoingReferrer):
      (WebCore::FrameLoader::setOpener):
      (WebCore::FrameLoader::completed):
      (WebCore::FrameLoader::started):
      (WebCore::FrameLoader::loadFrameRequest):
      (WebCore::FrameLoader::loadURL):
      (WebCore::FrameLoader::load):
      (WebCore::FrameLoader::loadWithDocumentLoader):
      (WebCore::FrameLoader::stopAllLoaders):
      (WebCore::FrameLoader::closeOldDataSources):
      (WebCore::FrameLoader::subframeIsLoading):
      (WebCore::FrameLoader::subresourceCachePolicy):
      (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
      (WebCore::FrameLoader::detachChildren):
      (WebCore::FrameLoader::checkLoadComplete):
      (WebCore::FrameLoader::detachFromParent):
      (WebCore::FrameLoader::loadPostRequest):
      (WebCore::FrameLoader::loadResourceSynchronously):
      (WebCore::FrameLoader::shouldClose):
      (WebCore::FrameLoader::handleBeforeUnloadEvent):
      (WebCore::FrameLoader::continueLoadAfterNavigationPolicy):
      (WebCore::FrameLoader::continueLoadAfterNewWindowPolicy):
      (WebCore::createWindow):
      * loader/HistoryController.cpp:
      (WebCore::HistoryController::saveScrollPositionAndViewStateToItem):
      (WebCore::HistoryController::restoreScrollPositionAndViewState):
      (WebCore::HistoryController::saveDocumentState):
      (WebCore::HistoryController::saveDocumentAndScrollState):
      (WebCore::isAssociatedToRequestedHistoryItem):
      (WebCore::HistoryController::restoreDocumentState):
      (WebCore::HistoryController::shouldStopLoadingForHistoryItem):
      (WebCore::HistoryController::goToItem):
      (WebCore::HistoryController::updateForBackForwardNavigation):
      (WebCore::HistoryController::updateForReload):
      (WebCore::HistoryController::updateForStandardLoad):
      (WebCore::HistoryController::updateForRedirectWithLockedBackForwardList):
      (WebCore::HistoryController::updateForClientRedirect):
      (WebCore::HistoryController::updateForCommit):
      (WebCore::HistoryController::recursiveUpdateForCommit):
      (WebCore::HistoryController::updateForSameDocumentNavigation):
      (WebCore::HistoryController::recursiveUpdateForSameDocumentNavigation):
      (WebCore::HistoryController::initializeItem):
      (WebCore::HistoryController::createItemTree):
      (WebCore::HistoryController::recursiveSetProvisionalItem):
      (WebCore::HistoryController::recursiveGoToItem):
      (WebCore::HistoryController::updateBackForwardListClippedAtTarget):
      (WebCore::HistoryController::updateCurrentItem):
      (WebCore::HistoryController::pushState):
      (WebCore::HistoryController::replaceState):
      * loader/ImageLoader.cpp:
      (WebCore::pageIsBeingDismissed):
      * loader/MixedContentChecker.cpp:
      (WebCore::MixedContentChecker::client):
      * loader/NavigationScheduler.cpp:
      (WebCore::ScheduledURLNavigation::fire):
      (WebCore::ScheduledURLNavigation::didStartTimer):
      (WebCore::ScheduledURLNavigation::didStopTimer):
      (WebCore::ScheduledRedirect::shouldStartTimer):
      (WebCore::ScheduledRedirect::fire):
      (WebCore::ScheduledRefresh::fire):
      (WebCore::ScheduledHistoryNavigation::fire):
      (WebCore::ScheduledFormSubmission::fire):
      (WebCore::ScheduledFormSubmission::didStartTimer):
      (WebCore::ScheduledFormSubmission::didStopTimer):
      (WebCore::NavigationScheduler::mustLockBackForwardList):
      (WebCore::NavigationScheduler::scheduleLocationChange):
      (WebCore::NavigationScheduler::scheduleFormSubmission):
      (WebCore::NavigationScheduler::scheduleRefresh):
      (WebCore::NavigationScheduler::schedule):
      * loader/PingLoader.cpp:
      (WebCore::PingLoader::loadImage):
      (WebCore::PingLoader::sendPing):
      (WebCore::PingLoader::sendViolationReport):
      (WebCore::PingLoader::PingLoader):
      * loader/PolicyChecker.cpp:
      (WebCore::PolicyChecker::checkNavigationPolicy):
      (WebCore::PolicyChecker::checkNewWindowPolicy):
      (WebCore::PolicyChecker::checkContentPolicy):
      (WebCore::PolicyChecker::cancelCheck):
      (WebCore::PolicyChecker::stopCheck):
      (WebCore::PolicyChecker::cannotShowMIMEType):
      (WebCore::PolicyChecker::continueLoadAfterWillSubmitForm):
      (WebCore::PolicyChecker::continueAfterNavigationPolicy):
      (WebCore::PolicyChecker::continueAfterNewWindowPolicy):
      (WebCore::PolicyChecker::handleUnimplementablePolicy):
      * loader/ProgressTracker.cpp:
      (WebCore::ProgressTracker::progressStarted):
      (WebCore::ProgressTracker::progressCompleted):
      (WebCore::ProgressTracker::finalProgressComplete):
      (WebCore::ProgressTracker::incrementProgress):
      (WebCore::ProgressTracker::progressHeartbeatTimerFired):
      * loader/ResourceLoadNotifier.cpp:
      (WebCore::ResourceLoadNotifier::didReceiveAuthenticationChallenge):
      (WebCore::ResourceLoadNotifier::didCancelAuthenticationChallenge):
      (WebCore::ResourceLoadNotifier::willSendRequest):
      (WebCore::ResourceLoadNotifier::didFailToLoad):
      (WebCore::ResourceLoadNotifier::assignIdentifierToInitialRequest):
      (WebCore::ResourceLoadNotifier::dispatchWillSendRequest):
      (WebCore::ResourceLoadNotifier::dispatchDidReceiveResponse):
      (WebCore::ResourceLoadNotifier::dispatchDidReceiveData):
      (WebCore::ResourceLoadNotifier::dispatchDidFinishLoading):
      (WebCore::ResourceLoadNotifier::dispatchDidFailLoading):
      * loader/ResourceLoader.cpp:
      (WebCore::ResourceLoader::ResourceLoader):
      (WebCore::ResourceLoader::start):
      (WebCore::ResourceLoader::frameLoader):
      (WebCore::ResourceLoader::willSendRequest):
      * loader/SubframeLoader.cpp:
      (WebCore::SubframeLoader::pluginIsLoadable):
      (WebCore::SubframeLoader::loadMediaPlayerProxyPlugin):
      (WebCore::SubframeLoader::createJavaAppletWidget):
      (WebCore::SubframeLoader::loadOrRedirectSubframe):
      (WebCore::SubframeLoader::loadSubframe):
      (WebCore::SubframeLoader::allowPlugins):
      (WebCore::SubframeLoader::shouldUsePlugin):
      (WebCore::SubframeLoader::loadPlugin):
      * loader/appcache/ApplicationCacheGroup.cpp:
      (WebCore::ApplicationCacheGroup::selectCache):
      (WebCore::ApplicationCacheGroup::selectCacheWithoutManifestURL):
      (WebCore::ApplicationCacheGroup::update):
      (WebCore::ApplicationCacheGroup::createResourceHandle):
      (WebCore::ApplicationCacheGroup::didReceiveResponse):
      (WebCore::ApplicationCacheGroup::didFinishLoading):
      (WebCore::ApplicationCacheGroup::didFail):
      (WebCore::ApplicationCacheGroup::addEntry):
      (WebCore::CallCacheListenerTask::performTask):
      (WebCore::ApplicationCacheGroup::postListenerTask):
      * loader/appcache/DOMApplicationCache.cpp:
      (WebCore::DOMApplicationCache::applicationCacheHost):
      * loader/archive/cf/LegacyWebArchive.cpp:
      (WebCore::LegacyWebArchive::create):
      (WebCore::LegacyWebArchive::createFromSelection):
      * loader/cache/CachedResource.cpp:
      (WebCore::CachedResource::addAdditionalRequestHeaders):
      (WebCore::CachedResource::load):
      * loader/cache/CachedResourceLoader.cpp:
      (WebCore::CachedResourceLoader::requestImage):
      (WebCore::CachedResourceLoader::checkInsecureContent):
      (WebCore::CachedResourceLoader::canRequest):
      (WebCore::CachedResourceLoader::shouldContinueAfterNotifyingLoadedFromMemoryCache):
      (WebCore::CachedResourceLoader::requestResource):
      (WebCore::CachedResourceLoader::clientDefersImage):
      (WebCore::CachedResourceLoader::cachePolicy):
      (WebCore::CachedResourceLoader::loadDone):
      * loader/icon/IconController.cpp:
      (WebCore::IconController::commitToDatabase):
      (WebCore::IconController::startLoader):
      (WebCore::IconController::continueLoadWithDecision):
      * loader/icon/IconLoader.cpp:
      (WebCore::IconLoader::startLoading):
      (WebCore::IconLoader::notifyFinished):
      * page/Chrome.cpp:
      (WebCore::canRunModalIfDuringPageDismissal):
      * page/ContextMenuController.cpp:
      (WebCore::openNewWindow):
      (WebCore::ContextMenuController::contextMenuItemSelected):
      (WebCore::ContextMenuController::populate):
      (WebCore::ContextMenuController::checkOrEnableIfNeeded):
      * page/DOMWindow.cpp:
      (WebCore::DOMWindow::dispatchAllPendingBeforeUnloadEvents):
      (WebCore::DOMWindow::postMessageTimerFired):
      (WebCore::DOMWindow::close):
      (WebCore::DOMWindow::print):
      (WebCore::DOMWindow::stop):
      (WebCore::DOMWindow::setName):
      (WebCore::DOMWindow::opener):
      (WebCore::DOMWindow::dispatchLoadEvent):
      (WebCore::DOMWindow::setLocation):
      (WebCore::DOMWindow::createWindow):
      (WebCore::DOMWindow::open):
      * page/DOMWindowExtension.cpp:
      (WebCore::DOMWindowExtension::disconnectFrameForPageCache):
      (WebCore::DOMWindowExtension::reconnectFrameFromPageCache):
      (WebCore::DOMWindowExtension::willDestroyGlobalObjectInCachedFrame):
      (WebCore::DOMWindowExtension::willDestroyGlobalObjectInFrame):
      (WebCore::DOMWindowExtension::willDetachGlobalObjectFromFrame):
      * page/DragController.cpp:
      (WebCore::DragController::performDrag):
      * page/EventHandler.cpp:
      (WebCore::EventHandler::handleMousePressEvent):
      (WebCore::EventHandler::keyEvent):
      * page/Frame.cpp:
      (WebCore::Frame::~Frame):
      (WebCore::Frame::setView):
      (WebCore::Frame::injectUserScripts):
      (WebCore::Frame::willDetachPage):
      * page/Frame.h:
      (WebCore::Frame::loader):
      * page/FrameView.cpp:
      (WebCore::FrameView::mediaType):
      (WebCore::FrameView::setFixedVisibleContentRect):
      (WebCore::FrameView::shouldUseLoadTimeDeferredRepaintDelay):
      (WebCore::FrameView::performPostLayoutTasks):
      (WebCore::FrameView::autoSizeIfEnabled):
      (WebCore::FrameView::scrollTo):
      (WebCore::FrameView::shouldSuspendScrollAnimations):
      (WebCore::FrameView::qualifiesAsVisuallyNonEmpty):
      (WebCore::FrameView::wheelEvent):
      (WebCore::FrameView::firePaintRelatedMilestones):
      * page/History.cpp:
      (WebCore::History::stateInternal):
      (WebCore::History::stateObjectAdded):
      * page/Location.cpp:
      (WebCore::Location::setLocation):
      * page/Navigator.cpp:
      (WebCore::Navigator::userAgent):
      * page/Page.cpp:
      (WebCore::Page::goToItem):
      (WebCore::Page::refreshPlugins):
      (WebCore::Page::setDefersLoading):
      (WebCore::Page::setMemoryCacheClientCallsEnabled):
      (WebCore::Page::addRelevantRepaintedObject):
      * page/Performance.cpp:
      (WebCore::Performance::now):
      * page/PerformanceNavigation.cpp:
      (WebCore::PerformanceNavigation::type):
      (WebCore::PerformanceNavigation::redirectCount):
      * page/PerformanceResourceTiming.cpp:
      (WebCore::monotonicTimeToDocumentMilliseconds):
      * page/mac/PageMac.cpp:
      (WebCore::Page::addSchedulePair):
      (WebCore::Page::removeSchedulePair):
      * platform/ios/PasteboardIOS.mm:
      (WebCore::documentFragmentWithImageResource):
      (WebCore::documentFragmentWithRTF):
      (WebCore::Pasteboard::documentFragmentForPasteboardItemAtIndex):
      * platform/mac/HTMLConverter.mm:
      (-[WebHTMLConverter _addAttachmentForElement:URL:needsParagraph:usePlaceholder:]):
      (-[WebHTMLConverter _loadFromDOMRange]):
      * platform/mac/PasteboardMac.mm:
      (WebCore::documentFragmentWithImageResource):
      (WebCore::documentFragmentWithRTF):
      (WebCore::fragmentFromWebArchive):
      * plugins/DOMMimeType.cpp:
      (WebCore::DOMMimeType::enabledPlugin):
      * rendering/RenderLayer.cpp:
      (WebCore::RenderLayer::scrollTo):
      * svg/SVGAElement.cpp:
      (WebCore::SVGAElement::defaultEventHandler):
      * svg/graphics/SVGImage.cpp:
      (WebCore::SVGImage::~SVGImage):
      (WebCore::SVGImage::dataChanged):
      * testing/Internals.cpp:
      (WebCore::Internals::formControlStateOfPreviousHistoryItem):
      (WebCore::Internals::setFormControlStateOfPreviousHistoryItem):
      (WebCore::Internals::getReferencedFilePaths):
      (WebCore::Internals::forceReload):
      * xml/XSLTProcessorLibxslt.cpp:
      (WebCore::docLoaderFunc):
      * xml/parser/XMLDocumentParserLibxml2.cpp:
      (WebCore::openFunc):
      (WebCore::XMLDocumentParser::startElementNs):
      
      Source/WebKit/blackberry:
      
      * Api/WebPage.cpp:
      (BlackBerry::WebKit::WebPagePrivate::load):
      (BlackBerry::WebKit::WebPagePrivate::loadString):
      (BlackBerry::WebKit::WebPagePrivate::stopCurrentLoad):
      (BlackBerry::WebKit::closeURLRecursively):
      (BlackBerry::WebKit::WebPage::dispatchBeforeUnloadEvent):
      (BlackBerry::WebKit::WebPagePrivate::shouldSendResizeEvent):
      (BlackBerry::WebKit::WebPagePrivate::zoomToInitialScaleOnLoad):
      (BlackBerry::WebKit::WebPage::reload):
      (BlackBerry::WebKit::WebPage::reloadFromCache):
      (BlackBerry::WebKit::WebPage::textEncoding):
      (BlackBerry::WebKit::WebPage::forcedTextEncoding):
      (BlackBerry::WebKit::WebPage::setForcedTextEncoding):
      (BlackBerry::WebKit::WebPage::title):
      * WebCoreSupport/ChromeClientBlackBerry.cpp:
      (WebCore::ChromeClientBlackBerry::createWindow):
      * WebCoreSupport/FrameLoaderClientBlackBerry.cpp:
      (WebCore::FrameLoaderClientBlackBerry::dispatchDidChangeLocationWithinPage):
      (WebCore::FrameLoaderClientBlackBerry::dispatchDecidePolicyForResponse):
      (WebCore::FrameLoaderClientBlackBerry::dispatchDecidePolicyForNavigationAction):
      (WebCore::FrameLoaderClientBlackBerry::delayPolicyCheckUntilFragmentExists):
      (WebCore::FrameLoaderClientBlackBerry::dispatchDecidePolicyForNewWindowAction):
      (WebCore::FrameLoaderClientBlackBerry::createPlugin):
      (WebCore::FrameLoaderClientBlackBerry::receivedData):
      (WebCore::FrameLoaderClientBlackBerry::createDocumentLoader):
      (WebCore::FrameLoaderClientBlackBerry::dispatchDidCommitLoad):
      (WebCore::FrameLoaderClientBlackBerry::dispatchDidFailProvisionalLoad):
      (WebCore::FrameLoaderClientBlackBerry::dispatchWillSubmitForm):
      (WebCore::FrameLoaderClientBlackBerry::createFrame):
      (WebCore::FrameLoaderClientBlackBerry::dispatchDidLayout):
      (WebCore::FrameLoaderClientBlackBerry::dispatchWillSendRequest):
      (WebCore::FrameLoaderClientBlackBerry::restoreViewState):
      (WebCore::FrameLoaderClientBlackBerry::startDownload):
      (WebCore::FrameLoaderClientBlackBerry::canCachePage):
      (WebCore::FrameLoaderClientBlackBerry::didRestoreFromPageCache):
      * WebKitSupport/PagePopup.cpp:
      (BlackBerry::WebKit::PagePopup::initialize):
      
      Source/WebKit/efl:
      
      * WebCoreSupport/ChromeClientEfl.cpp:
      (kit):
      * WebCoreSupport/DumpRenderTreeSupportEfl.cpp:
      (DumpRenderTreeSupportEfl::callShouldCloseOnWebView):
      (DumpRenderTreeSupportEfl::clearOpener):
      (DumpRenderTreeSupportEfl::frameChildren):
      (DumpRenderTreeSupportEfl::responseMimeType):
      (DumpRenderTreeSupportEfl::provisionalURL):
      * WebCoreSupport/FrameLoaderClientEfl.cpp:
      (WebCore::FrameLoaderClientEfl::callPolicyFunction):
      (WebCore::FrameLoaderClientEfl::dispatchDecidePolicyForNewWindowAction):
      (WebCore::FrameLoaderClientEfl::dispatchDecidePolicyForNavigationAction):
      (WebCore::FrameLoaderClientEfl::updateGlobalHistoryRedirectLinks):
      (WebCore::FrameLoaderClientEfl::updateGlobalHistory):
      * ewk/ewk_frame.cpp:
      (_ewk_frame_loader_efl_get):
      (_ewk_frame_smart_del):
      (_ewk_frame_contents_set_internal):
      (ewk_frame_stop):
      (ewk_frame_reload):
      (ewk_frame_reload_full):
      (ewk_frame_child_add):
      * ewk/ewk_view.cpp:
      (ewk_view_frame_focused_get):
      (ewk_view_setting_user_agent_set):
      (ewk_view_setting_encoding_custom_get):
      (ewk_view_setting_encoding_custom_set):
      
      Source/WebKit/gtk:
      
      * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
      (DumpRenderTreeSupportGtk::clearOpener):
      (DumpRenderTreeSupportGtk::shouldClose):
      * WebCoreSupport/FrameLoaderClientGtk.cpp:
      (WebKit::FrameLoaderClient::dispatchWillSubmitForm):
      (WebKit::FrameLoaderClient::committedLoad):
      (WebKit::FrameLoaderClient::dispatchDecidePolicyForResponse):
      (WebKit::FrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
      (WebKit::FrameLoaderClient::dispatchDecidePolicyForNavigationAction):
      (WebKit::FrameLoaderClient::createFrame):
      (WebKit::FrameLoaderClient::dispatchDidCommitLoad):
      * webkit/webkitwebframe.cpp:
      (webkit_web_frame_finalize):
      (webkit_web_frame_load_uri):
      (webkit_web_frame_load_data):
      (webkit_web_frame_load_request):
      (webkit_web_frame_stop_loading):
      (webkit_web_frame_reload):
      (webkit_web_frame_get_data_source):
      (webkit_web_frame_get_provisional_data_source):
      (webkit_web_frame_get_response_mime_type):
      (webkit_web_frame_get_network_response):
      (WebKit::kit):
      * webkit/webkitwebpolicydecision.cpp:
      (webkit_web_policy_decision_use):
      (webkit_web_policy_decision_ignore):
      (webkit_web_policy_decision_download):
      * webkit/webkitwebview.cpp:
      (webkit_web_view_dispose):
      (webkit_web_view_reload):
      (webkit_web_view_reload_bypass_cache):
      (webkit_web_view_stop_loading):
      (webkit_web_view_can_show_mime_type):
      (webkit_web_view_set_custom_encoding):
      (webkit_web_view_get_custom_encoding):
      (webkit_web_view_get_subresources):
      
      Source/WebKit/mac:
      
      * Plugins/Hosted/HostedNetscapePluginStream.mm:
      (WebKit::HostedNetscapePluginStream::HostedNetscapePluginStream):
      * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
      (WebKit::NetscapePluginInstanceProxy::performRequest):
      (WebKit::NetscapePluginInstanceProxy::loadRequest):
      * Plugins/Hosted/WebHostedNetscapePluginView.mm:
      (-[WebHostedNetscapePluginView pluginView:receivedResponse:]):
      * Plugins/WebBaseNetscapePluginView.mm:
      (-[WebBaseNetscapePluginView requestWithURLCString:]):
      * Plugins/WebNetscapePluginStream.mm:
      (WebNetscapePluginStream::WebNetscapePluginStream):
      * Plugins/WebNetscapePluginView.mm:
      (-[WebNetscapePluginView loadStream]):
      (-[WebNetscapePluginView pluginView:receivedResponse:]):
      (-[WebNetscapePluginView loadPluginRequest:]):
      (-[WebNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]):
      * Plugins/WebPluginController.mm:
      * WebCoreSupport/WebFrameLoaderClient.mm:
      (WebFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad):
      (WebFrameLoaderClient::dispatchDidStartProvisionalLoad):
      (WebFrameLoaderClient::dispatchWillSubmitForm):
      (WebFrameLoaderClient::updateGlobalHistory):
      (WebFrameLoaderClient::updateGlobalHistoryRedirectLinks):
      (WebFrameLoaderClient::restoreViewState):
      (WebFrameLoaderClient::transitionToCommittedForNewPage):
      (WebFrameLoaderClient::createFrame):
      * WebCoreSupport/WebFrameNetworkingContext.mm:
      (WebFrameNetworkingContext::blockedError):
      * WebCoreSupport/WebPlatformStrategies.mm:
      (WebPlatformStrategies::getPluginInfo):
      * WebView/WebFrame.mm:
      (kit):
      (-[WebFrame _dataSource]):
      (-[WebFrame _canProvideDocumentSource]):
      (-[WebFrame _commitData:]):
      (-[WebFrame _firstLayoutDone]):
      (-[WebFrame _loadType]):
      (-[WebFrame _cacheabilityDictionary]):
      (-[WebFrame _clearOpener]):
      (-[WebFrame provisionalDataSource]):
      (-[WebFrame dataSource]):
      (-[WebFrame loadRequest:]):
      (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
      (-[WebFrame loadArchive:]):
      (-[WebFrame stopLoading]):
      (-[WebFrame reload]):
      (-[WebFrame reloadFromOrigin]):
      * WebView/WebHTMLRepresentation.mm:
      (-[WebHTMLRepresentation receivedData:withDataSource:]):
      * WebView/WebHTMLView.mm:
      (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]):
      * WebView/WebPDFView.mm:
      (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
      * WebView/WebRenderLayer.mm:
      (-[WebRenderLayer initWithWebFrame:]):
      * WebView/WebRenderNode.mm:
      (-[WebRenderNode _initWithCoreFrame:]):
      * WebView/WebView.mm:
      (-[WebView _close]):
      (-[WebView _loadBackForwardListFromOtherView:]):
      (-[WebView _cachedResponseForURL:]):
      (-[WebView setCustomTextEncodingName:]):
      (-[WebView shouldClose]):
      
      Source/WebKit/qt:
      
      * WebCoreSupport/ChromeClientQt.cpp:
      (WebCore::ChromeClientQt::closeWindowSoon):
      * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
      (DumpRenderTreeSupportQt::shouldClose):
      (DumpRenderTreeSupportQt::responseMimeType):
      (DumpRenderTreeSupportQt::clearOpener):
      (DumpRenderTreeSupportQt::thirdPartyCookiePolicyAllows):
      (DumpRenderTreeSupportQt::setAlternateHtml):
      * WebCoreSupport/FrameLoaderClientQt.cpp:
      (WebCore::FrameLoaderClientQt::callPolicyFunction):
      (WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad):
      (WebCore::FrameLoaderClientQt::updateGlobalHistory):
      (WebCore::FrameLoaderClientQt::updateGlobalHistoryRedirectLinks):
      (WebCore::FrameLoaderClientQt::callErrorPageExtension):
      (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
      (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
      (WebCore::FrameLoaderClientQt::startDownload):
      (WebCore::FrameLoaderClientQt::createFrame):
      (WebCore::FrameLoaderClientQt::objectContentType):
      * WebCoreSupport/QWebFrameAdapter.cpp:
      (QWebFrameAdapter::load):
      (QWebFrameAdapter::setContent):
      (QWebFrameAdapter::setHtml):
      (QWebFrameAdapter::kit):
      (QWebFrameAdapter::title):
      (QWebFrameAdapter::clearCoreFrame):
      * WebCoreSupport/QWebPageAdapter.cpp:
      (frameLoadRequest):
      (openNewWindow):
      (QWebPageAdapter::triggerAction):
      (QWebPageAdapter::currentFrame):
      
      Source/WebKit/win:
      
      * WebCoreSupport/WebContextMenuClient.cpp:
      (WebContextMenuClient::searchWithGoogle):
      * WebCoreSupport/WebFrameLoaderClient.cpp:
      (WebFrameLoaderClient::updateGlobalHistory):
      (WebFrameLoaderClient::updateGlobalHistoryRedirectLinks):
      (WebFrameLoaderClient::savePlatformDataToCachedFrame):
      (WebFrameLoaderClient::createFrame):
      (WebFrameLoaderClient::dispatchDidFailToStartPlugin):
      * WebCoreSupport/WebFrameNetworkingContext.cpp:
      (WebFrameNetworkingContext::blockedError):
      (WebFrameNetworkingContext::referrer):
      * WebElementPropertyBag.cpp:
      (WebElementPropertyBag::Read):
      * WebFrame.cpp:
      (kit):
      (WebFrame::reloadFromOrigin):
      (WebFrame::loadRequest):
      (WebFrame::loadData):
      (WebFrame::dataSource):
      (WebFrame::provisionalDataSource):
      (WebFrame::stopLoading):
      (WebFrame::reload):
      (WebFrame::firstLayoutDone):
      (WebFrame::loadType):
      (WebFrame::clearOpener):
      (WebFrame::dispatchWillSubmitForm):
      (WebFrame::receivedPolicyDecision):
      (WebFrame::dispatchDecidePolicyForResponse):
      (WebFrame::dispatchDecidePolicyForNewWindowAction):
      (WebFrame::dispatchDecidePolicyForNavigationAction):
      (WebFrame::createJavaAppletWidget):
      * WebFramePolicyListener.cpp:
      (WebFramePolicyListener::receivedPolicyDecision):
      * WebView.cpp:
      (WebView::close):
      (WebView::canShowMIMEType):
      (WebView::setCustomTextEncodingName):
      (WebView::loadBackForwardListFromOtherView):
      (WebView::shouldClose):
      
      Source/WebKit/wince:
      
      * WebCoreSupport/FrameLoaderClientWinCE.cpp:
      (WebKit::FrameLoaderClientWinCE::dispatchDecidePolicyForResponse):
      (WebKit::FrameLoaderClientWinCE::dispatchDecidePolicyForNewWindowAction):
      (WebKit::FrameLoaderClientWinCE::dispatchDecidePolicyForNavigationAction):
      (WebKit::FrameLoaderClientWinCE::dispatchWillSubmitForm):
      * WebCoreSupport/FrameNetworkingContextWinCE.cpp:
      (WebKit::FrameNetworkingContextWinCE::referrer):
      * WebView.cpp:
      (WebView::createFrame):
      (WebView::load):
      (WebView::reload):
      (WebView::stop):
      
      Source/WebKit2:
      
      * Shared/WebRenderLayer.cpp:
      (WebKit::WebRenderLayer::create):
      * Shared/WebRenderObject.cpp:
      (WebKit::WebRenderObject::create):
      * WebProcess/Geolocation/GeolocationPermissionRequestManager.cpp:
      (WebKit::GeolocationPermissionRequestManager::startRequestForGeolocation):
      * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
      (WKBundleFrameGetFrameLoadState):
      (WKBundleFrameClearOpener):
      (WKBundleFrameCallShouldCloseOnWebView):
      * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
      (WebKit::InjectedBundleNodeHandle::documentFrame):
      (WebKit::InjectedBundleNodeHandle::htmlFrameElementContentFrame):
      (WebKit::InjectedBundleNodeHandle::htmlIFrameElementContentFrame):
      * WebProcess/InjectedBundle/InjectedBundle.cpp:
      (WebKit::InjectedBundle::overrideBoolPreferenceForTestRunner):
      * WebProcess/InjectedBundle/InjectedBundleDOMWindowExtension.cpp:
      (WebKit::InjectedBundleDOMWindowExtension::frame):
      * WebProcess/InjectedBundle/InjectedBundleHitTestResult.cpp:
      (WebKit::InjectedBundleHitTestResult::frame):
      (WebKit::InjectedBundleHitTestResult::targetFrame):
      * WebProcess/Plugins/PDF/PDFPlugin.mm:
      (WebKit::PDFPlugin::clickedLink):
      * WebProcess/Plugins/PluginView.cpp:
      (WebKit::webPage):
      (WebKit::PluginView::didFailToInitializePlugin):
      (WebKit::PluginView::performFrameLoadURLRequest):
      (WebKit::PluginView::userAgent):
      (WebKit::PluginView::loadURL):
      (WebKit::PluginView::cancelManualStreamLoad):
      (WebKit::PluginView::proxiesForURL):
      * WebProcess/WebCoreSupport/WebChromeClient.cpp:
      (WebKit::WebChromeClient::focusedElementChanged):
      (WebKit::WebChromeClient::focusedFrameChanged):
      (WebKit::WebChromeClient::runBeforeUnloadConfirmPanel):
      (WebKit::WebChromeClient::closeWindowSoon):
      (WebKit::WebChromeClient::runJavaScriptAlert):
      (WebKit::WebChromeClient::runJavaScriptConfirm):
      (WebKit::WebChromeClient::runJavaScriptPrompt):
      (WebKit::WebChromeClient::unavailablePluginButtonClicked):
      (WebKit::WebChromeClient::print):
      (WebKit::WebChromeClient::exceededDatabaseQuota):
      (WebKit::WebChromeClient::runOpenPanel):
      * WebProcess/WebCoreSupport/WebContextMenuClient.cpp:
      (WebKit::WebContextMenuClient::searchWithGoogle):
      * WebProcess/WebCoreSupport/WebEditorClient.cpp:
      (WebKit::WebEditorClient::textFieldDidBeginEditing):
      (WebKit::WebEditorClient::textFieldDidEndEditing):
      (WebKit::WebEditorClient::textDidChangeInTextField):
      (WebKit::WebEditorClient::textDidChangeInTextArea):
      (WebKit::WebEditorClient::doTextFieldCommandFromEvent):
      (WebKit::WebEditorClient::textWillBeDeletedInTextField):
      * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
      (WebKit::WebFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad):
      (WebKit::WebFrameLoaderClient::dispatchDidStartProvisionalLoad):
      (WebKit::WebFrameLoaderClient::dispatchDidCommitLoad):
      (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForResponse):
      (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
      (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
      (WebKit::WebFrameLoaderClient::dispatchWillSendSubmitEvent):
      (WebKit::WebFrameLoaderClient::dispatchWillSubmitForm):
      (WebKit::WebFrameLoaderClient::updateGlobalHistory):
      (WebKit::WebFrameLoaderClient::updateGlobalHistoryRedirectLinks):
      (WebKit::WebFrameLoaderClient::restoreViewState):
      (WebKit::WebFrameLoaderClient::createFrame):
      (WebKit::WebFrameLoaderClient::createJavaAppletWidget):
      (WebKit::WebFrameLoaderClient::objectContentType):
      * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
      (WebKit::WebPlatformStrategies::getPluginInfo):
      * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.mm:
      (WebKit::WebFrameNetworkingContext::blockedError):
      * WebProcess/WebPage/WebFrame.cpp:
      (WebKit::WebFrame::didReceivePolicyDecision):
      (WebKit::WebFrame::startDownload):
      (WebKit::WebFrame::source):
      (WebKit::WebFrame::contentsAsString):
      (WebKit::WebFrame::url):
      (WebKit::WebFrame::parentFrame):
      (WebKit::WebFrame::childFrames):
      (WebKit::WebFrame::stopLoading):
      (WebKit::WebFrame::frameForContext):
      (WebKit::WebFrame::provisionalURL):
      (WebKit::WebFrame::suggestedFilenameForResourceWithURL):
      (WebKit::WebFrame::mimeTypeForResourceWithURL):
      (WebKit::WebFrameFilter::shouldIncludeSubframe):
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::createPlugin):
      (WebKit::WebPage::close):
      (WebKit::WebPage::tryClose):
      (WebKit::WebPage::loadURLRequest):
      (WebKit::WebPage::loadDataImpl):
      (WebKit::WebPage::linkClicked):
      (WebKit::WebPage::stopLoadingFrame):
      (WebKit::WebPage::stopLoading):
      (WebKit::WebPage::reload):
      (WebKit::WebPage::tryRestoreScrollPosition):
      (WebKit::WebPage::getMainResourceDataOfFrame):
      (WebKit::resourceDataForFrame):
      (WebKit::shouldReuseCommittedSandboxExtension):
      (WebKit::WebPage::SandboxExtensionTracker::didStartProvisionalLoad):
      (WebKit::WebPage::hasLocalDataForURL):
      (WebKit::WebPage::setCustomTextEncodingName):
      (WebKit::WebPage::canPluginHandleResponse):
      (WebKit::WebPage::canShowMIMEType):
      (WebKit::WebPage::didCommitLoad):
      * WebProcess/WebPage/mac/WebPageMac.mm:
      (WebKit::WebPage::platformHasLocalDataForURL):
      (WebKit::cachedResponseForURL):
      * WebProcess/WebProcess.cpp:
      (WebKit::WebProcess::downloadRequest):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154142 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      df550b96
    • simon.pena@samsung.com's avatar
      <https://webkit.org/b/119584> [Gtk] URL printing code in DumpRenderTree... · 89687684
      simon.pena@samsung.com authored
      <https://webkit.org/b/119584> [Gtk] URL printing code in DumpRenderTree doesn't match WTR or Mac DRT
      
      Reviewed by Gustavo Noronha Silva.
      
      Following a similar approach as in r153977, return a path string
      that is relative to main frame URL or just file name if the
      resource is not in the same directory subtree, and replace empty
      strings with "(null)".
      
      Source/WebKit/gtk:
      
      Update the AuthenticationCallback used in DumpRenderTree so that
      it receives a WebKitWebResource, and update
      dispatchDidReceiveAuthenticationChallenge so that it retrieves the
      WebKitWebResource and passes it to the callback.
      
      * WebCoreSupport/DumpRenderTreeSupportGtk.h: Update the
      AuthenticationCallback adding a WebKitWebResource parameter.
      * WebCoreSupport/FrameLoaderClientGtk.cpp:
      (WebKit::toString): Define this function earlier so we can use it
      to get the WebKitWebResource from the identifier in the
      AuthenticationChallenge.
      (WebKit::FrameLoaderClient::dispatchDidReceiveAuthenticationChallenge):
      Use toString to retrieve a WebKitWebResource from the identifier
      in the authentication challenge, and pass that WebKitWebResource
      to the AuthenticationCallback.
      
      Tools:
      
      Update pathFromSoupURI so it behaves more closely to the other
      ports, and remove the unused code after we no longer print
      <unknown> in certain cases. Also move
      soupURIToStringPreservingPassword to DumpRenderTreeGtk so it can
      be used both in TestRunnerGtk and in DumpRenderTree.
      
      * DumpRenderTree/gtk/DumpRenderTree.cpp:
      (soupURIToStringPreservingPassword): Moved from TestRunnerGtk so
      we can print Soup URIs with the password, since soup_uri_to_string
      doesn't preserve them.
      (pathFromSoupURI): Updated following EFL implementation in
      r153977, and return a WTFString instead of a CString.
      (convertSoupMessageToURLPath): Return "(null)" instead of empty
      strings, and handle the new return type of pathFromSoupURI.
      (convertWebResourceToURLPath): Use a GOwnPtr to hold the Soup URI
      reference, and handle the new return type of pathFromSoupURI.
      (descriptionSuitableForTestResult): Remove unused code.
      (didFinishLoading): Use convertResourceToURLPath.
      (didFailLoadingWithError): Use convertResourceToURLPath.
      (authenticationCallback): Display the URL of the authentication
      challenge.
      * DumpRenderTree/gtk/DumpRenderTreeGtk.h: Declare
      soupURIToStringPreservingPassword.
      * DumpRenderTree/gtk/TestRunnerGtk.cpp: Remove
      soupURIToStringPreservingPassword.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154098 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      89687684
  24. 14 Aug, 2013 1 commit
  25. 13 Aug, 2013 2 commits
  26. 12 Aug, 2013 1 commit
  27. 11 Aug, 2013 1 commit
  28. 09 Aug, 2013 1 commit
    • ap@apple.com's avatar
      REGRESSION (r142755): window.open creates an invisible window when width and height are 0 · 8d15a82f
      ap@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=119633
      
      Reviewed by Darin Adler.
      
      Source/WebCore:
      
      Test: fast/dom/Window/open-zero-size-as-default.html
      
      Relying on each WebKit to refuse setting size to zero was fragile - because this
      required each one to have the check, and because by the time the client was called,
      the initially zero size was not necessarily zero.
      
      * loader/FrameLoader.cpp: (WebCore::createWindow): When sizes are zero, keep the
      size the window was created with, because that's the default one by definition.
      
      * page/DOMWindow.cpp: (WebCore::DOMWindow::adjustWindowRect): It's too late to
      check for zero size now, it's been mangled to adjust for the difference between
      window and viewport size.
      
      Source/WebKit/efl:
      
      * WebCoreSupport/ChromeClientEfl.cpp: (WebCore::ChromeClientEfl::setWindowRect):
      Once again, the passed rect cannot be empty.
      
      Source/WebKit/gtk:
      
      * WebCoreSupport/ChromeClientGtk.cpp: (WebKit::ChromeClient::setWindowRect):
      Once again, the passed rect cannot be empty.
      
      LayoutTests:
      
      * fast/dom/Window/open-zero-size-as-default-expected.txt: Added.
      * fast/dom/Window/open-zero-size-as-default.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@153913 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8d15a82f