1. 19 May, 2013 1 commit
    • andersca@apple.com's avatar
      Remove link prerendering code · a82aee4a
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=116415
      
      Reviewed by Darin Adler.
      
      .:
      
      This code was only used by Chromium and is dead now.
      
      * Source/autotools/SetupWebKitFeatures.m4:
      * Source/cmake/WebKitFeatures.cmake:
      * Source/cmakeconfig.h.cmake:
      
      Source/JavaScriptCore:
      
      This code was only used by Chromium and is dead now.
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebCore:
      
      * Configurations/FeatureDefines.xcconfig:
      * GNUmakefile.list.am:
      * Target.pri:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.vcxproj/WebCore.vcxproj:
      * WebCore.vcxproj/WebCore.vcxproj.filters:
      * WebCore.xcodeproj/project.pbxproj:
      * dom/Document.cpp:
      (WebCore::Document::Document):
      * dom/Document.h:
      (WebCore):
      (Document):
      * dom/EventNames.h:
      (WebCore):
      * html/HTMLLinkElement.cpp:
      * html/HTMLLinkElement.h:
      * html/LinkRelAttribute.cpp:
      (WebCore::LinkRelAttribute::LinkRelAttribute):
      * html/LinkRelAttribute.h:
      (LinkRelAttribute):
      * loader/LinkLoader.cpp:
      (WebCore::LinkLoader::~LinkLoader):
      (WebCore::LinkLoader::loadLink):
      (WebCore::LinkLoader::released):
      * loader/LinkLoader.h:
      (WebCore):
      (LinkLoader):
      * loader/LinkLoaderClient.h:
      (LinkLoaderClient):
      * loader/Prerenderer.cpp: Removed.
      * loader/Prerenderer.h: Removed.
      * loader/PrerendererClient.cpp: Removed.
      * loader/PrerendererClient.h: Removed.
      * platform/PrerenderClient.h: Removed.
      * platform/PrerenderHandle.h: Removed.
      
      Source/WebKit/blackberry:
      
      This code was only used by Chromium and is dead now.
      
      * WebCoreSupport/AboutDataEnableFeatures.in:
      
      Source/WebKit/mac:
      
      This code was only used by Chromium and is dead now.
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebKit2:
      
      This code was only used by Chromium and is dead now.
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WTF:
      
      This code was only used by Chromium and is dead now.
      
      * wtf/FeatureDefines.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@150356 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a82aee4a
  2. 13 May, 2013 1 commit
    • commit-queue@webkit.org's avatar
      WebProcess consuming very high CPU on linkedin.com · 77cff30e
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=115601
      
      Patch by Zalan Bujtas <zalan@apple.com> on 2013-05-13
      Reviewed by Andreas Kling.
      
      Disable WEB_TIMING_MINIMAL.
      Turn off window.performance and performance.now(). Some JS frameworks expect
      additional Web Timing APIs, when performance.now() is available.
      
      Source/JavaScriptCore:
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebCore:
      
      * Configurations/FeatureDefines.xcconfig:
      * dom/EventTargetFactory.in:
      * page/DOMWindow.cpp:
      (WebCore::DOMWindow::~DOMWindow):
      (WebCore::DOMWindow::resetDOMWindowProperties):
      (WebCore):
      * page/DOMWindow.h:
      (DOMWindow):
      * page/DOMWindow.idl:
      * page/Performance.cpp:
      (WebCore::Performance::timing):
      * page/Performance.h:
      (Performance):
      * page/Performance.idl:
      
      Source/WebKit/mac:
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebKit2:
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WTF:
      
      * wtf/FeatureDefines.h:
      
      LayoutTests:
      
      * platform/mac/TestExpectations:
      * fast/js/global-constructors-attributes-expected.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149999 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      77cff30e
  3. 30 Apr, 2013 1 commit
    • commit-queue@webkit.org's avatar
      Animations fail to start on http://www.google.com/insidesearch/howsearchworks/thestory/ · 0d670bbf
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=111244
      
      Source/JavaScriptCore:
      
      Patch by Zalan Bujtas <zalan@apple.com> on 2013-04-30
      Reviewed by David Kilzer.
      
      Enable performance.now() as a minimal subset of Web Timing API.
      It returns DOMHighResTimeStamp, a monotonically increasing value representing the
      number of milliseconds from the start of the navigation of the current document.
      JS libraries use this API to check against the requestAnimationFrame() timestamp.
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebCore:
      
      Patch by Zalan Bujtas <zalan@apple.com> on 2013-04-30
      Reviewed by David Kilzer.
      
      Enable performance.now() as a minimal subset of Web Timing API.
      It returns DOMHighResTimeStamp, a monotonically increasing value representing the
      number of milliseconds from the start of the navigation of the current document.
      JS libraries use this API to check against the requestAnimationFrame() timestamp.
      
      Test: fast/dom/Window/web-timing-minimal-performance-now.html
      
      * Configurations/FeatureDefines.xcconfig:
      * WebCore.xcodeproj/project.pbxproj:
      * dom/EventTargetFactory.in:
      * page/DOMWindow.cpp:
      (WebCore::DOMWindow::~DOMWindow):
      (WebCore::DOMWindow::resetDOMWindowProperties):
      (WebCore):
      * page/DOMWindow.h:
      (DOMWindow):
      * page/DOMWindow.idl:
      * page/Performance.cpp:
      (WebCore):
      * page/Performance.h:
      (Performance):
      * page/Performance.idl:
      
      Source/WebKit/mac:
      
      Patch by Zalan Bujtas <zalan@apple.com> on 2013-04-30
      Reviewed by David Kilzer.
      
      Enable performance.now() as a minimal subset of Web Timing API.
      It returns DOMHighResTimeStamp, a monotonically increasing value representing the
      number of milliseconds from the start of the navigation of the current document.
      JS libraries use this API to check against the requestAnimationFrame() timestamp.
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebKit2:
      
      Patch by Zalan Bujtas <zalan@apple.com> on 2013-04-30
      Reviewed by David Kilzer.
      
      Enable performance.now() as a minimal subset of Web Timing API.
      It returns DOMHighResTimeStamp, a monotonically increasing value representing the
      number of milliseconds from the start of the navigation of the current document.
      JS libraries use this API to check against the requestAnimationFrame() timestamp.
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WTF:
      
      Patch by Zalan Bujtas <zalan@apple.com> on 2013-04-30
      Reviewed by David Kilzer.
      
      Enable performance.now() as a minimal subset of Web Timing API.
      It returns DOMHighResTimeStamp, a monotonically increasing value representing the
      number of milliseconds from the start of the navigation of the current document.
      JS libraries use this API to check against the requestAnimationFrame() timestamp.
      
      * wtf/FeatureDefines.h:
      
      LayoutTests:
      
      Patch by Zalan Bujtas <zalan@apple.com> on 2013-04-30
      Reviewed by David Kilzer.
      
      Enable performance.now() as a minimal subset of Web Timing API.
      It returns DOMHighResTimeStamp, a monotonically increasing value representing the
      number of milliseconds from the start of the navigation of the current document.
      JS libraries use this API to check against the requestAnimationFrame() timestamp.
      
      We can test the monotonical behaviour of this API only. Checking whether the value
      actually represents the navigation start requires PerformanceTiming enabled.
      
      * fast/dom/Window/web-timing-minimal-performance-now-expected.txt: Added.
      * fast/dom/Window/web-timing-minimal-performance-now.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149359 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0d670bbf
  4. 28 Apr, 2013 1 commit
    • dino@apple.com's avatar
      [Mac] Disable canvas backing store scaling (HIGH_DPI_CANVAS) · 5b3ac5a0
      dino@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=115310
      
      Reviewed by Simon Fraser.
      
      Source/JavaScriptCore:
      
      Remove ENABLE_HIGH_DPI_CANVAS_macosx.
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebCore:
      
      Disable the automatic pixel doubling in canvas backing stores on high
      dpi devices. This will potentially make canvases look worse of high dpi
      displays, but only if they were ignoring devicePixelRatio. Since the
      majority of high dpi displays *do not* auto-double (including mobile
      devices and other desktop browsers), this provides consistency and less
      chance of unnecessary memory use.
      
      * Configurations/FeatureDefines.xcconfig: Remove ENABLE_HIGH_DPI_CANVAS_macosx.
      
      Source/WebKit/mac:
      
      Remove ENABLE_HIGH_DPI_CANVAS_macosx.
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebKit2:
      
      Remove ENABLE_HIGH_DPI_CANVAS_macosx.
      
      * Configurations/FeatureDefines.xcconfig:
      
      LayoutTests:
      
      No need for platform-specific results any more.
      
      * fast/canvas/2d.backingStorePixelRatio-expected.txt:
      * fast/canvas/2d.imageDataHD-expected.txt:
      * fast/canvas/canvas-resize-reset-pixelRatio-expected.txt:
      * platform/win/fast/canvas/2d.backingStorePixelRatio-expected.txt: Removed.
      * platform/win/fast/canvas/canvas-resize-reset-pixelRatio-expected.txt: Removed.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149261 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5b3ac5a0
  5. 26 Apr, 2013 1 commit
  6. 08 Apr, 2013 1 commit
    • benjamin@webkit.org's avatar
      Remove HTML Notification · de455ba7
      benjamin@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=114231
      
      Reviewed by Ryosuke Niwa.
      
      Source/JavaScriptCore: 
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebCore: 
      
      The feature is dead. It was only kept in the tree because of chromium.
      
      * Configurations/FeatureDefines.xcconfig:
      * Modules/notifications/Notification.cpp:
      (WebCore):
      (WebCore::Notification::Notification):
      * Modules/notifications/Notification.h:
      (Notification):
      * Modules/notifications/NotificationCenter.h:
      (NotificationCenter):
      * Modules/notifications/NotificationCenter.idl:
      * page/FeatureObserver.h:
      
      Source/WebKit/blackberry: 
      
      * WebCoreSupport/AboutDataEnableFeatures.in:
      
      Source/WebKit/mac: 
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebKit/qt: 
      
      * WebCoreSupport/NotificationPresenterClientQt.cpp:
      (WebCore::NotificationPresenterClientQt::displayNotification):
      (WebCore::NotificationPresenterClientQt::cancel):
      (WebCore::NotificationPresenterClientQt::notificationClicked):
      (WebCore::NotificationPresenterClientQt::removeReplacedNotificationFromQueue):
      (WebCore::NotificationPresenterClientQt::dumpReplacedIdText):
      (WebCore::NotificationPresenterClientQt::dumpShowText):
      
      Source/WebKit2: 
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WTF: 
      
      * wtf/FeatureDefines.h:
      
      Tools: 
      
      * qmake/mkspecs/features/features.pri:
      
      LayoutTests: 
      
      * fast/notifications/notifications-with-permission-expected.txt:
      * fast/notifications/notifications-with-permission.html:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147979 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      de455ba7
  7. 05 Apr, 2013 1 commit
    • andersca@apple.com's avatar
      Stop building Objective-C bindings for the SVG DOM · 8b914b1d
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=114076
      
      Reviewed by Geoffrey Garen.
      
      The DOM SVG Objective-C bindings have never been exposed as API, and not building them cuts WebCore build by 10%.
      
      Source/WebCore:
      
      * Configurations/FeatureDefines.xcconfig:
      * Configurations/WebCore.xcconfig:
      * WebCore.exp.in:
      * WebCore.xcodeproj/project.pbxproj:
      * bindings/objc/DOM.mm:
      (WebCore::createElementClassMap):
      (kitClass):
      * bindings/objc/DOMCSS.mm:
      (kitClass):
      * bindings/objc/DOMEvents.mm:
      * bindings/objc/DOMSVG.h: Removed.
      * bindings/objc/DOMSVGException.h: Removed.
      * bindings/objc/DOMSVGPathSegInternal.mm: Removed.
      * bindings/objc/ExceptionHandlers.mm:
      * html/HTMLEmbedElement.idl:
      * html/HTMLFrameElement.idl:
      * html/HTMLIFrameElement.idl:
      * html/HTMLObjectElement.idl:
      
      Source/WebKit/mac:
      
      * Configurations/FeatureDefines.xcconfig:
      * MigrateHeaders.make:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147822 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8b914b1d
  8. 25 Mar, 2013 1 commit
    • tkent@chromium.org's avatar
      Rename ENABLE_INPUT_TYPE_DATETIME · 866ba1bd
      tkent@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=113254
      
      Reviewed by Kentaro Hara.
      
      Rename ENABLE_INPUT_TYPE_DATETIME to ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE.
      Actually I'd like to remove the code, but we shouldn't remove it yet
      because we shipped products with it on some platforms.
      
      .:
      
      * Source/autotools/SetupWebKitFeatures.m4:
      * Source/cmake/WebKitFeatures.cmake:
      * Source/cmakeconfig.h.cmake:
      
      Source/JavaScriptCore:
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebCore:
      
      * Configurations/FeatureDefines.xcconfig:
      * bindings/generic/RuntimeEnabledFeatures.cpp:
      (WebCore):
      * bindings/generic/RuntimeEnabledFeatures.h:
      (RuntimeEnabledFeatures):
      * css/html.css:
      * html/DateTimeInputType.cpp:
      * html/DateTimeInputType.h:
      * html/InputType.cpp:
      (WebCore::createInputTypeFactoryMap):
      
      Source/WebKit/blackberry:
      
      * WebCoreSupport/AboutDataEnableFeatures.in:
      
      Source/WebKit/chromium:
      
      * src/WebRuntimeFeatures.cpp:
      (WebKit::WebRuntimeFeatures::enableInputTypeDateTime):
      (WebKit::WebRuntimeFeatures::isInputTypeDateTimeEnabled):
      * tests/WebViewTest.cpp:
      
      Source/WebKit/mac:
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebKit2:
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WTF:
      
      * wtf/FeatureDefines.h:
      
      Tools:
      
      * Scripts/webkitperl/FeatureList.pm:
      * qmake/mkspecs/features/features.pri:
      
      WebKitLibraries:
      
      * win/tools/vsprops/FeatureDefines.props:
      * win/tools/vsprops/FeatureDefines.vsprops:
      * win/tools/vsprops/FeatureDefinesCairo.props:
      * win/tools/vsprops/FeatureDefinesCairo.vsprops:
      
      LayoutTests:
      
      * platform/chromium/TestExpectations:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146847 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      866ba1bd
  9. 17 Mar, 2013 1 commit
  10. 13 Mar, 2013 1 commit
  11. 08 Mar, 2013 1 commit
    • benjamin@webkit.org's avatar
      [Mac] Add a feature flag for 'view-mode' Media Feature, disable it on Mac · cc507c8c
      benjamin@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=111297
      
      Reviewed by Kenneth Rohde Christiansen.
      
      Source/WebCore: 
      
      The 'view-mode' Media Feature spec is implemented in WebCore but
      there is no WebKit support for it on Mac.
      Because of this, we always lie and report a windowed view mode.
      
      This patch add a feature flag for the feature and disable it on
      Mac so that we stop reporting incorrect default values.
      
      * WebCore.exp.in:
      * css/CSSValueKeywords.in:
      * css/MediaFeatureNames.h:
      (MediaFeatureNames):
      * css/MediaQueryEvaluator.cpp:
      * css/MediaQueryExp.cpp:
      (WebCore::featureWithCSSValueID):
      (WebCore::featureWithoutValue):
      * page/Page.cpp:
      (WebCore::Page::Page):
      * page/Page.h:
      (Page):
      
      Source/WebKit2: 
      
      * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
      * WebProcess/InjectedBundle/API/c/WKBundlePagePrivate.h:
      * WebProcess/WebPage/WebPage.cpp:
      * WebProcess/WebPage/WebPage.h:
      
      Source/WTF: 
      
      * wtf/FeatureDefines.h: Add a new feature flag for the view-mode
      CSS media: ENABLE_VIEW_MODE_CSS_MEDIA.
      
      Tools: 
      
      * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
      (WTR::TestRunner::setViewModeMediaFeature):
      
      LayoutTests: 
      
      * platform/mac/TestExpectations:
      Mark the view-mode tests as failing to track any regression
      or crash in this area.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@145255 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cc507c8c
  12. 06 Mar, 2013 1 commit
    • jer.noble@apple.com's avatar
      Default mouse cursor behavior should be auto-hide for full screen video with custom controls · e0173750
      jer.noble@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=107601
      
      Reviewed by Beth Dakin.
      
      Source/WebCore:
      
      Test: fullscreen/video-cursor-auto-hide.html
      
      To facilitate automatically hiding the mouse cursor after a certain amount of idle mouse
      time, add a new CSS property '-webkit-cursor-visibility', and handle that value inside of
      EventHandler. When that value is present, the EventHandler will start a timer which, when
      fired, will set the view's cursor to the None cursor. Subsequent mouse moves will either
      cancel the timer, or reset the auto-hide timer.
      
      Add a new CSS property, '-webkit-cursor-visibility':
      * css/CSSComputedStyleDeclaration.cpp:
      (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
      * css/CSSParser.cpp:
      (WebCore::CSSParser::parseValue):
      * css/CSSPrimitiveValueMappings.h:
      (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
      (WebCore::CSSPrimitiveValue::operator ECursorVisibility):
      * css/CSSProperty.cpp:
      (WebCore::CSSProperty::isInheritedProperty):
      * css/CSSPropertyNames.in:
      * css/CSSValueKeywords.in:
      * css/StyleBuilder.cpp:
      (WebCore::StyleBuilder::StyleBuilder):
      * css/StyleResolver.cpp:
      (WebCore::StyleResolver::applyProperty):
      
      Add a rule for video descendants of full screen elements to auto-hide the cursor on hover:
      * css/fullscreen.css:
      (:-webkit-full-screen video:hover):
      
      Add a new timer, m_autoHideCursorTimer, to control resetting the view's cursor to None after
      enough mouse idle time has passed.
      * page/EventHandler.cpp:
      (WebCore::EventHandler::EventHandler):
      (WebCore::EventHandler::~EventHandler):
      (WebCore::EventHandler::clear):
      (WebCore::EventHandler::selectCursor):
      (WebCore::EventHandler::startAutoHideCursorTimer):
      (WebCore::EventHandler::cancelAutoHideCursorTimer):
      (WebCore::EventHandler::autoHideCursorTimerFired):
      * page/EventHandler.h:
      
      Make FrameView::isActive() a public function (like it is in its superclass).
      * page/FrameView.h:
      (FrameView):
      
      Move the definition for timeWithoutMouseMovementBeforeHidingControls from page->theme()
      to page->settings() and allow that setting to be overridden in InternalSettings for
      testing purposes:
      * page/Settings.cpp:
      (WebCore::Settings::Settings):
      * page/Settings.h:
      (WebCore::Settings::setTimeWithoutMouseMovementBeforeHidingControls):
      (WebCore::Settings::timeWithoutMouseMovementBeforeHidingControls):
      * rendering/RenderTheme.h:
      * testing/InternalSettings.cpp:
      (WebCore::InternalSettings::Backup::Backup):
      (WebCore::InternalSettings::Backup::restoreTo):
      (WebCore::InternalSettings::setTimeWithoutMouseMovementBeforeHidingControls):
      * testing/InternalSettings.h:
      (InternalSettings):
      * testing/InternalSettings.idl:
      * html/shadow/MediaControls.cpp:
      (WebCore::MediaControls::startHideFullscreenControlsTimer):
      
      Add support to FeatureObserver for CURSOR_VISIBILITY:
      * page/FeatureObserver.h:
      
      Enable the feature flag:
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebKit:
      
      Enable the CURSOR_VISIBILITY feature.
      
      * WebKit.vcxproj/FeatureDefines.props:
      
      Source/WebKit/mac:
      
      Enable the CURSOR_VISIBILITY feature.
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebKit2:
      
      Enable the CURSOR_VISIBILITY feature.
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WTF:
      
      Enable the CURSOR_VISIBILITY feature.
      
      * wtf/FeatureDefines.h:
      
      LayoutTests:
      
      * fullscreen/video-cursor-auto-hide-expected.txt: Added.
      * fullscreen/video-cursor-auto-hide.html: Added.
      
      Add an expected failing result in platforms which do not enable CURSOR_VISIBILITY.
      * platform/chromium/TestExpectations:
      * platform/efl/TestExpectations:
      * platform/gtk/TestExpectations:
      * platform/qt/TestExpectations:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@145003 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e0173750
  13. 05 Mar, 2013 1 commit
    • ddkilzer@apple.com's avatar
      BUILD FIX (r144698): Only enable SPEECH_SYNTHESIS for Mac · 8a4ac927
      ddkilzer@apple.com authored
      <http://webkit.org/b/106742>
      
      Fixes the following build failures:
      
          Undefined symbols for architecture i386:
            "__ZTVN7WebCore25PlatformSpeechSynthesizerE", referenced from:
                __ZN7WebCore25PlatformSpeechSynthesizerC2EPNS_31PlatformSpeechSynthesizerClientE in PlatformSpeechSynthesizer.o
            NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
            "__ZN7WebCore25PlatformSpeechSynthesizer19initializeVoiceListEv", referenced from:
                __ZN7WebCore25PlatformSpeechSynthesizerC2EPNS_31PlatformSpeechSynthesizerClientE in PlatformSpeechSynthesizer.o
          ld: symbol(s) not found for architecture i386
      
      Source/JavaScriptCore:
      
      * Configurations/FeatureDefines.xcconfig:
      - Fix definition of ENABLE_ENCRYPTED_MEDIA_V2_macosx to match
        other FeatureDefines.xcconfig files.
      - Only set ENABLE_SPEECH_SYNTHESIS for the macosx platform.
      
      Source/WebCore:
      
      * Configurations/FeatureDefines.xcconfig:
      - Only set ENABLE_SPEECH_SYNTHESIS for the macosx platform.
      
      Source/WebKit/mac:
      
      * Configurations/FeatureDefines.xcconfig:
      - Only set ENABLE_SPEECH_SYNTHESIS for the macosx platform.
      
      Source/WebKit2:
      
      * Configurations/FeatureDefines.xcconfig:
      - Only set ENABLE_SPEECH_SYNTHESIS for the macosx platform.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@144764 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8a4ac927
  14. 04 Mar, 2013 2 commits
    • cfleizach@apple.com's avatar
      Support WebSpeech - Speech Synthesis · a9931edc
      cfleizach@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=106742
      
      Reviewed by Simon Fraser.
      
      Source/JavaScriptCore: 
      
      Enable speech synthesis for the Mac.
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebCore: 
      
      Enable speech synthesis for the Mac.
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebKit/mac: 
      
      Enable speech synthesis for the Mac.
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebKit2: 
      
      Enable speech synthesis for the Mac.
      
      * Configurations/FeatureDefines.xcconfig:
      
      LayoutTests: 
      
      Unskip speech synthesis tests.
      
      * fast/dom/script-tests/constructed-objects-prototypes.js:
      (constructorPropertiesOnWindow):
      * platform/mac/TestExpectations:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@144698 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a9931edc
    • commit-queue@webkit.org's avatar
      Add build flag for FontLoader · 375fe100
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=111289
      
      Patch by Kunihiko Sakamoto <ksakamoto@chromium.org> on 2013-03-04
      Reviewed by Benjamin Poulain.
      
      Add ENABLE_FONT_LOAD_EVENTS build flag (disabled by default).
      
      .:
      
      * Source/autotools/SetupWebKitFeatures.m4:
      * Source/cmake/WebKitFeatures.cmake:
      * Source/cmakeconfig.h.cmake:
      
      Source/JavaScriptCore:
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebCore:
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebKit/chromium:
      
      * features.gypi:
      
      Source/WebKit/mac:
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebKit2:
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WTF:
      
      * wtf/FeatureDefines.h:
      
      Tools:
      
      * Scripts/webkitperl/FeatureList.pm:
      * qmake/mkspecs/features/features.pri:
      
      WebKitLibraries:
      
      * win/tools/vsprops/FeatureDefines.vsprops:
      * win/tools/vsprops/FeatureDefinesCairo.vsprops:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@144614 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      375fe100
  15. 27 Feb, 2013 1 commit
    • glenn@skynav.com's avatar
      Add ENABLE_CSS3_TEXT_LINE_BREAK flag. · 4ec5fea6
      glenn@skynav.com authored
      https://bugs.webkit.org/show_bug.cgi?id=110944
      
      Reviewed by Dean Jackson.
      
      .:
      
      * Source/cmake/WebKitFeatures.cmake:
      * Source/cmakeconfig.h.cmake:
      
      Source/JavaScriptCore:
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebCore:
      
      No new tests.
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebKit/chromium:
      
      * features.gypi:
      
      Source/WebKit/mac:
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebKit2:
      
      * Configurations/FeatureDefines.xcconfig:
      
      Tools:
      
      * Scripts/webkitperl/FeatureList.pm:
      * qmake/mkspecs/features/features.pri:
      
      WebKitLibraries:
      
      * win/tools/vsprops/FeatureDefines.vsprops:
      * win/tools/vsprops/FeatureDefinesCairo.vsprops:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@144214 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4ec5fea6
  16. 26 Feb, 2013 1 commit
  17. 25 Feb, 2013 2 commits
    • jpfau@apple.com's avatar
      Optionally partition cache to prevent using cache for tracking · 97c6a7f9
      jpfau@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=110269
      
      Reviewed by Maciej Stachowiak.
      
      Source/JavaScriptCore:
      
      * Configurations/FeatureDefines.xcconfig: Add defines for cache partitioning and public suffix list usage
      
      Source/WebCore:
      
      Implement memory cache partitioning by passing the cache name through
      resource requests into a new version of resourceForURL.
      
      Test: http/tests/cache/partitioned-cache.html
      
      * Configurations/FeatureDefines.xcconfig: Add defines for cache partitioning and public suffix list usage
      * WebCore.exp.in: Export new functions for WKSI and test suite
      * WebCore.xcodeproj/project.pbxproj:
      * html/DOMURL.cpp:
      (WebCore::DOMURL::revokeObjectURL): Retrofit for new resourceForRequest function
      * inspector/InspectorPageAgent.cpp:
      (WebCore::InspectorPageAgent::cachedResource): Retrofit for new resourceForRequest function
      * inspector/InspectorResourceAgent.cpp:
      (WebCore::InspectorResourceAgent::replayXHR): Retrofit for new resourceForRequest function
      * loader/DocumentLoader.h:
      (DocumentLoader):
      (WebCore::DocumentLoader::recordMemoryCacheLoadForFutureClientNotification): Retrofit for new resourceForRequest function
      (WebCore::DocumentLoader::takeMemoryCacheLoadsForClientNotification): Retrofit for new resourceForRequest function
      * loader/FrameLoader.cpp:
      (WebCore::FrameLoader::loadedResourceFromMemoryCache): Retrofit for new resourceForRequest function
      (WebCore::FrameLoader::tellClientAboutPastMemoryCacheLoads): Retrofit for new resourceForRequest function
      * loader/archive/cf/LegacyWebArchive.cpp:
      (WebCore::LegacyWebArchive::create): Retrofit for new resourceForRequest function
      * loader/cache/CachedResource.cpp:
      (WebCore::CachedResource::~CachedResource):
      * loader/cache/CachedResource.h: Retrofit for new resourceForRequest function
      (CachedResource):
      (WebCore::CachedResource::cachePartition):
      * loader/cache/CachedResourceLoader.cpp:
      (WebCore::CachedResourceLoader::requestUserCSSStyleSheet): Retrofit for new resourceForRequest function
      (WebCore::CachedResourceLoader::requestResource): Retrofit for new resourceForRequest function
      (WebCore::CachedResourceLoader::loadResource): Retrofit for new resourceForRequest function
      * loader/cache/MemoryCache.cpp:
      (WebCore):
      (WebCore::partitionName): Add function for determining absolute partition name
      (WebCore::MemoryCache::add): Retrofit for partition mapping
      (WebCore::MemoryCache::revalidationSucceeded): Retrofit for partition mapping
      (WebCore::MemoryCache::resourceForURL): Call into new resourceForRequest
      (WebCore::MemoryCache::resourceForRequest): Retrofit for partition mapping
      (WebCore::MemoryCache::evict): Retrofit for partition mapping
      (WebCore::MemoryCache::removeResourcesWithOrigin): Retrofit for partition mapping
      (WebCore::MemoryCache::getOriginsWithCache): Retrofit for partition mapping
      (WebCore::MemoryCache::removeUrlFromCache): Retrofit for partition mapping
      (WebCore::MemoryCache::removeRequestFromCache): Retrofit for partition mapping
      (WebCore::MemoryCache::removeRequestFromCacheImpl): Retrofit for partition mapping
      (WebCore::MemoryCache::crossThreadRemoveRequestFromCache): Add function for calling removeRequestFromCacheImpl that takes a CrossThreadResourceRequestData
      (WebCore::MemoryCache::getStatistics): Retrofit for partition mapping
      (WebCore::MemoryCache::setDisabled): Retrofit for partition mapping
      * loader/cache/MemoryCache.h:
      (MemoryCache):
      * page/SecurityOrigin.cpp:
      (WebCore):
      (WebCore::SecurityOrigin::cachePartition): Add function for determining the cache partition name
      * page/SecurityOrigin.h:
      (SecurityOrigin):
      * platform/PublicSuffix.h: Added.
      (WebCore):
      * platform/mac/PublicSuffixMac.mm: Added.
      (WebCore):
      (WebCore::isPublicSuffix):
      (WebCore::topPrivatelyControlledDomain):
      * platform/mac/WebCoreSystemInterface.h:
      * platform/mac/WebCoreSystemInterface.mm:
      * platform/network/cf/ResourceRequest.h:
      (ResourceRequest):
      (WebCore::ResourceRequest::cachePartition):
      (WebCore::ResourceRequest::setCachePartition):
      (CrossThreadResourceRequestData):
      * platform/network/cf/ResourceRequestCFNet.cpp:
      (WebCore::ResourceRequest::doPlatformCopyData): Pass through cache partition name
      (WebCore):
      (WebCore::ResourceRequest::doPlatformAdopt): Pass through cache partition name
      * platform/network/mac/ResourceRequestMac.mm:
      (WebCore::ResourceRequest::doUpdateResourceRequest): Pass through cache partition name
      (WebCore::ResourceRequest::doUpdatePlatformRequest): Pass through cache partition name
      
      Source/WebKit/mac:
      
      Update WKSI bindings and add feature defines.
      
      * Configurations/FeatureDefines.xcconfig: Add defines for cache partitioning and public suffix list usage
      * WebCoreSupport/WebSystemInterface.mm:
      (InitWebCoreSystemInterface):
      
      Source/WebKit2:
      
      Update WKSI bindings and add feature defines.
      
      * Configurations/FeatureDefines.xcconfig: Add defines for cache partitioning and public suffix list usage
      * WebCoreSupport/WebSystemInterface.mm:
      (InitWebCoreSystemInterface):
      
      Tools:
      
      Add test suite for public suffix functions on Mac.
      
      * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
      * TestWebKitAPI/Tests/mac/PublicSuffix.mm: Added.
      (TestWebKitAPI):
      (TestWebKitAPI::TEST_F):
      
      WebKitLibraries:
      
      Update WKSI bindings.
      
      * WebKitSystemInterface.h:
      * libWebKitSystemInterfaceLion.a:
      * libWebKitSystemInterfaceMountainLion.a:
      
      LayoutTests:
      
      Added tests for ensuring the cache partitioning functions
      
      * http/tests/cache/partitioned-cache-expected.txt: Added.
      * http/tests/cache/partitioned-cache.html: Added.
      * http/tests/cache/resources/echo-cookie.cgi: Added.
      * http/tests/cache/resources/partitioned-cache-loader.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@143986 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      97c6a7f9
    • jer.noble@apple.com's avatar
      Normalize ENABLE_ENCRYPTED_MEDIA definitions across all FeatureDefines files. · 9c21925e
      jer.noble@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=110806
      
      Source/WebCore:
      
      Reviewed by Alexey Proskuryakov.
      
      Ensure both ENCRYPTED_MEDIA and ENCRYPTED_MEDIA_V2 are enabled on macosx_1090.
      
      * Configurations/FeatureDefines.xcconfig:
      
      Fix some build errors which occurred when both ENCRYPTED_MEDIA and
      ENCRYPTED_MEDIA_V2 were enabled:
      * html/HTMLMediaElement.cpp:
      (WebCore::HTMLMediaElement::webkitGenerateKeyRequest):
      (WebCore::HTMLMediaElement::webkitAddKey):
      * page/DOMWindow.idl:
      
      Source/WebKit/mac:
      
      Reviewed by Alexey Proskuryakov.
      
      Ensure both ENCRYPTED_MEDIA and ENCRYPTED_MEDIA_V2 are enabled on macosx_1090.
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebKit2:
      
      Ensure both ENCRYPTED_MEDIA and ENCRYPTED_MEDIA_V2 are enabled on macosx_1090.
      
      Reviewed by Alexey Proskuryakov.
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WTF:
      
      Reviewed by Alexey Proskuryakov.
      
      Ensure both ENCRYPTED_MEDIA and ENCRYPTED_MEDIA_V2 are enabled on macosx_1090.
      
      * wtf/FeatureDefines.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@143984 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9c21925e
  18. 20 Feb, 2013 1 commit
    • krit@webkit.org's avatar
      Enable CANVAS_PATH flag · 8a0aef2b
      krit@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=108508
      
      Reviewed by Simon Fraser.
      
      Enable CANVAS_PATH flag on trunk.
      
      .:
      
      Existing tests cover the feature.
      
      * Source/cmake/WebKitFeatures.cmake:
      
      Source/JavaScriptCore:
      
      Existing tests cover the feature.
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebCore:
      
      Existing tests cover the feature.
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebKit/chromium:
      
      * features.gypi:
      
      Source/WebKit/mac:
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebKit2:
      
      * Configurations/FeatureDefines.xcconfig:
      
      Tools:
      
      * Scripts/webkitperl/FeatureList.pm:
      
      LayoutTests:
      
      Existing tests cover the feature.
      
      * fast/canvas/canvas-path-object-expected.txt:
      * inspector/profiler/canvas2d/canvas2d-api-changes.html:
      * platform/chromium/TestExpectations:
      * platform/efl/TestExpectations:
      * platform/gtk/TestExpectations:
      * platform/mac/TestExpectations:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@143505 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8a0aef2b
  19. 12 Feb, 2013 1 commit
  20. 08 Feb, 2013 1 commit
    • jer.noble@apple.com's avatar
      Bring WebKit up to speed with latest Encrypted Media spec. · 09c10fbf
      jer.noble@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=97037
      
      Reviewed by Eric Carlson.
      
      Source/JavaScriptCore:
      
      Define the ENABLE_ENCRYPTED_MEDIA_V2 setting.
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebCore:
      
      The most recent version of the Encrypted Media Extensions spec breaks functionality out of the
      HTMLMediaElement and into new MediaKeys and MediaKeySession classes. Since the CDM functionality
      has been pulled out of the media element, we create a proxy CDM class and factory system for
      creating specific CDM key system implementations. The spec also breaks out MediaKeyEvent
      into distinct event classes, MediaKeyNeededEvent and MediaKeyMessageEvent, for needkey and
      keymessage events, respectively.
      
      Tests: media/encrypted-media/encrypted-media-v2-events.html
             media/encrypted-media/encrypted-media-v2-syntax.html
      
      CDM is a proxy class (a la MediaPlayer) for a specific CDMPrivateInterface implementation. A CDM
      implementation is registered with the CDMFactory and will be created if that implementation supports
      the key system passed into the MediaKeys constructor. CDMSession is a pure-virtual interface exposed
      by concrete CDMPrivate subclasses.  Its lifetime is owned by MediaKeySession.
      * Modules/encryptedmedia/CDM.cpp: Added.
      (WebCore::installedCDMFactories): Initialize all the known CDM subtypes. Ports will add CDM implementations here.
      (WebCore::CDM::registerCDMFactory): Registers a new CDMFactory using the passed in function pointers.
      (WebCore::CDMFactoryForKeySystem): Return the first CDM factory which supports the requested key system.
      (WebCore::CDM::supportsKeySystem): Walk the installed CDMs and ask if the given key system is supported.
      (WebCore::CDM::supportsKeySystemMIMETypeAndCodec): Ditto, with an additional MIME type and codec string.
      (WebCore::CDM::create): Simple constructor wrapper.
      (WebCore::CDM::CDM): Simple constructor; calls bestCDMForKeySystem() to create it's private implementation.
      (WebCore::CDM::~CDM): Simple destructor.
      (WebCore::CDM::createSession): Creates a new CDMSession.
      * Modules/encryptedmedia/CDM.h: Added.
      (WebCore::CDM::keySystem): Simple accessor for m_keySystem.
      (WebCore::CDMSession::CDMSession): Simple constructor.
      (WebCore::CDMSession::~CDMSession): Simple destructor.
      * Modules/encryptedmedia/CDMPrivate.h: Added.
      (WebCore::CDMPrivateInterface::CDMPrivateInterface): Simple constructor.
      (WebCore::CDMPrivateInterface::~CDMPrivateInterface): Simple destructor.
      
      The new classes, MediaKeyMessageEvent and MediaKeyNeededEvent, take distinct subsets of the initializers of
      the original MediaKeyMessageEvent.
      * Modules/encryptedmedia/MediaKeyMessageEvent.cpp: Copied from Source/WebCore/html/MediaKeyEvent.cpp.
      (WebCore::MediaKeyMessageEventInit::MediaKeyMessageEventInit): Initializer now only takes message and destinationURL
          parameters.
      (WebCore::MediaKeyMessageEvent::MediaKeyMessageEvent): Simple constructor.
      (WebCore::MediaKeyMessageEvent::~MediaKeyMessageEvent): Simple destructor.
      (WebCore::MediaKeyMessageEvent::interfaceName): Standard interfaceName.
      * Modules/encryptedmedia/MediaKeyMessageEvent.h: Copied from Source/WebCore/html/MediaKeyEvent.h.
      (WebCore::MediaKeyMessageEvent::create): Simple construction wrapper.
      (WebCore::MediaKeyMessageEvent::message): Simple accessor for m_message.
      (WebCore::MediaKeyMessageEvent::destinationURL): Simple accessor for m_destinationURL.
      * Modules/encryptedmedia/MediaKeyMessageEvent.idl: Copied from Source/WebCore/html/MediaKeyEvent.idl.
      * Modules/encryptedmedia/MediaKeyNeededEvent.cpp: Copied from Source/WebCore/html/MediaKeyEvent.h.
      (WebCore::MediaKeyNeededEventInit::MediaKeyNeededEventInit): Initializer now only takes initData parameter.
      (WebCore::MediaKeyNeededEvent::MediaKeyNeededEvent): Simple constructor.
      (WebCore::MediaKeyNeededEvent::~MediaKeyNeededEvent): Simple destructor.
      (WebCore::MediaKeyNeededEvent::interfaceName): Standard interfaceName.
      * Modules/encryptedmedia/MediaKeyNeededEvent.h: Copied from Source/WebCore/html/MediaKeyEvent.h.
      (WebCore::MediaKeyNeededEvent::create): Simple construction wrapper.
      (WebCore::MediaKeyNeededEvent::initData): Simple accessor for m_initData.
      * Modules/encryptedmedia/MediaKeyNeededEvent.idl: Copied from Source/WebCore/html/MediaKeyEvent.idl.
      
      MediaKeySession is a new class that maps keys and key requests to a given session ID:
      * Modules/encryptedmedia/MediaKeySession.cpp: Added.
      (WebCore::MediaKeySession::create): Simple construction wrapper.
      (WebCore::MediaKeySession::MediaKeySession): Simple constructor.
      (WebCore::MediaKeySession::~MediaKeySession): Simple destructor; calls close().
      (WebCore::MediaKeySession::setError): Simple setter for m_error;
      (WebCore::MediaKeySession::close): Tell the CDM to clear any saved session keys.
      (WebCore::MediaKeySession::generateKeyRequest): Start a one-shot timer, handled in keyRequestTimerFired.
      (WebCore::MediaKeySession::keyRequestTimerFired): Follow the steps in the spec; ask the CDM to generate a key request.
      (WebCore::MediaKeySession::addKey): Start a one-shot timer, handled in addKeyTimerFired.
      (WebCore::MediaKeySession::addKeyTimerFired): Follow the steps in the spec; provide the key data to the CDM.
      * Modules/encryptedmedia/MediaKeySession.h: Added.
      (WebCore::MediaKeySession::keySystem): Simple accessor for m_keySystem.
      (WebCore::MediaKeySession::sessionId): Simple accessor for m_sessionId.
      (WebCore::MediaKeySession::error): Simple accessor for m_error;
      * Modules/encryptedmedia/MediaKeySession.idl:
      
      MediaKeySession inherits from EventTarget, and must override the pure virtual functions in that class:
      * Modules/encryptedmedia/MediaKeySession.cpp: Added.
      (WebCore::MediaKeySession::interfaceName):
      * Modules/encryptedmedia/MediaKeySession.h: Added.
      (WebCore::MediaKeySession::refEventTarget):
      (WebCore::MediaKeySession::derefEventTarget):
      (WebCore::MediaKeySession::eventTargetData):
      (WebCore::MediaKeySession::ensureEventTargetData):
      (WebCore::MediaKeySession::scriptExecutionContext):
      
      MediaKeys is a new class that encapsulates a CDM and a number of key sessions:
      * Modules/encryptedmedia/MediaKeys.cpp: Added.
      (WebCore::MediaKeys::create): Throw an exception if the key system parameter is unsupported; create a CDM object
          and a new MediaKeys session.
      (WebCore::MediaKeys::MediaKeys): Simple constructor.
      (WebCore::MediaKeys::~MediaKeys): Simple destructor.
      (WebCore::MediaKeys::createSession): Follow the spec and create a new key session.
      * Modules/encryptedmedia/MediaKeys.h: Added.
      * Modules/encryptedmedia/MediaKeys.idl: Copied from Source/WebCore/html/MediaError.idl.
      
      Provide a new interface to HTMLMediaElement for MediaPlayer which does not require a sessionId or a key system:
      * html/HTMLMediaElement.cpp:
      (WebCore::HTMLMediaElement::mediaPlayerKeyNeeded):
      * platform/graphics/MediaPlayer.cpp:
      (WebCore::MediaPlayer::keyNeeded):
      
      MediaKeyError now has a systemCode parameter and member variable.
      * html/MediaKeyError.h:
      (WebCore::MediaKeyError::create): Take a systemCode parameter with a default (0) value.
      (WebCore::MediaKeyError::MediaKeyError): Ditto.
      (WebCore::MediaKeyError::systemCode): Simple accessor for m_systemCode.
      * html/MediaKeyError.idl:
      
      Add new methods to HTMLMediaElement to support MediaKeys. Support different initializer
      for the MediaKeyNeededEvent.
      * html/HTMLMediaElement.cpp:
      (WebCore::HTMLMediaElement::setMediaKeys): Simple setter for m_mediaKeys.
      (WebCore::HTMLMediaElement::mediaPlayerKeyNeeded): This version takes fewer parameters
          than the deprecated version.
      * html/HTMLMediaElement.h:
      (WebCore::HTMLMediaElement::mediaKeys): Simple accessor for m_mediaKeys.
      * html/HTMLMediaElement.idl: Add the mediaKeys attribute.
      
      Add an ENABLE(ENCRYPTED_MEDIA_V2) check to the existing ENABLE(ENCRYPTED_MEDIA) one:
      * html/MediaError.h:
      * html/MediaError.idl:
      * platform/graphics/MediaPlayer.cpp:
      (WebCore::bestMediaEngineForTypeAndCodecs):
      (WebCore::MediaPlayer::supportsType):
      * platform/graphics/MediaPlayer.h:
      (WebCore::MediaPlayer::keyNeeded): This version takes fewer parameters than the
          deprecated version.
      
      Support the new version of canPlayType which takes an extra parameter:
      * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.h:
      * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
      (WebCore::MediaPlayerPrivateAVFoundationObjC::registerMediaEngine):
      (WebCore::MediaPlayerPrivateAVFoundationObjC::extendedSupportsType):
      * platform/graphics/mac/MediaPlayerPrivateQTKit.h:
      * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
      (WebCore::MediaPlayerPrivateQTKit::registerMediaEngine):
      (WebCore::MediaPlayerPrivateQTKit::extendedSupportsType):
      
      Add a mock CDM for use within DRT and WKTR to test the MediaKeys and MediaKeySession
      APIs and events:
      * testing/Internals.cpp:
      (WebCore::Internals::initializeMockCDM): Add the MockCDM class to the CDM factories.
      * testing/Internals.h:
      * testing/Internals.idl: Add the initializeMockCDM() method.
      * testing/MockCDM.cpp: Added.
      (WebCore::MockCDM::supportsKeySystem): Only supports the 'com.webcore.mock' key system.
      (WebCore::MockCDM::supportsMIMEType): Only supports the 'video/mock' mime type.
      (WebCore::initDataPrefix): Static method which returns a Uint8Array containing 'mock'.
      (WebCore::keyPrefix): Static method which returns a Uint8Array containing 'key'.
      (WebCore::keyRequest): Static method which returns a Uint8Array containing 'request'.
      (WebCore::generateSessionId): Return a monotonically increasing number.
      (WebCore::MockCDMSession::MockCDMSession): Simple constructor.
      (WebCore::MockCDMSession::generateKeyRequest): Ignores the parameters and returns a keyRequest() array.
      (WebCore::MockCDMSession::releaseKeys): No-op.
      (WebCore::MockCDMSession::addKey): Checks that the key starts with the keyPrefix() array.
      * testing/MockCDM.h: Added.
      (WebCore::MockCDM::create):
      (WebCore::MockCDM::~MockCDM): Simple destructor.
      (WebCore::MockCDM::MockCDM): Simple constructor.
      
      Add the new classes to the built system:
      * Configurations/FeatureDefines.xcconfig:
      * DerivedSources.make:
      * WebCore.exp.in:
      * WebCore.xcodeproj/project.pbxproj:
      
      Miscelaneous changes:
      * dom/EventNames.in: Add the two new event types, MediaKeyMessageEvent and MediaKeyNeededEvent.
      * dom/EventTargetFactory.in: Add the new EventTarget, MediaKeySession.
      * page/DOMWindow.idl: Add constructors for the new classes to the window object.
      
      Source/WTF:
      
      Define the ENABLE_ENCRYPTED_MEDIA_V2 setting.
      
      * wtf/Platform.h:
      
      LayoutTests:
      
      Added new tests for the updated Encrypted Media Extensions spec.
      
      * media/encrypted-media/encrypted-media-v2-events-expected.txt: Added.
      * media/encrypted-media/encrypted-media-v2-events.html: Added.
      * media/encrypted-media/encrypted-media-v2-syntax-expected.txt: Added.
      * media/encrypted-media/encrypted-media-v2-syntax.html: Added.
      * platform/Chromium/TestExpectations: Skip the new media/encrypted-media/ v2 tests.
      * platform/mac/media/encrypted-media/encrypted-media-can-play-type-expected.txt: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@142327 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      09c10fbf
  21. 06 Feb, 2013 1 commit
    • mkwst@chromium.org's avatar
      Add an ENABLE_NOSNIFF feature flag. · ebd3858c
      mkwst@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=109029
      
      Reviewed by Jochen Eisinger.
      
      This new flag will control the behavior of 'X-Content-Type-Options: nosniff'
      when processing script and other resource types.
      
      .:
      
      * Source/cmake/WebKitFeatures.cmake:
      * Source/cmakeconfig.h.cmake:
      
      Source/JavaScriptCore:
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebCore:
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebKit/chromium:
      
      * features.gypi:
      
      Source/WebKit/mac:
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebKit2:
      
      * Configurations/FeatureDefines.xcconfig:
      
      Tools:
      
      * Scripts/webkitperl/FeatureList.pm:
      * qmake/mkspecs/features/features.pri:
      
      WebKitLibraries:
      
      * win/tools/vsprops/FeatureDefines.vsprops:
      * win/tools/vsprops/FeatureDefinesCairo.vsprops:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@141985 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ebd3858c
  22. 04 Feb, 2013 1 commit
    • ddkilzer@apple.com's avatar
      Upstream ENABLE_PDFKIT_PLUGIN settting · 5116cad5
      ddkilzer@apple.com authored
      <http://webkit.org/b/108792>
      
      Reviewed by Tim Horton.
      
      Source/JavaScriptCore:
      
      * Configurations/FeatureDefines.xcconfig: Disable PDFKIT_PLUGIN
      on iOS since PDFKit is a Mac-only framework.
      
      Source/WebCore:
      
      * Configurations/FeatureDefines.xcconfig: Disable PDFKIT_PLUGIN
      on iOS since PDFKit is a Mac-only framework.
      
      Source/WebKit/mac:
      
      * Configurations/FeatureDefines.xcconfig: Disable PDFKIT_PLUGIN
      on iOS since PDFKit is a Mac-only framework.
      
      Source/WebKit2:
      
      * Configurations/FeatureDefines.xcconfig: Disable PDFKIT_PLUGIN
      on iOS since PDFKit is a Mac-only framework.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@141744 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5116cad5
  23. 02 Feb, 2013 1 commit
    • ddkilzer@apple.com's avatar
      Upstream iOS FeatureDefines · 0bbb80cc
      ddkilzer@apple.com authored
      <http://webkit.org/b/108753>
      
      Reviewed by Anders Carlsson.
      
      Source/JavaScriptCore:
      
      * Configurations/FeatureDefines.xcconfig:
      - ENABLE_DEVICE_ORIENTATION: Add iOS configurations.
      - ENABLE_PLUGIN_PROXY_FOR_VIDEO: Ditto.
      - FEATURE_DEFINES: Add ENABLE_PLUGIN_PROXY_FOR_VIDEO.  Add
        PLATFORM_NAME variant to reduce future merge conflicts.
      
      Source/WebCore:
      
      * Configurations/FeatureDefines.xcconfig:
      - ENABLE_DEVICE_ORIENTATION: Add iOS configurations.
      - ENABLE_PLUGIN_PROXY_FOR_VIDEO: Ditto.
      - FEATURE_DEFINES: Add ENABLE_PLUGIN_PROXY_FOR_VIDEO.  Add
        PLATFORM_NAME variant to reduce future merge conflicts.
      
      Source/WebKit/mac:
      
      * Configurations/FeatureDefines.xcconfig:
      - ENABLE_DEVICE_ORIENTATION: Add iOS configurations.
      - ENABLE_PLUGIN_PROXY_FOR_VIDEO: Ditto.
      - FEATURE_DEFINES: Add ENABLE_PLUGIN_PROXY_FOR_VIDEO.  Add
        PLATFORM_NAME variant to reduce future merge conflicts.
      
      Source/WebKit2:
      
      * Configurations/FeatureDefines.xcconfig:
      - ENABLE_DEVICE_ORIENTATION: Add iOS configurations.
      - ENABLE_PLUGIN_PROXY_FOR_VIDEO: Ditto.
      - FEATURE_DEFINES: Add ENABLE_PLUGIN_PROXY_FOR_VIDEO.  Add
        PLATFORM_NAME variant to reduce future merge conflicts.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@141699 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0bbb80cc
  24. 01 Feb, 2013 1 commit
    • alexis@webkit.org's avatar
      Enable unprefixed CSS transitions by default. · 5b4483d1
      alexis@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=108216
      
      Reviewed by Dean Jackson.
      
      .:
      
      Rename the flag CSS_TRANSFORMS_ANIMATIONS_TRANSITIONS_UNPREFIXED
      to CSS_TRANSFORMS_ANIMATIONS_UNPREFIXED which will be used later to
      guard the unprefixing work for CSS Transforms and animations.
      
      * Source/cmake/WebKitFeatures.cmake:
      * Source/cmakeconfig.h.cmake:
      
      Source/JavaScriptCore:
      
      Rename the flag CSS_TRANSFORMS_ANIMATIONS_TRANSITIONS_UNPREFIXED
      to CSS_TRANSFORMS_ANIMATIONS_UNPREFIXED which will be used later to
      guard the unprefixing work for CSS Transforms and animations.
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebCore:
      
      Rename the flag CSS_TRANSFORMS_ANIMATIONS_TRANSITIONS_UNPREFIXED
      to CSS_TRANSFORMS_ANIMATIONS_UNPREFIXED which will be used later to
      guard the unprefixing work for CSS Transforms and animations. Remove the
      various #ifdefs and conditional generations.
      
      * Configurations/FeatureDefines.xcconfig:
      * DerivedSources.cpp:
      * GNUmakefile.features.am.in:
      * css/CSSPropertyNames.in:
      * dom/EventNames.in:
      * dom/TransitionEvent.cpp:
      * dom/TransitionEvent.h:
      * dom/TransitionEvent.idl:
      * page/DOMWindow.idl:
      * page/animation/AnimationController.cpp:
      (WebCore::AnimationControllerPrivate::fireEventsAndUpdateStyle):
      
      Source/WebKit/chromium:
      
      Rename the flag CSS_TRANSFORMS_ANIMATIONS_TRANSITIONS_UNPREFIXED
      to CSS_TRANSFORMS_ANIMATIONS_UNPREFIXED which will be used later to
      guard the unprefixing work for CSS Transforms and animations.
      
      * features.gypi:
      
      Source/WebKit/mac:
      
      Rename the flag CSS_TRANSFORMS_ANIMATIONS_TRANSITIONS_UNPREFIXED
      to CSS_TRANSFORMS_ANIMATIONS_UNPREFIXED which will be used later to
      guard the unprefixing work for CSS Transforms and animations.
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebKit2:
      
      Rename the flag CSS_TRANSFORMS_ANIMATIONS_TRANSITIONS_UNPREFIXED
      to CSS_TRANSFORMS_ANIMATIONS_UNPREFIXED which will be used later to
      guard the unprefixing work for CSS Transforms and animations.
      
      * Configurations/FeatureDefines.xcconfig:
      
      Tools:
      
      Rename the flag CSS_TRANSFORMS_ANIMATIONS_TRANSITIONS_UNPREFIXED
      to CSS_TRANSFORMS_ANIMATIONS_UNPREFIXED which will be used later to
      guard the unprefixing work for CSS Transforms and animations.
      
      * Scripts/webkitperl/FeatureList.pm:
      * qmake/mkspecs/features/features.pri:
      
      WebKitLibraries:
      
      Rename the flag CSS_TRANSFORMS_ANIMATIONS_TRANSITIONS_UNPREFIXED
      to CSS_TRANSFORMS_ANIMATIONS_UNPREFIXED which will be used later to
      guard the unprefixing work for CSS Transforms and animations.
      
      * win/tools/vsprops/FeatureDefines.vsprops:
      * win/tools/vsprops/FeatureDefinesCairo.vsprops:
      
      LayoutTests:
      
      Unskip the tests by default as now unprefixed CSS Transitions are
      enabled by default.
      
      * fast/events/event-creation-expected.txt:
      * fast/events/event-creation.html: Add the test that was commented out
      before.
      * platform/chromium/TestExpectations:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@141578 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5b4483d1
  25. 31 Jan, 2013 1 commit
  26. 29 Jan, 2013 1 commit
    • commit-queue@webkit.org's avatar
      Unreviewed, rolling out r140983. · 2499cccd
      commit-queue@webkit.org authored
      http://trac.webkit.org/changeset/140983
      https://bugs.webkit.org/show_bug.cgi?id=108277
      
      Unfortunately, this API has one last client (Requested by
      abarth on #webkit).
      
      Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2013-01-29
      
      Source/JavaScriptCore:
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebCore:
      
      * Configurations/FeatureDefines.xcconfig:
      * Modules/notifications/Notification.cpp:
      (WebCore::Notification::Notification):
      (WebCore):
      (WebCore::Notification::create):
      * Modules/notifications/Notification.h:
      (Notification):
      (WebCore::Notification::isHTML):
      (WebCore::Notification::setHTML):
      (WebCore::Notification::url):
      (WebCore::Notification::setURL):
      * Modules/notifications/NotificationCenter.h:
      (WebCore::NotificationCenter::createHTMLNotification):
      (NotificationCenter):
      * Modules/notifications/NotificationCenter.idl:
      * page/FeatureObserver.h:
      
      Source/WebKit/blackberry:
      
      * WebCoreSupport/AboutDataEnableFeatures.in:
      
      Source/WebKit/chromium:
      
      * src/WebNotification.cpp:
      (WebKit::WebNotification::isHTML):
      (WebKit::WebNotification::url):
      (WebKit::WebNotification::iconURL):
      (WebKit::WebNotification::title):
      (WebKit::WebNotification::body):
      
      Source/WebKit/mac:
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebKit/qt:
      
      * WebCoreSupport/NotificationPresenterClientQt.cpp:
      (WebCore::NotificationPresenterClientQt::displayNotification):
      (WebCore::NotificationPresenterClientQt::cancel):
      (WebCore::NotificationPresenterClientQt::notificationClicked):
      (WebCore::NotificationPresenterClientQt::removeReplacedNotificationFromQueue):
      (WebCore::NotificationPresenterClientQt::dumpReplacedIdText):
      (WebCore::NotificationPresenterClientQt::dumpShowText):
      
      Source/WebKit2:
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WTF:
      
      * wtf/Platform.h:
      
      LayoutTests:
      
      * fast/notifications/notifications-with-permission-expected.txt:
      * fast/notifications/notifications-with-permission.html:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@141202 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2499cccd
  27. 28 Jan, 2013 1 commit
    • abarth@webkit.org's avatar
      Remove webkitNotifications.createHTMLNotification · bdac8e68
      abarth@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=107598
      
      Reviewed by Benjamin Poulain.
      
      Source/JavaScriptCore: 
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebCore: 
      
      As discussed in http://lists.webkit.org/pipermail/webkit-dev/2012-February/019354.html,
      we've been slowly deprecating HTML notificiations for about a year.
      FeatureObserver says that HTML notifications are used by 0.0008% of web
      pages, which means we should be able to remove them without causing too
      much trouble.
      
      * Configurations/FeatureDefines.xcconfig:
      * Modules/notifications/Notification.cpp:
      (WebCore):
      (WebCore::Notification::Notification):
      * Modules/notifications/Notification.h:
      (Notification):
      * Modules/notifications/NotificationCenter.h:
      (NotificationCenter):
      * Modules/notifications/NotificationCenter.idl:
      
      Source/WebKit/blackberry: 
      
      * WebCoreSupport/AboutDataEnableFeatures.in:
      
      Source/WebKit/chromium: 
      
      We can remove these stubs once we've removed the Chromium-side code
      that depends on them.
      
      * src/WebNotification.cpp:
      (WebKit::WebNotification::isHTML):
      (WebKit::WebNotification::url):
      (WebKit::WebNotification::iconURL):
      (WebKit::WebNotification::title):
      (WebKit::WebNotification::body):
      
      Source/WebKit/mac: 
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebKit2: 
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WTF: 
      
      * wtf/Platform.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@140983 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bdac8e68
  28. 22 Jan, 2013 3 commits
    • haraken@chromium.org's avatar
      Implement UIEvent constructor · 7b8ddbae
      haraken@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=107430
      
      Reviewed by Adam Barth.
      
      Editor's draft: https://dvcs.w3.org/hg/d4e/raw-file/tip/source_respec.htm
      
      UIEvent constructor is implemented under a DOM4_EVENTS_CONSTRUCTOR flag,
      which is enabled on Safari and Chromium for now.
      
      Source/JavaScriptCore:
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebCore:
      
      Test: fast/events/constructors/ui-event-constructor.html
      
      * Configurations/FeatureDefines.xcconfig:
      * bindings/scripts/CodeGeneratorV8.pm:
      (GenerateHeader):
      * bindings/scripts/test/V8/V8TestInterface.h:
      (V8TestInterface):
      * dom/UIEvent.cpp:
      (WebCore::UIEventInit::UIEventInit):
      (WebCore):
      (WebCore::UIEvent::UIEvent):
      * dom/UIEvent.h:
      (WebCore):
      (UIEventInit):
      (UIEvent):
      (WebCore::UIEvent::create):
      (WebCore::UIEvent::view):
      (WebCore::UIEvent::detail):
      (FocusInEventDispatchMediator):
      (FocusOutEventDispatchMediator):
      * dom/UIEvent.idl:
      
      Source/WebKit/chromium:
      
      * features.gypi:
      
      Source/WebKit/mac:
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebKit2:
      
      * Configurations/FeatureDefines.xcconfig:
      
      Tools:
      
      * Scripts/webkitperl/FeatureList.pm:
      
      LayoutTests:
      
      * fast/events/constructors/ui-event-constructor-expected.txt: Added.
      * fast/events/constructors/ui-event-constructor.html: Added.
      * platform/efl/TestExpectations:
      * platform/gtk/TestExpectations:
      * platform/qt/TestExpectations:
      * platform/win/TestExpectations:
      * platform/wincairo/TestExpectations:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@140493 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7b8ddbae
    • joepeck@webkit.org's avatar
      [Mac] Enable Page Visibility (PAGE_VISIBILITY_API) · f8be7cc2
      joepeck@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=107230
      
      Reviewed by David Kilzer.
      
      Source/JavaScriptCore:
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebCore:
      
      No new tests. Covered by existing tests which are now unskipped.
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebKit/mac:
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebKit2:
      
      * Configurations/FeatureDefines.xcconfig:
      
      Tools:
      
      * DumpRenderTree/mac/TestRunnerMac.mm:
      (TestRunner::resetPageVisibility):
      Fix a typo in the original implementation. resetPageVisibility should
      pass initialState YES so an event is not dispatched, which causes
      issues in multiple tests. This now matches other ports.
      
      LayoutTests:
      
      * fast/events/page-visibility-iframe-delete-test-expected.txt:
      * fast/events/page-visibility-iframe-delete-test.html:
      Fix a typo.
      
      * platform/mac/TestExpectations:
      Unskip the tests on OS X.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@140469 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f8be7cc2
    • timothy_horton@apple.com's avatar
      PDFPlugin: Build PDFPlugin everywhere, enable at runtime · 20c87f2c
      timothy_horton@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=107117
      
      Reviewed by Alexey Proskuryakov.
      
      Since PDFLayerController SPI is all forward-declared, the plugin should build
      on all Mac platforms, and can be enabled at runtime.
      
      * Configurations/FeatureDefines.xcconfig:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@140394 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      20c87f2c
  29. 21 Jan, 2013 1 commit
    • commit-queue@webkit.org's avatar
      Add build flag for Canvas's Path object (disabled by default) · d5f9fe59
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=107473
      
      Patch by Dirk Schulze <dschulze@adobe.com> on 2013-01-21
      Reviewed by Dean Jackson.
      
      .:
      
      Add CANVAS_PATH build flag to build systems.
      
      * Source/cmake/WebKitFeatures.cmake:
      * Source/cmakeconfig.h.cmake:
      * configure.ac:
      
      Source/JavaScriptCore:
      
      Add CANVAS_PATH build flag to build systems.
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebCore:
      
      Add CANVAS_PATH build flag to build systems.
      
      * Configurations/FeatureDefines.xcconfig:
      * GNUmakefile.am:
      
      Source/WebKit/chromium:
      
      Add CANVAS_PATH build flag to build systems.
      
      * features.gypi:
      
      Source/WebKit/mac:
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebKit2:
      
      Add CANVAS_PATH build flag to build systems.
      
      * Configurations/FeatureDefines.xcconfig:
      
      Tools:
      
      Add CANVAS_PATH build flag to build systems.
      
      * Scripts/webkitperl/FeatureList.pm:
      
      WebKitLibraries:
      
      Add CANVAS_PATH build flag to build systems.
      
      * win/tools/vsprops/FeatureDefines.vsprops:
      * win/tools/vsprops/FeatureDefinesCairo.vsprops:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@140377 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d5f9fe59
  30. 16 Jan, 2013 1 commit
    • cfleizach@apple.com's avatar
      Stub out WebSpeech synthesis · fdcec2af
      cfleizach@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=106847
      
      Reviewed by Adam Barth.
      
      This adds in the necessary IDLs and stubs out the code for the WebSpeech
      synthesis specification.
      It does not turn on the feature in any platform, but it can be enabled
      and built for Mac.
      
      The feature flag is SPEECH_SYNTHESIS.
      
      * Configurations/FeatureDefines.xcconfig:
      * DerivedSources.make:
      * Modules/speech/DOMWindowSpeechSynthesis.cpp: Added.
      (WebCore::DOMWindowSpeechSynthesis::DOMWindowSpeechSynthesis):
      (WebCore::DOMWindowSpeechSynthesis::~DOMWindowSpeechSynthesis):
      (WebCore::DOMWindowSpeechSynthesis::from):
      (WebCore::DOMWindowSpeechSynthesis::speechSynthesis):
      * Modules/speech/DOMWindowSpeechSynthesis.h: Added.
      * Modules/speech/DOMWindowSpeechSynthesis.idl: Added.
      * Modules/speech/SpeechSynthesis.cpp: Added.
      (WebCore::SpeechSynthesis::create):
      (WebCore::SpeechSynthesis::SpeechSynthesis):
      * Modules/speech/SpeechSynthesis.h: Added.
      (SpeechSynthesis):
      (WebCore::SpeechSynthesis::getVoices):
      * Modules/speech/SpeechSynthesis.idl: Added.
      * Modules/speech/SpeechSynthesisEvent.cpp: Added.
      (WebCore::SpeechSynthesisEvent::create):
      (WebCore::SpeechSynthesisEvent::SpeechSynthesisEvent):
      * Modules/speech/SpeechSynthesisEvent.h: Added.
      (SpeechSynthesisEvent):
      (WebCore::SpeechSynthesisEvent::charIndex):
      (WebCore::SpeechSynthesisEvent::elapsedTime):
      (WebCore::SpeechSynthesisEvent::name):
      * Modules/speech/SpeechSynthesisEvent.idl: Added.
      * Modules/speech/SpeechSynthesisUtterance.cpp: Added.
      (WebCore::SpeechSynthesisUtterance::create):
      (WebCore::SpeechSynthesisUtterance::SpeechSynthesisUtterance):
      (WebCore::SpeechSynthesisUtterance::scriptExecutionContext):
      (WebCore::SpeechSynthesisUtterance::interfaceName):
      * Modules/speech/SpeechSynthesisUtterance.h: Added.
      (SpeechSynthesisUtterance):
      (WebCore::SpeechSynthesisUtterance::text):
      (WebCore::SpeechSynthesisUtterance::setText):
      (WebCore::SpeechSynthesisUtterance::lang):
      (WebCore::SpeechSynthesisUtterance::setLang):
      (WebCore::SpeechSynthesisUtterance::voiceURI):
      (WebCore::SpeechSynthesisUtterance::setVoiceURI):
      (WebCore::SpeechSynthesisUtterance::volume):
      (WebCore::SpeechSynthesisUtterance::setVolume):
      (WebCore::SpeechSynthesisUtterance::rate):
      (WebCore::SpeechSynthesisUtterance::setRate):
      (WebCore::SpeechSynthesisUtterance::pitch):
      (WebCore::SpeechSynthesisUtterance::setPitch):
      * Modules/speech/SpeechSynthesisUtterance.idl: Added.
      * Modules/speech/SpeechSynthesisVoice.cpp: Added.
      (WebCore::SpeechSynthesisVoice::create):
      (WebCore::SpeechSynthesisVoice::SpeechSynthesisVoice):
      * Modules/speech/SpeechSynthesisVoice.h: Added.
      (SpeechSynthesisVoice):
      (WebCore::SpeechSynthesisVoice::voiceURI):
      (WebCore::SpeechSynthesisVoice::name):
      (WebCore::SpeechSynthesisVoice::lang):
      (WebCore::SpeechSynthesisVoice::localService):
      (WebCore::SpeechSynthesisVoice::isDefault):
      * Modules/speech/SpeechSynthesisVoice.idl: Added.
      * Modules/speech/mac: Added.
      * Modules/speech/mac/SpeechSynthesisMac.mm: Added.
      (WebCore::SpeechSynthesis::pending):
      (WebCore::SpeechSynthesis::speaking):
      (WebCore::SpeechSynthesis::paused):
      (WebCore::SpeechSynthesis::speak):
      (WebCore::SpeechSynthesis::cancel):
      (WebCore::SpeechSynthesis::pause):
      (WebCore::SpeechSynthesis::resume):
      * WebCore.xcodeproj/project.pbxproj:
      * dom/EventNames.h:
      * dom/EventNames.in:
      * dom/EventTargetFactory.in:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@139918 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fdcec2af
  31. 10 Jan, 2013 1 commit
    • zandobersek@gmail.com's avatar
      Remove the ENABLE_ANIMATION_API feature define occurences · 1594f89f
      zandobersek@gmail.com authored
      https://bugs.webkit.org/show_bug.cgi?id=106544
      
      Reviewed by Simon Fraser.
      
      The Animation API code was removed in r137243. The ENABLE_ANIMATION_API
      feature define handling still lingers in various build systems and configurations
      but is of no use, so it should be removed.
      
      .:
      
      * Source/cmake/OptionsBlackBerry.cmake:
      * Source/cmake/OptionsEfl.cmake:
      * Source/cmake/WebKitFeatures.cmake:
      * Source/cmakeconfig.h.cmake:
      
      Source/JavaScriptCore:
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebCore:
      
      No new tests - no new functionality.
      
      * Configurations/FeatureDefines.xcconfig:
      * GNUmakefile.features.am.in:
      
      Source/WebKit/mac:
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebKit2:
      
      * Configurations/FeatureDefines.xcconfig:
      
      Tools:
      
      * Scripts/webkitperl/FeatureList.pm:
      * qmake/mkspecs/features/features.pri:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@139324 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1594f89f
  32. 09 Jan, 2013 1 commit
  33. 04 Jan, 2013 1 commit
    • adamk@chromium.org's avatar
      Remove ENABLE_MUTATION_OBSERVERS #define · a0129590
      adamk@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=105459
      
      Reviewed by Ryosuke Niwa.
      
      .:
      
      * Source/cmake/WebKitFeatures.cmake:
      * Source/cmakeconfig.h.cmake:
      
      Source/JavaScriptCore:
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebCore:
      
      The flag has been on by default for quite awhile now (nearly a year)
      and the feature is a standardized part of DOM4.
      
      The only place it was disabled was under "unstable" features for the
      gtk port, but the fact that it's shipping in several major WebKit
      browsers as well as Firefox suggests that it's not too unstable.
      
      * Configurations/FeatureDefines.xcconfig:
      * GNUmakefile.am: Removed ENABLE_MUTATION_OBSERVERS from the "unstable features" list.
      * GNUmakefile.features.am.in:
      * bindings/js/JSDictionary.cpp:
      (WebCore):
      (WebCore::JSDictionary::convertValue):
      * bindings/js/JSDictionary.h:
      * bindings/js/JSMainThreadExecState.cpp:
      (WebCore::JSMainThreadExecState::didLeaveScriptContext):
      * bindings/js/JSMutationCallbackCustom.cpp:
      * bindings/js/JSMutationObserverCustom.cpp:
      * bindings/v8/V8GCController.cpp:
      * bindings/v8/V8RecursionScope.cpp:
      (WebCore::V8RecursionScope::didLeaveScriptContext):
      * bindings/v8/custom/V8MutationCallbackCustom.cpp:
      * bindings/v8/custom/V8MutationObserverCustom.cpp:
      * css/PropertySetCSSStyleDeclaration.cpp:
      (WebCore::PropertySetCSSStyleDeclaration::setCssText):
      (WebCore::PropertySetCSSStyleDeclaration::setProperty):
      (WebCore::PropertySetCSSStyleDeclaration::removeProperty):
      (WebCore::PropertySetCSSStyleDeclaration::setPropertyInternal):
      * dom/CharacterData.cpp:
      (WebCore::CharacterData::dispatchModifiedEvent):
      * dom/ChildListMutationScope.cpp:
      * dom/ChildListMutationScope.h:
      * dom/ContainerNode.cpp:
      (WebCore::ContainerNode::insertBefore):
      (WebCore::ContainerNode::replaceChild):
      (WebCore::willRemoveChild):
      (WebCore::willRemoveChildren):
      (WebCore::ContainerNode::appendChild):
      (WebCore::updateTreeAfterInsertion):
      * dom/Document.cpp:
      (WebCore::Document::Document):
      * dom/Document.h:
      (Document):
      * dom/Element.cpp:
      (WebCore::Element::willModifyAttribute):
      * dom/MutationCallback.h:
      * dom/MutationCallback.idl:
      * dom/MutationObserver.cpp:
      * dom/MutationObserver.h:
      * dom/MutationObserver.idl:
      * dom/MutationObserverInterestGroup.cpp:
      * dom/MutationObserverInterestGroup.h:
      * dom/MutationObserverRegistration.cpp:
      * dom/MutationObserverRegistration.h:
      * dom/MutationRecord.cpp:
      * dom/MutationRecord.h:
      * dom/MutationRecord.idl:
      * dom/Node.cpp:
      (WebCore::Node::clearRareData):
      (WebCore::Node::setTextContent):
      (WebCore::Node::didMoveToNewDocument):
      (WebCore::Node::notifyMutationObserversNodeWillDetach):
      * dom/Node.h:
      (Node):
      * dom/NodeRareData.cpp:
      (SameSizeAsNodeRareData):
      (WebCore::NodeRareData::reportMemoryUsage):
      * dom/NodeRareData.h:
      (NodeRareData):
      (WebCore::NodeRareData::ensureTransientMutationObserverRegistry):
      * editing/markup.cpp:
      (WebCore::replaceChildrenWithFragment):
      (WebCore::replaceChildrenWithText):
      * page/DOMWindow.idl:
      
      Source/WebKit/blackberry:
      
      * WebCoreSupport/AboutDataEnableFeatures.in:
      
      Source/WebKit/chromium:
      
      * features.gypi:
      * src/WebKit.cpp:
      (WebKit::initialize):
      (WebKit::shutdown):
      
      Source/WebKit/efl:
      
      * WebCoreSupport/DumpRenderTreeSupportEfl.cpp:
      (DumpRenderTreeSupportEfl::deliverAllMutationsIfNecessary):
      
      Source/WebKit/gtk:
      
      * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
      (DumpRenderTreeSupportGtk::deliverAllMutationsIfNecessary):
      
      Source/WebKit/mac:
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebKit2:
      
      * Configurations/FeatureDefines.xcconfig:
      
      Tools:
      
      * Scripts/webkitperl/FeatureList.pm:
      * qmake/mkspecs/features/features.pri:
      
      WebKitLibraries:
      
      * win/tools/vsprops/FeatureDefines.vsprops:
      * win/tools/vsprops/FeatureDefinesCairo.vsprops:
      
      LayoutTests:
      
      Remove references to ENABLE(MUTATION_OBSERVERS) from tests.
      
      * fast/dom/MutationObserver/cross-document.html:
      * fast/dom/MutationObserver/database-callback-delivery.html:
      * fast/dom/MutationObserver/disconnect-cancel-pending.html:
      * fast/dom/MutationObserver/filesystem-callback-delivery.html:
      * fast/dom/MutationObserver/mutation-observer-constructor.html:
      * fast/dom/MutationObserver/observe-attributes.html:
      * fast/dom/MutationObserver/observe-characterdata.html:
      * fast/dom/MutationObserver/observe-childList.html:
      * fast/dom/MutationObserver/observe-exceptions.html:
      * fast/dom/MutationObserver/observe-subtree.html:
      * fast/dom/MutationObserver/takeRecords.html:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@138811 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a0129590
  34. 19 Dec, 2012 1 commit
    • alexis@webkit.org's avatar
      Implement CSS parsing for CSS transitions unprefixed. · cfa6ca70
      alexis@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=104804
      
      Reviewed by Dean Jackson.
      
      .:
      
      Add a new flag ENABLE_CSS_TRANSFORMS_ANIMATIONS_TRANSITIONS_UNPREFIXED
      to cover the work of unprefixing Transforms, Animations and
      Transitions. It will let the possibility of each ports to turn it off
      in their release branches until we're confident that these CSS
      properties are ready to be unprefixed.
      
      * Source/cmake/WebKitFeatures.cmake:
      * Source/cmakeconfig.h.cmake:
      * configure.ac:
      
      Source/JavaScriptCore:
      
      Add a new flag ENABLE_CSS_TRANSFORMS_ANIMATIONS_TRANSITIONS_UNPREFIXED
      to cover the work of unprefixing Transforms, Animations and
      Transitions. It will let the possibility of each ports to turn it off
      in their release branches until we're confident that these CSS
      properties are ready to be unprefixed.
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebCore:
      
      Add support of an unprefixed version of CSS transitions modules by adding unprefixed versions
      of each CSS properties. The work is protected behind the flag ENABLE_CSS_TRANSFORMS_ANIMATIONS_TRANSITIONS_UNPREFIXED
      to cover the work of unprefixing Transforms, Animations and Transitions. It will let the possibility of each ports to turn it off
      in their release branches until we're confident that these CSS properties are ready to be unprefixed.
      
      Test: transitions/transitions-parsing.html
      
      * Configurations/FeatureDefines.xcconfig:
      * GNUmakefile.am:
      * GNUmakefile.features.am.in:
      * css/CSSPropertyNames.in: alias the unprefixed versions to the prefixed versions.
      
      Source/WebKit/chromium:
      
      Add a new flag ENABLE_CSS_TRANSFORMS_ANIMATIONS_TRANSITIONS_UNPREFIXED
      to cover the work of unprefixing Transforms, Animations and
      Transitions. It will let the possibility of each ports to turn it off
      in their release branches until we're confident that these CSS
      properties are ready to be unprefixed.
      
      * features.gypi:
      
      Source/WebKit/mac:
      
      Add a new flag ENABLE_CSS_TRANSFORMS_ANIMATIONS_TRANSITIONS_UNPREFIXED
      to cover the work of unprefixing Transforms, Animations and
      Transitions. It will let the possibility of each ports to turn it off
      in their release branches until we're confident that these CSS
      properties are ready to be unprefixed.
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebKit2:
      
      Add a new flag ENABLE_CSS_TRANSFORMS_ANIMATIONS_TRANSITIONS_UNPREFIXED
      to cover the work of unprefixing Transforms, Animations and
      Transitions. It will let the possibility of each ports to turn it off
      in their release branches until we're confident that these CSS
      properties are ready to be unprefixed.
      
      * Configurations/FeatureDefines.xcconfig:
      
      Tools:
      
      Add a new flag ENABLE_CSS_TRANSFORMS_ANIMATIONS_TRANSITIONS_UNPREFIXED
      to cover the work of unprefixing Transforms, Animations and
      Transitions. It will let the possibility of each ports to turn it off
      in their release branches until we're confident that these CSS
      properties are ready to be unprefixed.
      
      * Scripts/webkitperl/FeatureList.pm:
      * qmake/mkspecs/features/features.pri:
      
      WebKitLibraries:
      
      Add a new flag ENABLE_CSS_TRANSFORMS_ANIMATIONS_TRANSITIONS_UNPREFIXED
      to cover the work of unprefixing Transforms, Animations and
      Transitions. It will let the possibility of each ports to turn it off
      in their release branches until we're confident that these CSS
      properties are ready to be unprefixed.
      
      * win/tools/vsprops/FeatureDefines.vsprops:
      * win/tools/vsprops/FeatureDefinesCairo.vsprops:
      
      LayoutTests:
      
      Add new tests to cover the unprefixed version as well as the prefixed version of the properties.
      It only covers the parsing and the computed style values.
      
      * transitions/transitions-parsing.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@138184 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cfa6ca70
  35. 18 Dec, 2012 1 commit
    • bdakin@apple.com's avatar
      https://bugs.webkit.org/show_bug.cgi?id=102579 · 9a0f89d9
      bdakin@apple.com authored
      [mac] Enable scaled cursors
      
      Reviewed by Dean Jackson.
      
      Source/JavaScriptCore: 
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebCore: 
      
      Not much is required to get this turned on. We just need the feature to be 
      defined, and we need to initialize m_imageScaleFactor in the Cursor constructors.
      
      * Configurations/FeatureDefines.xcconfig:
      * platform/mac/CursorMac.mm:
      (WebCore::Cursor::Cursor):
      (WebCore::Cursor::operator=):
      
      Source/WebKit/mac: 
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebKit2: 
      
      * Configurations/FeatureDefines.xcconfig:
      
      LayoutTests: 
      
      Un-skip these tests now that the feature is enabled.
      * platform/mac/TestExpectations:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@138069 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9a0f89d9
  36. 10 Dec, 2012 1 commit
    • alexis@webkit.org's avatar
      [CSS3 Backgrounds and Borders] Remove CSS3_BACKGROUND feature flag. · 67ab9926
      alexis@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=104539
      
      Reviewed by Antonio Gomes.
      
      .:
      
      As discussed on webkit-dev it is not needed to keep this feature flag
      as support for <position> type is a small feature that is already
      implemented by three other UAs. It was useful while landing this
      feature as partial bits were landed one after one.
      
      * Source/cmake/OptionsEfl.cmake:
      * Source/cmake/WebKitFeatures.cmake:
      * Source/cmakeconfig.h.cmake:
      * configure.ac:
      
      Source/JavaScriptCore:
      
      As discussed on webkit-dev it is not needed to keep this feature flag
      as support for <position> type is a small feature that is already
      implemented by three other UAs. It was useful while landing this
      feature as partial bits were landed one after one.
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebCore:
      
      As discussed on webkit-dev it is not needed to keep this feature flag
      as support for <position> type is a small feature that is already
      implemented by three other UAs. It was useful while landing this
      feature as partial bits were landed one after one.
      
      No new tests : the feature is covered by various tests and it is already enabled in many ports.
      
      * Configurations/FeatureDefines.xcconfig:
      * GNUmakefile.am:
      * GNUmakefile.features.am:
      * css/CSSParser.cpp:
      (WebCore::CSSParser::parseFillPosition):
      (WebCore::CSSParser::parseFillProperty):
      * css/CSSParser.h:
      * css/CSSToStyleMap.cpp:
      (WebCore::CSSToStyleMap::mapFillXPosition):
      (WebCore::CSSToStyleMap::mapFillYPosition):
      * rendering/style/FillLayer.cpp:
      (SameSizeAsFillLayer):
      (WebCore::FillLayer::FillLayer):
      (WebCore::FillLayer::operator=):
      (WebCore::FillLayer::operator==):
      (WebCore::FillLayer::fillUnsetProperties):
      * rendering/style/FillLayer.h:
      (WebCore::FillLayer::backgroundXOrigin):
      (WebCore::FillLayer::backgroundYOrigin):
      (WebCore::FillLayer::isBackgroundOriginSet):
      (WebCore::FillLayer::clearXPosition):
      (WebCore::FillLayer::clearYPosition):
      (FillLayer):
      
      Source/WebKit/chromium:
      
      As discussed on webkit-dev it is not needed to keep this feature flag
      as support for <position> type is a small feature that is already
      implemented by three other UAs. It was useful while landing this
      feature as partial bits were landed one after one.
      
      * features.gypi:
      
      Source/WebKit/mac:
      
      As discussed on webkit-dev it is not needed to keep this feature flag
      as support for <position> type is a small feature that is already
      implemented by three other UAs. It was useful while landing this
      feature as partial bits were landed one after one.
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebKit2:
      
      As discussed on webkit-dev it is not needed to keep this feature flag
      as support for <position> type is a small feature that is already
      implemented by three other UAs. It was useful while landing this
      feature as partial bits were landed one after one.
      
      * Configurations/FeatureDefines.xcconfig:
      
      Tools:
      
      As discussed on webkit-dev it is not needed to keep this feature flag
      as support for <position> type is a small feature that is already
      implemented by three other UAs. It was useful while landing this
      feature as partial bits were landed one after one.
      
      * Scripts/webkitperl/FeatureList.pm:
      * qmake/mkspecs/features/features.pri:
      
      WebKitLibraries:
      
      As discussed on webkit-dev it is not needed to keep this feature flag
      as support for <position> type is a small feature that is already
      implemented by three other UAs. It was useful while landing this
      feature as partial bits were landed one after one.
      
      * win/tools/vsprops/FeatureDefines.vsprops:
      * win/tools/vsprops/FeatureDefinesCairo.vsprops:
      
      LayoutTests:
      
      Unskip the related CSS3 <position> type tests for background-position
      as now the feature is enabled by default.
      
      * platform/win/TestExpectations:
      * platform/wincairo/TestExpectations:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137166 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      67ab9926