1. 12 Apr, 2013 4 commits
    • ap@apple.com's avatar
      Move CachedRawResourceClient into a separate file · cb953664
      ap@apple.com authored
              https://bugs.webkit.org/show_bug.cgi?id=114491
      
              Reviewed by Mark Rowe.
      
              * GNUmakefile.list.am:
              * Target.pri:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.vcxproj/WebCore.vcxproj:
              * WebCore.vcxproj/WebCore.vcxproj.filters:
              * WebCore.xcodeproj/project.pbxproj:
              * loader/DocumentLoader.cpp:
              * loader/DocumentLoader.h:
              * loader/DocumentThreadableLoader.h:
              * loader/archive/cf/LegacyWebArchive.cpp:
              * loader/cache/CachedRawResource.cpp:
              * loader/cache/CachedRawResource.h:
              * loader/cache/CachedRawResourceClient.h: Added.
              * loader/icon/IconLoader.h:
              * platform/graphics/avfoundation/objc/WebCoreAVFResourceLoader.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148265 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cb953664
    • zandobersek@gmail.com's avatar
      Unreviewed, rolling out r148262. · a86b1954
      zandobersek@gmail.com authored
      http://trac.webkit.org/changeset/148262
      https://bugs.webkit.org/show_bug.cgi?id=114493
      
      Cairo dep should now build, rolling r148247 back in (Requested
      by zdobersek on #webkit).
      
      Patch by Commit Queue <rniwa@webkit.org> on 2013-04-12
      
      .: 
      
      * Source/autotools/FindDependencies.m4:
      * Source/autotools/PrintBuildConfiguration.m4:
      * Source/autotools/SetupWebKitFeatures.m4:
      
      Source/WebCore: 
      
      * platform/graphics/GraphicsContext.cpp:
      (WebCore):
      * platform/graphics/ImageBuffer.cpp:
      (WebCore):
      * platform/graphics/cairo/GLContext.h:
      (GLContext):
      * platform/graphics/cairo/GraphicsContextCairo.cpp:
      (WebCore::GraphicsContext::isAcceleratedContext):
      (WebCore):
      * platform/graphics/cairo/ImageBufferCairo.cpp:
      (WebCore::ImageBufferData::ImageBufferData):
      (WebCore):
      (WebCore::createCairoGLSurface):
      (WebCore::ImageBuffer::ImageBuffer):
      (WebCore::ImageBuffer::platformTransformColorSpace):
      (WebCore::mapSurfaceToImage):
      (WebCore::unmapSurfaceFromImage):
      (WebCore::getImageData):
      (WebCore::ImageBuffer::putByteArray):
      (WebCore::ImageBufferData::paintToTextureMapper):
      (WebCore::ImageBuffer::platformLayer):
      * platform/graphics/cairo/ImageBufferDataCairo.h:
      (ImageBufferData):
      * platform/graphics/egl/GLContextEGL.cpp:
      (WebCore::GLContextEGL::GLContextEGL):
      (WebCore::GLContextEGL::~GLContextEGL):
      (WebCore::GLContextEGL::cairoDevice):
      (WebCore):
      * platform/graphics/egl/GLContextEGL.h:
      * platform/graphics/glx/GLContextGLX.cpp:
      (WebCore::GLContextGLX::GLContextGLX):
      (WebCore::GLContextGLX::~GLContextGLX):
      (WebCore::GLContextGLX::cairoDevice):
      (WebCore):
      * platform/graphics/glx/GLContextGLX.h:
      (GLContextGLX):
      
      Tools: 
      
      * Scripts/webkitdirs.pm:
      (buildAutotoolsProject):
      * gtk/jhbuild.modules:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148264 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a86b1954
    • ap@apple.com's avatar
      Reduce includes of CachedSVGDocument.h · 07c37ba8
      ap@apple.com authored
              https://bugs.webkit.org/show_bug.cgi?id=114489
      
              Reviewed by Jon Honeycutt.
      
              * loader/cache/CachedSVGDocumentReference.cpp: Added.
              * loader/cache/CachedSVGDocumentReference.h:
              Moved function implementations to newly added .cpp file, and removed an include
              of CachedSVGDocument.h.
      
              * css/WebKitCSSSVGDocumentValue.h: Just removed an unnecessary include.
      
              * CMakeLists.txt:
              * GNUmakefile.list.am:
              * Target.pri:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.vcxproj/WebCore.vcxproj:
              * WebCore.vcxproj/WebCore.vcxproj.filters:
              * WebCore.xcodeproj/project.pbxproj:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148263 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      07c37ba8
    • zandobersek@gmail.com's avatar
      Unreviewed, rolling out r148247. · cd8dcdb6
      zandobersek@gmail.com authored
      http://trac.webkit.org/changeset/148247
      https://bugs.webkit.org/show_bug.cgi?id=114490
      
      Cairo dep fails to build on builders due to missing EGL
      headers (Requested by zdobersek on #webkit).
      
      Patch by Commit Queue <rniwa@webkit.org> on 2013-04-11
      
      .: 
      
      * Source/autotools/FindDependencies.m4:
      * Source/autotools/PrintBuildConfiguration.m4:
      * Source/autotools/SetupWebKitFeatures.m4:
      
      Source/WebCore: 
      
      * platform/graphics/GraphicsContext.cpp:
      (WebCore):
      * platform/graphics/ImageBuffer.cpp:
      (WebCore):
      * platform/graphics/cairo/GLContext.h:
      (GLContext):
      * platform/graphics/cairo/GraphicsContextCairo.cpp:
      * platform/graphics/cairo/ImageBufferCairo.cpp:
      (WebCore::ImageBufferData::ImageBufferData):
      (WebCore::ImageBuffer::ImageBuffer):
      (WebCore::ImageBuffer::platformTransformColorSpace):
      (WebCore::getImageData):
      (WebCore::ImageBuffer::putByteArray):
      (WebCore):
      * platform/graphics/cairo/ImageBufferDataCairo.h:
      (ImageBufferData):
      * platform/graphics/egl/GLContextEGL.cpp:
      (WebCore::GLContextEGL::GLContextEGL):
      (WebCore::GLContextEGL::~GLContextEGL):
      * platform/graphics/egl/GLContextEGL.h:
      * platform/graphics/glx/GLContextGLX.cpp:
      (WebCore::GLContextGLX::GLContextGLX):
      (WebCore::GLContextGLX::~GLContextGLX):
      * platform/graphics/glx/GLContextGLX.h:
      (GLContextGLX):
      
      Tools: 
      
      * Scripts/webkitdirs.pm:
      (buildAutotoolsProject):
      * gtk/jhbuild.modules:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148262 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cd8dcdb6
  2. 11 Apr, 2013 36 commits
    • thakis@chromium.org's avatar
      Remove debugging code that is no longer used with current mac sdks. · d30fd87b
      thakis@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=114486
      
      Reviewed by Dan Bernstein.
      
      This code compared __MAC_OS_X_VERSION_MAX_ALLOWED and friends to
      107 and 106 instead of the correct 1070 and 1060. Instead of fixing
      this, rip the code out completely: Since WebKit now only targets
      current systems, the ifdef is always false anyways.
      
      No tests, as this only removes debugging code.
      
      * platform/graphics/mac/SimpleFontDataMac.mm:
      (WebCore::SimpleFontData::platformInit):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148261 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d30fd87b
    • oliver@apple.com's avatar
      Fix windows build and land new binding test results · 3c309e51
      oliver@apple.com authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148260 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3c309e51
    • benjamin@webkit.org's avatar
      Merge CharacterClassTable into CharacterClass · dd94acfd
      benjamin@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=114409
      
      Patch by Benjamin Poulain <bpoulain@apple.com> on 2013-04-11
      Reviewed by Darin Adler.
      
      CharacterClassTable is only a pointer and a boolean.
      It is a little overkill to make a separate allocation
      for that.
      
      * create_regex_tables:
      * yarr/YarrJIT.cpp:
      (JSC::Yarr::YarrGenerator::matchCharacterClass):
      * yarr/YarrPattern.cpp:
      (JSC::Yarr::CharacterClassConstructor::charClass):
      * yarr/YarrPattern.h:
      (CharacterClass):
      (JSC::Yarr::CharacterClass::CharacterClass):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148259 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      dd94acfd
    • commit-queue@webkit.org's avatar
      Selection gaps don't repaint correctly with transforms · 86baa090
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=111000
      
      Patch by Shezan Baig <sbaig1@bloomberg.net> on 2013-04-11
      Reviewed by Simon Fraser.
      
      Source/WebCore:
      
      When computing offsetFromRepaintContainer, we need to add UseTransforms
      to the MapCoordinateFlags argument. Note that ApplyContainerFlip is
      the default value for the flag, so this change effectively only adds
      the UseTransforms flag.
      
      Tests: fast/repaint/selection-gap-absolute-child.html
             fast/repaint/selection-gap-fixed-child.html
             fast/repaint/selection-gap-flipped-absolute-child.html
             fast/repaint/selection-gap-flipped-fixed-child.html
             fast/repaint/selection-gap-transformed-absolute-child.html
             fast/repaint/selection-gap-transformed-fixed-child.html
      
      * rendering/RenderBlock.cpp:
      (WebCore::RenderBlock::selectionGapRectsForRepaint):
      
      LayoutTests:
      
      * fast/repaint/selection-gap-absolute-child-expected.txt: Added.
      * fast/repaint/selection-gap-absolute-child.html: Added.
      * fast/repaint/selection-gap-fixed-child-expected.txt: Added.
      * fast/repaint/selection-gap-fixed-child.html: Added.
      * fast/repaint/selection-gap-flipped-absolute-child-expected.txt: Added.
      * fast/repaint/selection-gap-flipped-absolute-child.html: Added.
      * fast/repaint/selection-gap-flipped-fixed-child-expected.txt: Added.
      * fast/repaint/selection-gap-flipped-fixed-child.html: Added.
      * fast/repaint/selection-gap-transformed-absolute-child-expected.txt: Added.
      * fast/repaint/selection-gap-transformed-absolute-child.html: Added.
      * fast/repaint/selection-gap-transformed-fixed-child-expected.txt: Added.
      * fast/repaint/selection-gap-transformed-fixed-child.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148258 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      86baa090
    • oliver@apple.com's avatar
      Add more type validation to debug builds · 239499fd
      oliver@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=114478
      
      Reviewed by Mark Hahnenberg.
      
      Source/WebCore:
      
      Add a bunch more type checks to the JS DOM bindings.
      
      * Modules/mediastream/MediaStream.idl:
      * Modules/webaudio/AudioDestinationNode.idl:
      * WebCore.xcodeproj/project.pbxproj:
      * bindings/js/JSDOMBinding.h:
      (WebCore::getExistingWrapper):
      (WebCore):
      (WebCore::createNewWrapper):
      * bindings/scripts/CodeGeneratorJS.pm:
      (GetNativeTypeForConversions):
      (GetGnuVTableRefForInterface):
      (GetGnuVTableNameForInterface):
      (GetGnuMangledNameForInterface):
      (GetGnuVTableOffsetForType):
      (GetWinVTableRefForInterface):
      (GetWinVTableNameForInterface):
      (GetWinMangledNameForInterface):
      (GetNamespaceForInterface):
      (GetImplementationLacksVTableForInterface):
      (GetSkipVTableValidationForInterface):
      (GenerateImplementation):
      * bindings/scripts/IDLAttributes.txt:
      * css/CSSRuleList.idl:
      * css/CSSStyleDeclaration.idl:
      * dom/Clipboard.idl:
      * dom/DOMStringMap.idl:
      * dom/MutationRecord.idl:
      * dom/NodeList.idl:
      * html/DOMTokenList.idl:
      * html/track/TextTrack.idl:
      * inspector/ScriptProfileNode.idl:
      * storage/Storage.idl:
      * xml/XPathNSResolver.idl:
      
      Source/WTF:
      
      Add BINDING_VALIDATION flag and make RELEASE_ASSERT use UNLIKELY.
      
      * wtf/Assertions.h:
      * wtf/Platform.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148257 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      239499fd
    • rniwa@webkit.org's avatar
      Remove ResourceLoadInfo · fbdf3b6d
      rniwa@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=113302
      
      Reviewed by Benjamin Poulain.
      
      Co-authored by Christophe Dumez.
      
      Removed ResourceLoadInfo since it had been only used by Chromium port.
      
      * GNUmakefile.list.am:
      * Target.pri:
      * WebCore.order:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.vcxproj/WebCore.vcxproj:
      * WebCore.vcxproj/WebCore.vcxproj.filters:
      * WebCore.xcodeproj/project.pbxproj:
      * inspector/InspectorResourceAgent.cpp:
      (WebCore::buildObjectForResourceResponse):
      * loader/FrameLoader.cpp:
      (WebCore::FrameLoader::loadResourceSynchronously):
      * platform/network/ResourceLoadInfo.h: Removed.
      * platform/network/ResourceResponseBase.cpp:
      (WebCore):
      (WebCore::ResourceResponseBase::reportMemoryUsage):
      * platform/network/ResourceResponseBase.h:
      (ResourceResponseBase):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148256 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fbdf3b6d
    • rniwa@webkit.org's avatar
      Remove passing test expectations for ietestcenter/css3/grid/grid-items-003.htm... · e012d243
      rniwa@webkit.org authored
      Remove passing test expectations for ietestcenter/css3/grid/grid-items-003.htm since it started failing on
      Mountain Lion WebKit2 bots after a slave reboot as well.
      
      * platform/mac-wk2/TestExpectations:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148255 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e012d243
    • lforschler@apple.com's avatar
      Submission Notes. · 261a7cfb
      lforschler@apple.com authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148254 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      261a7cfb
    • timothy_horton@apple.com's avatar
      REGRESSION (r146956): ASSERTion failure: WebKit::WebProcess::pageWillLeaveWindow · 6cad8ea7
      timothy_horton@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=114481
      <rdar://problem/13534784>
      
      Reviewed by Simon Fraser.
      
      Inform the WebProcess of WebPages which are already in a window when created.
      
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::WebPage):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148253 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6cad8ea7
    • rniwa@webkit.org's avatar
      Another Mac Lion build fix attempt after r148197. · 55c6da30
      rniwa@webkit.org authored
      * page/scrolling/mac/ScrollingStateScrollingNodeMac.mm:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148252 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      55c6da30
    • commit-queue@webkit.org's avatar
      Unable to paste twice in input field when specific CSS present · 15c891b6
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=108675
      
      Patch by Sukolsak Sakshuwong <sukolsak@gmail.com> on 2013-04-11
      Reviewed by Ryosuke Niwa.
      
      Source/WebCore:
      
      When we are pre-rendering text in ReplaceSelectionCommand, we shouldn't care
      whether the content is clipped by its ancestors or not. This bug was caused
      by the fact the plainText() method returned an empty string because the text
      was fully clipped by its ancestors. Make plainText ignore style visibility.
      
      Test: editing/inserting/insert-text-into-text-field.html
      
      * editing/ReplaceSelectionCommand.cpp:
      (WebCore::ReplacementFragment::ReplacementFragment):
      
      LayoutTests:
      
      * editing/inserting/insert-text-into-text-field-expected.txt: Added.
      * editing/inserting/insert-text-into-text-field.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148251 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      15c891b6
    • andersca@apple.com's avatar
      Add support for clearing storage areas · 0a60a95a
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=114479
      
      Reviewed by Beth Dakin.
      
      * UIProcess/Storage/StorageManager.cpp:
      (WebKit::StorageManager::StorageArea::StorageArea):
      Store the quota size so we can recreate the underlying StorageMap when clearing.
      
      (WebKit::StorageManager::StorageArea::clear):
      Create a new storage map and dispatch events.
      
      (WebKit::StorageManager::clear):
      Find the right storage area and call clear.
      
      * UIProcess/Storage/StorageManager.messages.in:
      Add Clear message.
      
      * WebProcess/Storage/StorageAreaImpl.cpp:
      (WebKit::StorageAreaImpl::clear):
      Call the storage map.
      
      * WebProcess/Storage/StorageAreaMap.cpp:
      (WebKit::StorageAreaMap::clear):
      Reset the cached values and send a clear message.
      
      (WebKit::StorageAreaMap::resetValues):
      New helper function.
      
      (WebKit::StorageAreaMap::didClear):
      New stub.
      
      * WebProcess/Storage/StorageAreaMap.messages.in:
      Add DidClear message.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148250 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0a60a95a
    • bdakin@apple.com's avatar
      WebKit should set the header and footer layers' contentsScale when the device · 64891319
      bdakin@apple.com authored
      scale factor changes
      https://bugs.webkit.org/show_bug.cgi?id=114471
      -and corresponding-
      <rdar://problem/13621288>
      
      Reviewed by Simon Fraser.
      
      Update the header and footer contentsScale when the device scale factor has 
      changed.
      
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::setDeviceScaleFactor):
      * WebProcess/WebPage/WebPage.h:
      * WebProcess/WebPage/mac/WebPageMac.mm:
      (WebKit::WebPage::updateHeaderAndFooterLayersForDeviceScaleChange):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148249 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      64891319
    • commit-queue@webkit.org's avatar
      [GTK] Webkit fails to build with MinGW compiler after changeset 146468 · 5ab58687
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=114473
      
      Patch by Paweł Forysiuk <tuxator@o2.pl> on 2013-04-11
      Reviewed by Martin Robinson.
      
      * Source/autotools/CheckSystemAndBasicDependencies.m4: Fix typo.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148248 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5ab58687
    • mrobinson@webkit.org's avatar
      [GTK] Add accelerated 2D canvas support using cairo-gl · 6d6f5915
      mrobinson@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=104672
      
      Reviewed by Alejandro G. Castro.
      
      .:
      
      Detect that we can activate accelerated canvas when CairoGL is present and
      TextureMapperGL is enabled.
      
      * Source/autotools/FindDependencies.m4: Look for CairoGL.
      * Source/autotools/PrintBuildConfiguration.m4: Print the status of accelerated canvas activation.
      * Source/autotools/SetupWebKitFeatures.m4: Set the feature.
      
      Source/WebCore:
      
      No new tests. We do not yet have the ability to run tests against
      accelerated content.
      
      * platform/graphics/GraphicsContext.cpp:
      (WebCore): We don't use the stub implementation of isAcceleratedContext any longer.
      * platform/graphics/ImageBuffer.cpp:
      (WebCore): Ditto for ImageBuffer::platformLayer.
      * platform/graphics/cairo/GLContext.h:
      (GLContext): Added method to get a cairo_device_t from the context.
      * platform/graphics/cairo/GraphicsContextCairo.cpp:
      (WebCore::GraphicsContext::isAcceleratedContext): Return true when we are a CairoGL surface.
      * platform/graphics/cairo/ImageBufferCairo.cpp:
      (WebCore::ImageBufferData::ImageBufferData): Initialize the size and the texture to 0.
      (WebCore::createCairoGLSurface): Added this helper.
      (WebCore::ImageBuffer::ImageBuffer): When we are in accelerated rendering mode, create
      a CairoGL surface.
      (WebCore::ImageBuffer::platformTransformColorSpace): Do not implement this for accelerated
      contexts yet.
      (WebCore::mapSurfaceToImage): Added this helper, since we don't require Cairo 1.12 yet,
      which provides an builtin implementation.
      (WebCore::unmapSurfaceFromImage): Ditto.
      (WebCore::getImageData): Map the surface to an image surface first.
      (WebCore::ImageBuffer::putByteArray): Ditto.
      (WebCore::ImageBufferData::paintToTextureMapper): Connect the accelerated canvas into the
      TextureMapper infrastructure.
      (WebCore::ImageBuffer::platformLayer): This lets the TextureMapper at the ImageBufferData.
      * platform/graphics/cairo/ImageBufferDataCairo.h:
      (ImageBufferData): Subclass TexturMapperPlatformLayer where appropriate.
      * platform/graphics/egl/GLContextEGL.cpp: Added implementation of cairoDevice.
      * platform/graphics/egl/GLContextEGL.h: Ditto.
      * platform/graphics/glx/GLContextGLX.cpp: Ditto
      * platform/graphics/glx/GLContextGLX.h: Ditto.
      
      Tools:
      
      Since the value of ACCELERATED_2D_CANVAS relies on some somewhat unusual
      dependencies, don't override value of the setting determined by configure.
      This will make it easier for people using build-webkit, but not the
      WebKit JHBuild.
      
      * Scripts/webkitdirs.pm:
      (buildAutotoolsProject): Add a blacklist for settings to never override.
      * gtk/jhbuild.modules: Build CairoGL.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148247 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6d6f5915
    • rniwa@webkit.org's avatar
      build.webkit.org should link to webkit-queues instead of webkit-commit-queue · a5647674
      rniwa@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=114477
      
      Reviewed by Benjamin Poulain.
      
      * BuildSlaveSupport/build.webkit.org-config/templates/root.html:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148246 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a5647674
    • andersca@apple.com's avatar
      Implement removing storage area items · dc5b6ca9
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=114472
      
      Reviewed by Beth Dakin.
      
      Source/WebCore:
      
      Export StorageMap::removeItem.
      
      * WebCore.exp.in:
      
      Source/WebKit2:
      
      * UIProcess/Storage/StorageManager.cpp:
      (StorageManager::StorageArea):
      (WebKit::StorageManager::StorageArea::setItem):
      Rename connection to sourceConnection.
      
      (WebKit::StorageManager::StorageArea::removeItem):
      Remove the item from the map and dispatch events if needed.
      
      (WebKit::StorageManager::removeItem):
      Find the right storage area, remove the item and send back a DidRemoveItem message.
      
      * UIProcess/Storage/StorageManager.messages.in:
      Add RemoveItem message.
      
      * WebProcess/Storage/StorageAreaImpl.cpp:
      (WebKit::StorageAreaImpl::removeItem):
      Call StorageAreaMap::removeItem.
      
      * WebProcess/Storage/StorageAreaMap.cpp:
      (WebKit::StorageAreaMap::removeItem):
      Send a RemoveItem message to the storage manager.
      
      (WebKit::StorageAreaMap::didRemoveItem):
      Add empty stub.
      
      * WebProcess/Storage/StorageAreaMap.messages.in:
      Add DidRemoveItem message.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148245 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      dc5b6ca9
    • commit-queue@webkit.org's avatar
      TextTrackList's .onremovetrack is missing from IDL · 366f68a6
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=103421
      
      Patch by Brendan Long <b.long@cablelabs.com> on 2013-04-11
      Reviewed by Eric Carlson.
      
      Source/WebCore:
      
      Fixed test media/track/opera/interfaces/TextTrackList/onremovetrack.html
      
      * html/track/TextTrackList.cpp:
      (TextTrackList::remove):
      (TextTrackList::scheduleRemoveTrackEvent):
      * html/track/TextTrackList.h:
      (TextTrackList):
      * html/track/TextTrackList.idl:
      
      LayoutTests:
      
      * media/track/opera/interfaces/TextTrackList/onremovetrack-expected.txt: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148244 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      366f68a6
    • rniwa@webkit.org's avatar
      Leaks builder should not be triggered upon new commits · 1dcb3d20
      rniwa@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=114475
      
      Reviewed by Jessie Berlin.
      
      Don't trigger them on new checkins wait for Mountaion Lion (Build), which already triggers
      the leak builder when builds are done.
      
      * BuildSlaveSupport/build.webkit.org-config/config.json:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148243 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1dcb3d20
    • commit-queue@webkit.org's avatar
      [BlackBerry] Upstream the filesystem code · 24aab664
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=114437
      
      Patch by Alberto Garcia <agarcia@igalia.com> on 2013-04-11
      Reviewed by Rob Buis.
      
      This patch contains contributions from many members of the
      BlackBerry WebKit team.
      
      * platform/blackberry/AsyncFileWriterBlackBerry.cpp: Added.
      (WebCore):
      (WebCore::AsyncFileWriterBlackBerry::write):
      * platform/blackberry/AsyncFileWriterBlackBerry.h: Added.
      (WTF):
      (WTF::BlackBerry::Platform::WebFileWriter):
      (WebCore):
      * platform/blackberry/DOMFileSystemBlackBerry.cpp: Added.
      (WebCore):
      (WebCore::DOMFileSystemBase::createFileSystemURL):
      (WebCore::DOMFileSystemBase::crackFileSystemURL):
      (WebCore::DOMFileSystemBase::supportsToURL):
      (WebCore::DOMFileSystemBase::isValidType):
      * platform/blackberry/LocalFileSystemBlackBerry.cpp: Added.
      (WebCore):
      (WebCore::fileSystemTypeString):
      (WebCore::openFileSystem):
      (WebCore::LocalFileSystem::deleteFileSystem):
      (WebCore::LocalFileSystem::readFileSystem):
      (WebCore::LocalFileSystem::requestFileSystem):
      * platform/blackberry/PlatformAsyncFileSystemCallbacks.cpp: Added.
      (WebCore):
      (WebCore::PlatformAsyncFileSystemCallbacks::notifyOpenFileSystem):
      (WebCore::PlatformAsyncFileSystemCallbacks::notifySucceed):
      (WebCore::PlatformAsyncFileSystemCallbacks::notifyFail):
      (WebCore::getFileMetadata):
      (WebCore::PlatformAsyncFileSystemCallbacks::notifyReadMetadata):
      (WebCore::PlatformAsyncFileSystemCallbacks::notifyCreateSnapshotFileAndReadMetadata):
      (WebCore::PlatformAsyncFileSystemCallbacks::notifyReadDirectory):
      (WebCore::PlatformAsyncFileSystemCallbacks::notifyCreateFileWriter):
      (WebCore::PlatformAsyncFileSystemCallbacks::createAsyncFileSystem):
      (WebCore::PlatformAsyncFileSystemCallbacks::createAsyncFileWriter):
      (WebCore::PlatformAsyncFileSystemCallbacks::deleteMe):
      * platform/blackberry/PlatformAsyncFileSystemCallbacks.h: Added.
      (WebCore):
      * platform/blackberry/PlatformBlob.cpp: Added.
      (WebCore):
      (WebCore::PlatformBlob::nextDataItem):
      * platform/blackberry/PlatformBlob.h: Added.
      (WebCore):
      * platform/blackberry/PlatformFileWriterClient.cpp: Added.
      (WebCore):
      (WebCore::PlatformFileWriterClient::notifyWrite):
      (WebCore::PlatformFileWriterClient::notifyTruncate):
      (WebCore::PlatformFileWriterClient::notifyFail):
      * platform/blackberry/PlatformFileWriterClient.h: Added.
      (WebCore):
      (WTF):
      (WTF::WebCore::PlatformFileWriterClient):
      * platform/blackberry/WorkerAsyncFileSystemBlackBerry.cpp: Added.
      (WebCore):
      (WebCore::WorkerAsyncFileSystemBlackBerry::WorkerAsyncFileSystemBlackBerry):
      (WebCore::WorkerAsyncFileSystemBlackBerry::~WorkerAsyncFileSystemBlackBerry):
      (WebCore::WorkerAsyncFileSystemBlackBerry::waitForOperationToComplete):
      (WebCore::WorkerAsyncFileSystemBlackBerry::openFileSystemOnMainThread):
      (WebCore::WorkerAsyncFileSystemBlackBerry::deleteFileSystemOnMainThread):
      (WebCore::WorkerAsyncFileSystemBlackBerry::moveOnMainThread):
      (WebCore::WorkerAsyncFileSystemBlackBerry::copyOnMainThread):
      (WebCore::WorkerAsyncFileSystemBlackBerry::removeOnMainThread):
      (WebCore::WorkerAsyncFileSystemBlackBerry::removeRecursivelyOnMainThread):
      (WebCore::WorkerAsyncFileSystemBlackBerry::readMetadataOnMainThread):
      (WebCore::WorkerAsyncFileSystemBlackBerry::createFileOnMainThread):
      (WebCore::WorkerAsyncFileSystemBlackBerry::createDirectoryOnMainThread):
      (WebCore::WorkerAsyncFileSystemBlackBerry::fileExistsOnMainThread):
      (WebCore::WorkerAsyncFileSystemBlackBerry::directoryExistsOnMainThread):
      (WebCore::WorkerAsyncFileSystemBlackBerry::readDirectoryOnMainThread):
      (WebCore::WorkerAsyncFileSystemBlackBerry::createWriterOnMainThread):
      (WebCore::WorkerAsyncFileSystemBlackBerry::createSnapshotFileAndReadMetadataOnMainThread):
      (WebCore::WorkerAsyncFileSystemBlackBerry::openFileSystem):
      (WebCore::WorkerAsyncFileSystemBlackBerry::deleteFileSystem):
      (WebCore::WorkerAsyncFileSystemBlackBerry::move):
      (WebCore::WorkerAsyncFileSystemBlackBerry::copy):
      (WebCore::WorkerAsyncFileSystemBlackBerry::remove):
      (WebCore::WorkerAsyncFileSystemBlackBerry::removeRecursively):
      (WebCore::WorkerAsyncFileSystemBlackBerry::readMetadata):
      (WebCore::WorkerAsyncFileSystemBlackBerry::createFile):
      (WebCore::WorkerAsyncFileSystemBlackBerry::createDirectory):
      (WebCore::WorkerAsyncFileSystemBlackBerry::fileExists):
      (WebCore::WorkerAsyncFileSystemBlackBerry::directoryExists):
      (WebCore::WorkerAsyncFileSystemBlackBerry::readDirectory):
      (WebCore::WorkerAsyncFileSystemBlackBerry::createWriter):
      (WebCore::WorkerAsyncFileSystemBlackBerry::createSnapshotFileAndReadMetadata):
      * platform/blackberry/WorkerAsyncFileSystemBlackBerry.h: Added.
      (WebCore):
      (WorkerAsyncFileSystemBlackBerry):
      (WebCore::WorkerAsyncFileSystemBlackBerry::create):
      * platform/blackberry/WorkerAsyncFileWriterBlackBerry.cpp: Added.
      (WebCore):
      (WebCore::WorkerAsyncFileWriterBlackBerry::writeOnMainThread):
      (WebCore::WorkerAsyncFileWriterBlackBerry::truncateOnMainThread):
      (WebCore::WorkerAsyncFileWriterBlackBerry::abortOnMainThread):
      (WebCore::WorkerAsyncFileWriterBlackBerry::write):
      (WebCore::WorkerAsyncFileWriterBlackBerry::truncate):
      (WebCore::WorkerAsyncFileWriterBlackBerry::abort):
      (WebCore::WorkerAsyncFileWriterBlackBerry::waitForOperationToComplete):
      (WebCore::WorkerAsyncFileWriterBlackBerry::platformWriterClient):
      * platform/blackberry/WorkerAsyncFileWriterBlackBerry.h: Added.
      (WebCore):
      * platform/blackberry/WorkerPlatformAsyncFileSystemCallbacks.cpp: Added.
      (WebCore):
      (WebCore::performTaskOnMainThread):
      (WebCore::postTaskToMainThread):
      (WebCore::WorkerPlatformAsyncFileSystemCallbacks::notifyStop):
      (WebCore::WorkerPlatformAsyncFileSystemCallbacks::notifyOpenFileSystem):
      (WebCore::WorkerPlatformAsyncFileSystemCallbacks::notifySucceed):
      (WebCore::WorkerPlatformAsyncFileSystemCallbacks::notifyFail):
      (WebCore::WorkerPlatformAsyncFileSystemCallbacks::notifyReadMetadata):
      (WebCore::WorkerPlatformAsyncFileSystemCallbacks::notifyReadDirectory):
      (WebCore::WorkerPlatformAsyncFileSystemCallbacks::notifyCreateFileWriter):
      (WebCore::WorkerPlatformAsyncFileSystemCallbacks::createAsyncFileSystem):
      (WebCore::WorkerPlatformAsyncFileSystemCallbacks::createAsyncFileWriter):
      (WebCore::WorkerPlatformAsyncFileSystemCallbacks::deleteMe):
      (WebCore::WorkerPlatformAsyncFileSystemCallbacks::postTaskToWorkerThread):
      (WebCore::WorkerPlatformAsyncFileSystemCallbacks::notifyOpenFileSystemOnWorkerThread):
      (WebCore::WorkerPlatformAsyncFileSystemCallbacks::notifySucceedOnWorkerThread):
      (WebCore::WorkerPlatformAsyncFileSystemCallbacks::notifyFailOnWorkerThread):
      (WebCore::WorkerPlatformAsyncFileSystemCallbacks::notifyReadMetadataOnWorkerThread):
      (WebCore::WorkerPlatformAsyncFileSystemCallbacks::notifyReadDirectoryEntryOnWorkerThread):
      (WebCore::WorkerPlatformAsyncFileSystemCallbacks::notifyCreateFileWriterOnWorkerThread):
      * platform/blackberry/WorkerPlatformAsyncFileSystemCallbacks.h: Added.
      (WebCore):
      * platform/blackberry/WorkerPlatformFileWriterClient.cpp: Added.
      (WebCore):
      (WebCore::WorkerPlatformFileWriterClient::notifyWriteOnWorkerThread):
      (WebCore::WorkerPlatformFileWriterClient::notifyFailOnWorkerThread):
      (WebCore::WorkerPlatformFileWriterClient::notifyTruncateOnWorkerThread):
      (WebCore::WorkerPlatformFileWriterClient::notifyWrite):
      (WebCore::WorkerPlatformFileWriterClient::notifyTruncate):
      (WebCore::WorkerPlatformFileWriterClient::notifyFail):
      (WebCore::WorkerPlatformFileWriterClient::postTaskToWorkerThreadIfNeeded):
      * platform/blackberry/WorkerPlatformFileWriterClient.h: Added.
      (WebCore):
      (WTF):
      (WTF::WebCore::WorkerPlatformFileWriterClient):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148242 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      24aab664
    • roger_fong@apple.com's avatar
      Build fix. · 1dd0bcf2
      roger_fong@apple.com authored
      * win/include/WebKitSystemInterface/WebKitSystemInterface.h:
      * win/lib/WebKitSystemInterface.lib:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148241 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1dd0bcf2
    • ap@apple.com's avatar
      <rdar://problem/10416316> [Mac] WebSocket doesn't work with authenticating proxies · 3d414b16
      ap@apple.com authored
              https://bugs.webkit.org/show_bug.cgi?id=114464
      
              Update WebKitSystemInterface.
      
              * WebKitSystemInterface.h:
              * libWebKitSystemInterfaceLion.a:
              * libWebKitSystemInterfaceMountainLion.a:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148240 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3d414b16
    • rniwa@webkit.org's avatar
      Mac Lion build fix attempt after r148197. · e071ae9f
      rniwa@webkit.org authored
      * page/scrolling/mac/ScrollingStateNodeMac.mm:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148239 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e071ae9f
    • timothy_horton@apple.com's avatar
      InjectedBundleNodeHandle::imageForRect doesn't respect device scale factor or highlighting option · f7536351
      timothy_horton@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=114466
      <rdar://problem/13508513>
      
      Reviewed by Simon Fraser.
      
      Respect the device scale factor when creating the snapshot image.
      Clear the snapshot image before drawing into it.
      Respect SnapshotOptionsExcludeSelectionHighlighting.
      
      * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
      (WebKit::imageForRect):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148238 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f7536351
    • ap@apple.com's avatar
      <rdar://problem/10416316> [Mac] WebSocket doesn't work with authenticating proxies · 3622a9eb
      ap@apple.com authored
              https://bugs.webkit.org/show_bug.cgi?id=114464
      
              Reviewed by Brady Eidson.
      
              * platform/mac/WebCoreSystemInterface.h:
              * platform/mac/WebCoreSystemInterface.mm:
              Updated for new wkCopyCONNECTProxyResponse signature.
      
              * platform/network/cf/SocketStreamHandleCFNet.cpp:
              (WebCore::SocketStreamHandle::executePACFileURL): Fixed a typo in a comment.
              (WebCore::SocketStreamHandle::addCONNECTCredentials): Don't crash even if the rest
              of the fix didn't work (which would be the case on some OS versions).
              (WebCore::SocketStreamHandle::readStreamCallback): Replaced most breaks with returns,
              because breaks were confusing in such a huge switch. Changed null proxyResponse
              to not be treated as authentication success, because it's not. Merged two parts
              of WaitingForConnect state handling for clarity.
              (WebCore::SocketStreamHandle::writeStreamCallback): Don't blindly assume that we
              can start WebSocket handshake after kCFStreamEventCanAcceptBytes. Perhaps it's
              nothing but a failed CONNECT, and a read callback still needs to send authentication.
              Without this, establishing connections was flaky. Added a check for Closed state,
              matching read callback.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148237 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3622a9eb
    • commit-queue@webkit.org's avatar
      MutationRecord is not exposed · 83b646df
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=114288
      
      Patch by Sukolsak Sakshuwong <sukolsak@gmail.com> on 2013-04-11
      Reviewed by Darin Adler.
      
      Source/WebCore:
      
      Expose MutationRecord on DOMWindow. This patch is copied from a patch
      by Adam Klein. https://codereview.chromium.org/13861028
      
      Test: fast/dom/MutationObserver/mutation-record-constructor.html
      
      * page/DOMWindow.idl:
      
      LayoutTests:
      
      This test is copied from a patch by Adam Klein.
      https://codereview.chromium.org/13861028
      The test expectation of "typeof MutationRecord" is changed from
      "function" to "object". (See bug 114457)
      
      * fast/dom/MutationObserver/mutation-record-constructor-expected.txt: Added.
      * fast/dom/MutationObserver/mutation-record-constructor.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148236 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      83b646df
    • bdakin@apple.com's avatar
      Cannot scroll to footer on a page with overflow:hidden on the body · 5ba34664
      bdakin@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=114462
      -and corresponding-
      <rdar://problem/13530042>
      
      Reviewed by Simon Fraser.
      
      Add a new scenario in which we want to overrideHidden -- whenever we are the 
      mainFrame and there is a header or footer.
      
      * page/FrameView.cpp:
      (WebCore::FrameView::applyOverflowToViewport):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148234 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5ba34664
    • rniwa@webkit.org's avatar
      Unreviewed, rolling out r148034, r148052, r148097, and · bcf70f28
      rniwa@webkit.org authored
      r148194.
      http://trac.webkit.org/changeset/148034
      http://trac.webkit.org/changeset/148052
      http://trac.webkit.org/changeset/148097
      http://trac.webkit.org/changeset/148194
      https://bugs.webkit.org/show_bug.cgi?id=114463
      
      broke mutiresolution favicons, among other things (Requested
      by thorton on #webkit).
      
      
      Source/WebCore:
      
      * loader/icon/IconDatabase.cpp:
      (WebCore::IconDatabase::setIconDataForIconURL):
      * loader/icon/IconDatabase.h:
      (IconDatabase):
      * loader/icon/IconDatabaseBase.h:
      * loader/icon/IconRecord.cpp:
      * loader/icon/IconRecord.h:
      (IconRecord):
      
      Source/WebKit2:
      
      * UIProcess/WebIconDatabase.cpp:
      (WebKit::WebIconDatabase::setIconDataForIconURL):
      * UIProcess/WebIconDatabase.h:
      (WebIconDatabase):
      * UIProcess/WebIconDatabase.messages.in:
      * WebProcess/IconDatabase/WebIconDatabaseProxy.cpp:
      (WebKit::WebIconDatabaseProxy::setIconDataForIconURL):
      * WebProcess/Plugins/PDF/PDFPlugin.mm:
      (WebKit::PDFPlugin::destroy):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148233 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bcf70f28
    • commit-queue@webkit.org's avatar
      [GTK][AC] Implement GraphicsLayerClutter::moveOrCopyAnimations · 081e324b
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=114019
      
      Patch by ChangSeok Oh <changseok.oh@collabora.com> on 2013-04-11
      Reviewed by Gustavo Noronha Silva.
      
      Fill moveOrCopyAnimations that is based on Mac port implementation.
      
      Tests: animations/3d/change-transform-in-end-event.html
             animations/3d/transform-origin-vs-functions.html
             compositing/animation/state-at-end-event-transform-layer.html
      
      * platform/graphics/clutter/GraphicsLayerClutter.cpp:
      (WebCore::GraphicsLayerClutter::moveOrCopyLayerAnimation):
      (WebCore):
      (WebCore::GraphicsLayerClutter::moveOrCopyAnimations):
      * platform/graphics/clutter/GraphicsLayerClutter.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148232 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      081e324b
    • andersca@apple.com's avatar
      Implement StorageManager::getValues · 6043c8de
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=114461
      
      Reviewed by Beth Dakin.
      
      Source/WebCore:
      
      Expose the item hash map.
      
      * storage/StorageMap.h:
      (WebCore::StorageMap::items):
      
      Source/WebKit2:
      
      * UIProcess/Storage/StorageManager.cpp:
      (WebKit::StorageManager::StorageArea::items):
      (WebKit::StorageManager::getValues):
      Return the items from the right storage area.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148231 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6043c8de
    • commit-queue@webkit.org's avatar
      [GTK] Windows build failure after r136056 · f995fdae
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=114121
      
      Patch by Kalev Lember <kalevlember@gmail.com> on 2013-04-11
      Reviewed by Martin Robinson.
      
      * TestWebKitAPI/config.h: Make sure defines are correct for other
      Windows ports than apple-win.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148230 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f995fdae
    • andersca@apple.com's avatar
      Clean up related storage areas when a connection is destroyed · 6b1d98ad
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=114459
      
      Reviewed by Beth Dakin.
      
      * UIProcess/Storage/StorageManager.cpp:
      (WebKit::StorageManager::processWillCloseConnection):
      Dispatch invalidateConnectionInternal on the work queue.
      
      (WebKit::StorageManager::createStorageMap):
      (WebKit::StorageManager::destroyStorageMap):
      Rename m_storageAreas to m_storageAreasByConnection.
      
      (WebKit::StorageManager::invalidateConnectionInternal):
      Go over all known storage areas and remove this connection as a listener.
      
      (WebKit::StorageManager::findStorageArea):
      Rename m_storageAreas to m_storageAreasByConnection.
      
      * UIProcess/Storage/StorageManager.h:
      Rename m_storageAreas to m_storageAreasByConnection.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148229 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6b1d98ad
    • commit-queue@webkit.org's avatar
      [BlackBerry] Use the platform list of languages with fonts instead of hardcoding · 7fdb39a1
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=114452
      
      Patch by Eli Fidler <efidler@blackberry.com> on 2013-04-11
      Reviewed by Rob Buis.
      
      BlackBerry PR 325244
      Internally reviewed by Jeff Rogers
      
      No functional change, but platform font changes won't need a WebKit change
      going forward.
      
      * page/blackberry/SettingsBlackBerry.cpp:
      (WebCore::Settings::initializeDefaultFontFamilies):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148228 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7fdb39a1
    • krit@webkit.org's avatar
      [CSS Shaders] Parse parameters descriptor · 7afcd74f
      krit@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=114455
      
      Reviewed by Dean Jackson.
      
      Source/WebCore:
      
      Add support for the 'parameters' descriptor in the filter at-rule to support
      parameterization of CSS Shaders.
      
      https://dvcs.w3.org/hg/FXTF/raw-file/tip/filters/index.html#custom-filter-parameters
      
      Tests: css3/filters/custom-with-at-rule-syntax/parsing-parameters-property-invalid.html
             css3/filters/custom-with-at-rule-syntax/parsing-parameters-property-valid.html
      
      * css/CSSComputedStyleDeclaration.cpp:
      (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
      * css/CSSParser.cpp: Added 'parameters' property and fail parsing if not inside
          of an @filter rule.
      (WebCore::CSSParser::parseValue):
      (WebCore::CSSParser::parseFilterRuleParameters): New helper function to verify
          values.
      (WebCore):
      * css/CSSParser.h:
      * css/CSSProperty.cpp:
      (WebCore::CSSProperty::isInheritedProperty):
      * css/CSSPropertyNames.in: Added new property name 'parameters'.
      * css/StyleResolver.cpp:
      (WebCore::StyleResolver::applyProperty):
      
      LayoutTests:
      
      Tests for the 'parameters' descriptor on @filter rule.
      
      * css3/filters/custom-with-at-rule-syntax/parsing-parameters-property-invalid-expected.txt: Added.
      * css3/filters/custom-with-at-rule-syntax/parsing-parameters-property-invalid.html: Added.
      * css3/filters/custom-with-at-rule-syntax/parsing-parameters-property-valid-expected.txt: Added.
      * css3/filters/custom-with-at-rule-syntax/parsing-parameters-property-valid.html: Added.
      * css3/filters/custom-with-at-rule-syntax/script-tests/parsing-parameters-property-invalid.js: Added.
      (testInvalidParametersProperty):
      * css3/filters/custom-with-at-rule-syntax/script-tests/parsing-parameters-property-valid.js: Added.
      (testParametersProperty):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148227 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7afcd74f
    • fpizlo@apple.com's avatar
      Get rid of the 10ms delay between test executions · 45828c45
      fpizlo@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=114458
      <rdar://problem/13631112>
      
      Reviewed by Darin Adler and Geoffrey Garen.
              
      More details on this in the bug. Long story short, I don't know why the 10ms delay is
      there, and it appears to be the root of some noisyness and unreliability in the results.
      Removing it makes results more consistent, which is a good thing.
      
      * resources/driver-TEMPLATE.html:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148226 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      45828c45
    • zhajiang@rim.com's avatar
      [BlackBerry] Initial scale changes depending on the order of page navigations · 30261ebd
      zhajiang@rim.com authored
      https://bugs.webkit.org/show_bug.cgi?id=114448
      
      Patch by Jacky Jiang <zhajiang@rim.com>.
      Reviewed by Rob Buis.
      
      PR: 323941
      During page transitions, absoluteVisibleOverflowSize() and contentsSize()
      in fixedLayoutSize() were based on the old page when we just started or
      committed provisinal load. In that case, fixedLayoutSize() is very old
      page dependent and can cause inconsistent behaviors. For example, if
      the old page contents width is 4000, we will get DEFAULT_MAX_LAYOUT_WIDTH 1024
      as the new page's fixedLayoutSize; however, we will get 768 if we
      navigate to the new page directly.
      To fix that, return default layout size if the page doesn't have
      virtual viewport and m_loadState is Provisional.
      
      * Api/WebPage.cpp:
      (BlackBerry::WebKit::WebPagePrivate::fixedLayoutSize):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148225 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      30261ebd