1. 03 Dec, 2013 40 commits
    • eric.carlson@apple.com's avatar
      Fix regression caused by r158599 · 16e99a3f
      eric.carlson@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=125188
      
      Reviewed by Jer Noble.
      
      * html/HTMLMediaElement.cpp:
      (HTMLMediaElement::clearMediaPlayer): Do not clear m_player when PLUGIN_PROXY_FOR_VIDEO
          is enabled.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160046 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      16e99a3f
    • commit-queue@webkit.org's avatar
      Nix Upstream: Updating WebCore files · df7b8c69
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=124981
      
      Patch by Thiago de Barros Lacerda <thiago.lacerda@openbossa.org> on 2013-12-03
      Reviewed by Benjamin Poulain.
      
      Just to sync our github repo files and the trunk, as part of the upstream process
      
      No new tests needed.
      
      * PlatformNix.cmake:
      * css/mediaControlsNix.css:
      (audio):
      (video::-webkit-media-controls):
      (audio::-webkit-media-controls-enclosure, video::-webkit-media-controls-enclosure):
      (video::-webkit-media-controls-enclosure):
      (audio::-webkit-media-controls-panel, video::-webkit-media-controls-panel):
      (video:-webkit-full-page-media):
      (audio:-webkit-full-page-media, video:-webkit-full-page-media):
      (audio::-webkit-media-controls-mute-button, video::-webkit-media-controls-mute-button):
      (audio::-webkit-media-controls-overlay-play-button, video::-webkit-media-controls-overlay-play-button):
      (audio::-webkit-media-controls-play-button, video::-webkit-media-controls-play-button):
      (audio::-webkit-media-controls-timeline-container, video::-webkit-media-controls-timeline-container):
      (audio::-webkit-media-controls-time-remaining-display, video::-webkit-media-controls-time-remaining-display):
      (audio::-webkit-media-controls-timeline, video::-webkit-media-controls-timeline):
      (audio::-webkit-media-controls-volume-slider, video::-webkit-media-controls-volume-slider):
      (input[type="range"]::-webkit-media-slider-container):
      (input[type="range"]::-webkit-media-slider-container > div):
      (input[type="range"]::-webkit-media-slider-thumb):
      (audio::-webkit-media-controls-seek-back-button, video::-webkit-media-controls-seek-back-button):
      (audio::-webkit-media-controls-seek-forward-button, video::-webkit-media-controls-seek-forward-button):
      (audio::-webkit-media-controls-fullscreen-button, video::-webkit-media-controls-fullscreen-button):
      (audio::-webkit-media-controls-toggle-closed-captions-button, video::-webkit-media-controls-toggle-closed-captions-button):
      (audio::-webkit-media-controls-fullscreen-volume-slider, video::-webkit-media-controls-fullscreen-volume-slider):
      (audio::-webkit-media-controls-fullscreen-volume-min-button, video::-webkit-media-controls-fullscreen-volume-min-button):
      (audio::-webkit-media-controls-fullscreen-volume-max-button, video::-webkit-media-controls-fullscreen-volume-max-button):
      (video::-webkit-media-text-track-container):
      (video::cue):
      (video::-webkit-media-text-track-region):
      (video::-webkit-media-text-track-region-container):
      (video::-webkit-media-text-track-region-container.scrolling):
      (video::-webkit-media-text-track-display):
      (video::cue(:future)):
      (video::-webkit-media-text-track-container b):
      (video::-webkit-media-text-track-container u):
      (video::-webkit-media-text-track-container i):
      * editing/Editor.cpp:
      (WebCore::Editor::cut):
      (WebCore::Editor::copy):
      (WebCore::Editor::copyImage):
      * editing/Editor.h:
      * html/HTMLCanvasElement.h:
      * platform/Cursor.h:
      * platform/audio/FFTFrame.h:
      * platform/audio/nix/AudioBusNix.cpp:
      (WebCore::AudioBus::loadPlatformResource):
      * platform/graphics/GLContext.h:
      * platform/nix/CursorNix.cpp:
      (WebCore::Cursor::ensurePlatformCursor):
      * platform/nix/GamepadsNix.cpp:
      (WebCore::sampleGamepads):
      * platform/nix/RenderThemeNix.cpp:
      (WebCore::toIntSize):
      (WebCore::toNixRect):
      (WebCore::RenderThemeNix::platformActiveSelectionBackgroundColor):
      (WebCore::RenderThemeNix::platformInactiveSelectionBackgroundColor):
      (WebCore::RenderThemeNix::platformActiveSelectionForegroundColor):
      (WebCore::RenderThemeNix::platformInactiveSelectionForegroundColor):
      (WebCore::RenderThemeNix::platformActiveListBoxSelectionBackgroundColor):
      (WebCore::RenderThemeNix::platformInactiveListBoxSelectionBackgroundColor):
      (WebCore::RenderThemeNix::platformActiveListBoxSelectionForegroundColor):
      (WebCore::RenderThemeNix::platformInactiveListBoxSelectionForegroundColor):
      (WebCore::RenderThemeNix::platformActiveTextSearchHighlightColor):
      (WebCore::RenderThemeNix::platformInactiveTextSearchHighlightColor):
      (WebCore::RenderThemeNix::platformFocusRingColor):
      (WebCore::RenderThemeNix::platformTapHighlightColor):
      (WebCore::RenderThemeNix::paintButton):
      (WebCore::RenderThemeNix::paintTextField):
      (WebCore::RenderThemeNix::paintCheckbox):
      (WebCore::RenderThemeNix::setCheckboxSize):
      (WebCore::RenderThemeNix::paintRadio):
      (WebCore::RenderThemeNix::setRadioSize):
      (WebCore::RenderThemeNix::paintMenuList):
      (WebCore::RenderThemeNix::paintProgressBar):
      (WebCore::RenderThemeNix::paintSliderTrack):
      (WebCore::RenderThemeNix::paintSliderThumb):
      (WebCore::RenderThemeNix::paintInnerSpinButton):
      (WebCore::RenderThemeNix::paintMeter):
      (WebCore::RenderThemeNix::extraMediaControlsStyleSheet):
      (WebCore::RenderThemeNix::paintMediaPlayButton):
      (WebCore::RenderThemeNix::paintMediaMuteButton):
      (WebCore::RenderThemeNix::paintMediaSeekBackButton):
      (WebCore::RenderThemeNix::paintMediaSeekForwardButton):
      (WebCore::RenderThemeNix::paintMediaSliderTrack):
      (WebCore::RenderThemeNix::paintMediaVolumeSliderContainer):
      (WebCore::RenderThemeNix::paintMediaVolumeSliderTrack):
      (WebCore::RenderThemeNix::paintMediaRewindButton):
      * platform/nix/RenderThemeNix.h:
      * rendering/SimpleLineLayout.cpp:
      (WebCore::SimpleLineLayout::canUseFor):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160045 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      df7b8c69
    • commit-queue@webkit.org's avatar
      Typo: FixedPositionConstaint -> FixedPositionConstraint · db06832f
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=125171
      
      Patch by Ralph Thomas <ralpht@gmail.com> on 2013-12-03
      Reviewed by Simon Fraser.
      
      Source/WebCore:
      
      No new tests, no change in behavior.
      
      * page/scrolling/ScrollingConstraints.h:
      * page/scrolling/coordinatedgraphics/ScrollingCoordinatorCoordinatedGraphics.cpp:
      (WebCore::ScrollingCoordinatorCoordinatedGraphics::updateViewportConstrainedNode):
      * page/scrolling/mac/ScrollingCoordinatorMac.mm:
      (WebCore::ScrollingCoordinatorMac::updateViewportConstrainedNode):
      
      Source/WebKit/ios:
      
      * WebCoreSupport/WebFixedPositionContent.mm:
      (-[WebFixedPositionContent scrollOrZoomChanged:]):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160044 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      db06832f
    • rniwa@webkit.org's avatar
      Add a script to automatically configure a git clone · 032b1123
      rniwa@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=110073
      
      Revert the change to use https for now since git.webkit.org is setup with http.
      
      * Scripts/webkitpy/tool/commands/setupgitclone.py:
      (SetupGitClone.execute):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160043 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      032b1123
    • msaboff@apple.com's avatar
      jit/JITArithmetic.cpp doesn't build for non-X86 ports · aa314676
      msaboff@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=125185
      
      Rubber stamped by Mark Hahnenberg.
      
      Removed unused declarations and related UNUSED_PARAM().
      
      * jit/JITArithmetic.cpp:
      (JSC::JIT::emit_op_mod):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160042 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      aa314676
    • rego@igalia.com's avatar
      [CSS Regions] Fix Layout/RegionsSelection.html in Mac platform · 98e9a58a
      rego@igalia.com authored
      https://bugs.webkit.org/show_bug.cgi?id=124963
      
      Reviewed by Ryosuke Niwa.
      
      Layout/RegionsSelection.html introduced in r159488 was not working in
      Mac platform because of it was trying to use mouse events out of the
      window dimensions. Use collapse() and extend() methods from Selection
      object to solve the issue.
      
      * Layout/resources/regions.js: Use collapse() and extend() instead of
      mouse events.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160041 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      98e9a58a
    • mitz@apple.com's avatar
      [Cocoa] Give two load delegate methods more conventional names · 6e5de6cc
      mitz@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=125183
      
      Reviewed by Anders Carlsson.
      
      * UIProcess/API/Cocoa/WKBrowsingContextController.mm:
      (didFailProvisionalLoadWithErrorForFrame): Updated for rename.
      (didFailLoadWithErrorForFrame): Ditto.
      * UIProcess/API/Cocoa/WKBrowsingContextLoadDelegate.h: Renamed
      -browsingContextControllerDidFailProvisionalLoad:withError: to
      -browsingContextController:didFailProvisionalLoadWithError: and
      -browsingContextControllerDidFailLoad:withError: to
      -browsingContextController:didFailLoadWithError:.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160040 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6e5de6cc
    • rniwa@webkit.org's avatar
      Add a script to automatically configure a git clone · bf4100ea
      rniwa@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=110073
      
      Reviewed by Benjamin Poulain.
      
      Added "webkit-patch setup-git-clone" to setup a brand new Git clone.
      
      This command runs various commands listed on http://trac.webkit.org/wiki/UsingGitWithWebKit
      
      * Scripts/webkitpy/tool/commands/__init__.py:
      * Scripts/webkitpy/tool/commands/setupgitclone.py: Added.
      (SetupGitClone):
      (SetupGitClone.execute):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160039 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bf4100ea
    • fpizlo@apple.com's avatar
      ObjectAllocationProfile is racy and the DFG should be cool with that · 62203aa3
      fpizlo@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=125172
      <rdar://problem/15233487>
      
      Reviewed by Mark Hahnenberg.
              
      We would previously sometimes get a null Structure because checking if the profile is non-null and loading
      the structure from it were two separate operations.
      
      * dfg/DFGAbstractInterpreterInlines.h:
      (JSC::DFG::::executeEffects):
      * dfg/DFGAbstractValue.cpp:
      (JSC::DFG::AbstractValue::setFuturePossibleStructure):
      * dfg/DFGByteCodeParser.cpp:
      (JSC::DFG::ByteCodeParser::parseBlock):
      * runtime/JSFunction.h:
      (JSC::JSFunction::allocationProfile):
      (JSC::JSFunction::allocationStructure):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160038 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      62203aa3
    • rniwa@webkit.org's avatar
      Import the XHTML parsing and serialization tests for template elements · 5aef9889
      rniwa@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=125131
      
      Reviewed by Antti Koivisto.
      
      Import the tests for parsing XHTML documents and fragments at f744661dbd0c29bb6a54c1530f9843838eec1300
      after self-closing link elements in template-child-nodes-div.xhtml and template-child-nodes-nested.xhtml
      as these two files would encounter parser errors otherwise (I'll be merging these changes back into
      the web-platform-tests repository later).
      
      This completes the importation of W3C tests for the HTML template element.
      
      * html-templates/additions-to-parsing-xhtml-documents: Added.
      * html-templates/additions-to-parsing-xhtml-documents/node-document-expected.txt: Added.
      * html-templates/additions-to-parsing-xhtml-documents/node-document.html: Added.
      * html-templates/additions-to-parsing-xhtml-documents/template-child-nodes-expected.txt: Added.
      * html-templates/additions-to-parsing-xhtml-documents/template-child-nodes.html: Added.
      * html-templates/additions-to-serializing-xhtml-documents: Added.
      * html-templates/additions-to-serializing-xhtml-documents/outerhtml-expected.txt: Added.
      * html-templates/additions-to-serializing-xhtml-documents/outerhtml.html: Added.
      * html-templates/resources/template-child-nodes-div.xhtml:
      * html-templates/resources/template-child-nodes-nested.xhtml:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160037 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5aef9889
    • andersca@apple.com's avatar
      Deprecate WKNotificationProvider · e53d388d
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=125178
      
      Reviewed by Sam Weinig.
      
      Source/WebKit2:
      
      * Shared/API/c/WKDeclarationSpecifiers.h:
      Add WK_DEPRECATED and WK_ENUM_DEPRECATED macros so we can things as deprecated.
      
      * UIProcess/API/C/WKNotificationManager.cpp:
      (WKNotificationManagerSetProvider):
      * UIProcess/API/C/WKNotificationManager.h:
      WKNotificationManagerSetProvider now takes a WKNotificationProviderBase.
      
      * UIProcess/API/C/WKNotificationProvider.h:
      Deprecate WKNotificationProvider and kWKNotificationProviderCurrentVersion.
      
      Tools:
      
      Update for WebKit2 changes.
      
      * WebKitTestRunner/TestController.cpp:
      (WTR::TestController::initialize):
      * WebKitTestRunner/WebNotificationProvider.cpp:
      (WTR::WebNotificationProvider::provider):
      * WebKitTestRunner/WebNotificationProvider.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160036 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e53d388d
    • bfulgham@apple.com's avatar
      [Win] Support 64-bit Application Support Libraries Location · 602c1cb1
      bfulgham@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=125179
      
      Reviewed by Tim Horton.
      
      Enable the user to specify a location for 64-bit support libraries (such as libxml2, ICU, etc.)
      on Windows until an official distribution is available that properly creates registry settings
      to specify these locations.
      
      * Scripts/webkitdirs.pm:
      (setupAppleWinEnv): Notify user to set WEBKIT_64_SUPPORT environment variable if needed.
      (setupCygwinEnv): Report WEWBKIT_64_SUPPORT path when running 64-bit builds.
      (appleApplicationSupportPath): Add WEBKIT_64_SUPPORT location to runtime environment when
      running 64-bit builds.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160035 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      602c1cb1
    • beidson@apple.com's avatar
      Indexed Database work should be done on a non-main queue · a2f7d4c8
      beidson@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=125127
      
      Reviewed by Darin Adler.
      
      Add a non-main WorkQueue to the DatabaseProcess:
      * DatabaseProcess/DatabaseProcess.cpp:
      (WebKit::DatabaseProcess::DatabaseProcess):
      (WebKit::DatabaseProcess::queue):
      * DatabaseProcess/DatabaseProcess.h:
      
      * DatabaseProcess/IndexedDB/UniqueIDBDatabase.cpp:
      (WebKit::UniqueIDBDatabase::UniqueIDBDatabase):
      (WebKit::UniqueIDBDatabase::enqueueDatabaseQueueRequest): Add an AsyncRequest to the deque then schedule performing
        the requests on the background WorkQueue.
      (WebKit::UniqueIDBDatabase::processDatabaseRequestQueue): Processes all enqueued database requests.
      (WebKit::UniqueIDBDatabase::getOrEstablishIDBDatabaseMetadata): Renamed from getIDBDatabaseMetadata().
      (WebKit::UniqueIDBDatabase::getOrEstablishIDBDatabaseMetadataInternal): For doing i/o on a background queue/thread.
      * DatabaseProcess/IndexedDB/UniqueIDBDatabase.h:
      
      Add a creator that takes the abort handler as an argument, and rename requestedCompleted()
      to completeRequest(). This makes more sense in more situations:
      * Shared/AsyncRequest.cpp:
      (WebKit::AsyncRequest::AsyncRequest):
      (WebKit::AsyncRequest::setAbortHandler):
      * Shared/AsyncRequest.h:
      (WebKit::AsyncRequest::completeRequest):
      
      Update for the AsyncRequest rename:
      * WebProcess/Databases/IndexedDB/WebIDBServerConnection.cpp:
      (WebKit::WebIDBServerConnection::didGetOrEstablishIDBDatabaseMetadata):
      
      * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.cpp:
      (WebKit::DatabaseProcessIDBConnection::getOrEstablishIDBDatabaseMetadata):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160033 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a2f7d4c8
    • samuel_white@apple.com's avatar
      AXPress event coordinates are always sent as (0, 0) · 12d5e64d
      samuel_white@apple.com authored
          https://bugs.webkit.org/show_bug.cgi?id=76677
      
          Reviewed by Simon Fraser.
      
          Make sure a press targets an element's center point.
      
          * accessibility/press-targets-center-point-expected.txt: Added.
          * accessibility/press-targets-center-point.html: Added.
      
          Set the coordinates of a simulated press equal to the center of the target
          element when the simulated press does not have a related mouse event.
      
          Test: accessibility/press-targets-center-point.html
      
          * dom/Element.cpp:
          (WebCore::Element::clientRect):
          (WebCore::Element::screenRect):
          * dom/Element.h:
          * dom/EventDispatcher.cpp:
          (WebCore::EventDispatcher::dispatchSimulatedClick):
          * dom/MouseEvent.cpp:
          (WebCore::SimulatedMouseEvent::create):
          (WebCore::SimulatedMouseEvent::SimulatedMouseEvent):
          * dom/MouseEvent.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160032 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      12d5e64d
    • timothy_horton@apple.com's avatar
      Remove TiledCoreAnimationDrawingArea(Proxy)IOS · 2a15d14b
      timothy_horton@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=125176
      
      Reviewed by Simon Fraser.
      
      Remove unused code.
      
      * UIProcess/API/ios/WKContentView.mm:
      * UIProcess/ios/TiledCoreAnimationDrawingAreaProxyIOS.h: Removed.
      * UIProcess/ios/TiledCoreAnimationDrawingAreaProxyIOS.mm: Removed.
      * Shared/DrawingAreaInfo.h:
      * WebProcess/WebPage/DrawingArea.cpp:
      (WebKit::DrawingArea::create):
      * WebProcess/WebPage/ios/TiledCoreAnimationDrawingAreaIOS.h: Removed.
      * WebProcess/WebPage/ios/TiledCoreAnimationDrawingAreaIOS.mm: Removed.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160031 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2a15d14b
    • dino@apple.com's avatar
      [WebGL] Implement OES texture float linear · ae867077
      dino@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=124871
      
      Reviewed by Brent Fulgham.
      
      Source/WebCore:
      
      Implement the OES_texture_float_linear extension. Generally
      we'd also enable OES_texture_half_float_linear at the same
      time, but that's blocked on webkit.org/b/110936.
      
      Test: fast/canvas/webgl/oes-texture-float-linear.html
      
      * CMakeLists.txt: Add new files.
      * DerivedSources.cpp: Ditto.
      * DerivedSources.make: Generate new file from IDL.
      * GNUmakefile.list.am: Add new files.
      * WebCore.vcxproj/WebCore.vcxproj: Ditto.
      * WebCore.vcxproj/WebCore.vcxproj.filters: Ditto.
      * WebCore.xcodeproj/project.pbxproj: New files for OESTextureFloatLinear.
      
      * bindings/js/JSWebGLRenderingContextCustom.cpp:
      (WebCore::toJS): Map the new name into the appropriate type.
      
      * html/canvas/OESTextureFloatLinear.cpp: Added. This is a very simple class
      that's mostly empty.
      (WebCore::OESTextureFloatLinear::OESTextureFloatLinear):
      (WebCore::OESTextureFloatLinear::~OESTextureFloatLinear):
      (WebCore::OESTextureFloatLinear::getName):
      (WebCore::OESTextureFloatLinear::create):
      * html/canvas/OESTextureFloatLinear.h: Added.
      * html/canvas/OESTextureFloatLinear.idl: Added.
      
      * html/canvas/WebGLExtension.h: Declare the new name in the enum of extensions.
      
      * html/canvas/WebGLRenderingContext.cpp:
      (WebCore::WebGLRenderingContext::drawArrays): Call new name.
      (WebCore::WebGLRenderingContext::drawElements): Call new name.
      (WebCore::WebGLRenderingContext::getExtension): Create the new extension if asked.
      (WebCore::WebGLRenderingContext::checkTextureCompleteness): Renamed from handleNPOTTextures. Now
      checks for the type of the texture too.
      * html/canvas/WebGLRenderingContext.h: Member variable for new extension.
      
      * html/canvas/WebGLTexture.cpp:
      (WebCore::WebGLTexture::WebGLTexture):
      (WebCore::WebGLTexture::needToUseBlackTexture): Takes an extra parameter which indicates
      if it has an extension enabled.
      (WebCore::WebGLTexture::update): Note it is a float type when updating.
      * html/canvas/WebGLTexture.h: New flag to indicate float type.
      
      * platform/graphics/Extensions3D.h: New flag type.
      * platform/graphics/opengl/Extensions3DOpenGL.cpp:
      (WebCore::Extensions3DOpenGL::supportsExtension): Add a comment about the extension.
      
      LayoutTests:
      
      Add the Khronos test files for this extension.
      
      Add the JS test file for OES_texture_float_linear and OES_texture_half_float_linear
      even though it's only used for the former at the moment.
      
      * fast/canvas/webgl/oes-texture-float-linear.html: Added.
      * fast/canvas/webgl/resources/oes-texture-float-and-half-float-linear.js: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160030 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ae867077
    • ap@apple.com's avatar
      Support exporting private WebCrypto RSA keys · 902a179d
      ap@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=124483
      
      Reviewed by Anders Carlsson.
      
      Source/WebCore: 
      
      Test: crypto/subtle/rsa-export-private-key.html
      
      It might be better to have our own bignum implementation in WTF, but we currently
      don't, and the need for this computation is Common Crypto specific anyway.
      
      * crypto/CommonCryptoUtilities.h:
      * crypto/CommonCryptoUtilities.cpp:
      (WebCore::CCBigNum::CCBigNum):
      (WebCore::CCBigNum::~CCBigNum):
      (WebCore::CCBigNum::operator=):
      (WebCore::CCBigNum::data):
      (WebCore::CCBigNum::operator-):
      (WebCore::CCBigNum::operator%):
      (WebCore::CCBigNum::inverse):
      Added a minimal wrapper around CommonCrypto BigNum.
      
      * crypto/mac/CryptoKeyRSAMac.cpp:
      (WebCore::getPrivateKeyComponents): Compute missing parts using CCBigNum.
      (WebCore::CryptoKeyRSA::exportData): Implemented private key case.
      
      LayoutTests: 
      
      * crypto/subtle/rsa-export-private-key-expected.txt: Added.
      * crypto/subtle/rsa-export-private-key.html: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160029 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      902a179d
    • andersca@apple.com's avatar
      Remove old WebKit::APIClient cruft · 87fd04f3
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=125173
      
      Reviewed by Antti Koivisto.
      
      * Shared/APIClient.h:
      * Shared/APIClientTraits.cpp: Removed.
      * Shared/APIClientTraits.h: Removed.
      * WebKit2.xcodeproj/project.pbxproj:
      * WebProcess/Plugins/PDF/PDFPlugin.mm:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160028 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      87fd04f3
    • ap@apple.com's avatar
      WebCrypto HMAC doesn't check key algorithm's hash · 6cfecdc0
      ap@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=125114
      
      Update layout test result for a last minute change in test content.
      
      * crypto/subtle/hmac-check-algorithm-expected.txt:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160027 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6cfecdc0
    • enrica@apple.com's avatar
      Build fix for iOS. · 4c0169c4
      enrica@apple.com authored
      Reviewed by Tim Horton.
      
      * Shared/WebCoreArgumentCoders.cpp: Added missing header.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160026 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4c0169c4
    • commit-queue@webkit.org's avatar
      Web Inspector: restore navigation panel state across reloads and reopens · 08ccc28b
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=122125
      
      Patch by Brian J. Burg <burg@cs.washington.edu> on 2013-12-03
      Reviewed by Timothy Hatcher.
      
      The previous strategy for restoring content views after inspector
      re-open did not consider the active sidebar and its selection, and
      tried to recreate the appropriate selection from the saved content
      view. However, doesn't work for tree elements in the sidebar panel
      that don't change views when selected, such as script breakpoints,
      special breakpoints, call stack, timeline sections, etc.
      
      This patch implements a new strategy that saves the navigation
      sidebar panel's view state by serializing the identity of the
      selected element's represented object. Relevant represented
      object classes implement the saveIdentityToCookie() method. Each
      represented object class also adds a TypeIdentifier property to
      its constructor, to aid inexact matching based on represented
      object type, rather than its complete identity.
      
      When restoring, the navigation sidebar attempts to match added
      tree elements against the pending cookie, and selects the element
      if it matches. A represented object matches if its serialized
      identity matches the previously saved serialized identity.
      
      The inspector view state is now only saved on the page hide event
      (for saving across reopen) and when the main frame commits its
      provisional load (for saving across same-page reloads). It
      consolidates similar view state settings into a single setting.
      
      * UserInterface/ApplicationCacheFrame.js:
      (WebInspector.ApplicationCacheFrame): Add cookie keys and type identifier.
      (WebInspector.ApplicationCacheFrame.prototype.saveIdentityToCookie): Added.
      * UserInterface/ApplicationCacheManager.js: remove objectForCookie().
      * UserInterface/Breakpoint.js:
      (WebInspector.Breakpoint): Add cookie keys and type identifier.
      (WebInspector.Breakpoint.prototype.saveIdentityToCookie):
      * UserInterface/CookieStorageObject.js:
      (WebInspector.CookieStorageObject.prototype.saveIdentityToCookie): Added.
      * UserInterface/DOMStorageObject.js:
      (WebInspector.DOMStorageObject): Add cookie keys and type identifier.
      (WebInspector.DOMStorageObject.prototype.saveIdentityToCookie): Added.
      * UserInterface/DatabaseObject.js:
      (WebInspector.DatabaseObject): Add cookie keys and type identifier.
      (WebInspector.DatabaseObject.prototype.saveIdentityToCookie): Added.
      * UserInterface/DatabaseTableObject.js:
      (WebInspector.DatabaseTableObject): Add cookie keys and type identifier.
      (WebInspector.DatabaseTableObject.prototype.saveIdentityToCookie): Added.
      * UserInterface/DebuggerSidebarPanel.js:
      (WebInspector.DebuggerSidebarPanel.prototype.saveStateToCookie): Added.
      (WebInspector.DebuggerSidebarPanel.prototype.restoreStateFromCookie): Added.
      * UserInterface/Frame.js:
      (WebInspector.Frame): Add cookie keys and type identifier.
      (WebInspector.Frame.prototype.saveIdentityToCookie): Added.
      * UserInterface/FrameResourceManager.js: remove objectForCookie().
      * UserInterface/InstrumentSidebarPanel.js:
      (WebInspector.InstrumentSidebarPanel.prototype.showTimelineForRecordType):
      Return the shown timeline, if any.
      
      (WebInspector.InstrumentSidebarPanel.prototype.saveStateToCookie): Added.
      (WebInspector.InstrumentSidebarPanel.prototype.restoreStateFromCookie): Added.
      (WebInspector.InstrumentSidebarPanel.prototype.showProfile):
      Return the shown profile, if any.
      
      * UserInterface/Main.js:
      (WebInspector): Added cookie keys for the selected sidebar and
      typeidentifier of the sidebar's selected tree element.
      
      (WebInspector.contentLoaded): Remove callbacks for
      resolveAndShowPendingContentViewCookie(). Consolidate all saved
      inspector view state into one Setting. Move special-cased
      restoring of the console to the restoration method. Move saving
      of last opened navigation panel to the saving method.
      
      (WebInspector._mainResourceDidChange): Try to restore saved view
      state when the main resource changes.
      
      (WebInspector._provisionalLoadCommitted): Update the saved view
      state when the navigation commits. This is the last chance to save
      it before the main resource changes and the navigation panel view
      state is discarded and rebuilt.
      
      (WebInspector._pageHidden): Update the saved view state when the
      inspector page is hidden, but before state is discarded.
      
      (WebInspector._navigationSidebarPanelSelected): Don't save last
      navigation sidebar panel.
      (WebInspector._updateCookieForInspectorViewState): Renamed from
      _updateCurrentContentViewCookie. It delegates view state
      serialization to the currently open navigation sidebar, rather
      than the current content view.
      
      (WebInspector._contentBrowserRepresentedObjectsDidChange): Don't
      spuriously serialize the current view state cookie on every
      ContentView change.
      
      (WebInspector._restoreInspectorViewStateFromCookie): Renamed from
      _showContentViewForCookie. It now restores a specific navigation
      panel and delegates remaining view state restoration to the panel
      itself. Last-resort selection of any tree element with the same
      type identifier was moved to the navigation panel's restore method.
      
      * UserInterface/NavigationSidebarPanel.js:
      (WebInspector.NavigationSidebarPanel):
      (WebInspector.NavigationSidebarPanel.prototype.set contentTreeOutline):
      (WebInspector.NavigationSidebarPanel.prototype.createContentTreeOutline):
      Save references to all created TreeOutlines in a Set, so we can
      restore any tree's selection.
      
      (WebInspector.NavigationSidebarPanel.prototype.saveStateToCookie):
      Added. Find the selected tree element from all tree outlines and
      ask it to serialize its identity.
      
      (WebInspector.NavigationSidebarPanel.prototype.restoreStateFromCookie):
      Added. Eagerly search existing tree elements for a matching
      representedObject. If none exists, save the pending cookie and
      schedule last-resort matching using the provided timeout interval.
      
      (WebInspector.NavigationSidebarPanel.prototype._treeElementAddedOrChanged):
      Check if the added tree element matches a pending view state
      cookie, if one exists.
      
      (WebInspector.NavigationSidebarPanel.prototype.treeElementMatchesCookie):
      Added. Check if the tree element's representedObject matches the
      pending view state cookie.
      
      (WebInspector.NavigationSidebarPanel.prototype._checkElementsForPendingViewStateCookie):
      Added. For each provided tree element, check if the tree
      element's represented object produces the same serialized identity
      as the pending view state cookie that we are trying to resolve.
      If a match is found (possibly by relaxing to matching anything
      with the same type), select the tree element and clear both the
      pending view state cookie and last-resort selection timer.
      
      * UserInterface/Resource.js:
      (WebInspector.Resource): Add cookie keys and type identifier.
      (WebInspector.Resource.prototype.saveIdentityToCookie): Added.
      
      * UserInterface/ResourceClusterContentView.js:
      (WebInspector.ResourceClusterContentView.prototype.saveToCookie):
      (WebInspector.ResourceClusterContentView.prototype.restoreFromCookie):
      Since identity state is serialized by the representedObject, these
      methods only need to save view-specific state, such as the visible
      subview. Remove extraneous state.
      
      * UserInterface/Script.js:
      (WebInspector.Script): Add cookie keys and type identifier.
      (WebInspector.Script.prototype.saveIdentityToCookie): Added.
      * UserInterface/StorageManager.js: remove objectForCookie().
      * UserInterface/TimelineManager.js: remove objectForCookie().
      * UserInterface/TimelinesContentView.js:
      (WebInspector.TimelinesContentView.prototype.saveToCookie):
      (WebInspector.TimelinesContentView.prototype.restoreFromCookie):
      Since identity state is serialized by the representedObject, these
      methods only need to save view-specific state, such as the visible
      subview. Remove extraneous state.
      
      * UserInterface/TreeOutline.js: Add TreeOutline.prototype.constructor
      so other code can assume the constructor property exists.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160025 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      08ccc28b
    • rniwa@webkit.org's avatar
      XML fragment parsing algorithm doesn't use the context element's default namespace URI · 55fa369e
      rniwa@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=125132
      
      Reviewed by Darin Adler.
      
      Source/WebCore:
      
      Always use the context element's namespace as the default namespace URI when one is not specified by xmlns.
      
      The new behavior matches that of Internet Explorer and the specified behavior in HTML5:
      http://www.w3.org/TR/2013/CR-html5-20130806/the-xhtml-syntax.html#parsing-xhtml-fragments
      
      "The default namespace is the namespace for which the DOM isDefaultNamespace() method on the element would
      return true."
      
      Test: fast/parser/fragment-parsing-in-document-without-xmlns.html
      
      * xml/parser/XMLDocumentParserLibxml2.cpp:
      (WebCore::XMLDocumentParser::XMLDocumentParser):
      
      LayoutTests:
      
      Added a test for parsing a markup fragment inside a XHTML document without xmlns.
      The parsed fragment should use the context element's namespace as the default namespace.
      
      * fast/parser/fragment-parsing-in-document-without-xmlns-expected.txt: Added.
      * fast/parser/fragment-parsing-in-document-without-xmlns.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160024 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      55fa369e
    • commit-queue@webkit.org's avatar
      Remove some CSS Variables leftovers · e2986bb9
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=125167
      
      Patch by Nick Diego Yamane <nick.yamane@openbossa.org> on 2013-12-03
      Reviewed by Darin Adler.
      
      Source/WebCore:
      
      No new tests needed. Only removing leftover code.
      
      * css/CSSBasicShapes.cpp:
      * css/CSSBasicShapes.h:
      
      Source/WebKit/blackberry:
      
      * WebCoreSupport/AboutDataEnableFeatures.in:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160023 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e2986bb9
    • commit-queue@webkit.org's avatar
      Remove WTF:: prefix from types in messages.in files. · 249919bb
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=124578
      
      Patch by Tamas Gergely <tgergely.u-szeged@partner.samsung.com> on 2013-12-03
      Reviewed by Anders Carlsson.
      
      The WTF:: prefixes are removed from the messages.in files, and the
      messages.py now handles unprefixed non-template WTF classes (only
      the WTF::String class is used currently). Tests are also updated.
      
      * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.messages.in:
      * NetworkProcess/NetworkConnectionToWebProcess.messages.in:
      * NetworkProcess/NetworkProcess.messages.in:
      * PluginProcess/PluginControllerProxy.messages.in:
      * PluginProcess/PluginProcess.messages.in:
      * Scripts/webkit2/messages.py:
      (forward_declarations_and_headers):
      (class_template_headers):
      (argument_coder_headers_for_type):
      * Scripts/webkit2/messages_unittest.py:
      (std):
      * Shared/Network/CustomProtocols/CustomProtocolManager.messages.in:
      * UIProcess/Downloads/DownloadProxy.messages.in:
      * UIProcess/Plugins/PluginProcessProxy.messages.in:
      * UIProcess/Storage/StorageManager.messages.in:
      * UIProcess/WebContext.messages.in:
      * UIProcess/WebCookieManagerProxy.messages.in:
      * UIProcess/WebDatabaseManagerProxy.messages.in:
      * UIProcess/WebIconDatabase.messages.in:
      * UIProcess/WebInspectorProxy.messages.in:
      * UIProcess/WebMediaCacheManagerProxy.messages.in:
      * UIProcess/WebPageProxy.messages.in:
      * UIProcess/WebProcessProxy.messages.in:
      * WebProcess/Cookies/WebCookieManager.messages.in:
      * WebProcess/Geolocation/WebGeolocationManager.messages.in:
      * WebProcess/MediaCache/WebMediaCacheManager.messages.in:
      * WebProcess/Notifications/WebNotificationManager.messages.in:
      * WebProcess/Plugins/PluginProcessConnection.messages.in:
      * WebProcess/Plugins/PluginProxy.messages.in:
      * WebProcess/Storage/StorageAreaMap.messages.in:
      * WebProcess/WebCoreSupport/WebDatabaseManager.messages.in:
      * WebProcess/WebPage/WebInspector.messages.in:
      * WebProcess/WebPage/WebPage.messages.in:
      * WebProcess/WebProcess.messages.in:
      * WebProcess/soup/WebSoupRequestManager.messages.in:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160022 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      249919bb
    • commit-queue@webkit.org's avatar
      Checking second-to-last bit in address is a typo · c50faa7d
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=125162
      
      Patch by Myles C. Maxfield <mmaxfield@apple.com> on 2013-12-03
      Reviewed by Darin Adler.
      
      After talking with the original author of this line,
      is was a typo to make sure that the second-to-last bit
      in an address is 0. Instead, we want to make sure that
      the address is aligned to a 4-byte boundary
      
      No behavior change, so no test is necessary
      
      * platform/graphics/cg/ImageBufferCG.cpp:
      (WebCore::ImageBuffer::ImageBuffer):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160021 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c50faa7d
    • andersca@apple.com's avatar
      Tweak build fixes. · 75c5c6e6
      andersca@apple.com authored
      * Shared/APIClient.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160020 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      75c5c6e6
    • dbates@webkit.org's avatar
      ANGLE fails to build with trunk clang: unused constant kTraceBufferLen · f1ae6548
      dbates@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=125164
      https://code.google.com/p/angleproject/issues/detail?id=534
      
      Reviewed by Darin Adler.
      
      Move the definition of the constant kTraceBufferLen under the macro
      guard TRACE_ENABLED since it's only referenced in code guarded by
      TRACE_ENABLED.
      
      * src/compiler/debug.cpp:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160018 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f1ae6548
    • bfulgham@apple.com's avatar
      [Win] WebKit.make Makefile doesn't copy resource bundle to DSTROOT · d507d58d
      bfulgham@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=125160
      
      Reviewed by Tim Horton.
      
      * WebKit.vcxproj/WebKit.make: Add copy command for resource bundle.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160017 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d507d58d
    • mhahnenberg@apple.com's avatar
      run-jsc-stress-tests only supports host environments that have make installed · 77cebd6b
      mhahnenberg@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=124550
      
      Reviewed by Darin Adler.
      
      This might not be the case for all hosts, so this patch implements an alternate "backend" 
      for run-jsc-stress-tests to use normal shell commands rather than Makefiles. To remain at 
      least somewhat competitive with the make-based test runner, the shell backend uses subshells
      run in the background to allow tests to run in parallel. Since the concurrency primitives 
      in shell scripting are rather coarse, the overhead of this parallelism is higher than that 
      of the make-based runner.
      
      * Scripts/jsc-stress-test-helpers/shell-runner.sh: Added. This is the runner that is copied into
      the bundle and controls all of the parallel aspects of the shell-based test runner.
      * Scripts/run-jsc-stress-tests:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160016 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      77cebd6b
    • cfleizach@apple.com's avatar
      AX: Crash in accessibilityRoot when Document goes away · 134cb181
      cfleizach@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=125113
      
      Reviewed by Tim Horton.
      
      The AXObjectCache can sometimes be null if the render tree has been detached from the document.
      
      * WebView/WebFrame.mm:
      (-[WebFrame accessibilityRoot]):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160015 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      134cb181
    • stavila@adobe.com's avatar
      The overflow border of a relatively positioned element inside a region is not painted · e018cb5e
      stavila@adobe.com authored
      https://bugs.webkit.org/show_bug.cgi?id=124919
      
      Source/WebCore:
      
      Relative positioned elements have self-painting layers that don't propagate the visual overflow
      so the layer's position should be used when determining the clipping rectangle for box decorations.
      
      Reviewed by Mihnea Ovidenie.
      
      Test: fast/regions/relative-borders-overflow.html
      
      * rendering/RenderFlowThread.cpp:
      (WebCore::RenderFlowThread::decorationsClipRectForBoxInRegion):
      
      LayoutTests:
      
      Added new tests for correct painting of the borders of a relatively positioned element inside a region.
      
      Reviewed by Mihnea Ovidenie.
      
      * fast/regions/relative-borders-overflow-expected.html: Added.
      * fast/regions/relative-borders-overflow.html: Added.
      * fast/regions/relative-in-absolute-borders-overflow-expected.html: Added.
      * fast/regions/relative-in-absolute-borders-overflow.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160014 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e018cb5e
    • seokju@webkit.org's avatar
      Web Inspector: Get rid of 'hasFrontend()' in InspectorController and WorkerInspectorController · c783015a
      seokju@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=125135
      
      Reviewed by Darin Adler.
      
      Remove 'hasFrontend()' from InspectorController and WorkerInspectorController
      as it's never called.
      
      No new tests, no behavior changes.
      
      * inspector/InspectorController.h:
      * inspector/WorkerInspectorController.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160013 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c783015a
    • seokju@webkit.org's avatar
      Web Inspector: webViewResized() is not used anywhere in WebInspectorUI · 824882fa
      seokju@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=125137
      
      Reviewed by Darin Adler.
      
      Remove leftover code.
      
      No new tests, no behavior changes.
      
      * inspector/InspectorController.cpp:
      * inspector/InspectorController.h:
      * inspector/InspectorOverlay.cpp:
      * inspector/InspectorOverlay.h:
      * inspector/InspectorPageAgent.cpp:
      * inspector/InspectorPageAgent.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160012 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      824882fa
    • cfleizach@apple.com's avatar
      AX: aria-hidden=false does not work as expected · 0af5841b
      cfleizach@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=98787
      
      Reviewed by Beth Dakin.
      
      These tests were part of this patch added over a year ago, but the patch was rolled out, and when it was rolled back in
      the tests were never added. So I'm adding them back again.
      
      * accessibility/aria-hidden-negates-no-visibility.html: Added.
      * platform/mac/accessibility/aria-hidden-negates-no-visibility-expected.txt: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160011 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0af5841b
    • commit-queue@webkit.org's avatar
      ASSERTION FAILED: !value || (value->isPrimitiveValue()) in... · 854bbedf
      commit-queue@webkit.org authored
      ASSERTION FAILED: !value || (value->isPrimitiveValue()) in WebCore::StyleProperties::getLayeredShorthandValue.
      https://bugs.webkit.org/show_bug.cgi?id=125146
      
      Patch by László Langó <lango@inf.u-szeged.hu> on 2013-12-03
      Reviewed by Darin Adler.
      
      Source/WebCore:
      
      Do not presume that |yValue| is primitive if |value| is implicit in StylePropertySerializer.
      An implicit y-value can become explicit if specified as a separate longhand.
      At the same time, its new value can be non-primitive.
      
      Backported from Blink:
      http://src.chromium.org/viewvc/blink?view=rev&rev=153678
      
      Test: fast/css/webkit-mask-crash-implicit.html
      
      * css/StyleProperties.cpp:
      (WebCore::StyleProperties::getLayeredShorthandValue):
      
      LayoutTests:
      
      * fast/css/webkit-mask-crash-implicit-expected.txt: Added.
      * fast/css/webkit-mask-crash-implicit.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160010 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      854bbedf
    • rwlbuis@webkit.org's avatar
      Fix build break after r160007. · 4acccd43
      rwlbuis@webkit.org authored
      * rendering/style/BasicShapes.cpp:
      (WebCore::BasicShape::canBlend):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160009 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4acccd43
    • commit-queue@webkit.org's avatar
      Fix EFL build error in WK2 (159965) · 2e854ac0
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=125153
      
      Patch by Laszlo Vidacs <lac@inf.u-szeged.hu> on 2013-12-03
      Reviewed by Darin Adler.
      
      * Shared/APIClient.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160008 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2e854ac0
    • rwlbuis@webkit.org's avatar
      [css shapes] layout for new ellipse syntax · 4f519ba0
      rwlbuis@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=124621
      
      Source/WebCore:
      
      Reviewed by Dirk Schulze.
      
      Implement support for doing layout with the new ellipse shape syntax,
      including basic animation support.
      
      Test: fast/shapes/shape-outside-floats/shape-outside-floats-ellipse-000.html
      
      * rendering/shapes/Shape.cpp:
      (WebCore::Shape::createShape): Convert new ellipse to a layout shape.
      * rendering/style/BasicShapes.cpp:
      (WebCore::BasicShape::canBlend): Ignore ellipses with values that
          cannot be interpolated.
      (WebCore::BasicShapeEllipse::floatValueForRadiusInBox): Helper function to calculate
          either radiusX or radiusY, shared by clip-path and shape code paths.
      (WebCore::BasicShapeEllipse::path):
      * rendering/style/BasicShapes.h:
      
      LayoutTests:
      
      Add a new test for the new ellipse syntax. Also update existing shape-inside, animation, and clip-path tests to
      test the new ellipse syntax for clipping and shape-inside.
      
      Reviewed by Dirk Schulze.
      
      * animations/resources/animation-test-helpers.js:
      (parseBasicShape):
      * css3/masking/clip-path-animation-expected.txt:
      * css3/masking/clip-path-animation.html:
      * css3/masking/clip-path-ellipse.html:
      * fast/shapes/shape-inside/shape-inside-animation-expected.txt:
      * fast/shapes/shape-inside/shape-inside-animation.html:
      * fast/shapes/shape-inside/shape-inside-ellipse-padding.html:
      * fast/shapes/shape-inside/shape-inside-ellipse.html:
      * fast/shapes/shape-inside/shape-inside-empty-expected.html:
      * fast/shapes/shape-inside/shape-inside-empty.html:
      * fast/shapes/shape-outside-floats/shape-outside-animation-expected.txt:
      * fast/shapes/shape-outside-floats/shape-outside-animation.html:
      * fast/shapes/shape-outside-floats/shape-outside-floats-ellipse-000-expected.html: Added.
      * fast/shapes/shape-outside-floats/shape-outside-floats-ellipse-000.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160007 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4f519ba0
    • commit-queue@webkit.org's avatar
      Remove function from TextChecker · 9c0e7868
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=125148
      
      Patch by Tamas Gergely <tgergely.u-szeged@partner.samsung.com> on 2013-12-03
      Reviewed by Darin Adler.
      
      The process_file_data is used only from the unit tests, so it is simply moved there.
      
      * Scripts/webkitpy/style/checkers/text.py:
      (TextChecker.check):
      * Scripts/webkitpy/style/checkers/text_unittest.py:
      (TextStyleTestCase.process_file_data):
      (TextStyleTestCase.assertNoError):
      (TextStyleTestCase.assertError):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160006 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9c0e7868
    • commit-queue@webkit.org's avatar
      Add an MathMLSelectElement class to implement <maction> and <semantics>. · 4b77b7b4
      commit-queue@webkit.org authored
      <https://webkit.org/b/120058>
      
      Patch by Frédéric Wang <fred.wang@free.fr> on 2013-12-03
      Reviewed by Chris Fleizach.
      
      Source/WebCore:
      
      Tests: mathml/presentation/maction-dynamic.html
             mathml/presentation/maction.html
             mathml/presentation/semantics.html
      
      This adds a new MathMLSelectElement class to prepare the implementation
      of the <maction> and <semantics> elements, for which only one "selected"
      child is visible. We now simply display the first child of the
      <semantics> element instead of hiding the annotations and this allows to
      handle the use case of SVG-in-MathML as generated by Instiki when
      bug 124128 is fixed ; Gecko's selection algorithm will be implemented
      later (bug 100626). We now also rely on the @actiontype and @selection
      attributes to select the visible <maction> child ; It remains to deal
      with the user interaction (bug 85734).
      
      * CMakeLists.txt: add the new files.
      * GNUmakefile.list.am: ditto
      * Target.pri: ditto
      * WebCore.vcxproj/WebCore.vcxproj: ditto
      * WebCore.vcxproj/WebCore.vcxproj.filters: ditto
      * WebCore.xcodeproj/project.pbxproj: ditto
      * css/mathml.css: remove the CSS rule for annotation/annotation-xml.
      * mathml/MathMLAllInOne.cpp: add the new cpp file.
      * mathml/MathMLSelectElement.cpp: Added.
      (WebCore::MathMLSelectElement::MathMLSelectElement):
      (WebCore::MathMLSelectElement::create):
      (WebCore::MathMLSelectElement::createRenderer):
      (WebCore::MathMLSelectElement::childShouldCreateRenderer):
      (WebCore::MathMLSelectElement::finishParsingChildren):
      (WebCore::MathMLSelectElement::childrenChanged):
      (WebCore::MathMLSelectElement::attributeChanged):
      (WebCore::MathMLSelectElement::updateSelectedChild): basic implementation for maction, semantics, maction@actiontype and maction@selection.
      * mathml/MathMLSelectElement.h: Added.
      * mathml/mathattrs.in: add actiontype and selection attributes.
      * mathml/mathtags.in: set element classes for maction, semantics, annotation and annotation-xml.
      
      LayoutTests:
      
      New tests for the selection of the visible child in the <maction> and <semantics> elements.
      
      * mathml/presentation/maction-dynamic-expected.html: Added.
      * mathml/presentation/maction-dynamic.html: Added.
      * mathml/presentation/maction-expected.html: Added.
      * mathml/presentation/maction.html: Added.
      * mathml/presentation/semantics-expected.html: Added.
      * mathml/presentation/semantics.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160005 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4b77b7b4