Permalink
Switch branches/tags
Nothing to show
Commits on Dec 11, 2012
  1. Memory instrumentation: make sure each edge is reported only once

    https://bugs.webkit.org/show_bug.cgi?id=104630
    
    Reviewed by Pavel Feldman.
    
    Source/JavaScriptCore:
    
    Changed exported symbols for MemoryInstrumentation.
    
    * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def:
    
    Source/WTF:
    
    Make sure that outgoing edges are reported only once if we come to the same
    object twice: first by an address of a base class and then by a real address
    of the object.
    
    * wtf/MemoryInstrumentation.cpp:
    (WTF::MemoryInstrumentation::MemoryInstrumentation):
    (WTF::MemoryInstrumentation::reportLinkToBuffer):
    (WTF::MemoryInstrumentation::InstrumentedPointerBase::InstrumentedPointerBase):
    (WTF::MemoryInstrumentation::InstrumentedPointerBase::process):
    (WTF::MemoryClassInfo::init):
    (WTF::MemoryClassInfo::addRawBuffer):
    (WTF::MemoryClassInfo::addPrivateBuffer):
    * wtf/MemoryInstrumentation.h:
    (InstrumentedPointerBase):
    (MemoryInstrumentation):
    (InstrumentedPointer):
    (WTF::MemoryClassInfo::MemoryClassInfo):
    (WTF::MemoryClassInfo::addMember):
    (MemoryClassInfo):
    (WTF::::InstrumentedPointer):
    (WTF::::callReportMemoryUsage):
    * wtf/MemoryObjectInfo.h:
    (WTF::MemoryObjectInfo::MemoryObjectInfo):
    (WTF::MemoryObjectInfo::firstVisit):
    (WTF::MemoryObjectInfo::className):
    (WTF::MemoryObjectInfo::name):
    (WTF::MemoryObjectInfo::setAlreadyVisited):
    (MemoryObjectInfo):
    
    Tools:
    
    Test that outgoing edges are reported only once if we come to the same
    object twice: first by an address of a base class and then by a real address
    of the object.
    
    * TestWebKitAPI/Tests/WTF/MemoryInstrumentationTest.cpp:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137261 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    yury-s committed Dec 11, 2012
  2. Unreviewed build fix after r137243.

    * bindings/gobject/GNUmakefile.am:
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137260 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    zandobersek committed Dec 11, 2012
  3. [chromium] Unreviewed gardening

    https://bugs.webkit.org/show_bug.cgi?id=84432
    
    fast/filesystem/op-restricted-names.html
    fast/filesystem/op-restricted-unicode.html
    fast/filesystem/read-directory.html
    fast/filesystem/simple-readonly-file-object.html
    
    Patch by Noel Gordon <noel.gordon@gmail.com> on 2012-12-10
    
    * platform/chromium/TestExpectations: These have been passing on WIN for over a month.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137259 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    christophe.dumez committed Dec 11, 2012
  4. [chromium] Remove WebCompositorFrame(Ack) as these classes are not ne…

    …eded now that they are passed through cc::OutputSurface.
    
    
    https://bugs.webkit.org/show_bug.cgi?id=104635
    
    Reviewed by James Robinson.
    
    These have been supplanted by cc::CompositorFrame(Ack) which do not
    need to inherit from them.
    
    * chromium/public/WebCompositorFrame.h: Removed.
    * chromium/public/WebCompositorFrameAck.h: Removed.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137258 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    danakj committed Dec 11, 2012
  5. [chromium] Unreviewed gardening

    https://bugs.webkit.org/show_bug.cgi?id=84432
    
    fast/filesystem/op-restricted-names.html
    fast/filesystem/op-restricted-unicode.html
    fast/filesystem/read-directory.html
    fast/filesystem/simple-readonly-file-object.html
    
    * platform/chromium/TestExpectations: These have been passing on WIN for over a month.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137257 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    Noel Gordon committed Dec 11, 2012
  6. [chromium] Remove WebCompositorOutputSurface implementations from DRT

    https://bugs.webkit.org/show_bug.cgi?id=104046
    
    Reviewed by Darin Fisher.
    
    Source/Platform:
    
    Remove now-unused definitions for these classes. The cc::OutputSurface
    and its related classes have replaced these, with the
    WebCompositorOutputSurface class as an empty base class.
    
    * Platform.gypi:
    * chromium/public/WebCompositorOutputSurface.h:
    (WebKit):
    * chromium/public/WebCompositorOutputSurfaceClient.h: Removed.
    * chromium/public/WebCompositorSoftwareOutputDevice.h: Removed.
    
    Source/WebKit/chromium:
    
    Use WebCompositorSupport to create an OutputSurface.
    
    * WebKit.gypi:
    * src/WebViewImpl.cpp:
    (WebKit):
    * tests/Canvas2DLayerBridgeTest.cpp:
    * tests/FakeWebCompositorOutputSurface.h: Removed.
    * tests/WebLayerTreeViewTestCommon.h:
    
    Tools:
    
    The classes are now provided through WebCompositorSupport.
    
    * DumpRenderTree/DumpRenderTree.gypi:
    * DumpRenderTree/chromium/WebViewHost.cpp:
    (WebViewHost::createOutputSurface):
    * DumpRenderTree/chromium/WebViewHostOutputSurface.cpp: Removed.
    * DumpRenderTree/chromium/WebViewHostOutputSurface.h: Removed.
    * DumpRenderTree/chromium/WebViewHostSoftwareOutputDevice.cpp: Removed.
    * DumpRenderTree/chromium/WebViewHostSoftwareOutputDevice.h: Removed.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137256 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    danakj committed Dec 11, 2012
  7. [WK2] Add a user default to limit the number of web processes

    https://bugs.webkit.org/show_bug.cgi?id=104606
    
    Reviewed by Sam Weinig.
    
    When the limit is reached, we'll reuse an existing process with fewest pages.
    
    * UIProcess/WebContext.cpp:
    (WebKit::WebContext::WebContext): Initialize m_webProcessCountLimit.
    (WebKit::WebContext::platformInitialize): Added a hook for reading the preference,
    empty implementation on most platforms.
    (WebKit::WebContext::createNewWebProcess): Changed to return a raw pointer. The new
    process is put into a vector anyway, so there is no ownership transfer.
    (WebKit::WebContext::warmInitialProcess): Don't create a new process if that would
    exceed the limit.
    (WebKit::WebContext::createNewWebProcessRespectingProcessCountLimit): Added a new
    function that wither creates a new process, or picks an existing one.
    (WebKit::WebContext::createWebPage): Call the above new function instead of
    unconditionally creating a process.
    
    * UIProcess/WebContext.h: createNewWebProcess is no private. All clients should
    respect the process count limit.
    
    * UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::reattachToWebProcess):
    Respect the process count limit.
    
    * UIProcess/mac/WebContextMac.mm:
    (WebKit::registerUserDefaultsIfNeeded): Register the new default.
    (WebKit::WebContext::platformInitialize): Read the default into a WebContext
    member variable.
    (WebKit::WebContext::platformInitializeWebProcess): Moved registerUserDefaultsIfNeeded()
    from here to platformInitialize(), as that's a better place for it. Also added a
    FIXME for an unrelated issue.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137255 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    aproskuryakov committed Dec 11, 2012
  8. Unreviewed EFL gardening.

    Rebaseline fast/js/global-constructors.html after r137243.
    
    * platform/efl/fast/js/global-constructors-expected.txt:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137254 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    christophe.dumez committed Dec 11, 2012
  9. [chromium] Unreviewed gardening

    Mark platform/chromium/virtual/deferred/fast/images/pdf-as-image-landscape.html WontFix.
    
    * platform/chromium/TestExpectations:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137253 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    Noel Gordon committed Dec 11, 2012
  10. [chromium] Unreviewed gardening: rebase fast/repaint/body-background-…

    …image.html on linux
    
    * platform/chromium/TestExpectations:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137252 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    Noel Gordon committed Dec 11, 2012
  11. [chromium] Unreviewed gardening: rebase fast/text/font-initial.html o…

    …n linux
    
    * platform/chromium-linux/fast/text/font-initial-expected.png: Added.
    * platform/chromium/TestExpectations:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137251 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    Noel Gordon committed Dec 11, 2012
  12. REGRESSION (r137006): CSS clip on solid color composited div broken

    https://bugs.webkit.org/show_bug.cgi?id=104604
    
    Patch by No'am Rosenthal <noam@webkit.org> on 2012-12-10
    Reviewed by Simon Fraser.
    
    Source/WebCore:
    
    Disable direct compositing of background color for clipping layers.
    
    Test: compositing/geometry/clip-inside.html
    
    * rendering/RenderLayerBacking.cpp:
    (WebCore::supportsDirectBoxDecorationsComposition):
        Never allow direct background composition if there is a clip.
    
    LayoutTests:
    
    Added a new test (by Simon Fraser) to make sure background color doesn't break clipping.
    
    * compositing/geometry/clip-inside-expected.txt: Added.
    * compositing/geometry/clip-inside.html: Added.
    * compositing/geometry/clip-expected:
            New result.
    
    * platform/chromium/compositing/geometry/clip-inside-expected.txt
            Adjust Chromium expected result for new test.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137250 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    commit-queue committed Dec 11, 2012
  13. [chromium] Unreviewed gardening after http://trac.webkit.org/changese…

    …t/137243
    
    * platform/chromium/TestExpectations: Remove animations test.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137249 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    Noel Gordon committed Dec 11, 2012
  14. Source/WebCore: REGRESSION (r137215): WebKit stretches and shrinks a …

    …part of screen on scroll
    
    
    https://bugs.webkit.org/show_bug.cgi?id=104626
    
    Reviewed by Beth Dakin.
    
    r137215 removed a compositing layer repaint on size changes. However, there
    are cases where the compositing code constrains layer size by clipping
    with the viewport and a clipping ancestor. When that happens, we must
    invalidate the layer on a size change to avoid showing stretched or
    shrunken content.
    
    Test: compositing/repaint/clipped-layer-size-change.html
    
    * rendering/RenderLayerBacking.cpp:
    (WebCore::RenderLayerBacking::RenderLayerBacking):
    (WebCore::RenderLayerBacking::updateCompositedBounds):
    (WebCore::RenderLayerBacking::updateGraphicsLayerGeometry):
    * rendering/RenderLayerBacking.h:
    (RenderLayerBacking):
    
    LayoutTests: REGRESSION(r137215): WebKit stretches and shrinks a part of screen on scroll
    https://bugs.webkit.org/show_bug.cgi?id=104626
    
    Reviewed by Beth Dakin.
    
    Testcase that scrolls an overflow area containing a compositing layer.
    
    * compositing/repaint/clipped-layer-size-change-expected.html: Added.
    * compositing/repaint/clipped-layer-size-change.html: Added.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137248 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    Simon Fraser committed Dec 11, 2012
  15. Don't OSR exit just because a string is a rope

    https://bugs.webkit.org/show_bug.cgi?id=104621
    
    Reviewed by Michael Saboff.
    
    Slight SunSpider speed-up at around the 0.7% level. This patch does the obvious
    thing of calling a slow path to resolve ropes rather than OSR exiting if the
    string is a rope.
    
    * dfg/DFGAbstractState.cpp:
    (JSC::DFG::AbstractState::execute):
    * dfg/DFGArrayMode.h:
    (JSC::DFG::ArrayMode::getIndexedPropertyStorageMayTriggerGC):
    (ArrayMode):
    * dfg/DFGCSEPhase.cpp:
    (JSC::DFG::CSEPhase::putStructureStoreElimination):
    * dfg/DFGOperations.cpp:
    * dfg/DFGOperations.h:
    * dfg/DFGSpeculativeJIT.cpp:
    (JSC::DFG::SpeculativeJIT::compileGetIndexedPropertyStorage):
    * dfg/DFGSpeculativeJIT.h:
    (JSC::DFG::SpeculativeJIT::callOperation):
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137247 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    pizlonator committed Dec 11, 2012
  16. ASSERTION failed in Windows: css3/css3-modsel-33.html

    https://bugs.webkit.org/show_bug.cgi?id=104472
    
    Patch by Xueqing Huang <huangxueqing@baidu.com> on 2012-12-10
    Reviewed by Tim Horton.
    
    In WebFrameLoaderClient::dispatchDidLayout, milestones maybe
    DidFirstLayout & DidFirstVisualNonEmptyLayout, we should
    use seperate COMPtrs for the two cases rather than reuse one.
    
    * WebCoreSupport/WebFrameLoaderClient.cpp:
    (WebFrameLoaderClient::dispatchDidLayout):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137246 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    commit-queue committed Dec 11, 2012
  17. Change Tab's affiliation in ChangeLog on recent patch.

    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137245 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    grorg committed Dec 11, 2012
  18. [chromium] fast/dom/HTMLMeterElement/meter-boundary-values.html is flaky

    https://bugs.webkit.org/show_bug.cgi?id=104625
    
    Unreviewed HTMLMeterElement/meter-boundary-values.html rebaselines.
    
    * platform/chromium-mac-lion/fast/dom/HTMLMeterElement/meter-boundary-values-expected.png:
    * platform/chromium-mac-snowleopard/fast/dom/HTMLMeterElement/meter-boundary-values-expected.png:
    * platform/chromium-mac/fast/dom/HTMLMeterElement/meter-boundary-values-expected.png:
    * platform/efl-wk1/fast/dom/HTMLMeterElement/meter-boundary-values-expected.png: Renamed from LayoutTests/platform/efl/fast/dom/HTMLMeterElement/meter-boundary-values-expected.png.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137244 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    Noel Gordon committed Dec 11, 2012
  19. Remove old WebKit Animation API code

    https://bugs.webkit.org/show_bug.cgi?id=104611
    
    Reviewed by Simon Fraser.
    
    Remove the existing, unused animation API code. We'll look into
    implementing the W3C Animation API if/when it is stable.
    
    Source/WebCore:
    
    * CMakeLists.txt: Remove WebKitAnimation and WebKitAnimationList classes.
    * DerivedSources.cpp:
    * DerivedSources.make:
    * DerivedSources.pri:
    * GNUmakefile.list.am:
    * Target.pri:
    * UseJSC.cmake:
    * UseV8.cmake:
    * WebCore.gypi:
    * WebCore.vcproj/WebCore.vcproj:
    * WebCore.xcodeproj/project.pbxproj:
    * bindings/js/JSBindingsAllInOne.cpp: Remove includes.
    * bindings/js/JSWebKitAnimationCustom.cpp: Removed.
    * bindings/js/JSWebKitAnimationListCustom.cpp: Removed.
    * dom/Element.cpp: Remove API.
    * dom/Element.h: Ditto.
    * dom/Element.idl: Ditto.
    * page/DOMWindow.idl: Ditto.
    * page/WebKitAnimation.cpp: Removed.
    * page/WebKitAnimation.h: Removed.
    * page/WebKitAnimation.idl: Removed.
    * page/WebKitAnimationList.cpp: Removed.
    * page/WebKitAnimationList.h: Removed.
    * page/WebKitAnimationList.idl: Removed.
    * page/animation/AnimationController.cpp: Remove API.
    * page/animation/AnimationController.h: Ditto.
    * page/animation/AnimationControllerPrivate.h: Ditto.
    * page/animation/CompositeAnimation.cpp: Ditto.
    * page/animation/CompositeAnimation.h: Ditto.
    
    LayoutTests:
    
    * animations/animation-api-1-expected.txt: Removed.
    * animations/animation-api-1.html: Removed.
    * fast/js/global-constructors-expected.txt:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137243 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    grorg committed Dec 11, 2012
  20. [Chromium] Re-enable a failing test. Disabling it just seemed to

    move the problem to another test.  Unreviewed.
    
    * tests/GraphicsLayerChromiumTest.cpp:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137242 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    Stephen White committed Dec 11, 2012
  21. Build fix.

    * WebProcess/WebCoreSupport/WebPlugInClient.cpp:
    (WebKit::WebPlugInClient::WebPlugInClient): Remove unneeded m_page variable.
    * WebProcess/WebCoreSupport/WebPlugInClient.h:
    (WebPlugInClient):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137241 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    qanat committed Dec 11, 2012
  22. Fix the Mac build after r137233

    * html/shadow/HTMLShadowElement.h:
    Remove a declaration of a member variable that was moved to the InsertionPoint superclass.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137240 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    Jessie Berlin committed Dec 11, 2012
  23. [EFL] Rebaseline expected results for "visibility:hidden; position: a…

    …bsolute;" cases
    
    
    https://bugs.webkit.org/show_bug.cgi?id=104620
    
    Unreviewed, EFL gardening.
    
    This is a following rebaseline of BUG 104195.
    This patch sets AC ON as a default expected result of EFL.
    
    Patch by Kangil Han <kangil.han@samsung.com> on 2012-12-10
    
    * platform/efl-wk1/editing/input/caret-at-the-edge-of-contenteditable-expected.txt: Copied from LayoutTests/platform/efl/editing/input/caret-at-the-edge-of-contenteditable-expected.txt.
    * platform/efl-wk1/editing/input/reveal-caret-of-multiline-contenteditable-expected.txt: Copied from LayoutTests/platform/efl/editing/input/reveal-caret-of-multiline-contenteditable-expected.txt.
    * platform/efl-wk1/fast/block/basic/020-expected.txt: Copied from LayoutTests/platform/efl/fast/block/basic/020-expected.txt.
    * platform/efl-wk2/fast/block/basic/020-expected.txt: Removed.
    * platform/efl/TestExpectations:
    * platform/efl/editing/input/caret-at-the-edge-of-contenteditable-expected.txt:
    * platform/efl/editing/input/reveal-caret-of-multiline-contenteditable-expected.txt:
    * platform/efl/fast/block/basic/020-expected.txt:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137239 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    commit-queue committed Dec 11, 2012
  24. Fix expectations lint errors in r137231

    Unreviewed gardening.
    
    * platform/chromium/TestExpectations:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137238 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    ajklein committed Dec 11, 2012
  25. change --no-launch-safari to --no-show-results in scripts

    https://bugs.webkit.org/show_bug.cgi?id=104298
    
    Reviewed by Eric Seidel.
    
    Since Safari only exists on the Apple ports, NRWT calls the
    command line flag --[no-]show-results instead. This updates
    the scripts to use the new flag (but not the buildbot config yet).
    
    * Scripts/generate-coverage-data:
    * Scripts/webkit-tools-completion.sh:
    * Scripts/webkitpy/tool/steps/runtests.py:
    (RunTests.run):
    * Scripts/webkitpy/tool/steps/runtests_unittest.py:
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137237 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    dpranke committed Dec 11, 2012
  26. Build fix after r137221

    https://bugs.webkit.org/show_bug.cgi?id=104617
    
    Unreviewed build fix
    
    Patch by KyungTae Kim <ktf.kim@samsung.com> on 2012-12-10
    
    * html/HTMLPropertiesCollection.cpp:
    (WebCore::nextNodeWithProperty):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137236 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    commit-queue committed Dec 11, 2012
  27. Rewrite last occurrences of "Image" in TestExpectations to "ImageOnly…

    …Failure".
    
    Unreviewed test expectations update.
    
    * platform/chromium/TestExpectations:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137235 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    ajklein committed Dec 11, 2012
  28. nrwt: fix mapping of AUDIO onto FAIL when printing unexpected results

    https://bugs.webkit.org/show_bug.cgi?id=104597
    
    Reviewed by Ojan Vafai.
    
    This was broken in the recent printer refactoring.
    
    * Scripts/webkitpy/layout_tests/views/buildbot_results.py:
    (BuildBotPrinter.print_unexpected_results.add_result.is_expected):
    * Scripts/webkitpy/layout_tests/views/buildbot_results_unittest.py:
    (BuildBotPrinterTests.get_result):
    (BuildBotPrinterTests.test_print_unexpected_results):
    (BuildBotPrinterTests.test_print_unexpected_results.get_unexpected_results):
    (BuildBotPrinterTests):
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137234 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    dpranke committed Dec 11, 2012
  29. [Shadow DOM][Refactoring] HTMLContentElement,HTMLShadowElement::m_reg…

    …isteredWithShadowRoot should be moved to InsertionPoint
    
    
    https://bugs.webkit.org/show_bug.cgi?id=104516
    
    Reviewed by Dimitri Glazkov.
    
    This change pulls duplicated code in removedFrom() and
    insertedInto() of both both HTMLShadowElement and
    HTMLContentElement to their super class InsertionPoint.
    
    This is a part of effor that encapsulate node distribution algorithm to
    ContentDistributor and its family.
    
    No new tests, no behavior change.
    
    * dom/ShadowRoot.cpp:
    (WebCore::ShadowRoot::registerInsertionPoint): Added.
    (WebCore::ShadowRoot::unregisterInsertionPoint): Added.
    * dom/ShadowRoot.h:
    (ShadowRoot):
    * html/shadow/ContentDistributor.cpp:
    (WebCore::ShadowRootContentDistributionData::regiterInsertionPoint): Generalized two methods for <content> and <shadow>.
    (WebCore):
    (WebCore::ShadowRootContentDistributionData::unregisterInsertionPoint): Ditto.
    * html/shadow/ContentDistributor.h:
    (ShadowRootContentDistributionData):
    * html/shadow/HTMLContentElement.cpp:
    (WebCore::HTMLContentElement::HTMLContentElement):
    * html/shadow/HTMLContentElement.h:
    * html/shadow/HTMLShadowElement.cpp:
    (WebCore::HTMLShadowElement::HTMLShadowElement):
    * html/shadow/HTMLShadowElement.h:
    * html/shadow/InsertionPoint.cpp:
    (WebCore::InsertionPoint::InsertionPoint):
    (WebCore::InsertionPoint::insertedInto): Pulled up from subclasses
    (WebCore::InsertionPoint::removedFrom): Pulled up from subclasses
    * html/shadow/InsertionPoint.h:
    (InsertionPoint):
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137233 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    omo committed Dec 11, 2012
  30. Expand flakiness of move-by-line-001.html.

    Unreviewed gardening.
    
    * platform/chromium/TestExpectations:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137232 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    ajklein committed Dec 11, 2012
  31. Temporarily disable video-media-source-seek.html & video-media-source…

    …-state-changes.html
    
    
    https://bugs.webkit.org/show_bug.cgi?id=104584
    
    Reviewed by Dirk Pranke.
    
    Changes in Chromium needed for Bug 104581 and Bug 104583 will break these tests so they are
    being temporarily disabled until the Chromium & WebKit changes are both landed.
    
    * platform/chromium/TestExpectations:
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137231 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    acolwell committed Dec 11, 2012
  32. Keep track of plug-in snapshots clicked by user

    https://bugs.webkit.org/show_bug.cgi?id=103206
    <rdar://problem/12746483>
    
    Reviewed by Anders Carlsson.
    
    Source/WebCore:
    
    * html/HTMLPlugInImageElement.cpp:
    (WebCore::HTMLPlugInImageElement::HTMLPlugInImageElement): Initially the hash is
    unknown. Set to 0. Move the check for whether to snapshot the plugin into the
    new function subframeLoaderWillLoadPlugIn.
    (WebCore::HTMLPlugInImageElement::userDidClickSnapshot): Rename
    setPendingClickEvent to userDidClickSnapshot. In addition to holding onto the
    click event used to activate the plug-in, the function now also tells the plug-in
    client to add the origin hash as an auto-start origin.
    (WebCore::HTMLPlugInImageElement::subframeLoaderWillLoadPlugIn): Calculate the
    hash based on the provided URL, which is the URL the plug-in will load. Extend
    the check that used to be in the constructor to see if the plug-in should not
    automatically load, including checking the plug-in size and whether the hash
    is an auto-start origin.
    * html/HTMLPlugInImageElement.h: Rename setPendingClickEvent to userDidClickSnapshot
    and add a variable for the origin hash.
    
    * loader/SubframeLoader.cpp:
    (WebCore::SubframeLoader::requestPlugin): When the loader is about to load the
    plug-in, pass the URL to the element, so that it can calculate the hash.
    
    * page/Page.cpp:
    (WebCore::Page::Page): Take the plugInClient from the page clients.
    (WebCore::Page::~Page): If the client exists, tell it that the page is being
    destroyed.
    (WebCore::Page::PageClients::PageClients): Initialize this optional client to
    null.
    * page/Page.h: Add PlugInClient to page clients.
    (PageClients): Add PlugInClient variable.
    (WebCore::Page::plugInClient):
    * page/PlugInClient.h: Added.
    
    * rendering/RenderSnapshottedPlugIn.cpp:
    (WebCore::RenderSnapshottedPlugIn::handleEvent): Call the renamed function
    userDidClickSnapshot().
    (WebCore::RenderSnapshottedPlugIn::layout): Move the check of the plug-in size
    to subframeLoaderWillLoadPlugIn.
    
    Add PlugInClient.h.
    * GNUmakefile.list.am:
    * Target.pri:
    * WebCore.vcproj/WebCore.vcproj:
    * WebCore.xcodeproj/project.pbxproj:
    
    Source/WebKit2:
    
    Create a new provider class for the web context that maintains a mapping of the plug-in origins
    allowed to auto-start for a specific page origin.
    
    * WebProcess/WebPage/WebPage.cpp:
    (WebKit::WebPage::WebPage): Create and set WebPlugInClient.
    
    Implement WebCore::PlugInClient.
    * WebProcess/WebCoreSupport/WebPlugInClient.cpp: Added.
    (WebKit::WebPlugInClient::WebPlugInClient):
    (WebKit::WebPlugInClient::~WebPlugInClient):
    (WebKit::WebPlugInClient::pageDestroyed):
    (WebKit::WebPlugInClient::isAutoStartOrigin): Forward to WebProcess.
    (WebKit::WebPlugInClient::addAutoStartOrigin): Forward to WebProcess.
    * WebProcess/WebCoreSupport/WebPlugInClient.h: Added.
    
    * WebProcess/WebProcess.cpp: Maintains a copy of the hash set.
    (WebKit::WebProcess::isPlugInAutoStartOrigin): Look for the hash in the set.
    (WebKit::WebProcess::addPlugInAutoStartOrigin): Tell the UI process to add the hash for the page.
    (WebKit::WebProcess::didAddPlugInAutoStartOrigin): Add the hash to the cached set.
    * WebProcess/WebProcess.h:
    * WebProcess/WebProcess.messages.in: Add DidAddPlugInAutoStartOrigin.
    
    Add the auto-start provider.
    * UIProcess/WebContext.cpp:
    (WebKit::WebContext::WebContext): Initialize the provider.
    (WebKit::WebContext::addPlugInAutoStartOriginHash): Forward to the provider.
    * UIProcess/WebContext.h:
    * UIProcess/WebContext.messages.in: Add AddPlugInAutoStartOriginHash.
    
    The provider class maintains a map of page domains to hashes, and a set of all the hashes.
    The latter will be used to initialize new web processes without having to crawl through the
    whole map.
    * UIProcess/Plugins/PlugInAutoStartProvider.cpp: Added.
    (WebKit::PlugInAutoStartProvider::PlugInAutoStartProvider):
    (WebKit::PlugInAutoStartProvider::addAutoStartOrigin): Add the origin to the map and set. Tell
    all processes to add the origin to their local copies.
    * UIProcess/Plugins/PlugInAutoStartProvider.h: Added.
    
    Add PlugInAutoStartProvider and WebPlugInClient.
    * CMakeLists.txt:
    * GNUmakefile.list.am:
    * Target.pri:
    * WebKit2.xcodeproj/project.pbxproj:
    * win/WebKit2.vcproj:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137230 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    qanat committed Dec 11, 2012
  33. Add WKPageSetInvalidMessageFunction stub

    https://bugs.webkit.org/show_bug.cgi?id=104614
    <rdar://problem/12841671>
    
    Reviewed by Mark Rowe.
    
    * UIProcess/API/C/WKPage.cpp:
    (WKPageSetInvalidMessageFunction):
    * UIProcess/API/C/WKPagePrivate.h:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137229 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    Anders Carlsson committed Dec 11, 2012
  34. old-run-webkit-tests: add --show-results properly

    https://bugs.webkit.org/show_bug.cgi?id=104608
    
    Reviewed by Eric Seidel.
    
    Rework r137219 / bug 104601 to use the correct perl idiom.
    
    * Scripts/old-run-webkit-tests:
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137228 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    dpranke committed Dec 11, 2012
  35. Not reviewed.

            
    Build fix.
    
    * html/HTMLPropertiesCollection.cpp:
    (WebCore::nextNodeWithProperty):
    * page/TouchDisambiguation.cpp:
    (WebCore::boundingBoxForEventNodes):
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137227 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    Antti Koivisto committed Dec 11, 2012