1. 21 Apr, 2011 40 commits
    • oliver@apple.com's avatar
      2011-04-21 Oliver Hunt <oliver@apple.com> · 433d02f9
      oliver@apple.com authored
              Reviewed by Geoffrey Garen.
      
              Start moving to a general visitor pattern for GC traversal
              https://bugs.webkit.org/show_bug.cgi?id=59141
      
              This is just a rename:
                  markChildren -> visitChildren
                  markAggregate -> visitAggregate
                  markStack -> visitor
                  MarkStack -> typedef'd to SlotVisitor
      
              * API/JSCallbackObject.h:
              (JSC::JSCallbackObjectData::visitChildren):
              (JSC::JSCallbackObjectData::JSPrivatePropertyMap::visitChildren):
              (JSC::JSCallbackObject::visitChildren):
              * JavaScriptCore.exp:
              * bytecode/CodeBlock.cpp:
              (JSC::CodeBlock::visitStructures):
              (JSC::EvalCodeCache::visitAggregate):
              (JSC::CodeBlock::visitAggregate):
              * bytecode/CodeBlock.h:
              * bytecode/EvalCodeCache.h:
              * bytecode/Instruction.h:
              (JSC::PolymorphicAccessStructureList::visitAggregate):
              * bytecode/StructureStubInfo.cpp:
              (JSC::StructureStubInfo::visitAggregate):
              * bytecode/StructureStubInfo.h:
              * debugger/DebuggerActivation.cpp:
              (JSC::DebuggerActivation::visitChildren):
              * debugger/DebuggerActivation.h:
              * heap/HandleHeap.cpp:
              (JSC::WeakHandleOwner::isReachableFromOpaqueRoots):
              (JSC::HandleHeap::markStrongHandles):
              (JSC::HandleHeap::markWeakHandles):
              * heap/HandleHeap.h:
              * heap/HandleStack.cpp:
              (JSC::HandleStack::mark):
              * heap/HandleStack.h:
              * heap/Heap.cpp:
              (JSC::Heap::markProtectedObjects):
              (JSC::Heap::markTempSortVectors):
              (JSC::Heap::markRoots):
              * heap/Heap.h:
              * heap/MarkStack.cpp:
              (JSC::MarkStack::visitChildren):
              (JSC::MarkStack::drain):
              * heap/MarkStack.h:
              (JSC::HeapRootVisitor::HeapRootVisitor):
              (JSC::HeapRootVisitor::mark):
              (JSC::HeapRootVisitor::visitor):
              * heap/MarkedSpace.h:
              * runtime/ArgList.cpp:
              (JSC::MarkedArgumentBuffer::markLists):
              * runtime/ArgList.h:
              * runtime/Arguments.cpp:
              (JSC::Arguments::visitChildren):
              * runtime/Arguments.h:
              * runtime/Executable.cpp:
              (JSC::EvalExecutable::visitChildren):
              (JSC::ProgramExecutable::visitChildren):
              (JSC::FunctionExecutable::visitChildren):
              * runtime/Executable.h:
              * runtime/GetterSetter.cpp:
              (JSC::GetterSetter::visitChildren):
              * runtime/GetterSetter.h:
              (JSC::GetterSetter::createStructure):
              * runtime/JSAPIValueWrapper.h:
              (JSC::JSAPIValueWrapper::createStructure):
              * runtime/JSActivation.cpp:
              (JSC::JSActivation::visitChildren):
              * runtime/JSActivation.h:
              * runtime/JSArray.cpp:
              (JSC::JSArray::visitChildren):
              * runtime/JSArray.h:
              (JSC::JSArray::visitDirect):
              * runtime/JSCell.h:
              (JSC::JSCell::JSCell::visitChildren):
              * runtime/JSFunction.cpp:
              (JSC::JSFunction::visitChildren):
              * runtime/JSFunction.h:
              * runtime/JSGlobalObject.cpp:
              (JSC::visitIfNeeded):
              (JSC::JSGlobalObject::visitChildren):
              * runtime/JSGlobalObject.h:
              * runtime/JSONObject.cpp:
              * runtime/JSObject.cpp:
              (JSC::JSObject::visitChildren):
              * runtime/JSObject.h:
              (JSC::JSObject::visitDirect):
              * runtime/JSPropertyNameIterator.cpp:
              (JSC::JSPropertyNameIterator::visitChildren):
              * runtime/JSPropertyNameIterator.h:
              (JSC::JSPropertyNameIterator::createStructure):
              * runtime/JSStaticScopeObject.cpp:
              (JSC::JSStaticScopeObject::visitChildren):
              * runtime/JSStaticScopeObject.h:
              * runtime/JSTypeInfo.h:
              (JSC::TypeInfo::TypeInfo):
              (JSC::TypeInfo::overridesVisitChildren):
              * runtime/JSWrapperObject.cpp:
              (JSC::JSWrapperObject::visitChildren):
              * runtime/JSWrapperObject.h:
              * runtime/JSZombie.h:
              (JSC::JSZombie::visitChildren):
              * runtime/NativeErrorConstructor.cpp:
              (JSC::NativeErrorConstructor::visitChildren):
              * runtime/NativeErrorConstructor.h:
              * runtime/RegExpObject.cpp:
              (JSC::RegExpObject::visitChildren):
              * runtime/RegExpObject.h:
              * runtime/ScopeChain.cpp:
              (JSC::ScopeChainNode::visitChildren):
              * runtime/ScopeChain.h:
              * runtime/SmallStrings.cpp:
              (JSC::SmallStrings::visitChildren):
              * runtime/SmallStrings.h:
              * runtime/Structure.cpp:
              (JSC::Structure::Structure):
              (JSC::Structure::visitChildren):
              * runtime/Structure.h:
              * runtime/StructureChain.cpp:
              (JSC::StructureChain::visitChildren):
              * runtime/StructureChain.h:
              (JSC::StructureChain::createStructure):
      2011-04-21  Oliver Hunt  <oliver@apple.com>
      
              Reviewed by Geoffrey Garen.
      
              Start moving to a general visitor pattern for GC traversal
              https://bugs.webkit.org/show_bug.cgi?id=59141
      
              This is just a rename:
                  markChildren -> visitChildren
                  markAggregate -> visitAggregate
                  markStack -> visitor
                  MarkStack -> typedef'd to SlotVisitor
      
              * UserObjectImp.cpp:
              (UserObjectImp::visitChildren):
      2011-04-21  Oliver Hunt  <oliver@apple.com>
      
              Reviewed by Geoffrey Garen.
      
              Start moving to a general visitor pattern for GC traversal
              https://bugs.webkit.org/show_bug.cgi?id=59141
      
              This is just a rename:
                  markChildren -> visitChildren
                  markAggregate -> visitAggregate
                  markStack -> visitor
                  MarkStack -> typedef'd to SlotVisitor
      
              * bindings/js/JSAttrCustom.cpp:
              (WebCore::JSAttr::visitChildren):
              * bindings/js/JSAudioConstructor.cpp:
              (WebCore::constructAudio):
              * bindings/js/JSCSSRuleCustom.cpp:
              (WebCore::JSCSSRule::visitChildren):
              * bindings/js/JSCSSStyleDeclarationCustom.cpp:
              (WebCore::JSCSSStyleDeclaration::visitChildren):
              * bindings/js/JSDOMBinding.cpp:
              (WebCore::visitActiveObjectsForContext):
              (WebCore::markDOMObjectWrapper):
              * bindings/js/JSDOMBinding.h:
              * bindings/js/JSDOMGlobalObject.cpp:
              (WebCore::JSDOMGlobalObject::visitChildren):
              * bindings/js/JSDOMGlobalObject.h:
              * bindings/js/JSDOMImplementationCustom.cpp:
              (WebCore::JSDOMImplementation::visitChildren):
              * bindings/js/JSDOMWindowCustom.cpp:
              (WebCore::JSDOMWindow::visitChildren):
              * bindings/js/JSDOMWindowShell.cpp:
              (WebCore::JSDOMWindowShell::visitChildren):
              * bindings/js/JSDOMWindowShell.h:
              * bindings/js/JSDocumentCustom.cpp:
              (WebCore::JSDocument::visitChildren):
              * bindings/js/JSElementCustom.cpp:
              (WebCore::JSElement::visitChildren):
              * bindings/js/JSEventListener.cpp:
              (WebCore::JSEventListener::markJSFunction):
              * bindings/js/JSEventListener.h:
              * bindings/js/JSHTMLCanvasElementCustom.cpp:
              (WebCore::JSHTMLCanvasElement::visitChildren):
              * bindings/js/JSHTMLLinkElementCustom.cpp:
              (WebCore::JSHTMLLinkElement::visitChildren):
              * bindings/js/JSHTMLStyleElementCustom.cpp:
              (WebCore::JSHTMLStyleElement::visitChildren):
              * bindings/js/JSImageConstructor.cpp:
              (WebCore::constructImage):
              * bindings/js/JSJavaScriptAudioNodeCustom.cpp:
              (WebCore::JSJavaScriptAudioNode::visitChildren):
              * bindings/js/JSMessageChannelCustom.cpp:
              (WebCore::JSMessageChannel::visitChildren):
              * bindings/js/JSMessagePortCustom.cpp:
              (WebCore::JSMessagePort::visitChildren):
              * bindings/js/JSNamedNodeMapCustom.cpp:
              (WebCore::JSNamedNodeMapOwner::isReachableFromOpaqueRoots):
              (WebCore::JSNamedNodeMap::visitChildren):
              * bindings/js/JSNavigatorCustom.cpp:
              (WebCore::JSNavigator::visitChildren):
              * bindings/js/JSNodeCustom.cpp:
              (WebCore::isObservable):
              (WebCore::isReachableFromDOM):
              (WebCore::JSNodeOwner::isReachableFromOpaqueRoots):
              (WebCore::JSNode::visitChildren):
              * bindings/js/JSNodeCustom.h:
              * bindings/js/JSNodeFilterCondition.cpp:
              (WebCore::JSNodeFilterCondition::WeakOwner::isReachableFromOpaqueRoots):
              * bindings/js/JSNodeFilterCondition.h:
              * bindings/js/JSNodeFilterCustom.cpp:
              (WebCore::JSNodeFilter::visitChildren):
              * bindings/js/JSNodeIteratorCustom.cpp:
              (WebCore::JSNodeIterator::visitChildren):
              * bindings/js/JSNodeListCustom.cpp:
              (WebCore::JSNodeListOwner::isReachableFromOpaqueRoots):
              * bindings/js/JSProcessingInstructionCustom.cpp:
              (WebCore::JSProcessingInstruction::visitChildren):
              * bindings/js/JSSVGElementInstanceCustom.cpp:
              (WebCore::JSSVGElementInstance::visitChildren):
              * bindings/js/JSSharedWorkerCustom.cpp:
              (WebCore::JSSharedWorker::visitChildren):
              * bindings/js/JSStyleSheetCustom.cpp:
              (WebCore::JSStyleSheet::visitChildren):
              * bindings/js/JSTreeWalkerCustom.cpp:
              (WebCore::JSTreeWalker::visitChildren):
              * bindings/js/JSWebGLRenderingContextCustom.cpp:
              (WebCore::JSWebGLRenderingContext::visitChildren):
              * bindings/js/JSWebKitAnimationListCustom.cpp:
              (WebCore::JSWebKitAnimationList::visitChildren):
              * bindings/js/JSWorkerContextCustom.cpp:
              (WebCore::JSWorkerContext::visitChildren):
              * bindings/js/JSXMLHttpRequestCustom.cpp:
              (WebCore::JSXMLHttpRequest::visitChildren):
              * bindings/js/JSXMLHttpRequestUploadCustom.cpp:
              (WebCore::JSXMLHttpRequestUpload::visitChildren):
              * bindings/scripts/CodeGeneratorJS.pm:
              * bridge/qt/qt_instance.cpp:
              (JSC::Bindings::QtRuntimeObject::visitChildren):
              (JSC::Bindings::QtInstance::markAggregate):
              * bridge/qt/qt_instance.h:
              * bridge/qt/qt_pixmapruntime.cpp:
              * bridge/qt/qt_runtime.cpp:
              (JSC::Bindings::QtRuntimeMetaMethod::visitChildren):
              * bridge/qt/qt_runtime.h:
              * dom/EventListener.h:
              (WebCore::EventListener::visitJSFunction):
              * dom/EventTarget.h:
              (WebCore::EventTarget::visitJSEventListeners):
              * dom/Node.h:
              * dom/NodeFilterCondition.h:
              (WebCore::NodeFilterCondition::visitAggregate):
              * page/DOMWindow.h:
              * workers/WorkerContext.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@84556 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      433d02f9
    • abarth@webkit.org's avatar
      2011-04-21 Adam Barth <abarth@webkit.org> · 4ecbacd7
      abarth@webkit.org authored
              Update test results to show that we're using ogv.  I would have
              preferred to make this test independent of which video codec we have,
              but I didn't see a way to do that.
      
              * platform/chromium/http/tests/security/contentSecurityPolicy/media-src-blocked-expected.txt: Added.
              * platform/chromium/media/csp-blocks-video-expected.txt: Added.
              * platform/chromium/test_expectations.txt:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@84555 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4ecbacd7
    • tony@chromium.org's avatar
      2011-04-21 Tony Chang <tony@chromium.org> · c6f016ad
      tony@chromium.org authored
              Unreviewed, deleting .checksum files in platform/chromium*
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@84554 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c6f016ad
    • bdakin@apple.com's avatar
      https://bugs.webkit.org/show_bug.cgi?id=59048 · 59845aa2
      bdakin@apple.com authored
      Need to track whether overlay scrollbar is currently visible and in lower-
      righthand corner
      -and corresponding-
      <rdar://problem/9211232>
      
      Reviewed by Dan Bernstein.
      
      Source/WebCore: 
      
      Whenever we start a new ScrollbarPartAnimation, check if the scrollbar is vertical 
      and showing (alpha of 1), and if so, call setVisibleScrollerThumbRect with the 
      knob rect, otherwise with an empty rect. ScrollAnimatorMac has a local rect to 
      track this value so that it can avoid sending messages across the ChromeClient to 
      the UIProcess if the rect has not changed.
      * platform/mac/ScrollAnimatorMac.h:
      * platform/mac/ScrollAnimatorMac.mm:
      (-[ScrollbarPainterDelegate setUpAnimation:scrollerPainter:part:WebCore::animateAlphaTo:duration:]):
      (WebCore::ScrollAnimatorMac::ScrollAnimatorMac):
      (WebCore::ScrollAnimatorMac::setVisibleScrollerThumbRect):
      
      Plumbing for the chrome client.
      * page/ChromeClient.h:
      (WebCore::ChromeClient::notifyScrollerThumbIsVisibleInRect):
      * page/FrameView.cpp:
      (WebCore::FrameView::setVisibleScrollerThumbRect):
      * page/FrameView.h:
      * platform/ScrollableArea.h:
      (WebCore::ScrollableArea::setVisibleScrollerThumbRect):
      
      New WebCoreSystemInterface function to get the knob rect.
      * WebCore.exp.in:
      * platform/mac/WebCoreSystemInterface.h:
      * platform/mac/WebCoreSystemInterface.mm:
      
      Source/WebKit/mac: 
      
      A new WebSystemInterface is needed for this.
      * WebCoreSupport/WebSystemInterface.mm:
      (InitWebCoreSystemInterface):
      
      Source/WebKit2: 
      
      WebPageProxy now stores an IntRect of the scroller thumb set by WebCore through 
      the client.
      
      _windowResizeMouseLocationIsInVisibleScrollerThumb tests if the parameter point is 
      inside the cached scroller thumb rect.
      * UIProcess/API/mac/WKView.mm:
      (-[WKView _windowResizeMouseLocationIsInVisibleScrollerThumb:]):
      
      Client work to cache the rect.
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::WebPageProxy):
      (WebKit::WebPageProxy::close):
      (WebKit::WebPageProxy::processDidCrash):
      (WebKit::WebPageProxy::notifyScrollerThumbIsVisibleInRect):
      * UIProcess/WebPageProxy.h:
      (WebKit::WebPageProxy::visibleScrollerThumbRect):
      * UIProcess/WebPageProxy.messages.in:
      * WebProcess/WebCoreSupport/WebChromeClient.cpp:
      (WebKit::WebChromeClient::notifyScrollerThumbIsVisibleInRect):
      * WebProcess/WebCoreSupport/WebChromeClient.h:
      
      New WebSystemInterface is needed by WebCore for this.
      * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
      (InitWebCoreSystemInterface):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@84553 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      59845aa2
    • adamk@chromium.org's avatar
      2011-04-21 Sheriff Bot <webkit.review.bot@gmail.com> · 225fdc79
      adamk@chromium.org authored
              Unreviewed, rolling out r84548.
              http://trac.webkit.org/changeset/84548
              https://bugs.webkit.org/show_bug.cgi?id=59144
      
              Broke chromium-win build (Requested by aklein on #webkit).
      
              * wtf/Platform.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@84550 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      225fdc79
    • abarth@webkit.org's avatar
      2011-04-21 Adam Barth <abarth@webkit.org> · d6ba8df9
      abarth@webkit.org authored
              Reviewed by Eric Seidel.
      
              ValidateChangeLogs doesn't work on SVN
              https://bugs.webkit.org/show_bug.cgi?id=59115
      
              svn-create-patch lies about the diff in the working copy by moving
              ChangeLog entries to the top of the diff.  That's fine on most cases,
              but causes problems for ValidateChangeLogs, which is trying validate
              the where the ChangeLog entry appears.
      
              I haven't added a test for this change because I couldn't figure out
              how to write one.  The issue is more of an integration issue, which
              we're not really set up to test in our unit testing framework.  If this
              patch had worked around the output from svn-create-patch, then I could
              have tested that we behave correctly on sample svn-create-patch output,
              but, in this case, I've removed the dependency on svn-create-patch.  I
              could test that we behave correctly on "svn diff" output, but we
              already have those tests.
      
              * Scripts/webkitpy/tool/commands/download_unittest.py:
              * Scripts/webkitpy/tool/mocktool.py:
              * Scripts/webkitpy/tool/steps/validatechangelogs.py:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@84549 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d6ba8df9
    • adamk@chromium.org's avatar
      2011-04-21 Adam Klein <adamk@chromium.org> · 44e9cd38
      adamk@chromium.org authored
              Reviewed by David Levin.
      
              [fileapi] Worker File API calls that create Blobs fail in debug builds due to random number generator thread assertion
              https://bugs.webkit.org/show_bug.cgi?id=55728
      
              Enable WTF_MULTIPLE_THREADS for Chromium.
      
              * wtf/Platform.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@84548 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      44e9cd38
    • tony@chromium.org's avatar
      2011-04-21 Tony Chang <tony@chromium.org> · 213f2bd0
      tony@chromium.org authored
              Unreviewed, embedding checksums in png files not in LayoutTests/platform.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@84547 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      213f2bd0
    • commit-queue@webkit.org's avatar
      2011-04-21 Nat Duca <nduca@chromium.org> · 348aedeb
      commit-queue@webkit.org authored
              Reviewed by James Robinson.
      
              [chromium] Fix artefacts in compositor HUD when resizing
              https://bugs.webkit.org/show_bug.cgi?id=58969
      
              HUD was using the tiler program and not setting the texture
              transform. The HUD would thus draw with a texture transform based
              on the last tile drawn, leading sometimes to distortion.
      
              * platform/graphics/chromium/LayerRendererChromium.cpp:
              (WebCore::LayerRendererChromium::initializeSharedObjects):
              (WebCore::LayerRendererChromium::cleanupSharedObjects):
              * platform/graphics/chromium/LayerRendererChromium.h:
              (WebCore::LayerRendererChromium::headsUpDisplayProgram):
              * platform/graphics/chromium/cc/CCHeadsUpDisplay.cpp:
              (WebCore::CCHeadsUpDisplay::draw):
              * platform/graphics/chromium/cc/CCHeadsUpDisplay.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@84546 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      348aedeb
    • commit-queue@webkit.org's avatar
      2011-04-21 Mike Reed <reed@google.com> · d1d0d570
      commit-queue@webkit.org authored
              Reviewed by Kenneth Russell.
      
              only return false if we actually in a skia-gpu accelerated canvas for isNativeFontRenderingAllowed
              https://bugs.webkit.org/show_bug.cgi?id=59024
      
              No new tests. The bug (and fix) depend on enabling SKIA_GPU. When that is enabled, the bug
              shows all text w/o lcd rendering. This is a regression from a recent CL when we switch to
              calling skia::SupportsPlatformPaint. This CL fixes that.
              There should be no change for the default builds when SKIA_GPU is not enabled.
      
              * platform/graphics/skia/PlatformContextSkia.cpp:
              (WebCore::PlatformContextSkia::isNativeFontRenderingAllowed):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@84545 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d1d0d570
    • tony@chromium.org's avatar
      2011-04-21 Tony Chang <tony@chromium.org> · aee75927
      tony@chromium.org authored
              Reviewed by Ojan Vafai.
      
              old-run-webkit-tests/new-run-webkit-tests shouldn't read or write .checksum files
              https://bugs.webkit.org/show_bug.cgi?id=58402
      
              * Scripts/old-run-webkit-tests: Don't read or write .checksum files.
              * Scripts/webkitpy/layout_tests/layout_package/single_test_runner.py: Don't write .checksum files.
              * Scripts/webkitpy/layout_tests/port/base.py: Don't read .checksum files.
              * Scripts/webkitpy/layout_tests/port/mock_drt_unittest.py:
              * Scripts/webkitpy/layout_tests/port/test.py: Update passing pngs to include a checksum.
              * Scripts/webkitpy/layout_tests/run_webkit_tests_unittest.py:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@84544 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      aee75927
    • ojan@chromium.org's avatar
      2011-04-21 Ojan Vafai <ojan@chromium.org> · 60a855f2
      ojan@chromium.org authored
              Reviewed by Tony Chang.
      
              only expand visible rows
              https://bugs.webkit.org/show_bug.cgi?id=59130
      
              For the chromium port, where there are many expected failures,
              expanding all of them is quite slow. Only expand the visible ones.
              This makes the default case. Also, make the expanding async to
              avoid totally killing the process.
      
              * Scripts/webkitpy/layout_tests/layout_package/json_results.html:
              * Scripts/webkitpy/layout_tests/layout_package/json_results_test.js:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@84543 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      60a855f2
    • enne@google.com's avatar
      2011-04-21 Adrienne Walker <enne@google.com> · 3c251905
      enne@google.com authored
              Reviewed by James Robinson.
      
              [chromium] Don't upload partially drawn tiles in the compositor
              https://bugs.webkit.org/show_bug.cgi?id=59112
      
              Use the same set of tiles for painting as is used for updating.
              Before, a larger set of tiles were being uploaded, causing some to
              only be partially undirtied because they were not fully painted.
              As tiles are clear their dirty rect after being unpainted, this caused
              artifacts to appear when scrolling.
      
              Unfortunately, no layout test can test this behavior yet because
              scrolling invalidations are done differently in test shell.
      
              * platform/graphics/chromium/ImageLayerChromium.cpp:
              (WebCore::ImageLayerChromium::updateCompositorResources):
              * platform/graphics/chromium/LayerTilerChromium.cpp:
              (WebCore::LayerTilerChromium::update):
              (WebCore::LayerTilerChromium::uploadCanvas):
              (WebCore::LayerTilerChromium::updateFromPixels):
              * platform/graphics/chromium/LayerTilerChromium.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@84542 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3c251905
    • krit@webkit.org's avatar
      2011-04-21 Dirk Schulze <krit@webkit.org> · aa315345
      krit@webkit.org authored
              Uneviewed rebaseline of win.
      
              SVG feDropShadow implementation of SVG Filters 1.2
              https://bugs.webkit.org/show_bug.cgi?id=52513
      
              * platform/win/fast/dom/Window/window-property-descriptors-expected.txt:
              * platform/win/fast/dom/prototype-inheritance-2-expected.txt:
              * platform/win/fast/dom/prototype-inheritance-expected.txt:
              * platform/win/fast/js/global-constructors-expected.txt:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@84541 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      aa315345
    • mrobinson@webkit.org's avatar
      2011-04-21 Martin Robinson <mrobinson@igalia.com> · c7da7f42
      mrobinson@webkit.org authored
              [GTK] DRT: implement eventSender.scalePageBy
              https://bugs.webkit.org/show_bug.cgi?id=59082
      
              Rolling out r84507 since it broke many GTK+ tests.
      
              * platform/gtk/Skipped:
              * platform/gtk/fast/repaint/scale-page-shrink-expected.checksum: Removed.
              * platform/gtk/fast/repaint/scale-page-shrink-expected.png: Removed.
              * platform/gtk/fast/repaint/scale-page-shrink-expected.txt: Removed.
      2011-04-21  Martin Robinson  <mrobinson@igalia.com>
      
              [GTK] DRT: implement eventSender.scalePageBy
              https://bugs.webkit.org/show_bug.cgi?id=59082
      
              Rolling out r84507 since it broke many GTK+ tests.
      
              * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
              * WebCoreSupport/DumpRenderTreeSupportGtk.h:
      2011-04-21  Martin Robinson  <mrobinson@igalia.com>
      
              [GTK] DRT: implement eventSender.scalePageBy
              https://bugs.webkit.org/show_bug.cgi?id=59082
      
              Rolling out r84507 since it broke many GTK+ tests.
      
              * DumpRenderTree/gtk/EventSender.cpp:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@84540 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c7da7f42
    • andreas.kling@nokia.com's avatar
      2011-04-21 Andreas Kling <andreas.kling@nokia.com> · f1eaccc7
      andreas.kling@nokia.com authored
              Reviewed by Kenneth Rohde Christiansen.
      
              [Qt][WK2] Emit QWKPage::urlChanged() when navigating within the same document.
              https://bugs.webkit.org/show_bug.cgi?id=59044
      
              Hook up the didSameDocumentNavigationForFrame callback to QWKPage::urlChanged().
      
              * UIProcess/API/qt/ClientImpl.cpp:
              (qt_wk_didSameDocumentNavigationForFrame):
              * UIProcess/API/qt/ClientImpl.h:
              * UIProcess/API/qt/qwkpage.cpp:
              (QWKPage::QWKPage):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@84539 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f1eaccc7
    • commit-queue@webkit.org's avatar
      2011-04-21 Ben Taylor <bentaylor.solx86@gmail.com> · 31defe87
      commit-queue@webkit.org authored
              Reviewed by Alexey Proskuryakov.
      
              https://bugs.webkit.org/show_bug.cgi?id=58725
      
              Fix a compile issue on Solaris 10 with Sun Studio 12,
              ternary operators (?:) must have the same types
      
              * loader/DocumentLoader.cpp:
              (WebCore::DocumentLoader::popArchiveForSubframe):
              * loader/archive/ArchiveFactory.cpp:
              (WebCore::ArchiveFactory::create):
              * loader/icon/IconDatabase.cpp:
              (WebCore::IconDatabase::setIconDataForIconURL):
              * page/animation/AnimationBase.cpp:
              (WebCore::blendFunc):
              * rendering/RenderLayer.cpp:
              (WebCore::RenderLayer::updateScrollCornerStyle):
              (WebCore::RenderLayer::updateResizerStyle):
              * rendering/RenderScrollbar.cpp:
              (WebCore::RenderScrollbar::updateScrollbarPart):
              * rendering/RenderTextFragment.cpp:
              (WebCore::RenderTextFragment::RenderTextFragment):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@84538 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      31defe87
    • krit@webkit.org's avatar
      2011-04-21 Dirk Schulze <krit@webkit.org> · de1faac5
      krit@webkit.org authored
              Unreviewed rebaseline.
      
              SVG feDropShadow implementation of SVG Filters 1.2
              https://bugs.webkit.org/show_bug.cgi?id=52513
      
              * fast/dom/Window/window-properties-expected.txt:
              * fast/dom/Window/window-property-descriptors-expected.txt:
              * fast/dom/prototype-inheritance-2-expected.txt:
              * fast/dom/prototype-inheritance-expected.txt:
              * fast/js/global-constructors-expected.txt:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@84537 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      de1faac5
    • ossy@webkit.org's avatar
      [Qt] Unreviewed. Update expected files after r84522. · c208f892
      ossy@webkit.org authored
      * platform/qt/fast/dom/Window/window-properties-expected.txt:
      * platform/qt/fast/dom/Window/window-property-descriptors-expected.txt:
      * platform/qt/fast/dom/prototype-inheritance-expected.txt:
      * platform/qt/fast/js/global-constructors-expected.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@84536 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c208f892
    • commit-queue@webkit.org's avatar
      2011-04-21 Mike Reed <reed@google.com> · b6e7edb8
      commit-queue@webkit.org authored
              Reviewed by Kenneth Russell.
      
              [chromium, win] Multiple failures of shadow rendering layout tests
              https://bugs.webkit.org/show_bug.cgi?id=58772
      
              No new tests. This CL fixes a regression in the following tests
              fast/multicol/shadow-breaking.html
              fast/repaint/shadow-multiple-horizontal.html
              fast/repaint/shadow-multiple-strict-horizontal.html
              fast/repaint/shadow-multiple-strict-vertical.html
              fast/repaint/shadow-multiple-vertical.html
              fast/text/shadow-translucent-fill.html
              fast/transforms/shadows.html
              svg/css/group-with-shadow.svg
              svg/css/shadow-changes.svg
              svg/css/text-shadow-multiple.xhtml
              transitions/svg-text-shadow-transition.html
              svg/css/composite-shadow-text.svg
      
              * platform/graphics/skia/GraphicsContextSkia.cpp:
              (WebCore::GraphicsContext::setPlatformShadow):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@84535 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b6e7edb8
    • weinig@apple.com's avatar
      2011-04-21 Sam Weinig <sam@webkit.org> · 34b1e1bd
      weinig@apple.com authored
              Reviewed by Simon Fraser.
      
              Add way to garbage collect between each test when running layout tests
              https://bugs.webkit.org/show_bug.cgi?id=59126
      
              * DumpRenderTree/mac/DumpRenderTree.mm:
              (initializeGlobalsFromCommandLineOptions):
              (runTest):
              * Scripts/old-run-webkit-tests:
              * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
              (WTR::InjectedBundle::didReceiveMessage):
              * WebKitTestRunner/TestController.cpp:
              (WTR::TestController::TestController):
              (WTR::TestController::initialize):
              (WTR::TestController::resetStateToConsistentValues):
              * WebKitTestRunner/TestController.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@84534 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      34b1e1bd
    • rolandsteiner@chromium.org's avatar
      2011-04-21 Roland Steiner <rolandsteiner@chromium.org> · a770565e
      rolandsteiner@chromium.org authored
              Unreviewed: skip tests on Windows.
      
              fast/dom/shadow/layout-tests-can-access-shadow.html is failing on Windows
              https://bugs.webkit.org/show_bug.cgi?id=59081
      
              Skip all tests in fast/dom/shadow on Windows.
              (shadowRoot accessor is not implemented on Windows yet)
      
              * platform/win/Skipped:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@84533 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a770565e
    • dpranke@chromium.org's avatar
      2011-04-21 Dirk Pranke <dpranke@chromium.org> · 6d335ff6
      dpranke@chromium.org authored
              Unreviewed, expectations change.
      
              Roll in downstream failures as of Chromium r82532.
      
              * platform/chromium/test_expectations.txt:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@84532 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6d335ff6
    • ggaren@apple.com's avatar
      Try to fix the Qt build. · 434468cd
      ggaren@apple.com authored
      * UseJSC.cmake:
      * WebCore.pro: Use correct file name.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@84531 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      434468cd
    • krit@webkit.org's avatar
      2011-04-21 Dirk Schulze <krit@webkit.org> · 529be70a
      krit@webkit.org authored
              Unreviewed Qt build fix.
      
              SVG feDropShadow implementation of SVG Filters 1.2
              https://bugs.webkit.org/show_bug.cgi?id=52513
      
              * CodeGenerators.pri:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@84530 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      529be70a
    • enne@google.com's avatar
      2011-04-21 Adrienne Walker <enne@google.com> · 98b9e1c7
      enne@google.com authored
              Reviewed by James Robinson.
      
              [chromium] Clamp dirty regions on content layers to layer bounds
              https://bugs.webkit.org/show_bug.cgi?id=58933
      
              This prevents garbage being rendered when layers are resized and a
              previous invalidation (now off-layer) is no longer valid.
      
              * platform/graphics/chromium/ContentLayerChromium.cpp:
              (WebCore::ContentLayerChromium::paintContentsIfDirty):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@84529 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      98b9e1c7
    • rolandsteiner@chromium.org's avatar
      2011-04-21 Roland Steiner <rolandsteiner@chromium.org> · cfde7317
      rolandsteiner@chromium.org authored
              Reviewed by Kent Tamura.
      
              Bug 59012 - Shadows should be imported along with their host nodes
              https://bugs.webkit.org/show_bug.cgi?id=59012
      
              Verify that the shadow of a bound element is imported along with the element.
      
              * fast/dom/shadow/import-shadowroot-expected.txt: Added.
              * fast/dom/shadow/import-shadowroot.html: Added.
      2011-04-21  Roland Steiner  <rolandsteiner@chromium.org>
      
              Reviewed by Kent Tamura.
      
              Bug 59012 - Shadows should be imported along with their host nodes
              https://bugs.webkit.org/show_bug.cgi?id=59012
      
              Copy the shadow tree of an element (even on a shallow copy!).
      
              Test: fast/dom/shadow/import-shadowroot.html
      
              * dom/Element.cpp:
              (WebCore::Element::copyNonAttributeProperties):
              * dom/Element.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@84528 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cfde7317
    • ggaren@apple.com's avatar
      2011-04-20 Geoffrey Garen <ggaren@apple.com> · 146f53a8
      ggaren@apple.com authored
              Reviewed by Oliver Hunt.
      
              Removed a use of markDOMObjectWrapper: CSS Object Model
              https://bugs.webkit.org/show_bug.cgi?id=59057
      
              This is 24 hours of my life I will never get back. Thank you, W3C.
      
              * GNUmakefile.list.am:
              * WebCore.gypi:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj: Build!
      
              * bindings/js/JSCSSFontFaceRuleCustom.cpp:
              * bindings/js/JSCSSImportRuleCustom.cpp:
              * bindings/js/JSCSSMediaRuleCustom.cpp:
              * bindings/js/JSCSSPageRuleCustom.cpp:
              * bindings/js/JSCSSRuleCustom.cpp:
              (WebCore::JSCSSRuleOwner::isReachableFromOpaqueRoots):
              (WebCore::JSCSSRuleOwner::finalize):
              (WebCore::wrapperOwner):
              (WebCore::wrapperContext):
              (WebCore::JSCSSRule::markChildren):
              * bindings/js/JSCSSRuleListCustom.cpp:
              (WebCore::JSCSSRuleListOwner::isReachableFromOpaqueRoots):
              (WebCore::JSCSSRuleListOwner::finalize):
              (WebCore::wrapperOwner):
              (WebCore::wrapperContext):
              (WebCore::toJS):
              * bindings/js/JSCSSStyleDeclarationCustom.cpp:
              (WebCore::JSCSSStyleDeclarationOwner::isReachableFromOpaqueRoots):
              (WebCore::JSCSSStyleDeclarationOwner::finalize):
              (WebCore::wrapperOwner):
              (WebCore::wrapperContext):
              (WebCore::JSCSSStyleDeclaration::markChildren): Removed custom mark functions,
              and replaced with use of the opaque roots system. This has the nice benefit
              of allowing us to eagerly recycle far more CSS wrappers and their associated
              DOM wrappers.
      
              (WebCore::JSCSSStyleDeclaration::getPropertyCSSValue): Made this function
              custom because it must maintain the sorrowful invariant that primitive
              values can be mapped back to objects that are reachable through the DOM.
              We maintain this invariant through an external hash table because
              making all primitive values bigger would be a too-large memory use
              penalty. Luckily, nobody uses this feature, so the cost of the hash table
              is no big deal.
      
              (WebCore::toJS): We need a custom toJS so we can specify our own WeakHandleOwner.
      
              * bindings/js/JSCSSStyleRuleCustom.cpp: Removed custom mark, as above.
      
              * bindings/js/JSCSSValueCustom.cpp:
              (WebCore::cssValueRoots):
              (WebCore::JSCSSValueOwner::isReachableFromOpaqueRoots):
              (WebCore::JSCSSValueOwner::finalize):
              (WebCore::wrapperOwner):
              (WebCore::wrapperContext): Use the opaque roots system. Piggy-back on
              the external hash table filled by JSCSSStyleDeclaration::getPropertyCSSValue.
      
              * bindings/js/JSDocumentCustom.cpp:
              (WebCore::JSDocument::markChildren): No need to mark our stylesheet list,
              since all style-related objects can use our opaque root to determine
              liveness.
      
              * bindings/js/JSMediaListCustom.cpp: Added.
              (WebCore::JSMediaListOwner::isReachableFromOpaqueRoots):
              (WebCore::JSMediaListOwner::finalize):
              (WebCore::wrapperOwner):
              (WebCore::wrapperContext):
              (WebCore::toJS): Use the opaque roots system.
      
              * bindings/js/JSNodeCustom.h:
              (WebCore::root): Added helpers for computing style-related roots.
      
              * bindings/js/JSStyleSheetCustom.cpp:
              (WebCore::JSStyleSheetOwner::isReachableFromOpaqueRoots):
              (WebCore::JSStyleSheetOwner::finalize):
              (WebCore::wrapperOwner):
              (WebCore::wrapperContext):
              (WebCore::JSStyleSheet::markChildren): Use the opaque roots system instead
              of direct marking.
              
              * bindings/js/JSStyleSheetListCustom.cpp:
              (WebCore::JSStyleSheetListOwner::isReachableFromOpaqueRoots):
              (WebCore::JSStyleSheetListOwner::finalize):
              (WebCore::wrapperOwner):
              (WebCore::wrapperContext):
              (WebCore::toJS): Ditto.
      
              * bindings/js/JSWebKitCSSKeyframeRuleCustom.cpp:
              * bindings/js/JSWebKitCSSKeyframesRuleCustom.cpp:
              * css/CSSFontFaceRule.idl:
              * css/CSSImportRule.idl: No more custom mark, since we use the opaque
              roots system instead.
      
              * css/CSSMediaRule.cpp:
              (WebCore::CSSMediaRule::CSSMediaRule): Fixed a bug where a media rule
              would incorrectly have no parent, since this got in the way of correctly
              computing the media rule's root.
      
              * css/CSSMediaRule.idl:
              * css/CSSPageRule.idl:
              * css/CSSRuleList.idl:
              * css/CSSStyleDeclaration.idl:
              * css/CSSStyleRule.idl:
              * css/MediaList.idl: Match behavior changes above.
      
              * css/StyleBase.cpp:
              (WebCore::StyleBase::node): Helper function for computing roots of the
              style system. This object model is pretty weird and not very well factored,
              but I'm pretty sure this covers all the relevant cases.
      
              * css/StyleBase.h:
              * css/StyleSheetList.idl:
              * css/WebKitCSSKeyframeRule.idl:
              * css/WebKitCSSKeyframesRule.idl: Updated to match the behavior changes above.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@84527 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      146f53a8
    • ap@apple.com's avatar
      Reviewed by Maciej Stachowiak. · 8122a5d0
      ap@apple.com authored
              WebKit2: Unconfirmed inline input session persists after reload
              https://bugs.webkit.org/show_bug.cgi?id=59054
              <rdar://problem/9291086>
      
              Makes the inline input get properly confirmed or discarded when changing selection,
              navigating to another page, focusing another view in the window, or after a web process
              crash.
      
              * Shared/EditorState.h: (WebKit::EditorState::EditorState):
              * WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::editorState):
              Added a variable that Editor sets while processing input method calls. We don't want
              selection changes caused by -setMarkedText: discard the composition!
              
              * UIProcess/PageClient.h:
              * UIProcess/API/mac/PageClientImpl.h:
              * UIProcess/API/mac/PageClientImpl.mm:
              (WebKit::PageClientImpl::updateTextInputState):
              (WebKit::PageClientImpl::resetTextInputState):
              Extended updateSecureInputState() to potentially confirm the current inline input session.
              Added resetTextInputState, which is to be called when we get out of the current web page.
      
              * UIProcess/API/mac/WKView.mm:
              (-[WKView resignFirstResponder]): Just call _resetTextInputState instead of dealing with
              input state here.
              (-[WKView _updateSecureInputState]): Use _isFocused to make the code simpler.
              (-[WKView _updateTextInputStateIncludingSecureInputState:]): Confirm the current inline
              input session if selection changed for any other reason but an input method changing the
              composition. We will want to do other work here, like dismissing a dictionary pop-up,
              updating a font panel etc.
              (-[WKView _resetTextInputState]): Added. We don't want secure text input persist after
              navigations, crashes an such, and we also don't want input methods to remember inline input
              state. Relying on selection changed notifications is fragile and insufficient.
      
              * UIProcess/API/mac/WKViewInternal.h: Added internal functions to keep the build unbroken.
      
              * UIProcess/WebPageProxy.cpp:
              (WebKit::WebPageProxy::didCommitLoadForFrame): This is the best chance we have to reset input
              state for a new page. This doesn't work well for cached page loads, but WK1 is quite broken
              in that case, too.
              (WebKit::WebPageProxy::editorStateChanged): Moved some logic up to the client, since the
              function now does much more than before.
      
              * UIProcess/WebPageProxy.h:
              * UIProcess/mac/WebPageProxyMac.mm: (WebKit::WebPageProxy::confirmCompositionWithoutDisturbingSelection):
              * WebProcess/WebPage/WebPage.h:
              * WebProcess/WebPage/WebPage.messages.in:
              * WebProcess/WebPage/mac/WebPageMac.mm: (WebKit::WebPage::confirmCompositionWithoutDisturbingSelection):
              Added confirmCompositionWithoutDisturbingSelection(). When we confirm the composition due
              to selection change, we obvisouly don't want the selection to move back.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@84526 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8122a5d0
    • ojan@chromium.org's avatar
      2011-04-21 Ojan Vafai <ojan@chromium.org> · 70c4d5bd
      ojan@chromium.org authored
              Reviewed by Mihai Parparita.
      
              fix another innocuous JS error in expand/collapseAllExpectations
              https://bugs.webkit.org/show_bug.cgi?id=59122
      
              * Scripts/webkitpy/layout_tests/layout_package/json_results.html:
              * Scripts/webkitpy/layout_tests/layout_package/json_results_test.js:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@84525 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      70c4d5bd
    • weinig@apple.com's avatar
      2011-04-21 Sam Weinig <sam@webkit.org> · b034ed00
      weinig@apple.com authored
              Reviewed by Simon Fraser.
      
              Remove warnings from DrawingAreaImpl and related classes
              https://bugs.webkit.org/show_bug.cgi?id=59120
      
              DrawingAreaImpl is mature enough for others to adopt. Remove warnings.
      
              * UIProcess/BackingStore.cpp:
              * UIProcess/DrawingAreaProxyImpl.cpp:
              * WebProcess/WebPage/DrawingAreaImpl.cpp:
              * WebProcess/WebPage/LayerTreeHost.cpp:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@84524 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b034ed00
    • weinig@apple.com's avatar
      2011-04-21 Sam Weinig <sam@webkit.org> · 1e6d4ed0
      weinig@apple.com authored
              Reviewed by Simon Fraser.
      
              Deploy GraphicsContextStateSaver in WebKit2
              https://bugs.webkit.org/show_bug.cgi?id=59116
      
              * UIProcess/FindIndicator.cpp:
              (WebKit::FindIndicator::draw):
              * WebProcess/Plugins/PluginView.cpp:
              (WebKit::PluginView::paint):
              * WebProcess/WebPage/FindController.cpp:
              (WebKit::FindController::drawRect):
              * WebProcess/WebPage/PageOverlay.cpp:
              (WebKit::PageOverlay::drawRect):
              * WebProcess/WebPage/WebPage.cpp:
              (WebKit::WebPage::drawRect):
              (WebKit::WebPage::drawPageOverlay):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@84523 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1e6d4ed0
    • krit@webkit.org's avatar
      2011-04-21 Dirk Schulze <krit@webkit.org> · c08f88a4
      krit@webkit.org authored
              Reviewed by Nikolas Zimmermann.
      
              SVG feDropShadow implementation of SVG Filters 1.2
              https://bugs.webkit.org/show_bug.cgi?id=52513
      
              Added dynamic update tests for FEDropShadow as well as a basic pixel test.
      
              * platform/mac/svg/dynamic-updates/SVGFEDropShadowElement-dom-dx-attr-expected.checksum: Added.
              * platform/mac/svg/dynamic-updates/SVGFEDropShadowElement-dom-dx-attr-expected.png: Added.
              * platform/mac/svg/dynamic-updates/SVGFEDropShadowElement-dom-dy-attr-expected.checksum: Added.
              * platform/mac/svg/dynamic-updates/SVGFEDropShadowElement-dom-dy-attr-expected.png: Added.
              * platform/mac/svg/dynamic-updates/SVGFEDropShadowElement-dom-in-attr-expected.checksum: Added.
              * platform/mac/svg/dynamic-updates/SVGFEDropShadowElement-dom-in-attr-expected.png: Added.
              * platform/mac/svg/dynamic-updates/SVGFEDropShadowElement-dom-shadow-color-attr-expected.checksum: Added.
              * platform/mac/svg/dynamic-updates/SVGFEDropShadowElement-dom-shadow-color-attr-expected.png: Added.
              * platform/mac/svg/dynamic-updates/SVGFEDropShadowElement-dom-shadow-opacity-attr-expected.checksum: Added.
              * platform/mac/svg/dynamic-updates/SVGFEDropShadowElement-dom-shadow-opacity-attr-expected.png: Added.
              * platform/mac/svg/dynamic-updates/SVGFEDropShadowElement-dom-stdDeviation-attr-expected.checksum: Added.
              * platform/mac/svg/dynamic-updates/SVGFEDropShadowElement-dom-stdDeviation-attr-expected.png: Added.
              * platform/mac/svg/dynamic-updates/SVGFEDropShadowElement-svgdom-dx-prop-expected.checksum: Added.
              * platform/mac/svg/dynamic-updates/SVGFEDropShadowElement-svgdom-dx-prop-expected.png: Added.
              * platform/mac/svg/dynamic-updates/SVGFEDropShadowElement-svgdom-dy-prop-expected.checksum: Added.
              * platform/mac/svg/dynamic-updates/SVGFEDropShadowElement-svgdom-dy-prop-expected.png: Added.
              * platform/mac/svg/dynamic-updates/SVGFEDropShadowElement-svgdom-in-prop-expected.checksum: Added.
              * platform/mac/svg/dynamic-updates/SVGFEDropShadowElement-svgdom-in-prop-expected.png: Added.
              * platform/mac/svg/dynamic-updates/SVGFEDropShadowElement-svgdom-shadow-color-prop-expected.checksum: Added.
              * platform/mac/svg/dynamic-updates/SVGFEDropShadowElement-svgdom-shadow-color-prop-expected.png: Added.
              * platform/mac/svg/dynamic-updates/SVGFEDropShadowElement-svgdom-shadow-opacity-prop-expected.checksum: Added.
              * platform/mac/svg/dynamic-updates/SVGFEDropShadowElement-svgdom-shadow-opacity-prop-expected.png: Added.
              * platform/mac/svg/dynamic-updates/SVGFEDropShadowElement-svgdom-stdDeviation-prop-expected.checksum: Added.
              * platform/mac/svg/dynamic-updates/SVGFEDropShadowElement-svgdom-stdDeviation-prop-expected.png: Added.
              * platform/mac/svg/filters/feDropShadow-expected.checksum: Added.
              * platform/mac/svg/filters/feDropShadow-expected.png: Added.
              * platform/mac/svg/filters/feDropShadow-expected.txt: Added.
              * svg/dynamic-updates/SVGFEDropShadowElement-dom-dx-attr-expected.txt: Added.
              * svg/dynamic-updates/SVGFEDropShadowElement-dom-dx-attr.html: Added.
              * svg/dynamic-updates/SVGFEDropShadowElement-dom-dy-attr-expected.txt: Added.
              * svg/dynamic-updates/SVGFEDropShadowElement-dom-dy-attr.html: Added.
              * svg/dynamic-updates/SVGFEDropShadowElement-dom-in-attr-expected.txt: Added.
              * svg/dynamic-updates/SVGFEDropShadowElement-dom-in-attr.html: Added.
              * svg/dynamic-updates/SVGFEDropShadowElement-dom-shadow-color-attr-expected.txt: Added.
              * svg/dynamic-updates/SVGFEDropShadowElement-dom-shadow-color-attr.html: Added.
              * svg/dynamic-updates/SVGFEDropShadowElement-dom-shadow-opacity-attr-expected.txt: Added.
              * svg/dynamic-updates/SVGFEDropShadowElement-dom-shadow-opacity-attr.html: Added.
              * svg/dynamic-updates/SVGFEDropShadowElement-dom-stdDeviation-attr-expected.txt: Added.
              * svg/dynamic-updates/SVGFEDropShadowElement-dom-stdDeviation-attr.html: Added.
              * svg/dynamic-updates/SVGFEDropShadowElement-svgdom-dx-prop-expected.txt: Added.
              * svg/dynamic-updates/SVGFEDropShadowElement-svgdom-dx-prop.html: Added.
              * svg/dynamic-updates/SVGFEDropShadowElement-svgdom-dy-prop-expected.txt: Added.
              * svg/dynamic-updates/SVGFEDropShadowElement-svgdom-dy-prop.html: Added.
              * svg/dynamic-updates/SVGFEDropShadowElement-svgdom-in-prop-expected.txt: Added.
              * svg/dynamic-updates/SVGFEDropShadowElement-svgdom-in-prop.html: Added.
              * svg/dynamic-updates/SVGFEDropShadowElement-svgdom-shadow-color-prop-expected.txt: Added.
              * svg/dynamic-updates/SVGFEDropShadowElement-svgdom-shadow-color-prop.html: Added.
              * svg/dynamic-updates/SVGFEDropShadowElement-svgdom-shadow-opacity-prop-expected.txt: Added.
              * svg/dynamic-updates/SVGFEDropShadowElement-svgdom-shadow-opacity-prop.html: Added.
              * svg/dynamic-updates/SVGFEDropShadowElement-svgdom-stdDeviation-prop-expected.txt: Added.
              * svg/dynamic-updates/SVGFEDropShadowElement-svgdom-stdDeviation-prop.html: Added.
              * svg/dynamic-updates/SVGFETurbulenceElement-svgdom-numOctaves-prop.html:
              * svg/dynamic-updates/SVGFETurbulenceElement-svgdom-seed-prop.html:
              * svg/dynamic-updates/SVGFETurbulenceElement-svgdom-stitchTiles-prop.html:
              * svg/dynamic-updates/SVGFETurbulenceElement-svgdom-type-prop.html:
              * svg/dynamic-updates/script-tests/SVGFEDropShadowElement-dom-dx-attr.js: Added.
              (executeTest):
              * svg/dynamic-updates/script-tests/SVGFEDropShadowElement-dom-dy-attr.js: Added.
              (executeTest):
              * svg/dynamic-updates/script-tests/SVGFEDropShadowElement-dom-in-attr.js: Added.
              (executeTest):
              * svg/dynamic-updates/script-tests/SVGFEDropShadowElement-dom-shadow-color-attr.js: Added.
              (executeTest):
              * svg/dynamic-updates/script-tests/SVGFEDropShadowElement-dom-shadow-opacity-attr.js: Added.
              (executeTest):
              * svg/dynamic-updates/script-tests/SVGFEDropShadowElement-dom-stdDeviation-attr.js: Added.
              (executeTest):
              * svg/dynamic-updates/script-tests/SVGFEDropShadowElement-svgdom-dx-prop.js: Added.
              (executeTest):
              * svg/dynamic-updates/script-tests/SVGFEDropShadowElement-svgdom-dy-prop.js: Added.
              (executeTest):
              * svg/dynamic-updates/script-tests/SVGFEDropShadowElement-svgdom-in-prop.js: Added.
              (executeTest):
              * svg/dynamic-updates/script-tests/SVGFEDropShadowElement-svgdom-shadow-color-prop.js: Added.
              (executeTest):
              * svg/dynamic-updates/script-tests/SVGFEDropShadowElement-svgdom-shadow-opacity-prop.js: Added.
              (executeTest):
              * svg/dynamic-updates/script-tests/SVGFEDropShadowElement-svgdom-stdDeviation-prop.js: Added.
              (executeTest):
              * svg/filters/feDropShadow.svg: Added.
      2011-04-21  Dirk Schulze  <krit@webkit.org>
      
              Reviewed by Nikolas Zimmermann.
      
              SVG feDropShadow implementation of SVG Filters 1.2
              https://bugs.webkit.org/show_bug.cgi?id=52513
      
              * MigrateHeaders.make:
      2011-04-21  Dirk Schulze  <krit@webkit.org>
      
              Reviewed by Nikolas Zimmermann.
      
              SVG feDropShadow implementation of SVG Filters 1.2
              https://bugs.webkit.org/show_bug.cgi?id=52513
      
              This is the implementation of feDropShadow, a shorthand filter and a combination of feGaussianBlur,
              feOffset, feFlood and feComposite to create a drop shadow of an input effect.
              Creating this new filter effect makes it possible to optimize the often used workflow. ShadowBlur, with its
              fast blurring algorithm, is used to blur the shadow and composite operators are responsible for combining the
              source with different colored shadows.
              Shadow color and opacity can be set with the properties flood-color and flood-opacity.
      
              Tests: svg/dynamic-updates/SVGFEDropShadowElement-dom-dx-attr.html
                     svg/dynamic-updates/SVGFEDropShadowElement-dom-dy-attr.html
                     svg/dynamic-updates/SVGFEDropShadowElement-dom-in-attr.html
                     svg/dynamic-updates/SVGFEDropShadowElement-dom-shadow-color-attr.html
                     svg/dynamic-updates/SVGFEDropShadowElement-dom-shadow-opacity-attr.html
                     svg/dynamic-updates/SVGFEDropShadowElement-dom-stdDeviation-attr.html
                     svg/dynamic-updates/SVGFEDropShadowElement-svgdom-dx-prop.html
                     svg/dynamic-updates/SVGFEDropShadowElement-svgdom-dy-prop.html
                     svg/dynamic-updates/SVGFEDropShadowElement-svgdom-in-prop.html
                     svg/dynamic-updates/SVGFEDropShadowElement-svgdom-shadow-color-prop.html
                     svg/dynamic-updates/SVGFEDropShadowElement-svgdom-shadow-opacity-prop.html
                     svg/dynamic-updates/SVGFEDropShadowElement-svgdom-stdDeviation-prop.html
                     svg/filters/feDropShadow.svg
      
              * Android.mk:
              * CMakeLists.txt:
              * DerivedSources.cpp:
              * DerivedSources.make:
              * GNUmakefile.list.am:
              * WebCore.exp.in:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/objc/DOM.mm:
              (WebCore::createElementClassMap):
              * bindings/objc/DOMSVG.h:
              * page/DOMWindow.idl:
              * platform/graphics/ShadowBlur.cpp: Added missing copyright after r84410.
              * platform/graphics/ShadowBlur.h: Made blurLayerImage public.
              * platform/graphics/filters/FEDropShadow.cpp: Added.
              (WebCore::FEDropShadow::FEDropShadow):
              (WebCore::FEDropShadow::create):
              (WebCore::FEDropShadow::determineAbsolutePaintRect):
              (WebCore::FEDropShadow::apply):
              (WebCore::FEDropShadow::dump):
              (WebCore::FEDropShadow::externalRepresentation):
              * platform/graphics/filters/FEDropShadow.h: Added.
              (WebCore::FEDropShadow::stdDeviationX):
              (WebCore::FEDropShadow::setStdDeviationX):
              (WebCore::FEDropShadow::stdDeviationY):
              (WebCore::FEDropShadow::setStdDeviationY):
              (WebCore::FEDropShadow::dx):
              (WebCore::FEDropShadow::setDx):
              (WebCore::FEDropShadow::dy):
              (WebCore::FEDropShadow::setDy):
              (WebCore::FEDropShadow::shadowColor):
              (WebCore::FEDropShadow::setShadowColor):
              (WebCore::FEDropShadow::shadowOpacity):
              (WebCore::FEDropShadow::setShadowOpacity):
              * platform/graphics/filters/FEGaussianBlur.cpp:
              (WebCore::FEGaussianBlur::calculateKernelSize): Make kernel calculations accessible for feDropShadow.
              * platform/graphics/filters/FEGaussianBlur.h:
              * svg/SVGAllInOne.cpp:
              * svg/SVGFEDropShadowElement.cpp: Added.
              (WebCore::SVGFEDropShadowElement::SVGFEDropShadowElement):
              (WebCore::SVGFEDropShadowElement::create):
              (WebCore::SVGFEDropShadowElement::stdDeviationXIdentifier):
              (WebCore::SVGFEDropShadowElement::stdDeviationYIdentifier):
              (WebCore::SVGFEDropShadowElement::setStdDeviation):
              (WebCore::SVGFEDropShadowElement::parseMappedAttribute):
              (WebCore::SVGFEDropShadowElement::svgAttributeChanged):
              (WebCore::SVGFEDropShadowElement::synchronizeProperty):
              (WebCore::SVGFEDropShadowElement::build):
              * svg/SVGFEDropShadowElement.h: Added.
              * svg/SVGFEDropShadowElement.idl: Added.
              * svg/svgtags.in:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@84522 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c08f88a4
    • morrita@google.com's avatar
      2011-04-21 MORITA Hajime <morrita@google.com> · e72f0475
      morrita@google.com authored
              Unreviewed expectations update following r84511.
      
              * platform/gtk/fast/html/details-open2-expected.txt:
              * platform/qt/fast/html/details-open2-expected.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@84521 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e72f0475
    • rolandsteiner@chromium.org's avatar
      2011-04-20 Roland Steiner <rolandsteiner@chromium.org> · 6d944b84
      rolandsteiner@chromium.org authored
              Reviewed by Dimitri Glazkov.
      
              Bug 58704 - Decide on node type for ShadowRoot
              https://bugs.webkit.org/show_bug.cgi?id=58704
      
              Test node types of shadow host, shadow root and first shadow child.
      
              * fast/dom/shadow/nodetype-expected.txt: Added.
              * fast/dom/shadow/nodetype.html: Added.
      2011-04-21  Roland Steiner  <rolandsteiner@chromium.org>
      
              Reviewed by Dimitri Glazkov.
      
              Bug 58704 - Decide on node type for ShadowRoot
              https://bugs.webkit.org/show_bug.cgi?id=58704
      
              Add a new node type SHADOW_ROOT_NODE.
              Adapt all calling sites of nodeType().
      
              Test: fast/dom/shadow/nodetype.html
      
              * bindings/js/JSNodeCustom.cpp:
              (WebCore::createWrapperInline):
              * bindings/objc/DOM.mm:
              (kitClass):
              * bindings/v8/custom/V8NodeCustom.cpp:
              (WebCore::toV8Slow):
              * dom/Document.cpp:
              (WebCore::Document::importNode):
              (WebCore::Document::childTypeAllowed):
              (WebCore::Document::canReplaceChild):
              * dom/Node.cpp:
              (WebCore::Node::dumpStatistics):
              (WebCore::Node::isDefaultNamespace):
              (WebCore::Node::lookupPrefix):
              (WebCore::Node::lookupNamespaceURI):
              (WebCore::appendTextContent):
              (WebCore::Node::setTextContent):
              * dom/Node.h:
              * dom/Range.cpp:
              (WebCore::lengthOfContentsInNode):
              (WebCore::Range::processContentsBetweenOffsets):
              (WebCore::Range::insertNode):
              (WebCore::Range::checkNodeWOffset):
              (WebCore::Range::checkNodeBA):
              (WebCore::Range::selectNode):
              (WebCore::Range::selectNodeContents):
              (WebCore::Range::surroundContents):
              * dom/ShadowRoot.cpp:
              (WebCore::ShadowRoot::nodeType):
              * dom/Traversal.cpp:
              (WebCore::Traversal::acceptNode):
              * editing/MarkupAccumulator.cpp:
              (WebCore::MarkupAccumulator::appendStartMarkup):
              * html/parser/HTMLElementStack.cpp:
              (WebCore::HTMLNames::isRootNode):
              (WebCore::HTMLElementStack::pushRootNode):
              * html/parser/HTMLElementStack.h:
              (WebCore::isInHTMLNamespace):
              * xml/XPathUtil.cpp:
              (WebCore::XPath::isValidContextNode):
      2011-04-21  Roland Steiner  <rolandsteiner@chromium.org>
      
              Reviewed by Dimitri Glazkov.
      
              Bug 58704 - Decide on node type for ShadowRoot
              https://bugs.webkit.org/show_bug.cgi?id=58704
      
              Add a new enum entry to WebNode::NodeType for shadow roots.
              Adapt calling sites for new SHADOW_ROOT_NODE node type.
      
              * public/WebNode.h:
              * src/WebPageSerializerImpl.cpp:
              (WebKit::WebPageSerializerImpl::buildContentForNode):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@84520 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6d944b84
    • jberlin@webkit.org's avatar
      WebKit2: Need a way to get a snapshot of the visible contents of a page from the UI Process. · 179c14d8
      jberlin@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=59035
      
      Reviewed by Sam Weinig.
      
      Added a sync call from the UI Process to the Web Process with comments saying that it should
      be removed as soon as possible.
      
      * UIProcess/API/C/WKPage.cpp:
      (WKPageVisibleContentsSnapshot):
      * UIProcess/API/C/WKPagePrivate.h:
      
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::createSnapshotOfVisibleContent):
      * UIProcess/WebPageProxy.h:
      
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::createSnapshotOfVisibleContent):
      Ask the FrameView for the visibleContentRect, and call scaledSnapshotInDocumentCoordinates
      with a scale factor of 1 (which preserves the current scaling of the page - e.g. if the
      page is already zoomed then the snapshot will reflect the zoomed content).
      * WebProcess/WebPage/WebPage.h:
      * WebProcess/WebPage/WebPage.messages.in:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@84519 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      179c14d8
    • ojan@chromium.org's avatar
      2011-04-20 Ojan Vafai <ojan@chromium.org> · 79f1cf5d
      ojan@chromium.org authored
              Reviewed by Tony Chang.
      
              put unexpected passes into their own table
              https://bugs.webkit.org/show_bug.cgi?id=59016
      
              * Scripts/webkitpy/layout_tests/layout_package/json_results.html:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@84518 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      79f1cf5d
    • dglazkov@chromium.org's avatar
      2011-04-20 Dimitri Glazkov <dglazkov@chromium.org> · a3bb05fc
      dglazkov@chromium.org authored
              Reviewed by Kent Tamura.
      
              REGRESSION (r75543): Styles bleed into new shadow DOM (like slider and video)
              https://bugs.webkit.org/show_bug.cgi?id=52917
      
              * fast/css/shadow-dom-scope-expected.txt: Added.
              * fast/css/shadow-dom-scope.html: Added.
      2011-04-20  Dimitri Glazkov  <dglazkov@chromium.org>
      
              Reviewed by Kent Tamura.
      
              REGRESSION (r75543): Styles bleed into new shadow DOM (like slider and video)
              https://bugs.webkit.org/show_bug.cgi?id=52917
      
              In order to determine whether a rule should apply inside of a shadow DOM subtree,
              we collect three pieces of information:
      
              1) Are we parsing UA sheets?
              2) Does the current tree scope allows applying author sheets?
              3) Does the rule explicitly reach into shadow DOM (using pseudo-elements, for example)?
      
              If the answer to all of these is no, we ignore the rule.
      
              Test: fast/css/shadow-dom-scope.html
      
              * css/CSSStyleSelector.cpp:
              (WebCore::MatchingUARulesScope::MatchingUARulesScope): Added a scope helper to
                  track whether we are currently matching UA rules.
              (WebCore::CSSStyleSelector::matchRulesForList): Added the check for three
                  conditions mentioned above.
              (WebCore::CSSStyleSelector::SelectorChecker::SelectorChecker): Added
                  initializer for the flag, which helps us determine whether the rule
                  explicitly reaches into shadow DOM.
              (WebCore::CSSStyleSelector::matchUARules): Started using the scope helper.
              (WebCore::CSSStyleSelector::checkSelector): Added initializing of the
                  flag.
              (WebCore::CSSStyleSelector::SelectorChecker::checkOneSelector): Added setting
                  of the flag when we encounter unknown pseudo-elements.
              * css/CSSStyleSelector.h: Adjusted decls.
              * dom/ShadowRoot.cpp:
              (WebCore::ShadowRoot::applyAuthorSheets): Added.
              * dom/ShadowRoot.h: Adjusted decls.
              * dom/TreeScope.cpp:
              (WebCore::TreeScope::applyAuthorSheets): Added.
              * dom/TreeScope.h: Adjusted decls.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@84517 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a3bb05fc
    • leviw@chromium.org's avatar
      2011-04-21 Levi Weintraub <leviw@chromium.org> · 6501d5c7
      leviw@chromium.org authored
              Reviewed by Simon Fraser.
      
              position fixed element does not render properly when dynamically updated via javascript
              https://bugs.webkit.org/show_bug.cgi?id=54297
      
              Disabling the LayoutState fast-path for fixed-position content.
      
              Tests: fast/repaint/fixed-contents-changed-after-scroll.html
                     fast/repaint/transformed-contents-changed-after-scroll.html
      
              * rendering/RenderBox.cpp:
              (WebCore::RenderBox::computeRectForRepaint):
      2011-04-21  Levi Weintraub  <leviw@chromium.org>
      
              Reviewed by Simon Fraser.
      
              position fixed element does not render properly when dynamically updated via javascript
              https://bugs.webkit.org/show_bug.cgi?id=54297
      
              Disabling the LayoutState fast-path for fixed-position content.
      
              * fast/repaint/fixed-contents-changed-after-scroll.html: Added.
              * fast/repaint/transformed-contents-changed-after-scroll.html: Added.
              * platform/mac/fast/repaint/fixed-contents-changed-after-scroll-expected.checksum: Added.
              * platform/mac/fast/repaint/fixed-contents-changed-after-scroll-expected.png: Added.
              * platform/mac/fast/repaint/fixed-contents-changed-after-scroll-expected.txt: Added.
              * platform/mac/fast/repaint/transformed-contents-changed-after-scroll-expected.checksum: Added.
              * platform/mac/fast/repaint/transformed-contents-changed-after-scroll-expected.png: Added.
              * platform/mac/fast/repaint/transformed-contents-changed-after-scroll-expected.txt: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@84516 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6501d5c7
    • msaboff@apple.com's avatar
      2011-04-20 Michael Saboff <msaboff@apple.com> · 8cae2b17
      msaboff@apple.com authored
              Reviewed by Geoff Garen.
      
              JSString::resolveRope inefficient for common 2 fiber case
              https://bugs.webkit.org/show_bug.cgi?id=58994
      
              Split JSString::resolveRope into three routines.
              resolveRope allocates the new buffer and handles the 1 or 2
              fiber case with single level fibers.
              resolveRopeSlowCase handles the general case.
              outOfMemory handles the rare out of memory exception case.
      
              * runtime/JSString.cpp:
              (JSC::JSString::resolveRope):
              (JSC::JSString::resolveRopeSlowCase):
              (JSC::JSString::outOfMemory):
              * runtime/JSString.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@84515 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8cae2b17