1. 13 May, 2011 2 commits
    • dcheng@chromium.org's avatar
      2011-05-13 Daniel Cheng <dcheng@chromium.org> · 0eb6dc60
      dcheng@chromium.org authored
              Reviewed by Tony Chang.
      
              Improve drag start logic
              https://bugs.webkit.org/show_bug.cgi?id=59409
      
              Add a new test to test drag start edge cases on Mac (because of a non-zero text drag delay)
              as well as rebase an existing test.
      
              * fast/css/user-drag-none.html: Text nodes are no longer draggable.
              * platform/mac/editing/pasteboard/drag-selections-to-contenteditable-expected.txt: Added.
              * platform/mac/editing/pasteboard/drag-selections-to-contenteditable.html: Added.
      2011-05-13  Daniel Cheng  <dcheng@chromium.org>
      
              Reviewed by Tony Chang.
      
              Improve drag start logic
              https://bugs.webkit.org/show_bug.cgi?id=59409
      
              Rewrite and simplify the dragging logic to better match IE, Firefox, and the behavior
              defined in the spec. Among other things:
              - draggableNode() no longer returns text nodes when dragging anchors.
              - When starting a drag over an image in a selection, prefer to drag the selection.
              - Several redundant hit tests have been removed.
              - Minor refactoring to make the logic easier to follow.
      
              Test: platform/mac/editing/pasteboard/drag-selections-to-contenteditable.html
      
              * WebCore.xcodeproj/project.pbxproj:
              * page/DragController.cpp:
              (WebCore::DragController::draggableNode):
              (WebCore::DragController::startDrag):
              * page/DragController.h:
              * page/DragState.h:
              (WebCore::DragState::shouldDispatchEvents):
              * page/EventHandler.cpp:
              (WebCore::EventHandler::EventHandler):
              (WebCore::EventHandler::eventMayStartDrag):
              (WebCore::EventHandler::updateDragSourceActionsAllowed):
              (WebCore::EventHandler::updateDragAndDrop):
              (WebCore::EventHandler::cancelDragAndDrop):
              (WebCore::EventHandler::dragHysteresisExceeded):
              (WebCore::EventHandler::dragSourceEndedAt):
              (WebCore::ExactlyOneBitSet):
              (WebCore::EventHandler::handleDrag):
              * page/EventHandler.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@86472 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0eb6dc60
    • weinig@apple.com's avatar
      2011-05-13 Sam Weinig <sam@webkit.org> · c5b2001d
      weinig@apple.com authored
              Reviewed by Anders Carlsson.
      
              Prune #includes from FrameView.h (Part 2)
              https://bugs.webkit.org/show_bug.cgi?id=60748
      
              - Update files that were depending on FrameView.h #including Frame.h or
                Page.h.
      
              * src/AutoFillPopupMenuClient.cpp:
              * src/PlatformBridge.cpp:
              * src/WebPopupMenuImpl.cpp:
      2011-05-13  Sam Weinig  <sam@webkit.org>
      
              Reviewed by Anders Carlsson.
      
              Prune #includes from FrameView.h (Part 2)
              https://bugs.webkit.org/show_bug.cgi?id=60748
      
              - Update files that were depending on FrameView.h #including Frame.h or
                Page.h.
      
              * Api/qgraphicswebview.cpp:
              * WebCoreSupport/ChromeClientQt.cpp:
      2011-05-13  Sam Weinig  <sam@webkit.org>
      
              Reviewed by Anders Carlsson.
      
              Prune #includes from FrameView.h (Part 2)
              https://bugs.webkit.org/show_bug.cgi?id=60748
      
              - Update files that were depending on FrameView.h #including Frame.h or
                Page.h.
      
              * WebCoreSupport/GtkAdjustmentWatcher.cpp:
      2011-05-13  Sam Weinig  <sam@webkit.org>
      
              Reviewed by Anders Carlsson.
      
              Prune #includes from FrameView.h (Part 2)
              https://bugs.webkit.org/show_bug.cgi?id=60748
      
              - Update files that were depending on FrameView.h #including Frame.h or
                Page.h.
      
              * WebCoreSupport/WebChromeClient.cpp:
              * WebCoreSupport/WebDragClient.cpp:
              * WebCoreSupport/WebFrameLoaderClient.cpp:
              * WebFrame.cpp:
              (WebFrame::setPrinting):
              * WebView.cpp:
      2011-05-13  Sam Weinig  <sam@webkit.org>
      
              Reviewed by Anders Carlsson.
      
              Prune #includes from FrameView.h (Part 2)
              https://bugs.webkit.org/show_bug.cgi?id=60748
      
              - Update files that were depending on FrameView.h #including Frame.h or
                Page.h.
      
              * WebView/WebClipView.mm:
              * WebView/WebHTMLView.mm:
              (-[WebHTMLView layoutToMinimumPageWidth:height:maximumPageWidth:adjustingViewSize:]):
      2011-05-13  Sam Weinig  <sam@webkit.org>
      
              Reviewed by Anders Carlsson.
      
              Prune #includes from FrameView.h (Part 2)
              https://bugs.webkit.org/show_bug.cgi?id=60748
      
              - Replace #includes in FrameView.h of Frame.h and Page.h
                with Color.h, wtf/text/WTFString.h, and the new AdjustViewSizeOrNot.h
      
              - Update files that were depending on FrameView.h #including Frame.h or
                Page.h.
      
              * GNUmakefile.list.am:
              * WebCore.exp.in:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * accessibility/AccessibilityRenderObject.cpp:
              * accessibility/AccessibilityScrollView.cpp:
              * accessibility/chromium/AXObjectCacheChromium.cpp:
              * accessibility/mac/AccessibilityObjectWrapper.mm:
              * css/MediaQueryMatcher.cpp:
              * dom/Range.cpp:
              * editing/SpellingCorrectionController.cpp:
              * history/CachedFrame.cpp:
              * html/HTMLBodyElement.cpp:
              * html/canvas/WebGLRenderingContext.cpp:
              * html/parser/HTMLParserScheduler.cpp:
              * page/AdjustViewSizeOrNot.h: Added.
              * page/EditorClient.h:
              * page/Frame.h:
              * page/FrameView.cpp:
              (WebCore::FrameView::forceLayoutForPagination):
              * page/FrameView.h:
              * page/PrintContext.cpp:
              (WebCore::PrintContext::begin):
              (WebCore::PrintContext::end):
              * page/chromium/FrameChromium.cpp:
              * page/win/FrameCGWin.cpp:
              * page/win/FrameWin.cpp:
              * platform/efl/PopupMenuEfl.cpp:
              * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp:
              * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
              * platform/graphics/qt/MediaPlayerPrivateQt.cpp:
              * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.cpp:
              * platform/graphics/win/MediaPlayerPrivateQuickTimeWin.cpp:
              * platform/gtk/WidgetGtk.cpp:
              * plugins/IFrameShimSupport.cpp:
              * rendering/RenderBlock.cpp:
              * rendering/RenderBoxModelObject.cpp:
              * rendering/RenderFrameBase.cpp:
              * rendering/RenderIFrame.cpp:
              * rendering/RenderMenuList.cpp:
              * rendering/RenderTextControlSingleLine.cpp:
              * rendering/RenderWidget.cpp:
              * svg/SVGSVGElement.cpp:
      2011-05-13  Sam Weinig  <sam@webkit.org>
      
              Reviewed by Anders Carlsson.
      
              Prune #includes from FrameView.h (Part 2)
              https://bugs.webkit.org/show_bug.cgi?id=60748
      
              - Update files that were depending on FrameView.h #including Frame.h or
                Page.h.
      
              * WebProcess/Plugins/PluginView.cpp:
              * WebProcess/WebCoreSupport/mac/WebDragClientMac.mm:
              * WebProcess/WebPage/WebContextMenu.cpp:
              * WebProcess/WebPage/mac/AccessibilityWebPageObject.mm:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@86451 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c5b2001d
  2. 12 May, 2011 3 commits
    • psolanki@apple.com's avatar
      2011-05-12 Pratik Solanki <psolanki@apple.com> · 7c5455c6
      psolanki@apple.com authored
              Reviewed by Antti Koivisto.
      
              Part of WebCore should use CFNetwork-based loader on Mac
              https://bugs.webkit.org/show_bug.cgi?id=51836
      
              Implement mac specific Authentication functions when using CFNetwork.
      
              * WebCore.exp.in:
              * WebCore.xcodeproj/project.pbxproj:
              * platform/network/ResourceHandle.h:
              * platform/network/cf/AuthenticationCF.cpp:
              (WebCore::AuthenticationChallenge::authenticationClient):
              (WebCore::createCF):
              (WebCore::core):
              * platform/network/cf/AuthenticationCF.h:
              * platform/network/cf/AuthenticationChallenge.h:
              * platform/network/mac/AuthenticationMac.mm:
              (WebCore::core):
              (WebCore::mac):
              * platform/network/mac/CredentialStorageMac.mm:
      2011-05-12  Pratik Solanki  <psolanki@apple.com>
      
              Reviewed by Antti Koivisto.
      
              Part of WebCore should use CFNetwork-based loader on Mac
              https://bugs.webkit.org/show_bug.cgi?id=51836
      
              Include AuthenticationCF.h header file.
      
              * Misc/WebDownload.mm:
              * Plugins/WebBaseNetscapePluginView.mm:
              * WebCoreSupport/WebFrameLoaderClient.mm:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@86414 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7c5455c6
    • leviw@chromium.org's avatar
      2011-05-12 Levi Weintraub <leviw@chromium.org> · 61516486
      leviw@chromium.org authored
              Reviewed by Simon Fraser.
      
              Switch calculateBackgroundImageGeometry to use IntRect
              https://bugs.webkit.org/show_bug.cgi?id=60671
      
              Replacing the four ints passed into calculateBackgroundImageGeometry with an IntRect.
      
              No new tests since this is just refactoring.
      
              * rendering/RenderBox.cpp:
              (WebCore::RenderBox::maskClipRect):
              (WebCore::RenderBox::repaintLayerRectsForImage):
              * rendering/RenderBoxModelObject.cpp:
              (WebCore::RenderBoxModelObject::paintFillLayerExtended):
              (WebCore::RenderBoxModelObject::calculateBackgroundImageGeometry):
              * rendering/RenderBoxModelObject.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@86359 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      61516486
    • yutak@chromium.org's avatar
      2011-05-12 Yuta Kitamura <yutak@chromium.org> · 854c86ea
      yutak@chromium.org authored
              Reviewed by Kent Tamura.
      
              WebSocket add new event: CloseEvent
              https://bugs.webkit.org/show_bug.cgi?id=35573
      
              Original patch was written by Fumitoshi Ukai <ukai@chromium.org>.
              I modified the test close-event.html slightly so that it passes on Chromium.
              I also updated a few test results that are affected by this change.
      
              * fast/dom/Window/window-properties-expected.txt:
              * fast/dom/Window/window-property-descriptors-expected.txt:
              * fast/dom/prototype-inheritance-expected.txt:
              * fast/js/global-constructors-expected.txt:
              * http/tests/websocket/tests/close-event-expected.txt: Added.
              * http/tests/websocket/tests/close-event.html: Added.
              * platform/chromium/fast/dom/prototype-inheritance-expected.txt:
      2011-05-12  Yuta Kitamura  <yutak@chromium.org>
      
              Reviewed by Kent Tamura.
      
              WebSocket add new event: CloseEvent
              https://bugs.webkit.org/show_bug.cgi?id=35573
      
              Original patch was written by Fumitoshi Ukai <ukai@chromium.org>.
              I added CloseEvent constructor to DOMWindow, so it can be referred
              in the new test (close-event.html).
      
              Test: http/tests/websocket/tests/close-event.html
      
              * CMakeLists.txt:
              * CodeGenerators.pri:
              * DerivedSources.cpp:
              * DerivedSources.make:
              * GNUmakefile.list.am:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/JSEventCustom.cpp:
              (WebCore::toJS):
              * bindings/v8/custom/V8EventCustom.cpp:
              (WebCore::toV8):
              * dom/Event.cpp:
              (WebCore::Event::isCloseEvent):
              * dom/Event.h:
              * page/DOMWindow.idl: Add CloseEvent constructor.
              * websockets/CloseEvent.h: Added.
              (WebCore::CloseEvent::isCloseEvent):
              (WebCore::CloseEvent::create):
              (WebCore::CloseEvent::initCloseEvent):
              (WebCore::CloseEvent::wasClean):
              (WebCore::CloseEvent::CloseEvent):
              * websockets/CloseEvent.idl: Added.
              * websockets/WebSocket.cpp:
              (WebCore::WebSocket::didClose):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@86315 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      854c86ea
  3. 11 May, 2011 2 commits
    • weinig@apple.com's avatar
      2011-05-11 Sam Weinig <sam@webkit.org> · f25e6ff1
      weinig@apple.com authored
              Reviewed by Eric Seidel.
      
              Stop including Console.h just to get Console enum types
              https://bugs.webkit.org/show_bug.cgi?id=60607
      
              Move MessageSource, MessageType and MessageLevel into its own
              header and cleanup surrounding classes.
      
              * Api/qwebelement.cpp:
      2011-05-11  Sam Weinig  <sam@webkit.org>
      
              Reviewed by Eric Seidel.
      
              Stop including Console.h just to get Console enum types
              https://bugs.webkit.org/show_bug.cgi?id=60607
      
              Move MessageSource, MessageType and MessageLevel into its own
              header and cleanup surrounding classes.
      
              * GNUmakefile.list.am:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/JSCustomXPathNSResolver.cpp:
              * bindings/scripts/CodeGeneratorJS.pm:
              * bindings/v8/V8Proxy.cpp:
              * dom/ScriptExecutionContext.h:
              * html/HTMLFormElement.cpp:
              * html/parser/XSSFilter.cpp:
              * inspector/ConsoleMessage.h:
              * inspector/InjectedScriptHost.h:
              * inspector/InspectorAgent.h:
              * inspector/InspectorConsoleAgent.h:
              * inspector/InspectorFrontendHost.h:
              * inspector/InspectorInstrumentation.cpp:
              * inspector/InspectorInstrumentation.h:
              * loader/EmptyClients.h:
              * loader/FrameLoader.cpp:
              * loader/MainResourceLoader.cpp:
              * loader/appcache/ApplicationCacheGroup.cpp:
              * page/ChromeClient.h:
              * page/Console.cpp:
              (WebCore::Console::~Console):
              * page/Console.h:
              * page/ConsoleTypes.h: Added.
              * page/ContentSecurityPolicy.cpp:
              * page/Geolocation.h:
              * workers/WorkerReportingProxy.h:
              * xml/XMLHttpRequest.cpp:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@86251 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f25e6ff1
    • jchaffraix@webkit.org's avatar
      2011-05-11 Julien Chaffraix <jchaffraix@webkit.org> · 3e8c7d14
      jchaffraix@webkit.org authored
              Reviewed by Geoffrey Garen.
      
              Tests for: XPathResult should keep its node set's JS wrappers alive
              https://bugs.webkit.org/show_bug.cgi?id=34231
      
              * fast/xpath/xpath-result-eventlistener-crash-expected.txt: Added.
              * fast/xpath/xpath-result-eventlistener-crash.html: Added.
              Test that an event listener registered on an XPATH result snapshots' node does
              not crash. This case was already fixed prior to this change. However it is better
              to keep it as a regression test.
      
              * fast/xpath/xpath-snapshot-result-should-mark-its-nodeset-expected.txt: Added.
              * fast/xpath/xpath-snapshot-result-should-mark-its-nodeset.html: Added.
              Test that an XPath snapshot result keeps its node wrapper alive.
      
              * fast/xpath/xpath-iterator-result-should-mark-its-nodeset-expected.txt: Added.
              * fast/xpath/xpath-iterator-result-should-mark-its-nodeset.html: Added.
              Test that an XPath iterator result keeps its node wrapper alive.
      
              * fast/xpath/xpath-other-nodeset-result-should-mark-its-nodeset-expected.txt: Added.
              * fast/xpath/xpath-other-nodeset-result-should-mark-its-nodeset.html: Added.
              Test that other XPath result that holds nodes keeps their wrapper alive.
      2011-05-11  Julien Chaffraix  <jchaffraix@webkit.org>
      
              Reviewed by Geoffrey Garen.
      
              XPathResult should keep its node set's JS wrappers alive
              https://bugs.webkit.org/show_bug.cgi?id=34231
      
              The change added a custom mark function for JSC. V8 was already properly
              marking the nodes so no change were done on the V8 side.
      
              Tests: fast/xpath/xpath-iterator-result-should-mark-its-nodeset.html
                     fast/xpath/xpath-other-nodeset-result-should-mark-its-nodeset.html
                     fast/xpath/xpath-result-eventlistener-crash.html
                     fast/xpath/xpath-snapshot-result-should-mark-its-nodeset.html
      
              * Android.jscbindings.mk:
              * GNUmakefile.list.am:
              * UseJSC.cmake:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/JSBindingsAllInOne.cpp:
              Added the new file to our build systems.
      
              * bindings/js/JSXPathResultCustom.cpp: Added.
              (WebCore::JSXPathResult::markChildren): Added code to mark the
              XPathResult snapshot's nodes.
              * xml/XPathResult.h:
              (WebCore::XPathResult::value): Exposed this getter so that we can
              mark our XPathValue.
              * xml/XPathResult.idl: Told the IDL parser that we now need
              a custom mark function.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@86234 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3e8c7d14
  4. 10 May, 2011 2 commits
    • commit-queue@webkit.org's avatar
      2011-05-10 Sheriff Bot <webkit.review.bot@gmail.com> · 1ddeb475
      commit-queue@webkit.org authored
              Unreviewed, rolling out r86195.
              http://trac.webkit.org/changeset/86195
              https://bugs.webkit.org/show_bug.cgi?id=60597
      
              LayerOffset is a really bad name (Requested by smfr on
              #webkit).
      
              * GNUmakefile.list.am:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * page/FrameView.cpp:
              (WebCore::FrameView::paintScrollCorner):
              * platform/graphics/LayerOffset.h: Removed.
              * rendering/InlineTextBox.cpp:
              (WebCore::InlineTextBox::paint):
              (WebCore::InlineTextBox::paintCustomHighlight):
              * rendering/InlineTextBox.h:
              * rendering/RenderBox.cpp:
              (WebCore::RenderBox::paintCustomHighlight):
              * rendering/RenderBox.h:
              * rendering/RenderImage.cpp:
              (WebCore::RenderImage::paintReplaced):
              * rendering/RenderLayer.cpp:
              (WebCore::RenderLayer::paintScrollCorner):
              (WebCore::RenderLayer::paintResizer):
              * rendering/RenderListMarker.cpp:
              (WebCore::RenderListMarker::paint):
              * rendering/RenderObject.h:
              * rendering/RenderScrollbar.cpp:
              (WebCore::RenderScrollbar::paintPart):
              * rendering/RenderScrollbarPart.cpp:
              (WebCore::RenderScrollbarPart::paintIntoRect):
              * rendering/RenderScrollbarPart.h:
              * rendering/RenderTable.cpp:
              (WebCore::RenderTable::paintObject):
              (WebCore::RenderTable::paintMask):
              * rendering/RenderTable.h:
              * rendering/RenderWidget.cpp:
              (WebCore::RenderWidget::paint):
              * rendering/RootInlineBox.cpp:
              (WebCore::RootInlineBox::paintCustomHighlight):
              (WebCore::RootInlineBox::paint):
              * rendering/RootInlineBox.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@86197 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1ddeb475
    • leviw@chromium.org's avatar
      2011-05-10 Levi Weintraub <leviw@chromium.org> · 3bbdce5d
      leviw@chromium.org authored
              Reviewed by Eric Seidel.
      
              Create LayerOffset class
              https://bugs.webkit.org/show_bug.cgi?id=60490
      
              Adding a LayerOffset class that will replace existing usage of tx/ty.
              LayerOffset is necessary since these values are commonly used as both
              a size and a point. Updating paintIntoRect to use this new class.
      
              No new tests since this doesn't change any behavior.
      
              * GNUmakefile.list.am:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * page/FrameView.cpp:
              (WebCore::FrameView::paintScrollCorner):
              * platform/graphics/LayerOffset.h: Added.
              (WebCore::LayerOffset::LayerOffset):
              (WebCore::LayerOffset::x):
              (WebCore::LayerOffset::y):
              (WebCore::LayerOffset::setX):
              (WebCore::LayerOffset::setY):
              (WebCore::LayerOffset::toSize):
              (WebCore::LayerOffset::toPoint):
              (WebCore::operator+=):
              (WebCore::operator-=):
              (WebCore::operator+):
              (WebCore::operator-):
              (WebCore::operator==):
              (WebCore::operator!=):
              * rendering/RenderLayer.cpp:
              (WebCore::RenderLayer::paintScrollCorner):
              (WebCore::RenderLayer::paintResizer):
              * rendering/RenderScrollbar.cpp:
              (WebCore::RenderScrollbar::paintPart):
              * rendering/RenderScrollbarPart.cpp:
              (WebCore::RenderScrollbarPart::paintIntoRect):
              * rendering/RenderScrollbarPart.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@86195 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3bbdce5d
  5. 09 May, 2011 4 commits
    • dcheng@chromium.org's avatar
      2011-05-09 Daniel Cheng <dcheng@chromium.org> · 252dcbe7
      dcheng@chromium.org authored
              Reviewed by Tony Chang.
      
              Refactor RenderObject::draggableNode.
              https://bugs.webkit.org/show_bug.cgi?id=60503
      
              This patch lays the ground for refactoring the drag start logic. It moves draggableNode to
              DragController to avoid the awkward plumbing of calling DragController from RenderObject and
              also moves EventHandlerDragState out from EventHandler so it can be shared between
              EventHandler and DragController where appropriate.
      
              No new tests since there should be no behavior change.
      
              * GNUmakefile.list.am:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * page/DragController.cpp:
              (WebCore::DragController::draggableNode):
              (WebCore::DragController::mayStartDragAtEventLocation):
              * page/DragController.h:
              * page/DragState.h: Added.
              (WebCore::DragState::DragState):
              * page/EventHandler.cpp:
              (WebCore::EventHandler::dragState):
              (WebCore::EventHandler::eventMayStartDrag):
              (WebCore::EventHandler::handleDrag):
              * page/EventHandler.h:
              * rendering/RenderObject.cpp:
              * rendering/RenderObject.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@86128 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      252dcbe7
    • simon.fraser@apple.com's avatar
      2011-05-09 Simon Fraser <simon.fraser@apple.com> · 710264dd
      simon.fraser@apple.com authored
              Move IconURL.* into the dom grouping.
      
              * WebCore.xcodeproj/project.pbxproj:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@86115 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      710264dd
    • crogers@google.com's avatar
      2011-05-09 Chris Rogers <crogers@google.com> · 072961d3
      crogers@google.com authored
              Reviewed by Kenneth Russell.
      
              Add RAII-style DenormalDisabler class to disable denormals which hurt audio performance
              https://bugs.webkit.org/show_bug.cgi?id=60396
      
              No new tests since audio API is not yet implemented.
      
              * WebCore.gypi:
              * WebCore.xcodeproj/project.pbxproj:
              * platform/audio/DenormalDisabler.h: Added.
              (WebCore::DenormalDisabler::DenormalDisabler):
              (WebCore::DenormalDisabler::~DenormalDisabler):
              (WebCore::DenormalDisabler::getCSR):
              (WebCore::DenormalDisabler::setCSR):
              * webaudio/AudioDestinationNode.cpp:
              (WebCore::AudioDestinationNode::provideInput):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@86099 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      072961d3
    • commit-queue@webkit.org's avatar
      2011-05-09 Shishir Agrawal <shishir@chromium.org> · 084ff96e
      commit-queue@webkit.org authored
              Reviewed by Tony Gentilcore.
      
              Implement Page Visibility API.
              https://bugs.webkit.org/show_bug.cgi?id=54181
      
              * fast/events/page-visibility-iframe-delete-test-expected.txt: Added.
              * fast/events/page-visibility-iframe-delete-test.html: Added.
              * fast/events/page-visibility-iframe-move-test-expected.txt: Added.
              * fast/events/page-visibility-iframe-move-test.html: Added.
              * fast/events/page-visibility-iframe-propagation-test-expected.txt: Added.
              * fast/events/page-visibility-iframe-propagation-test.html: Added.
              * fast/events/page-visibility-transition-test-expected.txt: Added.
              * fast/events/page-visibility-transition-test.html: Added.
              * fast/events/resources/page-visibility-iframe-delete-test-frame.html: Added.
              * fast/events/resources/page-visibility-iframe-move-new-page.html: Added.
              * platform/chromium/test_expectations.txt:
              * platform/gtk/Skipped:
              * platform/mac/Skipped:
              * platform/qt/Skipped:
              * platform/win/Skipped:
      2011-05-09  Shishir Agrawal  <shishir@chromium.org>
      
              Reviewed by Tony Gentilcore.
      
              Implement Page Visibility API.
              https://bugs.webkit.org/show_bug.cgi?id=54181
      
              Tests: fast/events/page-visibility-iframe-delete-test.html
                     fast/events/page-visibility-iframe-move-test.html
                     fast/events/page-visibility-iframe-propagation-test.html
                     fast/events/page-visibility-transition-test.html
      
              * CMakeLists.txt:
              * GNUmakefile.list.am:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * dom/Document.cpp:
              (WebCore::Document::visibilityState):
              (WebCore::Document::webkitVisibilityState):
              (WebCore::Document::webkitIsVisible):
              (WebCore::Document::dispatchVisibilityStateChangeEvent):
              * dom/Document.h:
              * dom/Document.idl:
              * dom/EventNames.h:
              * page/Frame.cpp:
              (WebCore::Frame::dispatchVisibilityStateChangeEvent):
              * page/Frame.h:
              * page/Page.cpp:
              (WebCore::Page::Page):
              (WebCore::Page::setVisibilityState):
              (WebCore::Page::visibilityState):
              * page/Page.h:
              * page/PageVisibilityState.cpp: Added.
              (WebCore::GetPageVisibilityStateString):
              * page/PageVisibilityState.h: Added.
      2011-05-09  Shishir Agrawal  <shishir@chromium.org>
      
              Reviewed by Tony Gentilcore.
      
              Implement Page Visibility API.
              https://bugs.webkit.org/show_bug.cgi?id=54181
      
              * WebKit.gyp:
              * public/WebPageVisibilityState.h: Added.
              * public/WebView.h:
              (WebKit::WebView::setVisibilityState):
              * public/WebViewClient.h:
              (WebKit::WebViewClient::visibilityState):
              * src/AssertMatchingEnums.cpp:
              * src/WebViewImpl.cpp:
              (WebKit::WebViewImpl::WebViewImpl):
              (WebKit::WebViewImpl::setVisibilityState):
              * src/WebViewImpl.h:
      2011-05-09  Shishir Agrawal  <shishir@chromium.org>
      
              Reviewed by Tony Gentilcore.
      
              Implement Page Visibility API.
              https://bugs.webkit.org/show_bug.cgi?id=54181
      
              * DumpRenderTree/LayoutTestController.cpp:
              (setPageVisibilityCallback):
              (resetPageVisibilityCallback):
              (LayoutTestController::staticFunctions):
              * DumpRenderTree/LayoutTestController.h:
              (LayoutTestController::setPageVisibility):
              (LayoutTestController::resetPageVisibility):
              * DumpRenderTree/chromium/LayoutTestController.cpp:
              (LayoutTestController::LayoutTestController):
              (LayoutTestController::resetPageVisibility):
              (LayoutTestController::setPageVisibility):
              * DumpRenderTree/chromium/LayoutTestController.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@86047 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      084ff96e
  6. 06 May, 2011 1 commit
    • tkent@chromium.org's avatar
      2011-05-06 Kent Tamura <tkent@chromium.org> · e6001382
      tkent@chromium.org authored
              Reviewed by Ryosuke Niwa.
      
              Eliminate WebCore/dom/InputElement.{cpp,h}
              https://bugs.webkit.org/show_bug.cgi?id=60262
      
              - Fold in all of the code of InputElement.{cpp,h} into HTMLInputElement
                and TextFieldInputType.
              - Change the return type of Node::toInputElement():
                InputElement* -> HTMLInputElement*
      
              No new tests. This change should not change the existing behaviour.
      
              * CMakeLists.txt: Remove InpuntElement.cpp and/or InputElement.h.
              * GNUmakefile.list.am: ditto.
              * WebCore.exp.in: Add symbols of functions exposed to WebKit.
              * WebCore.gypi: Remove InpuntElement.cpp and/or InputElement.h.
              * WebCore.pro: ditto.
              * WebCore.vcproj/WebCore.vcproj: ditto.
              * WebCore.xcodeproj/project.pbxproj: ditto.
              * accessibility/AXObjectCache.cpp:
              (WebCore::AXObjectCache::textMarkerDataForVisiblePosition):
                Follow the return type change of Node::toInputElement().
              * accessibility/AccessibilityRenderObject.cpp:
              (WebCore::AccessibilityRenderObject::isPasswordField): ditto.
              (WebCore::AccessibilityRenderObject::isIndeterminate): ditto.
              (WebCore::AccessibilityRenderObject::isNativeCheckboxOrRadio): ditto.
              (WebCore::AccessibilityRenderObject::isChecked): ditto.
              * css/CSSStyleSelector.cpp:
              (WebCore::CSSStyleSelector::canShareStyleWithElement): ditto.
              (WebCore::CSSStyleSelector::SelectorChecker::checkOneSelector): ditto.
              * dom/CheckedRadioButtons.cpp:
              (WebCore::CheckedRadioButtons::removeButton): ditto.
              * dom/DOMAllInOne.cpp: Remove InputElement.h.
              * dom/InputElement.cpp: Removed.
              * dom/InputElement.h: Removed.
              * dom/Node.cpp:
              (WebCore::Node::toInputElement):
                Change the return type from InputElement* to HTMLInputElement*.
              * dom/Node.h: ditto.
              * html/HTMLInputElement.cpp:
              (WebCore::HTMLInputElement::HTMLInputElement):
              (WebCore::HTMLInputElement::formControlName):
              (WebCore::HTMLInputElement::tooLong):
              (WebCore::HTMLInputElement::updateFocusAppearance):
              (WebCore::HTMLInputElement::aboutToUnload):
              (WebCore::HTMLInputElement::handleFocusEvent):
              (WebCore::HTMLInputElement::handleBlurEvent):
              (WebCore::HTMLInputElement::updateType):
              (WebCore::HTMLInputElement::parseMappedAttribute):
              (WebCore::HTMLInputElement::size):
              (WebCore::HTMLInputElement::copyNonAttributeProperties):
              (WebCore::HTMLInputElement::value):
              (WebCore::HTMLInputElement::suggestedValue):
              (WebCore::HTMLInputElement::setSuggestedValue):
              (WebCore::HTMLInputElement::setValue):
              (WebCore::HTMLInputElement::setValueFromRenderer):
              (WebCore::HTMLInputElement::setFileListFromRenderer):
              (WebCore::HTMLInputElement::setDefaultName):
              (WebCore::HTMLInputElement::maxLength):
              (WebCore::HTMLInputElement::cacheSelection):
              (WebCore::formatCodes): Moved from InputElement.
              (WebCore::cursorPositionToMaskIndex): ditto.
              (WebCore::HTMLInputElement::isConformToInputMask): ditto.
              (WebCore::HTMLInputElement::validateInputMask): ditto.
              (WebCore::HTMLInputElement::setWapInputFormat): ditto.
              (WebCore::HTMLInputElement::notifyFormStateChanged): ditto.
              (WebCore::HTMLInputElement::parseMaxLengthAttribute): ditto.
              (WebCore::HTMLInputElement::updateValueIfNeeded):ditto.
              * html/HTMLInputElement.h:
                - Add data members which were defined in InputElementData.
                - Make some functions public because the public interface InputElement is removed.
                - Make some functions non-virtual because they don't override
                  corresponding virtual functions of InputElement anymore.
              (WebCore::HTMLInputElement::toInputElement):
                Follow the return type change of Node::toInputElement().
              (WebCore::HTMLInputElement::isIndeterminate):
              (WebCore::HTMLInputElement::isAutofilled):
              (WebCore::HTMLInputElement::supportsMaxLength):
              (WebCore::HTMLInputElement::cachedSelectionStart):
              (WebCore::HTMLInputElement::cachedSelectionEnd):
              * html/HTMLTextAreaElement.cpp: Remove unused InputElement.h.
              * html/InputType.cpp:
              (WebCore::InputType::handleBeforeTextInsertedEvent): Remove the code.
              * html/InputType.h: Update for the above.
              * html/TextFieldInputType.cpp:
              (WebCore::replaceEOLAndLimitLength): Moved from InputElement.cpp.
              (WebCore::TextFieldInputType::sanitizeValue): Implement with replaceEOLAndLimitLength().
              (WebCore::TextFieldInputType::handleBeforeTextInsertedEvent):
                Move the code from InputElement::handleBeforeTextInsertedEvent().
              * html/TextFieldInputType.h: Update declarations.
              * rendering/RenderTextControlSingleLine.cpp:
                - Remove ASSERT(node()->isHTMLElement()) because it is checked in the constructor.
                - Follow the return type change of inputElement().
              (WebCore::RenderTextControlSingleLine::RenderTextControlSingleLine):
                Make sure node() is an HTMLInputElement instance.
              (WebCore::RenderTextControlSingleLine::addSearchResult):
              (WebCore::RenderTextControlSingleLine::stopSearchEventTimer):
              (WebCore::RenderTextControlSingleLine::showPopup):
              (WebCore::RenderTextControlSingleLine::hidePopup):
              (WebCore::RenderTextControlSingleLine::subtreeHasChanged):
              (WebCore::RenderTextControlSingleLine::updateFromElement):
              (WebCore::RenderTextControlSingleLine::createInnerBlockStyle):
              (WebCore::RenderTextControlSingleLine::createResultsButtonStyle):
              (WebCore::RenderTextControlSingleLine::createCancelButtonStyle):
              (WebCore::RenderTextControlSingleLine::createInnerSpinButtonStyle):
              (WebCore::RenderTextControlSingleLine::createOuterSpinButtonStyle):
              (WebCore::RenderTextControlSingleLine::createSpeechButtonStyle):
              (WebCore::RenderTextControlSingleLine::visibilityForCancelButton):
              (WebCore::RenderTextControlSingleLine::startSearchEventTimer):
              (WebCore::RenderTextControlSingleLine::searchEventTimerFired):
              (WebCore::RenderTextControlSingleLine::valueChanged):
              (WebCore::RenderTextControlSingleLine::setTextFromItem):
              (WebCore::RenderTextControlSingleLine::inputElement):
              * rendering/RenderTextControlSingleLine.h:
                Change the return type of inputElement(): InputElement* -> HTMLInputElement*.
              * rendering/RenderTheme.cpp:
              (WebCore::RenderTheme::isChecked):
                Follow the return type change of Node::toInputElement().
              (WebCore::RenderTheme::isIndeterminate): ditto.
              (WebCore::RenderTheme::shouldHaveSpinButton):
                Change the parameter type: InputElement* -> HTMLInputElement*.
              * rendering/RenderTheme.h: ditto.
      2011-05-06  Kent Tamura  <tkent@chromium.org>
      
              Reviewed by Ryosuke Niwa.
      
              Eliminate WebCore/dom/InputElement.{cpp,h}
              https://bugs.webkit.org/show_bug.cgi?id=60262
      
              * src/WebInputElement.cpp:
              (WebKit::WebInputElement::defaultMaxLength):
                Replace InputElement::s_maximumLength with HTMLInputElement::maximumLength.
              (WebKit::toWebInputElement):
                Follow the return type change of Node::toInputElement().
      2011-05-06  Kent Tamura  <tkent@chromium.org>
      
              Reviewed by Ryosuke Niwa.
      
              Eliminate WebCore/dom/InputElement.{cpp,h}
              https://bugs.webkit.org/show_bug.cgi?id=60262
      
              * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
              (DumpRenderTreeSupportGtk::setAutofilled):
                Follow the return type change of Node::toInputElement().
              (DumpRenderTreeSupportGtk::setValueForUser): ditto.
      2011-05-06  Kent Tamura  <tkent@chromium.org>
      
              Reviewed by Ryosuke Niwa.
      
              Eliminate WebCore/dom/InputElement.{cpp,h}
              https://bugs.webkit.org/show_bug.cgi?id=60262
      
              * Api/qwebpage.cpp:
              (QWebPage::inputMethodQuery):
                Replace InputElement::s_maximumLength with HTMLInputElement::maximumLength.
              * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
              (DumpRenderTreeSupportQt::setAutofilled):
                Follow the return type change of Node::toInputElement().
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@85998 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e6001382
  7. 05 May, 2011 4 commits
    • jcivelli@chromium.org's avatar
      2011-05-05 Jay Civelli <jcivelli@chromium.org> · 19b07e64
      jcivelli@chromium.org authored
              Reviewed by Adam Barth.
      
              Added convenience methods to convert from a byte to hex ASCII digit
              characters and vice-versa.
              https://bugs.webkit.org/show_bug.cgi?id=59834
      
              * wtf/ASCIICType.h:
              (WTF::toASCIIHexValue):
              (WTF::lowerNibbleToASCIIHexDigit):
              (WTF::upperNibbleToASCIIHexDigit):
      2011-05-05  Jay Civelli  <jcivelli@chromium.org>
      
              Reviewed by Adam Barth.
      
              Adding quoted-printable encoding/decoding capabilities.
              This is needed for MHTML support.
              https://bugs.webkit.org/show_bug.cgi?id=59834
      
              * CMakeLists.txt:
              * GNUmakefile.list.am:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * platform/text/QuotedPrintable.cpp: Added.
              * platform/text/QuotedPrintable.h: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@85909 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      19b07e64
    • rniwa@webkit.org's avatar
      2011-05-05 Ryosuke Niwa <rniwa@webkit.org> · 78bbc94c
      rniwa@webkit.org authored
              Reviewed by Eric Seidel.
      
              Rename SelectionController to FrameSelection
              https://bugs.webkit.org/show_bug.cgi?id=60234
      
              * src/WebFrameImpl.cpp:
              (WebKit::WebFrameImpl::selectWordAroundCaret):
              * src/WebViewImpl.cpp:
              (WebKit::WebViewImpl::textInputType):
              (WebKit::WebViewImpl::caretOrSelectionBounds):
              (WebKit::WebViewImpl::caretOrSelectionRange):
              (WebKit::WebViewImpl::clearFocusedNode):
      2011-05-05  Ryosuke Niwa  <rniwa@webkit.org>
      
              Reviewed by Eric Seidel.
      
              Rename SelectionController to FrameSelection
              https://bugs.webkit.org/show_bug.cgi?id=60234
      
              * Api/qwebframe.cpp:
      2011-05-05  Ryosuke Niwa  <rniwa@webkit.org>
      
              Reviewed by Eric Seidel.
      
              Rename SelectionController to FrameSelection
              https://bugs.webkit.org/show_bug.cgi?id=60234
      
              * webkit/webkitwebview.cpp:
              (getLocationForKeyboardGeneratedContextMenu):
      2011-05-05  Ryosuke Niwa  <rniwa@webkit.org>
      
              Reviewed by Eric Seidel.
      
              Rename SelectionController to FrameSelection
              https://bugs.webkit.org/show_bug.cgi?id=60234
      
              * WebView.cpp:
      2011-05-05  Ryosuke Niwa  <rniwa@webkit.org>
      
              Reviewed by Eric Seidel.
      
              Rename SelectionController to FrameSelection
              https://bugs.webkit.org/show_bug.cgi?id=60234
      
              * WebDOMSelection.cpp:
              * WebDOMSelection.h:
              * WebKitSupport/EditorClientWx.cpp:
              * WebView.cpp:
      2011-05-05  Ryosuke Niwa  <rniwa@webkit.org>
      
              Reviewed by Eric Seidel.
      
              Rename SelectionController to FrameSelection
              https://bugs.webkit.org/show_bug.cgi?id=60234
      
              * WebView/WebFrame.mm:
              (-[WebFrame _rangeByAlteringCurrentSelection:FrameSelection::direction:granularity:]):
              * WebView/WebFrameInternal.h:
              * WebView/WebHTMLView.mm:
              * WebView/WebTextCompletionController.mm:
              (-[WebTextCompletionController doCompletion]):
              * WebView/WebView.mm:
      2011-05-05  Ryosuke Niwa  <rniwa@webkit.org>
      
              Reviewed by Eric Seidel.
      
              Rename SelectionController to FrameSelection
              https://bugs.webkit.org/show_bug.cgi?id=60234
      
              * WebCoreSupport/EditorClientHaiku.cpp:
              (WebCore::EditorClientHaiku::handleKeyboardEvent):
      2011-05-05  Ryosuke Niwa  <rniwa@webkit.org>
      
              Reviewed by Eric Seidel.
      
              Rename SelectionController to FrameSelection
              https://bugs.webkit.org/show_bug.cgi?id=60234
      
              * WebCoreSupport/EditorClientWinCE.cpp:
              (WebKit::EditorClientWinCE::handleEditingKeyboardEvent):
      2011-05-05  Ryosuke Niwa  <rniwa@webkit.org>
      
              Reviewed by Eric Seidel.
      
              Rename SelectionController to FrameSelection
              https://bugs.webkit.org/show_bug.cgi?id=60234
      
              * WebCoreSupport/EditorClientEfl.cpp:
              (WebCore::EditorClientEfl::handleEditingKeyboardEvent):
      2011-05-05  Ryosuke Niwa  <rniwa@webkit.org>
      
              Reviewed by Eric Seidel.
      
              Rename SelectionController to FrameSelection
              https://bugs.webkit.org/show_bug.cgi?id=60234
      
              * CMakeLists.txt:
              * GNUmakefile.list.am:
              * WebCore.exp.in:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * accessibility/AccessibilityObject.cpp:
              * accessibility/AccessibilityRenderObject.cpp:
              (WebCore::AccessibilityRenderObject::visiblePositionRangeForLine):
              * accessibility/mac/AccessibilityObjectWrapper.mm:
              * bindings/objc/ExceptionHandlers.h:
              * css/CSSStyleSelector.cpp:
              * dom/ContainerNode.cpp:
              (WebCore::ContainerNode::cloneChildNodes):
              * dom/Document.cpp:
              * dom/InputElement.cpp:
              * editing/DeleteButtonController.cpp:
              * editing/EditCommand.cpp:
              * editing/EditingAllInOne.cpp:
              * editing/EditingStyle.cpp:
              * editing/Editor.cpp:
              (WebCore::Editor::canCopy):
              (WebCore::Editor::canDelete):
              (WebCore::Editor::markMisspellingsAfterTypingToWord):
              (WebCore::Editor::markAllMisspellingsAndBadGrammarInRanges):
              (WebCore::Editor::changeSelectionAfterCommand):
              (WebCore::Editor::respondToChangedSelection):
              * editing/Editor.h:
              * editing/EditorCommand.cpp:
              (WebCore::executeDeleteToMark):
              (WebCore::executeMoveBackward):
              (WebCore::executeMoveBackwardAndModifySelection):
              (WebCore::executeMoveDown):
              (WebCore::executeMoveDownAndModifySelection):
              (WebCore::executeMoveForward):
              (WebCore::executeMoveForwardAndModifySelection):
              (WebCore::executeMoveLeft):
              (WebCore::executeMoveLeftAndModifySelection):
              (WebCore::executeMovePageDown):
              (WebCore::executeMovePageDownAndModifySelection):
              (WebCore::executeMovePageUp):
              (WebCore::executeMovePageUpAndModifySelection):
              (WebCore::executeMoveRight):
              (WebCore::executeMoveRightAndModifySelection):
              (WebCore::executeMoveToBeginningOfDocument):
              (WebCore::executeMoveToBeginningOfDocumentAndModifySelection):
              (WebCore::executeMoveToBeginningOfLine):
              (WebCore::executeMoveToBeginningOfLineAndModifySelection):
              (WebCore::executeMoveToBeginningOfParagraph):
              (WebCore::executeMoveToBeginningOfParagraphAndModifySelection):
              (WebCore::executeMoveToBeginningOfSentence):
              (WebCore::executeMoveToBeginningOfSentenceAndModifySelection):
              (WebCore::executeMoveToEndOfDocument):
              (WebCore::executeMoveToEndOfDocumentAndModifySelection):
              (WebCore::executeMoveToEndOfSentence):
              (WebCore::executeMoveToEndOfSentenceAndModifySelection):
              (WebCore::executeMoveToEndOfLine):
              (WebCore::executeMoveToEndOfLineAndModifySelection):
              (WebCore::executeMoveToEndOfParagraph):
              (WebCore::executeMoveToEndOfParagraphAndModifySelection):
              (WebCore::executeMoveParagraphBackwardAndModifySelection):
              (WebCore::executeMoveParagraphForwardAndModifySelection):
              (WebCore::executeMoveUp):
              (WebCore::executeMoveUpAndModifySelection):
              (WebCore::executeMoveWordBackward):
              (WebCore::executeMoveWordBackwardAndModifySelection):
              (WebCore::executeMoveWordForward):
              (WebCore::executeMoveWordForwardAndModifySelection):
              (WebCore::executeMoveWordLeft):
              (WebCore::executeMoveWordLeftAndModifySelection):
              (WebCore::executeMoveWordRight):
              (WebCore::executeMoveWordRightAndModifySelection):
              (WebCore::executeMoveToLeftEndOfLine):
              (WebCore::executeMoveToLeftEndOfLineAndModifySelection):
              (WebCore::executeMoveToRightEndOfLine):
              (WebCore::executeMoveToRightEndOfLineAndModifySelection):
              * editing/FrameSelection.cpp: Copied from Source/WebCore/editing/SelectionController.cpp.
              (WebCore::FrameSelection::FrameSelection):
              (WebCore::FrameSelection::moveTo):
              (WebCore::FrameSelection::setSelection):
              (WebCore::FrameSelection::nodeWillBeRemoved):
              (WebCore::FrameSelection::respondToNodeModification):
              (WebCore::FrameSelection::textWillBeReplaced):
              (WebCore::FrameSelection::setIsDirectional):
              (WebCore::FrameSelection::directionOfEnclosingBlock):
              (WebCore::FrameSelection::willBeModified):
              (WebCore::FrameSelection::positionForPlatform):
              (WebCore::FrameSelection::startForPlatform):
              (WebCore::FrameSelection::endForPlatform):
              (WebCore::FrameSelection::modifyExtendingRight):
              (WebCore::FrameSelection::modifyExtendingForward):
              (WebCore::FrameSelection::modifyMovingRight):
              (WebCore::FrameSelection::modifyMovingForward):
              (WebCore::FrameSelection::modifyExtendingLeft):
              (WebCore::FrameSelection::modifyExtendingBackward):
              (WebCore::FrameSelection::modifyMovingLeft):
              (WebCore::FrameSelection::modifyMovingBackward):
              (WebCore::FrameSelection::modify):
              (WebCore::FrameSelection::xPosForVerticalArrowNavigation):
              (WebCore::FrameSelection::clear):
              (WebCore::FrameSelection::setStart):
              (WebCore::FrameSelection::setEnd):
              (WebCore::FrameSelection::setBase):
              (WebCore::FrameSelection::setExtent):
              (WebCore::FrameSelection::setCaretRectNeedsUpdate):
              (WebCore::FrameSelection::updateCaretRect):
              (WebCore::FrameSelection::caretRenderer):
              (WebCore::FrameSelection::localCaretRect):
              (WebCore::FrameSelection::absoluteBoundsForLocalRect):
              (WebCore::FrameSelection::absoluteCaretBounds):
              (WebCore::FrameSelection::caretRepaintRect):
              (WebCore::FrameSelection::recomputeCaretRect):
              (WebCore::FrameSelection::shouldRepaintCaret):
              (WebCore::FrameSelection::invalidateCaretRect):
              (WebCore::FrameSelection::paintCaret):
              (WebCore::FrameSelection::debugRenderer):
              (WebCore::FrameSelection::contains):
              (WebCore::FrameSelection::selectFrameElementInParentIfFullySelected):
              (WebCore::FrameSelection::selectAll):
              (WebCore::FrameSelection::setSelectedRange):
              (WebCore::FrameSelection::isInPasswordField):
              (WebCore::FrameSelection::caretRendersInsideNode):
              (WebCore::FrameSelection::focusedOrActiveStateChanged):
              (WebCore::FrameSelection::pageActivationChanged):
              (WebCore::FrameSelection::updateSecureKeyboardEntryIfActive):
              (WebCore::FrameSelection::setUseSecureKeyboardEntry):
              (WebCore::FrameSelection::setFocused):
              (WebCore::FrameSelection::isFocusedAndActive):
              (WebCore::FrameSelection::updateAppearance):
              (WebCore::FrameSelection::setCaretVisible):
              (WebCore::FrameSelection::clearCaretRectIfNeeded):
              (WebCore::FrameSelection::caretBlinkTimerFired):
              (WebCore::FrameSelection::notifyRendererOfSelectionChange):
              (WebCore::FrameSelection::setFocusedNodeIfNeeded):
              (WebCore::FrameSelection::paintDragCaret):
              (WebCore::FrameSelection::copyTypingStyle):
              (WebCore::FrameSelection::shouldDeleteSelection):
              (WebCore::FrameSelection::bounds):
              (WebCore::FrameSelection::getClippedVisibleTextRectangles):
              (WebCore::FrameSelection::currentForm):
              (WebCore::FrameSelection::revealSelection):
              (WebCore::FrameSelection::setSelectionFromNone):
              (WebCore::FrameSelection::shouldChangeSelection):
              (WebCore::FrameSelection::formatForDebugger):
              (WebCore::FrameSelection::showTreeForThis):
              (showTree):
              * editing/FrameSelection.h: Copied from Source/WebCore/editing/SelectionController.h.
              (WebCore::FrameSelection::typingStyle):
              (WebCore::FrameSelection::clearTypingStyle):
              (WebCore::FrameSelection::setTypingStyle):
              (WebCore::FrameSelection::notifyAccessibilityForSelectionChange):
              * editing/ModifySelectionListLevel.cpp:
              * editing/RemoveFormatCommand.cpp:
              * editing/ReplaceSelectionCommand.cpp:
              * editing/SelectionController.cpp: Removed.
              * editing/SelectionController.h: Removed.
              * editing/SetSelectionCommand.cpp:
              (WebCore::SetSelectionCommand::SetSelectionCommand):
              (WebCore::SetSelectionCommand::doApply):
              (WebCore::SetSelectionCommand::doUnapply):
              * editing/SetSelectionCommand.h:
              (WebCore::SetSelectionCommand::create):
              * editing/SpellingCorrectionCommand.cpp:
              (WebCore::SpellingCorrectionCommand::doApply):
              * editing/SpellingCorrectionController.cpp:
              (WebCore::SpellingCorrectionController::respondToUnappliedSpellCorrection):
              * editing/TypingCommand.cpp:
              (WebCore::TypingCommand::deleteKeyPressed):
              (WebCore::TypingCommand::forwardDeleteKeyPressed):
              * editing/chromium/FrameSelectionChromium.cpp: Copied from Source/WebCore/editing/chromium/SelectionControllerChromium.cpp.
              (WebCore::FrameSelection::notifyAccessibilityForSelectionChange):
              * editing/chromium/SelectionControllerChromium.cpp: Removed.
              * editing/gtk/FrameSelectionGtk.cpp: Copied from Source/WebCore/editing/gtk/SelectionControllerGtk.cpp.
              (WebCore::FrameSelection::notifyAccessibilityForSelectionChange):
              * editing/gtk/SelectionControllerGtk.cpp: Removed.
              * editing/mac/EditorMac.mm:
              (WebCore::Editor::canCopyExcludingStandaloneImages):
              * editing/mac/FrameSelectionMac.mm: Copied from Source/WebCore/editing/mac/SelectionControllerMac.mm.
              (WebCore::FrameSelection::notifyAccessibilityForSelectionChange):
              * editing/mac/SelectionControllerMac.mm: Removed.
              * editing/qt/EditorQt.cpp:
              * loader/archive/cf/LegacyWebArchive.cpp:
              * page/ContextMenuController.cpp:
              (WebCore::ContextMenuController::populate):
              * page/DOMSelection.cpp:
              (WebCore::DOMSelection::type):
              (WebCore::DOMSelection::modify):
              (WebCore::DOMSelection::addRange):
              (WebCore::DOMSelection::deleteFromDocument):
              (WebCore::DOMSelection::containsNode):
              * page/DragController.cpp:
              (WebCore::DragController::dragIsMove):
              * page/DragController.h:
              * page/EventHandler.cpp:
              (WebCore::setSelectionIfNeeded):
              (WebCore::setNonDirectionalSelectionIfNeeded):
              (WebCore::EventHandler::sendContextMenuEventForKey):
              (WebCore::EventHandler::handleKeyboardSelectionMovement):
              * page/EventHandler.h:
              * page/FocusController.cpp:
              (WebCore::clearSelectionIfNeeded):
              * page/Frame.cpp:
              (WebCore::Frame::Frame):
              * page/Frame.h:
              (WebCore::Frame::selection):
              * page/Page.cpp:
              (WebCore::Page::Page):
              * page/Page.h:
              (WebCore::Page::dragCaretController):
              * page/chromium/DragControllerChromium.cpp:
              * page/chromium/EventHandlerChromium.cpp:
              * page/win/DragControllerWin.cpp:
              * page/win/EventHandlerWin.cpp:
              * rendering/HitTestResult.cpp:
              * rendering/RenderBlock.cpp:
              (WebCore::RenderBlock::destroy):
              (WebCore::RenderBlock::paintCaret):
              * rendering/RenderImage.cpp:
              * rendering/RenderInline.cpp:
              (WebCore::RenderInline::destroy):
              * rendering/RenderLayer.cpp:
              * rendering/RenderListBox.cpp:
              * rendering/RenderObjectChildList.cpp:
              (WebCore::RenderObjectChildList::removeChildNode):
              * rendering/RenderTextControl.cpp:
              * rendering/RenderTextControlSingleLine.cpp:
              * rendering/RenderTheme.cpp:
              * rendering/RenderTreeAsText.cpp:
              * svg/SVGSVGElement.cpp:
              * svg/SVGTextContentElement.cpp:
              (WebCore::SVGTextContentElement::selectSubString):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@85864 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      78bbc94c
    • loislo@chromium.org's avatar
      2011-05-05 Ilya Tikhonovsky <loislo@chromium.org> · 7ce94c06
      loislo@chromium.org authored
              Reviewed by Yury Semikhatsky.
      
              Web Inspector: rename BrowserDebugger to DOMDebugger.
      
              https://bugs.webkit.org/show_bug.cgi?id=60256
              InspectorBrowserDebuggerAgent => InspectorDOMDebuggerAgent
              browserDebugger => domDebugger
      
              * CMakeLists.txt:
              * GNUmakefile.list.am:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * inspector/CodeGeneratorInspector.pm:
              * inspector/InspectorAgent.cpp:
              (WebCore::InspectorAgent::InspectorAgent):
              (WebCore::InspectorAgent::inspectedPageDestroyed):
              (WebCore::InspectorAgent::disconnectFrontend):
              * inspector/InspectorAgent.h:
              (WebCore::InspectorAgent::DOMDebuggerAgent):
              * inspector/InspectorController.cpp:
              (WebCore::InspectorController::connectFrontend):
              * inspector/InspectorDOMDebuggerAgent.cpp: Renamed from Source/WebCore/inspector/InspectorBrowserDebuggerAgent.cpp.
              (WebCore::InspectorDOMDebuggerAgent::create):
              (WebCore::InspectorDOMDebuggerAgent::InspectorDOMDebuggerAgent):
              (WebCore::InspectorDOMDebuggerAgent::~InspectorDOMDebuggerAgent):
              (WebCore::InspectorDOMDebuggerAgent::debuggerWasEnabled):
              (WebCore::InspectorDOMDebuggerAgent::debuggerWasDisabled):
              (WebCore::InspectorDOMDebuggerAgent::disable):
              (WebCore::InspectorDOMDebuggerAgent::clearFrontend):
              (WebCore::InspectorDOMDebuggerAgent::discardBindings):
              (WebCore::InspectorDOMDebuggerAgent::setEventListenerBreakpoint):
              (WebCore::InspectorDOMDebuggerAgent::removeEventListenerBreakpoint):
              (WebCore::InspectorDOMDebuggerAgent::didInsertDOMNode):
              (WebCore::InspectorDOMDebuggerAgent::didRemoveDOMNode):
              (WebCore::InspectorDOMDebuggerAgent::setDOMBreakpoint):
              (WebCore::InspectorDOMDebuggerAgent::removeDOMBreakpoint):
              (WebCore::InspectorDOMDebuggerAgent::willInsertDOMNode):
              (WebCore::InspectorDOMDebuggerAgent::willRemoveDOMNode):
              (WebCore::InspectorDOMDebuggerAgent::willModifyDOMAttr):
              (WebCore::InspectorDOMDebuggerAgent::descriptionForDOMEvent):
              (WebCore::InspectorDOMDebuggerAgent::hasBreakpoint):
              (WebCore::InspectorDOMDebuggerAgent::updateSubtreeBreakpoints):
              (WebCore::InspectorDOMDebuggerAgent::pauseOnNativeEventIfNeeded):
              (WebCore::InspectorDOMDebuggerAgent::setXHRBreakpoint):
              (WebCore::InspectorDOMDebuggerAgent::removeXHRBreakpoint):
              (WebCore::InspectorDOMDebuggerAgent::willSendXMLHttpRequest):
              (WebCore::InspectorDOMDebuggerAgent::clear):
              * inspector/InspectorDOMDebuggerAgent.h: Renamed from Source/WebCore/inspector/InspectorBrowserDebuggerAgent.h.
              * inspector/InspectorInstrumentation.cpp:
              (WebCore::InspectorInstrumentation::willInsertDOMNodeImpl):
              (WebCore::InspectorInstrumentation::didInsertDOMNodeImpl):
              (WebCore::InspectorInstrumentation::willRemoveDOMNodeImpl):
              (WebCore::InspectorInstrumentation::didRemoveDOMNodeImpl):
              (WebCore::InspectorInstrumentation::willModifyDOMAttrImpl):
              (WebCore::InspectorInstrumentation::willSendXMLHttpRequestImpl):
              (WebCore::InspectorInstrumentation::pauseOnNativeEventIfNeeded):
              * inspector/InstrumentingAgents.h:
              (WebCore::InstrumentingAgents::InstrumentingAgents):
              (WebCore::InstrumentingAgents::inspectorDOMDebuggerAgent):
              (WebCore::InstrumentingAgents::setInspectorDOMDebuggerAgent):
              * inspector/WorkerInspectorController.cpp:
              (WebCore::WorkerInspectorController::connectFrontend):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@85850 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7ce94c06
    • jcivelli@chromium.org's avatar
      2011-05-04 Jay Civelli <jcivelli@chromium.org> · 392e9e8f
      jcivelli@chromium.org authored
              Reviewed by Adam Barth.
      
              Adding a utility class to read a SharedBuffer line by line.
              https://bugs.webkit.org/show_bug.cgi?id=59946
      
              * CMakeLists.txt:
              * GNUmakefile.list.am:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * platform/SharedBufferCRLFLineReader.cpp: Added.
              * platform/SharedBufferCRLFLineReader.h: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@85837 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      392e9e8f
  8. 04 May, 2011 3 commits
    • dglazkov@chromium.org's avatar
      2011-05-04 Dimitri Glazkov <dglazkov@chromium.org> · c1df8bd0
      dglazkov@chromium.org authored
              Sort xcodeproj files.
      
              The WebCore.xcodeproj got out of sorts again.
      
              * WebCore.xcodeproj/project.pbxproj: Ran sort-XCode-project-file.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@85790 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c1df8bd0
    • commit-queue@webkit.org's avatar
      2011-05-04 Tao Bai <michaelbai@chromium.org> · e46967d3
      commit-queue@webkit.org authored
              Reviewed by David Kilzer.
      
              Populate touch-icon url to FrameLoaderClient
              https://bugs.webkit.org/show_bug.cgi?id=59143
      
              * Configurations/FeatureDefines.xcconfig:
      2011-05-04  Tao Bai  <michaelbai@chromium.org>
      
              Reviewed by David Kilzer.
      
              Populate touch-icon url to FrameLoaderClient
              https://bugs.webkit.org/show_bug.cgi?id=59143
      
              Parsed and populated apple-touch-icon url to FrameLoaderClient.
              Changed favicon to be a type of icon.
      
              * CMakeLists.txt:
              * Configurations/FeatureDefines.xcconfig:
              * GNUmakefile.am:
              * GNUmakefile.list.am:
              * WebCore.gypi:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * dom/Document.cpp:
              (WebCore::Document::iconURL):
              (WebCore::Document::setIconURL):
              * dom/Document.h:
              * dom/IconURL.cpp: Added.
              (WebCore::toIconIndex):
              * dom/IconURL.h: Added.
              (WebCore::IconURL::IconURL):
              * features.pri:
              * html/HTMLLinkElement.cpp:
              (WebCore::HTMLLinkElement::tokenizeRelAttribute):
              (WebCore::HTMLLinkElement::process):
              (WebCore::HTMLLinkElement::addSubresourceAttributeURLs):
              * html/HTMLLinkElement.h:
              (WebCore::HTMLLinkElement::RelAttribute::RelAttribute):
              (WebCore::HTMLLinkElement::isEnabledViaScript):
              * html/parser/HTMLPreloadScanner.cpp:
              (WebCore::HTMLNames::PreloadTask::relAttributeIsStyleSheet):
              * loader/DocumentLoader.cpp:
              (WebCore::DocumentLoader::iconURL):
              (WebCore::DocumentLoader::setIconURL):
              * loader/DocumentLoader.h:
              * loader/EmptyClients.h:
              (WebCore::EmptyFrameLoaderClient::dispatchDidChangeIcons):
              * loader/FrameLoader.cpp:
              (WebCore::FrameLoader::iconURL):
              (WebCore::FrameLoader::iconURLs):
              (WebCore::FrameLoader::fillIconURL):
              (WebCore::FrameLoader::getDefaultIconURL):
              (WebCore::FrameLoader::setIconURL):
              (WebCore::FrameLoader::didChangeIcons):
              * loader/FrameLoader.h:
              * loader/FrameLoaderClient.h:
      2011-05-04  Tao Bai  <michaelbai@chromium.org>
      
              Reviewed by David Kilzer.
      
              Populate touch-icon url to FrameLoaderClient
              https://bugs.webkit.org/show_bug.cgi?id=59143
      
              Respected the change of FrameLoaderClient.
      
              * src/FrameLoaderClientImpl.cpp:
              (WebKit::FrameLoaderClientImpl::dispatchDidChangeIcons):
              * src/FrameLoaderClientImpl.h:
      2011-05-04  Tao Bai  <michaelbai@chromium.org>
      
              Reviewed by David Kilzer.
      
              Populate touch-icon url to FrameLoaderClient
              https://bugs.webkit.org/show_bug.cgi?id=59143
      
              Respect the interface change in FrameLoaderClient
      
              * WebCoreSupport/FrameLoaderClientEfl.cpp:
              (WebCore::FrameLoaderClientEfl::dispatchDidChangeIcons):
              * WebCoreSupport/FrameLoaderClientEfl.h:
      2011-05-04  Tao Bai  <michaelbai@chromium.org>
      
              Reviewed by David Kilzer.
      
              Populate touch-icon url to FrameLoaderClient
              https://bugs.webkit.org/show_bug.cgi?id=59143
      
              Respect the interface change in FrameLoaderClient.
      
              * WebCoreSupport/FrameLoaderClientGtk.cpp:
              (WebKit::FrameLoaderClient::dispatchDidChangeIcons):
              * WebCoreSupport/FrameLoaderClientGtk.h:
      2011-05-04  Tao Bai  <michaelbai@chromium.org>
      
              Reviewed by David Kilzer.
      
              Populate touch-icon url to FrameLoaderClient
              https://bugs.webkit.org/show_bug.cgi?id=59143
      
              Respect the interface change in FrameLoaderClient.
      
              * Configurations/FeatureDefines.xcconfig:
              * WebCoreSupport/WebFrameLoaderClient.h:
              * WebCoreSupport/WebFrameLoaderClient.mm:
              (WebFrameLoaderClient::dispatchDidChangeIcons):
      2011-05-04  Tao Bai  <michaelbai@chromium.org>
      
              Reviewed by David Kilzer.
      
              Populate touch-icon url to FrameLoaderClient
              https://bugs.webkit.org/show_bug.cgi?id=59143
      
              Respect the interface change in FrameLoaderClient.
      
              * WebCoreSupport/FrameLoaderClientQt.cpp:
              (WebCore::FrameLoaderClientQt::dispatchDidChangeIcons):
              * WebCoreSupport/FrameLoaderClientQt.h:
      2011-05-04  Tao Bai  <michaelbai@chromium.org>
      
              Reviewed by David Kilzer.
      
              Populate touch-icon url to FrameLoaderClient
              https://bugs.webkit.org/show_bug.cgi?id=59143
      
              Respect the interface change in FrameLoaderClient.
      
              * WebCoreSupport/WebFrameLoaderClient.cpp:
              (WebFrameLoaderClient::dispatchDidChangeIcons):
              * WebCoreSupport/WebFrameLoaderClient.h:
      2011-05-04  Tao Bai  <michaelbai@chromium.org>
      
              Reviewed by David Kilzer.
      
              Populate touch-icon url to FrameLoaderClient
              https://bugs.webkit.org/show_bug.cgi?id=59143
      
              Respect the interface change in FrameLoaderClient.
      
              * WebCoreSupport/FrameLoaderClientWinCE.cpp:
              (WebKit::FrameLoaderClientWinCE::dispatchDidChangeIcons):
              * WebCoreSupport/FrameLoaderClientWinCE.h:
      2011-05-04  Tao Bai  <michaelbai@chromium.org>
      
              Reviewed by David Kilzer.
      
              Populate touch-icon url to FrameLoaderClient
              https://bugs.webkit.org/show_bug.cgi?id=59143
      
              Respect the interface change in FrameLoaderClient.
      
              * WebKitSupport/FrameLoaderClientWx.cpp:
              (WebCore::FrameLoaderClientWx::dispatchDidChangeIcons):
              * WebKitSupport/FrameLoaderClientWx.h:
      2011-05-04  Tao Bai  <michaelbai@chromium.org>
      
              Reviewed by David Kilzer.
      
              Populate touch-icon url to FrameLoaderClient
              https://bugs.webkit.org/show_bug.cgi?id=59143
      
              Respected the change of FrameLoaderClient.
              Added WebIconURL and WebIconType responding the new IconURL and IconType.
              Supported to get the multiple icon urls.
      
              * Configurations/FeatureDefines.xcconfig:
              * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
              (WebKit::WebFrameLoaderClient::dispatchDidChangeIcons):
              * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
      2011-05-04  Tao Bai  <michaelbai@chromium.org>
      
              Reviewed by David Kilzer.
      
              Populate touch-icon url to FrameLoaderClient
              https://bugs.webkit.org/show_bug.cgi?id=59143
      
              Disable touch icon by default.
      
              * Scripts/build-webkit:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@85785 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e46967d3
    • commit-queue@webkit.org's avatar
      2011-05-04 Leandro Gracia Gil <leandrogracia@chromium.org> · 6afc2e01
      commit-queue@webkit.org authored
              Reviewed by Tony Gentilcore.
      
              Media Stream API: add the skeleton of the frame and page controllers and the embedder client.
              https://bugs.webkit.org/show_bug.cgi?id=56922
      
              Add the basic outlines of the page controller, the per-frame controller and the embedder
              client interface for the Media Stream API. Provide methods to handle the situations
              where a frame is detached from the page or transferred between pages.
      
              Tests for the Media Stream API will be provided by the bug 56587.
      
              * CMakeLists.txt:
              * GNUmakefile.list.am:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * page/Frame.cpp:
              (WebCore::Frame::Frame):
              (WebCore::Frame::~Frame):
              (WebCore::Frame::pageDestroyed):
              (WebCore::Frame::transferChildFrameToNewDocument):
              * page/Frame.h:
              (WebCore::Frame::mediaStreamFrameController):
              * page/MediaStreamClient.h: Added.
              (WebCore::MediaStreamClient::~MediaStreamClient):
              * page/MediaStreamController.cpp: Added.
              (WebCore::MediaStreamController::Request::Request):
              (WebCore::MediaStreamController::Request::localId):
              (WebCore::MediaStreamController::Request::frameController):
              (WebCore::MediaStreamController::MediaStreamController):
              (WebCore::MediaStreamController::~MediaStreamController):
              (WebCore::MediaStreamController::unregisterFrameController):
              (WebCore::MediaStreamController::registerRequest):
              * page/MediaStreamController.h: Added.
              * page/MediaStreamFrameController.cpp: Added.
              (WebCore::MediaStreamFrameController::Request::Request):
              (WebCore::MediaStreamFrameController::Request::~Request):
              (WebCore::MediaStreamFrameController::Request::scriptExecutionContext):
              (WebCore::MediaStreamFrameController::Request::isGenerateStreamRequest):
              (WebCore::MediaStreamFrameController::Request::isRecordedDataRequest):
              (WebCore::MediaStreamFrameController::RequestMap::abort):
              (WebCore::MediaStreamFrameController::RequestMap::abortAll):
              (WebCore::MediaStreamFrameController::MediaStreamFrameController):
              (WebCore::MediaStreamFrameController::~MediaStreamFrameController):
              (WebCore::MediaStreamFrameController::securityOrigin):
              (WebCore::MediaStreamFrameController::scriptExecutionContext):
              (WebCore::MediaStreamFrameController::pageController):
              (WebCore::MediaStreamFrameController::enterDetachedState):
              (WebCore::MediaStreamFrameController::disconnectPage):
              (WebCore::MediaStreamFrameController::disconnectFrame):
              (WebCore::MediaStreamFrameController::transferToNewPage):
              * page/MediaStreamFrameController.h: Added.
              * page/Page.cpp:
              (WebCore::Page::Page):
              (WebCore::Page::PageClients::PageClients):
              * page/Page.h:
              (WebCore::Page::mediaStreamController):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@85745 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6afc2e01
  9. 29 Apr, 2011 1 commit
    • joepeck@webkit.org's avatar
      2011-04-29 Joseph Pecoraro <joepeck@webkit.org> · 254aab41
      joepeck@webkit.org authored
              Reviewed by Kent Tamura.
      
              Allow Localized Date Strings for Date Input Fields
              https://bugs.webkit.org/show_bug.cgi?id=59752
      
              The render tree dump prints out the visible string
              inside the <input> field.
      
              * fast/forms/date-input-visible-strings.html: Added.
              * platform/mac/fast/forms/date-input-visible-strings-expected.txt: Added.
      
      2011-04-29  Joseph Pecoraro  <joepeck@webkit.org>
      
              Reviewed by Kent Tamura.
      
              Allow Localized Date Strings for Date Input Fields
              https://bugs.webkit.org/show_bug.cgi?id=59752
      
              Test: fast/forms/date-input-visible-strings.html
      
              * CMakeLists.txt:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj: update build files for
              moving DateComponents from WebCore/html to WebCore/platform
              and adding the LocalizedDate files.
      
              * html/BaseDateAndTimeInputType.cpp:
              (WebCore::BaseDateAndTimeInputType::serialize):
              (WebCore::BaseDateAndTimeInputType::serializeWithComponents):
              (WebCore::BaseDateAndTimeInputType::serializeWithMilliseconds):
              InputType::serialize for a double value with date types is
              different for the month type because it assumes the incoming
              value is months instead of msecs (matching valueAsNumber in
              HTML5).  So provide a more general serialization function,
              serializeWithComponents, that will always serialize a string
              correctly for the current type but taking in a DateComponents
              object. The default serialize, and new serializeWithMilliseconds,
              can fall back to this and allows an override point for
              the month type.
      
              * html/MonthInputType.cpp:
              (WebCore::MonthInputType::serializeWithMilliseconds): the month
              type is a case where the default serialize does not take msec,
              so provide an implementation for month which handles msec input.
      
              * html/BaseDateAndTimeInputType.cpp:
              (WebCore::BaseDateAndTimeInputType::setValueAsDate): switch
              to serializeWithMilliseconds as the incoming date value is msec.
              * html/MonthInputType.cpp:
              (WebCore::MonthInputType::setValueAsDate): removed.
      
              * html/BaseDateAndTimeInputType.cpp:
              (WebCore::BaseDateAndTimeInputType::visibleValue): allow
              localized formatting of a date value.
              (WebCore::BaseDateAndTimeInputType::convertFromVisibleValue):
              allow parsing for a formatted date value.
      
              * html/BaseDateAndTimeInputType.h:
              * platform/DateComponents.cpp: Renamed from Source/WebCore/html/DateComponents.cpp.
              Expose the Type enum so it can be used outside of the DateComponents class.
              * platform/text/LocalizedDate.h: Added.
              * platform/text/LocalizedDateNone.cpp: Added.
              (WebCore::formatLocalizedDate): Default implementation falls back to
              existing HTML5 date input value formatting.
      
              * html/BaseDateAndTimeInputType.h:
              * html/DateInputType.cpp:
              (WebCore::DateInputType::dateType):
              * html/DateInputType.h:
              * html/DateTimeInputType.cpp:
              (WebCore::DateTimeInputType::dateType):
              * html/DateTimeInputType.h:
              * html/DateTimeLocalInputType.cpp:
              (WebCore::DateTimeLocalInputType::dateType):
              * html/DateTimeLocalInputType.h:
              * html/MonthInputType.cpp:
              (WebCore::MonthInputType::dateType):
              * html/MonthInputType.h:
              * html/TimeInputType.cpp:
              (WebCore::TimeInputType::dateType):
              * html/TimeInputType.h:
              * html/WeekInputType.cpp:
              (WebCore::WeekInputType::dateType):
              * html/WeekInputType.h: Accessors for the desired date
              type of a date input type. This allows the base class
              to write a generic algorithm.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@85382 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      254aab41
  10. 28 Apr, 2011 6 commits
    • tkent@chromium.org's avatar
      2011-04-28 Kent Tamura <tkent@chromium.org> · 2b28f937
      tkent@chromium.org authored
              Run sort-Xcode-project-file.
      
              * WebCore.xcodeproj/project.pbxproj:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@85286 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2b28f937
    • weinig@apple.com's avatar
      Cleanup WebCore.xcodeproj a bit. · aea9695e
      weinig@apple.com authored
      Rubber-stamped by Mark Rowe.
      
      * WebCore.xcodeproj/project.pbxproj:
      Added CompilerVersion.xcconfig and moved some JS bindings files into the
      correct sub groups.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@85277 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      aea9695e
    • levin@chromium.org's avatar
      Remove IMAGE_RESIZER related code. · f14be461
      levin@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=59735
      
      Reviewed by Adam Barth.
      
      Source/JavaScriptCore:
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebCore:
      
      * CMakeLists.txt:
      * Configurations/FeatureDefines.xcconfig:
      * GNUmakefile.am:
      * GNUmakefile.list.am:
      * WebCore.gypi:
      * WebCore.pro:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.xcodeproj/project.pbxproj:
      * features.pri:
      * html/AsyncImageResizer.cpp: Removed.
      * html/AsyncImageResizer.h: Removed.
      * html/ImageResizerThread.cpp: Removed.
      * html/ImageResizerThread.h: Removed.
      
      Source/WebKit/mac:
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebKit2:
      
      * Configurations/FeatureDefines.xcconfig:
      
      Tools:
      
      * Scripts/build-webkit:
      
      WebKitLibraries:
      
      * win/tools/vsprops/FeatureDefines.vsprops:
      * win/tools/vsprops/FeatureDefinesCairo.vsprops:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@85273 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f14be461
    • abarth@webkit.org's avatar
      2011-04-28 Adam Barth <abarth@webkit.org> · d29d2063
      abarth@webkit.org authored
              Reviewed by Eric Seidel.
      
              Remove WML
              https://bugs.webkit.org/show_bug.cgi?id=59678
      
              Remove WML configuration option from the CMake build system.
      
              * Source/cmake/OptionsEfl.cmake:
              * Source/cmake/OptionsWinCE.cmake:
              * Source/cmakeconfig.h.cmake:
      2011-04-28  Adam Barth  <abarth@webkit.org>
      
              Reviewed by Eric Seidel.
      
              Remove WML
              https://bugs.webkit.org/show_bug.cgi?id=59678
      
              Remove build system integration and test harness integration for WML.
      
              * Scripts/build-webkit:
              * Scripts/old-run-webkit-tests:
              * Scripts/webkitperl/features.pm:
              * Scripts/webkitpy/layout_tests/port/webkit.py:
              * Scripts/webkitpy/layout_tests/port/webkit_unittest.py:
      2011-04-28  Adam Barth  <abarth@webkit.org>
      
              Reviewed by Eric Seidel.
      
              Remove WML
              https://bugs.webkit.org/show_bug.cgi?id=59678
      
              Remove WML tests.  These tests do not appear to be run on
              build.webkit.org because none of the bots on build.webkit.org enable
              WML.
      
              * fast/wml: Removed.
              * fast/wml/br-element-in-table.wml: Removed.
              * fast/wml/br-element-in-text.wml: Removed.
              * fast/wml/card-element.wml: Removed.
              * fast/wml/case-sensitivity.wml: Removed.
              * fast/wml/cdata-section.wml: Removed.
              * fast/wml/comment.wml: Removed.
              * fast/wml/do-element-optional-attr.wml: Removed.
              * fast/wml/do-shadow.wml: Removed.
              * fast/wml/do-template.wml: Removed.
              * fast/wml/entity.wml: Removed.
              * fast/wml/err-event-binding-conflict.wml: Removed.
              * fast/wml/err-invalid-location-for-varref.wml: Removed.
              * fast/wml/err-invalid-tablecolumn-number.wml: Removed.
              * fast/wml/err-invalid-variable-name.wml: Removed.
              * fast/wml/err-multi-access.wml: Removed.
              * fast/wml/err-multi-http-equiv-in-meta.wml: Removed.
              * fast/wml/err-multi-name-in-meta.wml: Removed.
              * fast/wml/err-multi-timer.wml: Removed.
              * fast/wml/err-samename-do.wml: Removed.
              * fast/wml/err-unallowed-task-in-anchor.wml: Removed.
              * fast/wml/fieldset.wml: Removed.
              * fast/wml/html-fieldset-crash.html: Removed.
              * fast/wml/img-localsrc.wml: Removed.
              * fast/wml/img-src-localsrc-alt.wml: Removed.
              * fast/wml/img-src.wml: Removed.
              * fast/wml/input.wml: Removed.
              * fast/wml/p-align.wml: Removed.
              * fast/wml/p-mode.wml: Removed.
              * fast/wml/resources: Removed.
              * fast/wml/resources/fail.png: Removed.
              * fast/wml/resources/pass.png: Removed.
              * fast/wml/select.wml: Removed.
              * fast/wml/show-first-card.wml: Removed.
              * fast/wml/table-element-align-attribute-invalid.wml: Removed.
              * fast/wml/table-element-columns-attribute-invalid-number.wml: Removed.
              * fast/wml/table-element-columns-attribute-invalid.wml: Removed.
              * fast/wml/table-element-columns-attribute-missing.wml: Removed.
              * fast/wml/table-element-columns-attribute.wml: Removed.
              * fast/wml/table-element.wml: Removed.
              * fast/wml/task-noop-in-do.wml: Removed.
              * fast/wml/test.wml: Removed.
              * fast/wml/text-emphasis.wml: Removed.
              * fast/wml/validate-dtd.wml: Removed.
              * http/tests/wml: Removed.
              * http/tests/wml/access-target-domain-deny-expected.txt: Removed.
              * http/tests/wml/access-target-domain-deny.html: Removed.
              * http/tests/wml/access-target-expected.txt: Removed.
              * http/tests/wml/access-target-path-deny-expected.txt: Removed.
              * http/tests/wml/access-target-path-deny.html: Removed.
              * http/tests/wml/access-target.html: Removed.
              * http/tests/wml/go-task-get-method-accept-charset-expected.txt: Removed.
              * http/tests/wml/go-task-get-method-accept-charset.html: Removed.
              * http/tests/wml/go-task-get-method-expected.txt: Removed.
              * http/tests/wml/go-task-get-method.html: Removed.
              * http/tests/wml/go-task-post-method-accept-charset-expected.txt: Removed.
              * http/tests/wml/go-task-post-method-accept-charset.html: Removed.
              * http/tests/wml/go-task-post-method-expected.txt: Removed.
              * http/tests/wml/go-task-post-method.html: Removed.
              * http/tests/wml/post-data-to-server-expected.txt: Removed.
              * http/tests/wml/post-data-to-server.html: Removed.
              * http/tests/wml/resources: Removed.
              * http/tests/wml/resources/access-target-domain-deny.wml: Removed.
              * http/tests/wml/resources/access-target-path-deny.wml: Removed.
              * http/tests/wml/resources/access-target.wml: Removed.
              * http/tests/wml/resources/answer-utf8.cgi: Removed.
              * http/tests/wml/resources/answer.cgi: Removed.
              * http/tests/wml/resources/dumpVariables.cgi: Removed.
              * http/tests/wml/resources/locked-deck.wml: Removed.
              * http/tests/wml/resources/unreachable-domain.wml: Removed.
              * http/tests/wml/resources/unreachable-path.wml: Removed.
              * http/tests/wml/script-tests: Removed.
              * http/tests/wml/script-tests/TEMPLATE.html: Removed.
              * http/tests/wml/script-tests/access-target-domain-deny.js: Removed.
              * http/tests/wml/script-tests/access-target-path-deny.js: Removed.
              * http/tests/wml/script-tests/access-target.js: Removed.
              * http/tests/wml/script-tests/go-task-get-method-accept-charset.js: Removed.
              * http/tests/wml/script-tests/go-task-get-method.js: Removed.
              * http/tests/wml/script-tests/go-task-post-method-accept-charset.js: Removed.
              * http/tests/wml/script-tests/go-task-post-method.js: Removed.
              * http/tests/wml/script-tests/post-data-to-server.js: Removed.
              * http/tests/xmlviewer/dumpAsText/wml-expected.txt: Removed.
              * http/tests/xmlviewer/dumpAsText/wml.xml: Removed.
              * platform/mac-leopard/fast/wml: Removed.
              * platform/mac-leopard/fast/wml/html-fieldset-crash-expected.png: Removed.
              * platform/mac/fast/wml: Removed.
              * platform/mac/fast/wml/br-element-in-table-expected.png: Removed.
              * platform/mac/fast/wml/br-element-in-table-expected.txt: Removed.
              * platform/mac/fast/wml/br-element-in-text-expected.png: Removed.
              * platform/mac/fast/wml/br-element-in-text-expected.txt: Removed.
              * platform/mac/fast/wml/card-element-expected.png: Removed.
              * platform/mac/fast/wml/card-element-expected.txt: Removed.
              * platform/mac/fast/wml/case-sensitivity-expected.png: Removed.
              * platform/mac/fast/wml/case-sensitivity-expected.txt: Removed.
              * platform/mac/fast/wml/cdata-section-expected.png: Removed.
              * platform/mac/fast/wml/cdata-section-expected.txt: Removed.
              * platform/mac/fast/wml/comment-expected.png: Removed.
              * platform/mac/fast/wml/comment-expected.txt: Removed.
              * platform/mac/fast/wml/do-element-optional-attr-expected.png: Removed.
              * platform/mac/fast/wml/do-element-optional-attr-expected.txt: Removed.
              * platform/mac/fast/wml/do-shadow-expected.png: Removed.
              * platform/mac/fast/wml/do-shadow-expected.txt: Removed.
              * platform/mac/fast/wml/do-template-expected.png: Removed.
              * platform/mac/fast/wml/do-template-expected.txt: Removed.
              * platform/mac/fast/wml/entity-expected.png: Removed.
              * platform/mac/fast/wml/entity-expected.txt: Removed.
              * platform/mac/fast/wml/err-event-binding-conflict-expected.png: Removed.
              * platform/mac/fast/wml/err-event-binding-conflict-expected.txt: Removed.
              * platform/mac/fast/wml/err-invalid-location-for-varref-expected.png: Removed.
              * platform/mac/fast/wml/err-invalid-location-for-varref-expected.txt: Removed.
              * platform/mac/fast/wml/err-invalid-tablecolumn-number-expected.png: Removed.
              * platform/mac/fast/wml/err-invalid-tablecolumn-number-expected.txt: Removed.
              * platform/mac/fast/wml/err-invalid-variable-name-expected.png: Removed.
              * platform/mac/fast/wml/err-invalid-variable-name-expected.txt: Removed.
              * platform/mac/fast/wml/err-multi-access-expected.png: Removed.
              * platform/mac/fast/wml/err-multi-access-expected.txt: Removed.
              * platform/mac/fast/wml/err-multi-http-equiv-in-meta-expected.png: Removed.
              * platform/mac/fast/wml/err-multi-http-equiv-in-meta-expected.txt: Removed.
              * platform/mac/fast/wml/err-multi-name-in-meta-expected.png: Removed.
              * platform/mac/fast/wml/err-multi-name-in-meta-expected.txt: Removed.
              * platform/mac/fast/wml/err-multi-timer-expected.png: Removed.
              * platform/mac/fast/wml/err-multi-timer-expected.txt: Removed.
              * platform/mac/fast/wml/err-samename-do-expected.png: Removed.
              * platform/mac/fast/wml/err-samename-do-expected.txt: Removed.
              * platform/mac/fast/wml/err-unallowed-task-in-anchor-expected.png: Removed.
              * platform/mac/fast/wml/err-unallowed-task-in-anchor-expected.txt: Removed.
              * platform/mac/fast/wml/fieldset-expected.png: Removed.
              * platform/mac/fast/wml/fieldset-expected.txt: Removed.
              * platform/mac/fast/wml/html-fieldset-crash-expected.png: Removed.
              * platform/mac/fast/wml/html-fieldset-crash-expected.txt: Removed.
              * platform/mac/fast/wml/img-localsrc-expected.png: Removed.
              * platform/mac/fast/wml/img-localsrc-expected.txt: Removed.
              * platform/mac/fast/wml/img-src-expected.png: Removed.
              * platform/mac/fast/wml/img-src-expected.txt: Removed.
              * platform/mac/fast/wml/img-src-localsrc-alt-expected.png: Removed.
              * platform/mac/fast/wml/img-src-localsrc-alt-expected.txt: Removed.
              * platform/mac/fast/wml/input-expected.png: Removed.
              * platform/mac/fast/wml/input-expected.txt: Removed.
              * platform/mac/fast/wml/p-align-expected.png: Removed.
              * platform/mac/fast/wml/p-align-expected.txt: Removed.
              * platform/mac/fast/wml/p-mode-expected.png: Removed.
              * platform/mac/fast/wml/p-mode-expected.txt: Removed.
              * platform/mac/fast/wml/select-expected.png: Removed.
              * platform/mac/fast/wml/select-expected.txt: Removed.
              * platform/mac/fast/wml/show-first-card-expected.png: Removed.
              * platform/mac/fast/wml/show-first-card-expected.txt: Removed.
              * platform/mac/fast/wml/table-element-align-attribute-invalid-expected.png: Removed.
              * platform/mac/fast/wml/table-element-align-attribute-invalid-expected.txt: Removed.
              * platform/mac/fast/wml/table-element-columns-attribute-expected.png: Removed.
              * platform/mac/fast/wml/table-element-columns-attribute-expected.txt: Removed.
              * platform/mac/fast/wml/table-element-columns-attribute-invalid-expected.png: Removed.
              * platform/mac/fast/wml/table-element-columns-attribute-invalid-expected.txt: Removed.
              * platform/mac/fast/wml/table-element-columns-attribute-invalid-number-expected.png: Removed.
              * platform/mac/fast/wml/table-element-columns-attribute-invalid-number-expected.txt: Removed.
              * platform/mac/fast/wml/table-element-columns-attribute-missing-expected.png: Removed.
              * platform/mac/fast/wml/table-element-columns-attribute-missing-expected.txt: Removed.
              * platform/mac/fast/wml/table-element-expected.png: Removed.
              * platform/mac/fast/wml/table-element-expected.txt: Removed.
              * platform/mac/fast/wml/task-noop-in-do-expected.png: Removed.
              * platform/mac/fast/wml/task-noop-in-do-expected.txt: Removed.
              * platform/mac/fast/wml/test-expected.png: Removed.
              * platform/mac/fast/wml/test-expected.txt: Removed.
              * platform/mac/fast/wml/text-emphasis-expected.png: Removed.
              * platform/mac/fast/wml/text-emphasis-expected.txt: Removed.
              * platform/mac/fast/wml/validate-dtd-expected.png: Removed.
              * platform/mac/fast/wml/validate-dtd-expected.txt: Removed.
              * wml: Removed.
              * wml/access-target-deny-expected.txt: Removed.
              * wml/access-target-deny.html: Removed.
              * wml/access-target-expected.txt: Removed.
              * wml/access-target.html: Removed.
              * wml/enter-card-with-events-expected.txt: Removed.
              * wml/enter-card-with-events.html: Removed.
              * wml/enter-first-card-with-events-expected.txt: Removed.
              * wml/enter-first-card-with-events.html: Removed.
              * wml/go-task-get-method-external-deck-expected.txt: Removed.
              * wml/go-task-get-method-external-deck-with-href-expected.txt: Removed.
              * wml/go-task-get-method-external-deck-with-href.html: Removed.
              * wml/go-task-get-method-external-deck.html: Removed.
              * wml/go-task-get-method-same-deck-expected.txt: Removed.
              * wml/go-task-get-method-same-deck.html: Removed.
              * wml/input-format-expected.txt: Removed.
              * wml/input-format.html: Removed.
              * wml/newcontext-same-deck-expected.txt: Removed.
              * wml/newcontext-same-deck.html: Removed.
              * wml/onenterforward-event-expected.txt: Removed.
              * wml/onenterforward-event.html: Removed.
              * wml/onenterforward-inline-event-expected.txt: Removed.
              * wml/onenterforward-inline-event.html: Removed.
              * wml/ontimer-event-expected.txt: Removed.
              * wml/ontimer-event.html: Removed.
              * wml/ontimer-inline-event-expected.txt: Removed.
              * wml/ontimer-inline-event.html: Removed.
              * wml/option-element-onpick-expected.txt: Removed.
              * wml/option-element-onpick-recursion-expected.txt: Removed.
              * wml/option-element-onpick-recursion.html: Removed.
              * wml/option-element-onpick.html: Removed.
              * wml/resources: Removed.
              * wml/resources/WMLTestCase.js: Removed.
              * wml/resources/access-target-deny.wml: Removed.
              * wml/resources/access-target.wml: Removed.
              * wml/resources/enter-card-with-events.wml: Removed.
              * wml/resources/enter-first-card-with-events.wml: Removed.
              * wml/resources/external-deck.wml: Removed.
              * wml/resources/locked-deck.wml: Removed.
              * wml/resources/newcontext-same-deck.wml: Removed.
              * wml/resources/onenterforward-event.wml: Removed.
              * wml/resources/onenterforward-inline-event.wml: Removed.
              * wml/resources/ontimer-event.wml: Removed.
              * wml/resources/ontimer-inline-event.wml: Removed.
              * wml/resources/option-element-onpick-recursion.wml: Removed.
              * wml/resources/test-document.wml: Removed.
              * wml/script-tests: Removed.
              * wml/script-tests/TEMPLATE.html: Removed.
              * wml/script-tests/access-target-deny.js: Removed.
              * wml/script-tests/access-target.js: Removed.
              * wml/script-tests/enter-card-with-events.js: Removed.
              * wml/script-tests/enter-first-card-with-events.js: Removed.
              * wml/script-tests/go-task-get-method-external-deck-with-href.js: Removed.
              * wml/script-tests/go-task-get-method-external-deck.js: Removed.
              * wml/script-tests/go-task-get-method-same-deck.js: Removed.
              * wml/script-tests/input-format.js: Removed.
              * wml/script-tests/newcontext-same-deck.js: Removed.
              * wml/script-tests/onenterforward-event.js: Removed.
              * wml/script-tests/onenterforward-inline-event.js: Removed.
              * wml/script-tests/ontimer-event.js: Removed.
              * wml/script-tests/ontimer-inline-event.js: Removed.
              * wml/script-tests/option-element-onpick-recursion.js: Removed.
              * wml/script-tests/option-element-onpick.js: Removed.
              * wml/script-tests/select-element-variables.js: Removed.
              * wml/script-tests/variable-reference-invalid-character.js: Removed.
              * wml/script-tests/variable-reference-valid.js: Removed.
              * wml/select-element-variables-expected.txt: Removed.
              * wml/select-element-variables.html: Removed.
              * wml/variable-reference-invalid-character-expected.txt: Removed.
              * wml/variable-reference-invalid-character.html: Removed.
              * wml/variable-reference-valid-expected.txt: Removed.
              * wml/variable-reference-valid.html: Removed.
      2011-04-28  Adam Barth  <abarth@webkit.org>
      
              Reviewed by Eric Seidel.
      
              Remove WML
              https://bugs.webkit.org/show_bug.cgi?id=59678
      
              Remove the WML configuration option from the Mac build system.
      
              * Configurations/FeatureDefines.xcconfig:
      2011-04-28  Adam Barth  <abarth@webkit.org>
      
              Reviewed by Eric Seidel.
      
              Remove WML
              https://bugs.webkit.org/show_bug.cgi?id=59678
      
              Remove WML-related enumeration.
      
              * Interfaces/IWebFramePrivate.idl:
      2011-04-28  Adam Barth  <abarth@webkit.org>
      
              Reviewed by Eric Seidel.
      
              Remove WML
              https://bugs.webkit.org/show_bug.cgi?id=59678
      
              Remove WML-related configuration options and private APIs.
      
              * Configurations/FeatureDefines.xcconfig:
              * WebCoreSupport/WebChromeClient.mm:
              (stringForMessageSource):
              * WebView/WebFramePrivate.h:
              * WebView/WebUIDelegatePrivate.h:
      2011-04-28  Adam Barth  <abarth@webkit.org>
      
              Reviewed by Eric Seidel.
      
              Remove WML
              https://bugs.webkit.org/show_bug.cgi?id=59678
      
              This patch removes WML from WebCore.  After removing WML, there's a
              bunch of twisted code that could be untwisted, but this patch contains
              only the purely mechanical part of removing the feature.
      
              There's been a lot of discussion on webkit-dev about whether we should
              remove WML.  In addition to those threads, we've had an informal poll
              of the reviewers as well as an in-person discussion at the WebKit
              contributor's meeting.  Removing any feature is likely to make some
              folks unhappy, but, on balance, removing WML appears to be the right
              thing for the project to do at this time.
      
              * CMakeLists.txt:
              * CodeGenerators.pri:
              * Configurations/FeatureDefines.xcconfig:
              * DerivedSources.cpp:
              * DerivedSources.make:
              * GNUmakefile.am:
              * GNUmakefile.list.am:
              * WebCore.gyp/WebCore.gyp:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * css/CSSStyleSelector.cpp:
              (WebCore::linkAttribute):
              (WebCore::CSSStyleSelector::styleForElement):
              (WebCore::CSSStyleSelector::adjustRenderStyle):
              * css/wml.css: Removed.
              * dom/DOMImplementation.cpp:
              (WebCore::DOMImplementation::createDocument):
              * dom/Document.cpp:
              (WebCore::Document::Document):
              (WebCore::Document::createElement):
              * dom/Document.h:
              (WebCore::Document::isMediaDocument):
              * dom/Document.idl:
              * dom/InputElement.h:
              * dom/Node.cpp:
              (WebCore::Node::toInputElement):
              * dom/Node.h:
              * dom/OptionElement.cpp:
              (WebCore::toOptionElement):
              (WebCore::isOptionElement):
              * dom/OptionElement.h:
              * dom/OptionGroupElement.cpp:
              (WebCore::toOptionGroupElement):
              (WebCore::isOptionGroupElement):
              * dom/SelectElement.cpp:
              (WebCore::toSelectElement):
              * dom/SelectElement.h:
              * dom/Text.cpp:
              (WebCore::Text::attach):
              * dom/XMLDocumentParser.cpp:
              (WebCore::XMLDocumentParser::insertErrorMessageBlock):
              * dom/XMLDocumentParser.h:
              * dom/XMLDocumentParserLibxml2.cpp:
              (WebCore::XMLDocumentParser::internalSubset):
              (WebCore::getEntityHandler):
              * dom/XMLDocumentParserQt.cpp:
              (WebCore::XMLDocumentParser::parse):
              (WebCore::XMLDocumentParser::parseDtd):
              * editing/htmlediting.cpp:
              (WebCore::canHaveChildrenForEditing):
              * features.pri:
              * history/BackForwardList.h:
              * history/BackForwardListImpl.cpp:
              * history/BackForwardListImpl.h:
              * history/PageCache.cpp:
              (WebCore::PageCache::canCachePageContainingThisFrame):
              * html/HTMLAnchorElement.h:
              * inspector/ConsoleMessage.cpp:
              (WebCore::messageSourceValue):
              * inspector/front-end/ConsoleView.js:
              (WebInspector.ConsoleMessage.prototype.toString):
              * loader/FrameLoader.cpp:
              (WebCore::isBackForwardLoadType):
              (WebCore::FrameLoader::transitionToCommitted):
              (WebCore::FrameLoader::shouldReload):
              (WebCore::FrameLoader::loadDifferentDocumentItem):
              (WebCore::FrameLoader::loadItem):
              * loader/FrameLoaderTypes.h:
              * loader/HistoryController.cpp:
              (WebCore::HistoryController::restoreDocumentState):
              * manual-tests/wml: Removed.
              * manual-tests/wml/StartTests.wml: Removed.
              * manual-tests/wml/a-br-element.wml: Removed.
              * manual-tests/wml/a-element.wml: Removed.
              * manual-tests/wml/a-img-element.wml: Removed.
              * manual-tests/wml/access-target.wml: Removed.
              * manual-tests/wml/anchor-br-element.wml: Removed.
              * manual-tests/wml/anchor-element.wml: Removed.
              * manual-tests/wml/anchor-img-element.wml: Removed.
              * manual-tests/wml/card-newcontext-attr.wml: Removed.
              * manual-tests/wml/card-onenterbackward.wml: Removed.
              * manual-tests/wml/card-onenterforward.wml: Removed.
              * manual-tests/wml/card-ontimer.wml: Removed.
              * manual-tests/wml/deck-access-control.wml: Removed.
              * manual-tests/wml/input-format.wml: Removed.
              * manual-tests/wml/onevent-go.wml: Removed.
              * manual-tests/wml/onevent-noop.wml: Removed.
              * manual-tests/wml/onevent-prev.wml: Removed.
              * manual-tests/wml/onevent-refresh.wml: Removed.
              * manual-tests/wml/onevent-shadow.wml: Removed.
              * manual-tests/wml/resources: Removed.
              * manual-tests/wml/resources/smiley.png: Removed.
              * manual-tests/wml/select-element.wml: Removed.
              * manual-tests/wml/select-onpick-event-crash.wml: Removed.
              * manual-tests/wml/select-onpick-event.wml: Removed.
              * manual-tests/wml/setvar-element.wml: Removed.
              * manual-tests/wml/targetdeck.wml: Removed.
              * manual-tests/wml/task-go-in-anchor.wml: Removed.
              * manual-tests/wml/task-prev-in-anchor.wml: Removed.
              * manual-tests/wml/task-refresh-in-anchor.wml: Removed.
              * manual-tests/wml/template-go.wml: Removed.
              * manual-tests/wml/template-ontimer.wml: Removed.
              * manual-tests/wml/timer.wml: Removed.
              * manual-tests/wml/variable-substitution.wml: Removed.
              * page/Console.cpp:
              (WebCore::printMessageSourceAndLevelPrefix):
              * page/Console.h:
              * page/Frame.cpp:
              (WebCore::Frame::Frame):
              * page/Page.cpp:
              * page/Page.h:
              * platform/MIMETypeRegistry.cpp:
              (WebCore::initializeSupportedNonImageMimeTypes):
              * platform/network/FormDataBuilder.h:
              * platform/network/mac/ResourceHandleMac.mm:
              (-[WebCoreResourceHandleAsDelegate connection:didReceiveResponse:]):
              * platform/wince/MIMETypeRegistryWinCE.cpp:
              (WebCore::initMIMETypeEntensionMap):
              * rendering/HitTestResult.cpp:
              (WebCore::HitTestResult::altDisplayString):
              (WebCore::HitTestResult::absoluteImageURL):
              (WebCore::HitTestResult::absoluteLinkURL):
              (WebCore::HitTestResult::isLiveLink):
              * rendering/RenderBox.cpp:
              * rendering/RenderButton.cpp:
              (WebCore::RenderButton::updateFromElement):
              * rendering/RenderFieldset.cpp:
              (WebCore::RenderFieldset::findLegend):
              * rendering/RenderImage.cpp:
              (WebCore::RenderImage::updateAltText):
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::isLegend):
              (WebCore::RenderObject::offsetParent):
              * wml: Removed.
              * wml/WMLAElement.cpp: Removed.
              * wml/WMLAElement.h: Removed.
              * wml/WMLAccessElement.cpp: Removed.
              * wml/WMLAccessElement.h: Removed.
              * wml/WMLAnchorElement.cpp: Removed.
              * wml/WMLAnchorElement.h: Removed.
              * wml/WMLAttributeNames.in: Removed.
              * wml/WMLBRElement.cpp: Removed.
              * wml/WMLBRElement.h: Removed.
              * wml/WMLCardElement.cpp: Removed.
              * wml/WMLCardElement.h: Removed.
              * wml/WMLDoElement.cpp: Removed.
              * wml/WMLDoElement.h: Removed.
              * wml/WMLDocument.cpp: Removed.
              * wml/WMLDocument.h: Removed.
              * wml/WMLElement.cpp: Removed.
              * wml/WMLElement.h: Removed.
              * wml/WMLErrorHandling.cpp: Removed.
              * wml/WMLErrorHandling.h: Removed.
              * wml/WMLEventHandlingElement.cpp: Removed.
              * wml/WMLEventHandlingElement.h: Removed.
              * wml/WMLFieldSetElement.cpp: Removed.
              * wml/WMLFieldSetElement.h: Removed.
              * wml/WMLFormControlElement.cpp: Removed.
              * wml/WMLFormControlElement.h: Removed.
              * wml/WMLGoElement.cpp: Removed.
              * wml/WMLGoElement.h: Removed.
              * wml/WMLImageElement.cpp: Removed.
              * wml/WMLImageElement.h: Removed.
              * wml/WMLImageLoader.cpp: Removed.
              * wml/WMLImageLoader.h: Removed.
              * wml/WMLInputElement.cpp: Removed.
              * wml/WMLInputElement.h: Removed.
              * wml/WMLInsertedLegendElement.cpp: Removed.
              * wml/WMLInsertedLegendElement.h: Removed.
              * wml/WMLIntrinsicEvent.cpp: Removed.
              * wml/WMLIntrinsicEvent.h: Removed.
              * wml/WMLIntrinsicEventHandler.cpp: Removed.
              * wml/WMLIntrinsicEventHandler.h: Removed.
              * wml/WMLMetaElement.cpp: Removed.
              * wml/WMLMetaElement.h: Removed.
              * wml/WMLNoopElement.cpp: Removed.
              * wml/WMLNoopElement.h: Removed.
              * wml/WMLOnEventElement.cpp: Removed.
              * wml/WMLOnEventElement.h: Removed.
              * wml/WMLOptGroupElement.cpp: Removed.
              * wml/WMLOptGroupElement.h: Removed.
              * wml/WMLOptionElement.cpp: Removed.
              * wml/WMLOptionElement.h: Removed.
              * wml/WMLPElement.cpp: Removed.
              * wml/WMLPElement.h: Removed.
              * wml/WMLPageState.cpp: Removed.
              * wml/WMLPageState.h: Removed.
              * wml/WMLPostfieldElement.cpp: Removed.
              * wml/WMLPostfieldElement.h: Removed.
              * wml/WMLPrevElement.cpp: Removed.
              * wml/WMLPrevElement.h: Removed.
              * wml/WMLRefreshElement.cpp: Removed.
              * wml/WMLRefreshElement.h: Removed.
              * wml/WMLSelectElement.cpp: Removed.
              * wml/WMLSelectElement.h: Removed.
              * wml/WMLSetvarElement.cpp: Removed.
              * wml/WMLSetvarElement.h: Removed.
              * wml/WMLTableElement.cpp: Removed.
              * wml/WMLTableElement.h: Removed.
              * wml/WMLTagNames.in: Removed.
              * wml/WMLTaskElement.cpp: Removed.
              * wml/WMLTaskElement.h: Removed.
              * wml/WMLTemplateElement.cpp: Removed.
              * wml/WMLTemplateElement.h: Removed.
              * wml/WMLTimerElement.cpp: Removed.
              * wml/WMLTimerElement.h: Removed.
              * wml/WMLVariables.cpp: Removed.
              * wml/WMLVariables.h: Removed.
      2011-04-28  Adam Barth  <abarth@webkit.org>
      
              Reviewed by Eric Seidel.
      
              Remove WML
              https://bugs.webkit.org/show_bug.cgi?id=59678
      
              Remove WML-related code in WebKit2.
      
              * Configurations/FeatureDefines.xcconfig:
              * WebProcess/WebPage/WebBackForwardListProxy.cpp:
              * WebProcess/WebPage/WebBackForwardListProxy.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@85256 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d29d2063
    • abarth@webkit.org's avatar
      2011-04-28 Jay Civelli <jcivelli@chromium.org> · a6659fd7
      abarth@webkit.org authored
              Reviewed by Adam Barth.
      
              Introducing a new class that allows serialization of a page back
              to HTML/XML with all its sub-frames and also retrieves the page's
              resources.
              Tests: unit-tests in chromium/tests/WebPageNewSerializerTest.cpp
              https://bugs.webkit.org/show_bug.cgi?id=58947
      
              * Android.mk:
              * CMakeLists.txt:
              * GNUmakefile.list.am:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * dom/Document.cpp:
              (WebCore::Document::suggestedMIMEType):
              * dom/Document.h:
              * editing/MarkupAccumulator.cpp:
              (WebCore::MarkupAccumulator::appendCustomAttributes):
              (WebCore::MarkupAccumulator::appendElement):
              * editing/MarkupAccumulator.h:
              * html/parser/HTMLMetaCharsetParser.cpp:
              (WebCore::HTMLMetaCharsetParser::processMeta):
              (WebCore::HTMLMetaCharsetParser::encodingFromMetaAttributes):
              * html/parser/HTMLMetaCharsetParser.h:
              * page/PageSerializer.cpp: Added.
              * page/PageSerializer.h: Added.
      2011-04-28  Jay Civelli  <jcivelli@chromium.org>
      
              Reviewed by Adam Barth.
      
              Introducing a new API to serialize a WebView back to HTML.
              https://bugs.webkit.org/show_bug.cgi?id=58947
      
              * WebKit.gyp:
              * public/WebPageSerializer.h:
              * src/WebPageSerializer.cpp:
              (WebKit::WebPageSerializer::serialize):
              * tests/WebPageNewSerializerTest.cpp: Added.
              * tests/data/pageserializer: Added.
              * tests/data/pageserializer/blank_frames.html: Added.
              * tests/data/pageserializer/blue_background.png: Added.
              * tests/data/pageserializer/css_test_page.html: Added.
              * tests/data/pageserializer/green_background.png: Added.
              * tests/data/pageserializer/iframe.html: Added.
              * tests/data/pageserializer/iframe2.html: Added.
              * tests/data/pageserializer/import_style_from_link.css: Added.
              * tests/data/pageserializer/import_styles.css: Added.
              * tests/data/pageserializer/link_styles.css: Added.
              * tests/data/pageserializer/ol-dot.png: Added.
              * tests/data/pageserializer/orange_background.png: Added.
              * tests/data/pageserializer/purple_background.png: Added.
              * tests/data/pageserializer/red_background.png: Added.
              * tests/data/pageserializer/simple.xhtml: Added.
              * tests/data/pageserializer/top_frame.html: Added.
              * tests/data/pageserializer/ul-dot.png: Added.
              * tests/data/pageserializer/yellow_background.png: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@85244 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a6659fd7
    • zherczeg@webkit.org's avatar
      Optimizing gaussian blur filter to ARM-neon SIMD instruction set · 344a9263
      zherczeg@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=59447
      
      Patch by Zoltan Herczeg <zherczeg@inf.u-szeged.hu> on 2011-04-28
      Reviewed by Nikolas Zimmermann.
      
      This patch contains two sub-routines, one for speeding up
      alpha channel only gaussian blur (by 2.5 times) and one
      for speeding up all channel blur (by 4 times).
      
      The common code is also redesigned to better fit for platform
      specific code. This means large chunks of code was moved to
      different files, and all platform specific files are added to
      all build systems.
      
      * CMakeLists.txt:
      * GNUmakefile.am:
      * GNUmakefile.list.am:
      * WebCore.gypi:
      * WebCore.pro:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.vcproj/WebCoreCommon.vsprops:
      * WebCore.xcodeproj/project.pbxproj:
      * platform/graphics/filters/FEGaussianBlur.cpp:
      (WebCore::FEGaussianBlur::platformApplyGeneric):
      (WebCore::FEGaussianBlur::apply):
      * platform/graphics/filters/FEGaussianBlur.h:
      (WebCore::FEGaussianBlur::kernelPosition):
      (WebCore::FEGaussianBlur::platformApply):
      * platform/graphics/filters/FELighting.cpp:
      (WebCore::FELighting::platformApplyGeneric):
      (WebCore::FELighting::drawLighting):
      * platform/graphics/filters/FELighting.h:
      (WebCore::FELighting::platformApply):
      * platform/graphics/filters/arm/FEGaussianBlurNEON.cpp: Added.
      (WebCore::WTF_ALIGNED):
      (WebCore::feGaussianBlurConstantsForNeon):
      * platform/graphics/filters/arm/FEGaussianBlurNEON.h: Added.
      (WebCore::FEGaussianBlur::platformApplyNeon):
      * platform/graphics/filters/arm/FELightingNEON.cpp:
      (WebCore::WTF_ALIGNED):
      (WebCore::FELighting::getPowerCoefficients):
      * platform/graphics/filters/arm/FELightingNEON.h:
      (WebCore::FELighting::platformApplyNeon):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@85180 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      344a9263
  11. 27 Apr, 2011 2 commits
    • morrita@google.com's avatar
      2011-04-19 MORITA Hajime <morrita@google.com> · 64550050
      morrita@google.com authored
              Reviewed by Tony Chang.
      
              [Refactoring] DocumentMarkerController::MarkerMapVectorPair should be replaced with a list of some class.
              https://bugs.webkit.org/show_bug.cgi?id=58113
      
              * Introduced RenderedDocumentMarker, a subclass of DocumentMarker.
              * Eliminated Vector<IntRect> and move the IntRect into RenderedDocumentMarker
              * Now MarkerMapVectorPair is no longer used.
      
              No new tests, No behavior change.
      
              * GNUmakefile.list.am:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * dom/DocumentMarker.h:
              * dom/DocumentMarkerController.cpp:
              (WebCore::DocumentMarkerController::addMarker):
              (WebCore::DocumentMarkerController::copyMarkers):
              (WebCore::DocumentMarkerController::removeMarkers):
              (WebCore::DocumentMarkerController::markerContainingPoint):
              (WebCore::DocumentMarkerController::markersForNode):
              (WebCore::DocumentMarkerController::renderedRectsForMarkers):
              (WebCore::DocumentMarkerController::removeMarkersFromList):
              (WebCore::DocumentMarkerController::repaintMarkers):
              (WebCore::DocumentMarkerController::setRenderedRectForMarker):
              (WebCore::DocumentMarkerController::invalidateRenderedRectsForMarkersInRect):
              (WebCore::DocumentMarkerController::shiftMarkers):
              (WebCore::DocumentMarkerController::setMarkersActive):
              (WebCore::DocumentMarkerController::clearDescriptionOnMarkersIntersectingRange):
              (WebCore::DocumentMarkerController::showMarkers):
              * dom/DocumentMarkerController.h:
              * dom/RenderedDocumentMarker.h: Added.
              (WebCore::RenderedDocumentMarker::RenderedDocumentMarker):
              (WebCore::RenderedDocumentMarker::isRendered):
              (WebCore::RenderedDocumentMarker::contains):
              (WebCore::RenderedDocumentMarker::setRenderedRect):
              (WebCore::RenderedDocumentMarker::renderedRect):
              (WebCore::RenderedDocumentMarker::invalidate):
              (WebCore::RenderedDocumentMarker::invalidMarkerRect):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@85118 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      64550050
    • mrowe@apple.com's avatar
      Build fix. · 6f8200a0
      mrowe@apple.com authored
      * WebCore.xcodeproj/project.pbxproj: Make RenderLayerCompositor.h accessbile to WebKit and WebKit2.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@85114 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6f8200a0
  12. 26 Apr, 2011 3 commits
    • weinig@apple.com's avatar
      2011-04-26 Sam Weinig <sam@webkit.org> · ba2d57fd
      weinig@apple.com authored
              Reviewed by David Hyatt.
      
              Remove Datagrid from the tree
              https://bugs.webkit.org/show_bug.cgi?id=59543
      
              * Scripts/build-webkit:
              Remove feature.
      
              * iExploder/iexploder-1.3.2/htdocs/htmltags.in:
              * iExploder/iexploder-1.7.2/src/html-tags/webkit:
              Remove from fuzzer.
      2011-04-26  Sam Weinig  <sam@webkit.org>
      
              Reviewed by David Hyatt.
      
              Remove Datagrid from the tree
              https://bugs.webkit.org/show_bug.cgi?id=59543
      
              * Configurations/FeatureDefines.xcconfig:
              Remove feature.
      2011-04-26  Sam Weinig  <sam@webkit.org>
      
              Reviewed by David Hyatt.
      
              Remove Datagrid from the tree
              https://bugs.webkit.org/show_bug.cgi?id=59543
      
              * features.gypi:
              Remove feature.
      2011-04-26  Sam Weinig  <sam@webkit.org>
      
              Reviewed by David Hyatt.
      
              Remove Datagrid from the tree
              https://bugs.webkit.org/show_bug.cgi?id=59543
      
              * Configurations/FeatureDefines.xcconfig:
              Remove feature.
      2011-04-26  Sam Weinig  <sam@webkit.org>
      
              Reviewed by David Hyatt.
      
              Remove Datagrid from the tree
              https://bugs.webkit.org/show_bug.cgi?id=59543
      
              * Android.derived.jscbindings.mk:
              * Android.derived.v8bindings.mk:
              * Android.jscbindings.mk:
              * Android.v8bindings.mk:
              * CMakeLists.txt:
              * CodeGenerators.pri:
              * Configurations/FeatureDefines.xcconfig:
              * DerivedSources.cpp:
              * DerivedSources.make:
              * GNUmakefile.am:
              * GNUmakefile.list.am:
              * UseJSC.cmake:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/JSBindingsAllInOne.cpp:
              * bindings/js/JSDataGridColumnListCustom.cpp: Removed.
              * bindings/js/JSDataGridDataSource.cpp: Removed.
              * bindings/js/JSDataGridDataSource.h: Removed.
              * bindings/js/JSHTMLDataGridElementCustom.cpp: Removed.
              * bindings/v8/V8DataGridDataSource.cpp: Removed.
              * bindings/v8/V8DataGridDataSource.h: Removed.
              * bindings/v8/custom/V8DataGridColumnListCustom.cpp: Removed.
              * bindings/v8/custom/V8HTMLDataGridElementCustom.cpp: Removed.
              * css/CSSStyleSelector.cpp:
              * css/CSSStyleSelector.h:
              * css/html.css:
              (input, textarea, keygen, select, button, isindex):
              (select:disabled, keygen:disabled, optgroup:disabled, option:disabled):
              * editing/htmlediting.cpp:
              (WebCore::canHaveChildrenForEditing):
              * features.pri:
              * html/DOMDataGridDataSource.cpp: Removed.
              * html/DOMDataGridDataSource.h: Removed.
              * html/DataGridColumn.cpp: Removed.
              * html/DataGridColumn.h: Removed.
              * html/DataGridColumn.idl: Removed.
              * html/DataGridColumnList.cpp: Removed.
              * html/DataGridColumnList.h: Removed.
              * html/DataGridColumnList.idl: Removed.
              * html/DataGridDataSource.h: Removed.
              * html/HTMLDataGridCellElement.cpp: Removed.
              * html/HTMLDataGridCellElement.h: Removed.
              * html/HTMLDataGridCellElement.idl: Removed.
              * html/HTMLDataGridColElement.cpp: Removed.
              * html/HTMLDataGridColElement.h: Removed.
              * html/HTMLDataGridColElement.idl: Removed.
              * html/HTMLDataGridElement.cpp: Removed.
              * html/HTMLDataGridElement.h: Removed.
              * html/HTMLDataGridElement.idl: Removed.
              * html/HTMLDataGridRowElement.cpp: Removed.
              * html/HTMLDataGridRowElement.h: Removed.
              * html/HTMLDataGridRowElement.idl: Removed.
              * html/HTMLElement.cpp:
              (WebCore::HTMLElement::ieForbidsInsertHTML):
              * html/HTMLElementsAllInOne.cpp:
              * html/HTMLTagNames.in:
              * page/DOMWindow.idl:
              * rendering/RenderBox.cpp:
              (WebCore::RenderBox::sizesToIntrinsicLogicalWidth):
              * rendering/RenderDataGrid.cpp: Removed.
              * rendering/RenderDataGrid.h: Removed.
              * rendering/RenderingAllInOne.cpp:
      2011-04-26  Sam Weinig  <sam@webkit.org>
      
              Reviewed by David Hyatt.
      
              Remove Datagrid from the tree
              https://bugs.webkit.org/show_bug.cgi?id=59543
      
              * Configurations/FeatureDefines.xcconfig:
              Remove feature.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@84991 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ba2d57fd
    • crogers@google.com's avatar
      2011-04-26 Chris Rogers <crogers@google.com> · 8799d334
      crogers@google.com authored
              Reviewed by Kenneth Russell.
      
              Fix web audio build on mac port
              https://bugs.webkit.org/show_bug.cgi?id=59355
      
              No new tests since audio API is not yet implemented.
      
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/JSAudioContextCustom.cpp:
              (WebCore::JSAudioContext::visitChildren):
              * bindings/js/JSJavaScriptAudioNodeCustom.cpp:
              (WebCore::JSJavaScriptAudioNode::visitChildren):
              * webaudio/AudioContext.idl:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@84969 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8799d334
    • mihaip@chromium.org's avatar
      2011-04-26 Mihai Parparita <mihaip@chromium.org> · 341b3df6
      mihaip@chromium.org authored
              Reviewed by Adam Barth.
      
              Turn off make built-in implicit rules for derived sources makefile
              https://bugs.webkit.org/show_bug.cgi?id=59418
      
              We don't use any of make's built-in implicit rules, turning them off
              speeds up parsing of the makefile.
      
              * JavaScriptCore.xcodeproj/project.pbxproj:
              * gyp/generate-derived-sources.sh:
      2011-04-26  Mihai Parparita  <mihaip@chromium.org>
      
              Reviewed by Adam Barth.
      
              Turn off make built-in implicit rules for derived sources makefile
              https://bugs.webkit.org/show_bug.cgi?id=59418
      
              We don't use any of make's built-in implicit rules, turning them off
              speeds up parsing of the makefile.
      
              * WebCore.xcodeproj/project.pbxproj:
              * gyp/generate-derived-sources.sh:
      2011-04-26  Mihai Parparita  <mihaip@chromium.org>
      
              Reviewed by Adam Barth.
      
              Turn off make built-in implicit rules for derived sources makefile
              https://bugs.webkit.org/show_bug.cgi?id=59418
      
              We don't use any of make's built-in implicit rules, turning them off
              speeds up parsing of the makefile.
      
              * WebKit2.xcodeproj/project.pbxproj:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@84900 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      341b3df6
  13. 25 Apr, 2011 4 commits
    • commit-queue@webkit.org's avatar
      2011-04-25 Igor Oliveira <igor.oliveira@openbossa.org> · d8d01323
      commit-queue@webkit.org authored
              Reviewed by Tony Chang.
      
              Move complexity from DataTransferItemsChromium and DataTransferItemChromium for base class
              https://bugs.webkit.org/show_bug.cgi?id=59028
      
              The DataTransferItemsChromium and DataTransferItemChromium code can be reused by other platforms.
              Moving the code for base class we can reduce the efforts to support DataTransferItems
              element in different platforms.
      
              * Android.mk:
              * CMakeLists.txt:
              * GNUmakefile.list.am:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * dom/DataTransferItem.cpp:
              (WebCore::DataTransferItem::DataTransferItem):
              (WebCore::DataTransferItem::owner):
              (WebCore::DataTransferItem::kind):
              (WebCore::DataTransferItem::type):
              * dom/DataTransferItem.h:
              * dom/DataTransferItems.cpp: Copied from Source/WebCore/platform/chromium/DataTransferItemsChromium.cpp.
              (WebCore::DataTransferItems::DataTransferItems):
              (WebCore::DataTransferItems::length):
              (WebCore::DataTransferItems::item):
              (WebCore::DataTransferItems::deleteItem):
              (WebCore::DataTransferItems::clear):
              (WebCore::DataTransferItems::add):
              * dom/DataTransferItems.h:
              * platform/chromium/DataTransferItemChromium.cpp:
              (WebCore::DataTransferItem::create):
              (WebCore::DataTransferItemChromium::DataTransferItemChromium):
              (WebCore::DataTransferItemChromium::getAsString):
              (WebCore::DataTransferItemChromium::getAsFile):
              * platform/chromium/DataTransferItemChromium.h:
              * platform/chromium/DataTransferItemsChromium.cpp:
              (WebCore::DataTransferItemsChromium::DataTransferItemsChromium):
              * platform/chromium/DataTransferItemsChromium.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@84857 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d8d01323
    • ggaren@apple.com's avatar
      Removed XPathNamespace because it was unused · ac809680
      ggaren@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=59381
              
      Reviewed by Beth Dakin.
      
      This allows us to make Node::ownerDocument() non-virtual, though it has
      the unhappy side-effect of rebuilding the world.
      
      * CMakeLists.txt:
      * GNUmakefile.list.am:
      * WebCore.gypi:
      * WebCore.pro:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.xcodeproj/project.pbxproj: Bye bye dead code.
      
      * dom/Node.h: Hello fast code!
      
      * xml/XPathNamespace.cpp: Removed.
      * xml/XPathNamespace.h: Removed.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@84832 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ac809680
    • ggaren@apple.com's avatar
      2011-04-25 Geoffrey Garen <ggaren@apple.com> · 8f850e98
      ggaren@apple.com authored
              Reviewed by Oliver Hunt.
      
              Removed a use of markDOMObjectWrapper: ActiveDOMObjects, Workers, and MessagePorts
              https://bugs.webkit.org/show_bug.cgi?id=59333
      
              * WebCore.xcodeproj/project.pbxproj: Added .idl files for easier editing.
      
              * bindings/js/JSDOMBinding.cpp:
              * bindings/js/JSDOMBinding.h:
              * bindings/js/JSDocumentCustom.cpp:
              * bindings/js/JSWorkerContextCustom.cpp:
              (WebCore::JSWorkerContext::visitChildren): Removed now-unused functions.
      
              * bindings/scripts/CodeGeneratorJS.pm: Added support for ActiveDOMObject
              lifetime management.
      
              * dom/Document.idl: No need for a custom mark function anymore, since
              ActiveDOMObjets now manage their own lifetimes.
      
              * dom/MessagePort.cpp:
              (WebCore::MessagePort::hasPendingActivity): Correctly report that we
              have pending activity when we're remotely entangled, instead of relying
              on our clients to know this about us and do the check for us.
      
              * dom/MessagePort.h: FIXME!
      
              * dom/MessagePort.idl:
              * fileapi/DOMFileSystem.idl:
              * fileapi/FileReader.idl:
              * fileapi/FileWriter.idl:
              * notifications/Notification.idl:
              * notifications/NotificationCenter.idl:
              * page/EventSource.idl:
              * storage/IDBDatabase.idl:
              * storage/IDBRequest.idl:
              * storage/IDBTransaction.idl:
              * webaudio/AudioContext.idl:
              * websockets/WebSocket.idl:
              * workers/AbstractWorker.idl:
              * workers/SharedWorker.idl:
              * workers/Worker.idl: Opt in to ActiveDOMObject lifetime management.
      
              * workers/WorkerContext.cpp:
              (WebCore::WorkerContext::hasPendingActivity): No need to make up for
              MessagePort::hasPendingActivity being wrong anymore, since it's now right.
      
              * xml/XMLHttpRequest.idl: Opt in to ActiveDOMObject lifetime management.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@84789 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8f850e98
    • yurys@chromium.org's avatar
      2011-04-25 Yury Semikhatsky <yurys@chromium.org> · 327ecf30
      yurys@chromium.org authored
              Reviewed by Pavel Feldman.
      
              Web Inspector: introduce InspectorWorkerAgent
              https://bugs.webkit.org/show_bug.cgi?id=59320
      
              InspectorWorkerAgent is responsible for routing inspector messages
              between worker context inspector agents and corresponding worker
              inspector front-end.
      
              * CMakeLists.txt:
              * GNUmakefile.list.am:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * inspector/CodeGeneratorInspector.pm:
              * inspector/Inspector.json:
              * inspector/InspectorAgent.cpp:
              (WebCore::InspectorAgent::InspectorAgent):
              (WebCore::InspectorAgent::setFrontend):
              (WebCore::InspectorAgent::disconnectFrontend):
              * inspector/InspectorAgent.h:
              (WebCore::InspectorAgent::workerAgent):
              * inspector/InspectorController.cpp:
              (WebCore::InspectorController::connectFrontend):
              (WebCore::InspectorController::disconnectFrontend):
              * inspector/InspectorInstrumentation.cpp:
              (WebCore::InspectorInstrumentation::didStartWorkerContextImpl):
              * inspector/InspectorInstrumentation.h:
              (WebCore::InspectorInstrumentation::willStartWorkerContext):
              (WebCore::InspectorInstrumentation::didStartWorkerContext):
              * inspector/InspectorWorkerAgent.cpp: Added.
              (WebCore::InspectorWorkerAgent::WorkerFrontendChannel::WorkerFrontendChannel):
              (WebCore::InspectorWorkerAgent::WorkerFrontendChannel::~WorkerFrontendChannel):
              (WebCore::InspectorWorkerAgent::WorkerFrontendChannel::id):
              (WebCore::InspectorWorkerAgent::WorkerFrontendChannel::inspectorProxy):
              (WebCore::InspectorWorkerAgent::WorkerFrontendChannel::sendMessageToFrontend):
              (WebCore::InspectorWorkerAgent::create):
              (WebCore::InspectorWorkerAgent::InspectorWorkerAgent):
              (WebCore::InspectorWorkerAgent::~InspectorWorkerAgent):
              (WebCore::InspectorWorkerAgent::setFrontend):
              (WebCore::InspectorWorkerAgent::clearFrontend):
              (WebCore::InspectorWorkerAgent::dispatchMessageOnWorkerInspector):
              (WebCore::InspectorWorkerAgent::didStartWorkerContext):
              * inspector/InspectorWorkerAgent.h: Added.
              * inspector/InstrumentingAgents.h:
              (WebCore::InstrumentingAgents::InstrumentingAgents):
              (WebCore::InstrumentingAgents::inspectorWorkerAgent):
              (WebCore::InstrumentingAgents::setInspectorWorkerAgent):
              * inspector/WorkerInspectorController.cpp:
              (WebCore::WorkerInspectorController::connectFrontend):
              * inspector/generate-inspector-idl:
              * workers/Worker.cpp:
              (WebCore::Worker::notifyFinished):
              * workers/WorkerContextInspectorProxy.h: Added. Platform-specific transport for inspector
              messages sent from the inspected page worker agent to the worker context inspector agents.
              (WebCore::WorkerContextInspectorProxy::connectFrontend):
              (WebCore::WorkerContextInspectorProxy::disconnectFrontend):
              (WebCore::WorkerContextInspectorProxy::sendMessageToWorkerContextInspector):
              (WebCore::WorkerContextInspectorProxy::~WorkerContextInspectorProxy):
              * workers/WorkerContextProxy.h:
              (WebCore::WorkerContextProxy::inspectorProxy):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@84773 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      327ecf30
  14. 24 Apr, 2011 1 commit
    • ggaren@apple.com's avatar
      2011-04-24 Geoffrey Garen <ggaren@apple.com> · 4e21a1e6
      ggaren@apple.com authored
              Reviewed by Sam Weinig.
      
              Removed a use of markDOMObjectWrapper: WebGL, XHR, workers; plus, more autogeneration
              https://bugs.webkit.org/show_bug.cgi?id=59307
      
              * WebCore.xcodeproj/project.pbxproj: Added Blob.idl, so it's easier to edit.
      
              * bindings/js/JSCSSRuleCustom.cpp:
              * bindings/js/JSCSSStyleDeclarationCustom.cpp:
              * bindings/js/JSCanvasRenderingContextCustom.cpp:
              * bindings/js/JSDOMApplicationCacheCustom.cpp: Autogenerate these instead
              of hand-coding them.
      
              * bindings/js/JSDOMBinding.h:
              (WebCore::root): Moved some GC helpers here from JSNodeCustom.h, because
              they're reasonably generic.
      
              * bindings/js/JSDOMImplementationCustom.cpp:
              * bindings/js/JSDOMStringMapCustom.cpp:
              * bindings/js/JSDOMTokenListCustom.cpp:
              * bindings/js/JSHTMLCollectionCustom.cpp:
              * bindings/js/JSMediaListCustom.cpp: Autogenerate these instead of
              hand-coding them.
      
              * bindings/js/JSMessageChannelCustom.cpp:
              (WebCore::JSMessageChannel::visitChildren):
              * bindings/js/JSMessagePortCustom.cpp:
              (WebCore::JSMessagePort::visitChildren): Use addOpaqueRoot instead of
              markDOMObjectWrapper. This is one of the few cases where a DOM object is
              considered a stand-alone root. It's not as efficient as the shared root
              case, but workers and message ports are very rare objects, so it's no
              big deal.
      
              * bindings/js/JSNamedNodeMapCustom.cpp: Autogenerate!
      
              * bindings/js/JSNodeCustom.h: Moved to JSDOMBinding.h.
      
              * bindings/js/JSSharedWorkerCustom.cpp:
              (WebCore::JSSharedWorker::visitChildren): Use addOpaqueRoot instead of
              markDOMObjectWrapper, as above. Once again, a stand-alone root.
      
              * bindings/js/JSStyleSheetCustom.cpp:
              * bindings/js/JSStyleSheetListCustom.cpp: Autogenerate!
      
              * bindings/js/JSWebGLRenderingContextCustom.cpp:
              (WebCore::JSWebGLRenderingContext::visitChildren): Use the opaque roots
              system for marking WebGL contexts and their associated satellite objects.
      
              * bindings/js/JSWorkerContextCustom.cpp:
              (WebCore::JSWorkerContext::visitChildren):
              * bindings/js/JSXMLHttpRequestCustom.cpp: Use addOpaqueRoot instead of
              markDOMObjectWrapper, as above. Once again, stand-alone roots.
      
              (WebCore::JSXMLHttpRequest::visitChildren):
              * bindings/js/JSXMLHttpRequestUploadCustom.cpp: No need to mark our owner
              XHR because it is not reachable from us.
      
              * bindings/scripts/CodeGeneratorJS.pm: Added autogeneration support for a
              bunch of repetitive cases of isReachableFromOpaqueRoots callbacks.
      
              * css/CSSRule.idl:
              * css/CSSStyleDeclaration.idl:
              * css/MediaList.idl:
              * css/StyleMedia.idl:
              * css/StyleSheet.idl:
              * css/StyleSheetList.idl:
              * dom/DOMImplementation.idl:
              * dom/DOMStringMap.idl:
              * dom/MessagePort.idl:
              * dom/NamedNodeMap.idl:
              * fileapi/Blob.idl:
              * html/DOMTokenList.idl: Opt in to autogeneration.
      
              * html/HTMLCanvasElement.cpp:
              (WebCore::HTMLCanvasElement::getContext): Standardized on PassOwnPtr/OwnPtr
              usage, to reduce human error and make ownership rules more obvious.
      
              * html/HTMLCollection.idl:
              * html/canvas/ArrayBuffer.idl: Opt in to autogeneration.
      
              * html/canvas/CanvasRenderingContext.cpp:
              * html/canvas/CanvasRenderingContext.h:
              (WebCore::CanvasRenderingContext::ref):
              (WebCore::CanvasRenderingContext::deref):
              * html/canvas/CanvasRenderingContext2D.h:
              (WebCore::CanvasRenderingContext2D::create):
              (WebCore::CanvasRenderingContext2D::state): Standardized on PassOwnPtr/OwnPtr
              usage, to reduce human error and make ownership rules more obvious.
              
              Inlined some functions to match our standard idiom and to make the code
              in the header document itself.
      
              * html/canvas/CanvasRenderingContext.idl: Opt in to autogeneration.
      
              * html/canvas/OESStandardDerivatives.cpp:
              (WebCore::OESStandardDerivatives::OESStandardDerivatives):
              (WebCore::OESStandardDerivatives::create):
              * html/canvas/OESStandardDerivatives.h:
              * html/canvas/OESStandardDerivatives.idl:
              * html/canvas/OESTextureFloat.cpp:
              (WebCore::OESTextureFloat::OESTextureFloat):
              (WebCore::OESTextureFloat::create):
              * html/canvas/OESTextureFloat.h:
              * html/canvas/OESTextureFloat.idl:
              * html/canvas/OESVertexArrayObject.cpp:
              (WebCore::OESVertexArrayObject::OESVertexArrayObject):
              (WebCore::OESVertexArrayObject::create):
              * html/canvas/OESVertexArrayObject.h:
              * html/canvas/OESVertexArrayObject.idl:
              * html/canvas/WebGLExtension.cpp:
              (WebCore::WebGLExtension::WebGLExtension):
              * html/canvas/WebGLExtension.h:
              (WebCore::WebGLExtension::ref):
              (WebCore::WebGLExtension::deref):
              (WebCore::WebGLExtension::context):
              * html/canvas/WebGLRenderingContext.cpp:
              (WebCore::WebGLRenderingContext::~WebGLRenderingContext):
              (WebCore::WebGLRenderingContext::getExtension):
              * html/canvas/WebGLRenderingContext.h:
              * html/canvas/WebKitLoseContext.cpp:
              (WebCore::WebKitLoseContext::WebKitLoseContext):
              (WebCore::WebKitLoseContext::create):
              (WebCore::WebKitLoseContext::loseContext):
              * html/canvas/WebKitLoseContext.h:
              * html/canvas/WebKitLoseContext.idl: Updated the ownership model for WebGL
              canavs rendering contexts to match the model for 2D canvas rendering
              contexts. This makes garbage collection a lot more straightforward, but
              it also makes the behavior of these objects more reliable. (Previously,
              satellite objects would magically stop working when the last reference
              to their owner object was dropped. Now, satellite objects keep their owner
              alive through reference counting.)
      
              * loader/appcache/DOMApplicationCache.idl:
              * page/BarInfo.idl:
              * page/Console.idl:
              * page/DOMSelection.idl:
              * page/Geolocation.idl:
              * page/History.idl:
              * page/Location.idl:
              * page/Navigator.idl:
              * page/Screen.idl:
              * page/WorkerNavigator.idl:
              * plugins/DOMMimeTypeArray.h:
              (WebCore::DOMMimeTypeArray::frame):
              * plugins/DOMMimeTypeArray.idl:
              * plugins/DOMPluginArray.h:
              (WebCore::DOMPluginArray::frame):
              * plugins/DOMPluginArray.idl:
              * storage/Storage.idl:
              * workers/WorkerLocation.idl: Opt in to autogeneration.
      
              * xml/XMLHttpRequest.cpp:
              (WebCore::XMLHttpRequest::~XMLHttpRequest):
              * xml/XMLHttpRequest.h:
              * xml/XMLHttpRequestUpload.cpp:
              (WebCore::XMLHttpRequestUpload::scriptExecutionContext):
              * xml/XMLHttpRequestUpload.h:
              (WebCore::XMLHttpRequestUpload::create):
              (WebCore::XMLHttpRequestUpload::ref):
              (WebCore::XMLHttpRequestUpload::deref):
              (WebCore::XMLHttpRequestUpload::xmlHttpRequest):
              (WebCore::XMLHttpRequestUpload::toXMLHttpRequestUpload):
              * xml/XMLHttpRequestUpload.idl: Updated the ownership model for XHR and
              its associated upload object to match the model for canvas. This makes
              garbage collection a lot more straightforward, but it also makes the
              behavior of these objects more reliable.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@84764 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4e21a1e6
  15. 22 Apr, 2011 1 commit
    • ggaren@apple.com's avatar
      2011-04-21 Geoffrey Garen <ggaren@apple.com> · a49297e4
      ggaren@apple.com authored
              Reviewed by Oliver Hunt.
      
              Removed a use of markDOMObjectWrapper: Element and Document
              https://bugs.webkit.org/show_bug.cgi?id=59178
      
              * GNUmakefile.list.am:
              * UseJSC.cmake:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/JSBindingsAllInOne.cpp: Build!
      
              * bindings/js/JSDOMImplementationCustom.cpp:
              (WebCore::JSDOMImplementationOwner::isReachableFromOpaqueRoots):
              (WebCore::JSDOMImplementationOwner::finalize):
              (WebCore::wrapperOwner):
              (WebCore::wrapperContext):
              (WebCore::toJS): Use the opaque roots system for DOMImplementation. Also,
              DOMImplementation does not need to keep its document wrapper alive, since
              there's no DOM API for getting a DOMImplementation's document.
      
              * bindings/js/JSDOMStringMapCustom.cpp:
              (WebCore::JSDOMStringMapOwner::isReachableFromOpaqueRoots):
              (WebCore::JSDOMStringMapOwner::finalize):
              (WebCore::wrapperOwner):
              (WebCore::wrapperContext):
              (WebCore::toJS): Use the opaque roots system for DOMStringMap.
      
              * bindings/js/JSDOMTokenListCustom.cpp: Added.
              (WebCore::JSDOMTokenListOwner::isReachableFromOpaqueRoots):
              (WebCore::JSDOMTokenListOwner::finalize):
              (WebCore::wrapperOwner):
              (WebCore::wrapperContext):
              (WebCore::toJS): Use the opaque roots system for DOMTokenList.
      
              * bindings/js/JSDocumentCustom.cpp:
              (WebCore::JSDocument::visitChildren):
              * bindings/js/JSElementCustom.cpp: No more need for explicit marking.
      
              * bindings/scripts/CodeGeneratorV8.pm: Boo on whoever made this design decision.
      
              * dom/DOMImplementation.cpp:
              (WebCore::DOMImplementation::DOMImplementation):
              (WebCore::DOMImplementation::createDocument):
              (WebCore::DOMImplementation::createHTMLDocument):
              * dom/DOMImplementation.h:
              (WebCore::DOMImplementation::create):
              (WebCore::DOMImplementation::ref):
              (WebCore::DOMImplementation::deref):
              (WebCore::DOMImplementation::document): Fixed the DOMImplementation
              ownership model to match other satellite objects in the DOM. This was
              necessary to fix some crashes due to incorrect reference counting.
      
              * dom/DOMImplementation.idl:
              * dom/DOMStringMap.idl:
              * dom/Document.cpp:
              (WebCore::Document::~Document):
              * dom/Document.h:
              * dom/Element.cpp:
              * dom/Element.h:
              * dom/Element.idl:
              * html/DOMTokenList.idl: Updated to match changes above.
      2011-04-21  Geoffrey Garen  <ggaren@apple.com>
      
              Reviewed by Oliver Hunt.
      
              Removed a use of markDOMObjectWrapper: Element and Document
              https://bugs.webkit.org/show_bug.cgi?id=59178
      
              * fast/dom/dataset-gc-expected.txt:
              * fast/dom/script-tests/dataset-gc.js: Changed this test not to be
              specific to __proto__. We have a general bug in the DOM that assignment
              to __proto__ does not persist after garbage collection. While we should
              fix that bug, we don't want existing tests to tickle it, because it makes
              them flaky.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@84665 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a49297e4
  16. 21 Apr, 2011 1 commit
    • 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