1. 07 Jan, 2011 2 commits
    • jamesr@google.com's avatar
      2011-01-07 James Robinson <jamesr@chromium.org> · f894f68c
      jamesr@google.com authored
              Revert "Implement mozilla's animationTime property"
              https://bugs.webkit.org/show_bug.cgi?id=51952
      
              This approach isn't quite right.
      
              * animations/animation-time-expected.txt: Removed.
              * animations/animation-time.html: Removed.
              * animations/script-tests/animation-time.js: Removed.
              * fast/dom/Window/window-properties-expected.txt:
              * fast/dom/Window/window-property-descriptors-expected.txt:
              * platform/gtk/fast/dom/Window/window-properties-expected.txt:
              * platform/gtk/fast/dom/Window/window-property-descriptors-expected.txt:
              * platform/qt/fast/dom/Window/window-properties-expected.txt:
              * platform/qt/fast/dom/Window/window-property-descriptors-expected.txt:
              * platform/win/fast/dom/Window/window-property-descriptors-expected.txt:
      2011-01-07  James Robinson  <jamesr@chromium.org>
      
              Revert "Implement mozilla's animationTime property"
              https://bugs.webkit.org/show_bug.cgi?id=51952
      
              This approach isn't quite right.
      
              * DumpRenderTree/chromium/WebViewHost.cpp:
              (WebViewHost::paintInvalidatedRegion):
      2011-01-07  James Robinson  <jamesr@chromium.org>
      
              Revert "Implement mozilla's animationTime property"
              https://bugs.webkit.org/show_bug.cgi?id=51952
      
              This approach isn't quite right.
      
              * Android.mk:
              * CMakeLists.txt:
              * GNUmakefile.am:
              * WebCore.exp.in:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * page/DOMWindow.cpp:
              * page/DOMWindow.h:
              * page/DOMWindow.idl:
              * page/Frame.cpp:
              * page/Frame.h:
              * page/Page.cpp:
              (WebCore::Page::Page):
              * page/Page.h:
              * page/animation/AnimationController.cpp:
              (WebCore::AnimationControllerPrivate::beginAnimationUpdateTime):
              * page/animation/AnimationTimeController.cpp: Removed.
              * page/animation/AnimationTimeController.h: Removed.
      2011-01-07  James Robinson  <jamesr@chromium.org>
      
              Revert "Implement mozilla's animationTime property"
              https://bugs.webkit.org/show_bug.cgi?id=51952
      
              This approach isn't quite right.
      
              * public/WebWidget.h:
              * src/WebPopupMenuImpl.cpp:
              * src/WebPopupMenuImpl.h:
              * src/WebViewImpl.cpp:
              * src/WebViewImpl.h:
      2011-01-07  James Robinson  <jamesr@chromium.org>
      
              Revert "Implement mozilla's animationTime property"
              https://bugs.webkit.org/show_bug.cgi?id=51952
      
              This approach isn't quite right.
      
              * WebView/WebHTMLView.mm:
              (-[WebHTMLView drawRect:]):
              * WebView/WebView.mm:
              (layerSyncRunLoopObserverCallBack):
      2011-01-07  James Robinson  <jamesr@chromium.org>
      
              Revert "Implement mozilla's animationTime property"
              https://bugs.webkit.org/show_bug.cgi?id=51952
      
              This approach isn't quite right.
      
              * WebProcess/WebPage/ChunkedUpdateDrawingArea.cpp:
              (WebKit::ChunkedUpdateDrawingArea::display):
              (WebKit::ChunkedUpdateDrawingArea::setSize):
              * WebProcess/WebPage/WebPage.cpp:
              (WebKit::WebPage::drawRect):
              * WebProcess/WebPage/mac/LayerBackedDrawingAreaMac.mm:
              (WebKit::LayerBackedDrawingArea::syncCompositingLayers):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75276 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f894f68c
    • enne@google.com's avatar
      2011-01-05 Adrienne Walker <enne@google.com> · a3de32ec
      enne@google.com authored
              Reviewed by Kenneth Russell.
      
              Add tests for WebGL's lost context events.
              https://bugs.webkit.org/show_bug.cgi?id=51492
      
              * fast/canvas/webgl/context-lost-expected.txt: Added.
              * fast/canvas/webgl/context-lost-restored-expected.txt: Added.
              * fast/canvas/webgl/context-lost-restored.html: Added.
              * fast/canvas/webgl/context-lost.html: Added.
      2011-01-05  Adrienne Walker  <enne@google.com>
      
              Reviewed by Kenneth Russell.
      
              Add WEBKIT_lose_context WebGL extension.
              https://bugs.webkit.org/show_bug.cgi?id=51492
      
              Tests: fast/canvas/webgl/context-lost-restored.html
                     fast/canvas/webgl/context-lost.html
      
              * CMakeLists.txt:
              * DerivedSources.make:
              * GNUmakefile.am:
              * WebCore.gypi:
              * WebCore.pri:
              * WebCore.pro:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/JSWebGLRenderingContextCustom.cpp:
              (WebCore::toJS):
              (WebCore::JSWebGLRenderingContext::getSupportedExtensions):
              * bindings/v8/custom/V8WebGLRenderingContextCustom.cpp:
              (WebCore::toV8Object):
              (WebCore::V8WebGLRenderingContext::getSupportedExtensionsCallback):
              * html/canvas/WebGLExtension.h:
              * html/canvas/WebGLRenderingContext.cpp:
              (WebCore::WebGLRenderingContext::WebGLRenderingContextRestoreTimer::fired):
              (WebCore::WebGLRenderingContext::getExtension):
              (WebCore::WebGLRenderingContext::getSupportedExtensions):
              (WebCore::WebGLRenderingContext::forceLostContext):
              (WebCore::WebGLRenderingContext::onLostContext):
              (WebCore::WebGLRenderingContext::getNumberOfExtensions):
              (WebCore::WebGLRenderingContext::getExtensionNumber):
              * html/canvas/WebGLRenderingContext.h:
              * html/canvas/WebKitLoseContext.cpp: Copied from WebCore/html/canvas/WebGLExtension.h.
              (WebCore::WebKitLoseContext::WebKitLoseContext):
              (WebCore::WebKitLoseContext::~WebKitLoseContext):
              (WebCore::WebKitLoseContext::getName):
              (WebCore::WebKitLoseContext::create):
              (WebCore::WebKitLoseContext::loseContext):
              * html/canvas/WebKitLoseContext.h: Copied from WebCore/html/canvas/WebGLExtension.h.
              * html/canvas/WebKitLoseContext.idl: Copied from WebCore/html/canvas/WebGLExtension.h.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75271 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a3de32ec
  2. 06 Jan, 2011 3 commits
    • mrobinson@webkit.org's avatar
      2011-01-06 Martin Robinson <mrobinson@igalia.com> · 1d0017da
      mrobinson@webkit.org authored
              Reviewed by Eric Seidel.
      
              [GTK] Initial build support for WebGL
              https://bugs.webkit.org/show_bug.cgi?id=51716
      
              * configure.ac: Add a configure option for WebGL.
      2011-01-06  Martin Robinson  <mrobinson@igalia.com>
      
              Reviewed by Eric Seidel.
      
              [GTK] Initial build support for WebGL
              https://bugs.webkit.org/show_bug.cgi?id=51716
      
              Add initial build support for WebGL and insert bits of implementation
              necessary for clean compilation into GraphicsContext3D.
      
              No new tests. This is just a build change.
      
              * GNUmakefile.am: Add missing files to the source lists.
              * platform/graphics/GraphicsContext3D.h: Include IntSize.h as it's used below.
              Include typedefs necessary for WebGL on GTK+ and consolidate typdefs which are the
              same across different platforms. X11 headers define the VERSION symbol, so it's
              necessary to undefine it, since it's used as an enum value.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75209 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1d0017da
    • mrobinson@webkit.org's avatar
      2011-01-06 Martin Robinson <mrobinson@igalia.com> · ba96ebef
      mrobinson@webkit.org authored
              Reviewed by Eric Seidel.
      
              [GTK] Freetype backend does not support WOFF
              https://bugs.webkit.org/show_bug.cgi?id=51904
      
              * platform/gtk/Skipped: Unskip passing WOFF test. Add results.
              * platform/gtk/fast/css/font-face-woff-expected.checksum: Added.
              * platform/gtk/fast/css/font-face-woff-expected.png: Added.
              * platform/gtk/fast/css/font-face-woff-expected.txt: Added.
      2011-01-06  Martin Robinson  <mrobinson@igalia.com>
      
              Reviewed by Eric Seidel.
      
              [GTK] Freetype backend does not support WOFF
              https://bugs.webkit.org/show_bug.cgi?id=51904
      
              * CMakeListsEfl.txt: Add WOFF support to the sources list.
              * GNUmakefile.am: Add WOFF support to the sources list.
              * platform/graphics/freetype/FontCustomPlatformDataFreeType.cpp:
              (WebCore::createFontCustomPlatformData): Call the WOFF decoder when appropriate.
              (WebCore::FontCustomPlatformData::supportsFormat): Advertise support for WOFF.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75202 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ba96ebef
    • jamesr@google.com's avatar
      2011-01-06 James Robinson <jamesr@chromium.org> · c0dca2a1
      jamesr@google.com authored
              Reviewed by Simon Fraser.
      
              Implement mozilla's animationTime property
              https://bugs.webkit.org/show_bug.cgi?id=51952
      
              Tests for window.webkitAnimationTime.
      
              * animations/animation-time-expected.txt: Added.
              * animations/animation-time.html: Added.
              * animations/script-tests/animation-time.js: Added.
      2011-01-06  James Robinson  <jamesr@chromium.org>
      
              Reviewed by Simon Fraser.
      
              Implement mozilla's animationTime property
              https://bugs.webkit.org/show_bug.cgi?id=51952
      
              Chromium DRT support for webkitAnimationTime.
      
              * DumpRenderTree/chromium/WebViewHost.cpp:
              (WebViewHost::paintInvalidatedRegion):
      2011-01-06  James Robinson  <jamesr@chromium.org>
      
              Reviewed by Simon Fraser.
      
              Implement mozilla's animationTime property
              https://bugs.webkit.org/show_bug.cgi?id=51952
      
              Implements mozilla's animationTime property as described here:
              https://developer.mozilla.org/en/DOM/window.mozAnimationStartTime
              and http://hacks.mozilla.org/2010/08/more-efficient-javascript-animations-with-mozrequestanimationframe/
              The property is called webkitAnimationTime as calling it the 'Start' time is not very informative.
              This property exposes a notion of a 'current' time to use for declarative animations and allows
              scripts to synchronize imperative animations with declarative ones if they choose to.  Once queried
              this time is saved and used for all declarative animation updates until the embedder paints/composites
              the next frame and clears it, or 15ms elapse (in case the embedder isn't producing frames, for example
              if the page is in a background tab).
      
              This patch also ensures that all declarative animations started in the same script execution block
              are synchronized even if some time elapses while script is running.
      
              Test: fast/animation/animation-time.html
      
              * WebCore.gypi:
              * page/DOMWindow.cpp:
              (WebCore::DOMWindow::webkitAnimationTime):
              * page/DOMWindow.h:
              * page/DOMWindow.idl:
              * page/Frame.cpp:
              (WebCore::Frame::currentAnimationTime):
              * page/Frame.h:
              * page/Page.cpp:
              (WebCore::Page::Page):
              * page/Page.h:
              (WebCore::Page::animationTime):
              * page/animation/AnimationController.cpp:
              (WebCore::AnimationControllerPrivate::beginAnimationUpdateTime):
              * page/animation/AnimationTimeController.cpp: Added.
              (WebCore::AnimationTimeController::AnimationTimeController):
              (WebCore::AnimationTimeController::~AnimationTimeController):
              (WebCore::AnimationTimeController::currentAnimationTime):
              (WebCore::AnimationTimeController::clearCurrentAnimationTime):
              (WebCore::AnimationTimeController::clearCurrentAnimationTimeTimerFired):
              * page/animation/AnimationTimeController.h: Added.
              (WebCore::AnimationTimeController::create):
      2011-01-06  James Robinson  <jamesr@chromium.org>
      
              Reviewed by Simon Fraser.
      
              Implement mozilla's animationTime property
              https://bugs.webkit.org/show_bug.cgi?id=51952
      
              WebKit API support for webkitAnimationTime.
      
              * public/WebWidget.h:
              * src/WebPopupMenuImpl.cpp:
              (WebKit::WebPopupMenuImpl::clearCurrentAnimationTime):
              * src/WebPopupMenuImpl.h:
              * src/WebViewImpl.cpp:
              (WebKit::WebViewImpl::clearCurrentAnimationTime):
              * src/WebViewImpl.h:
      2011-01-06  James Robinson  <jamesr@chromium.org>
      
              Reviewed by Simon Fraser.
      
              Implement mozilla's animationTime property
              https://bugs.webkit.org/show_bug.cgi?id=51952
      
              Tells the page to clear the current animation time after producing a frame.
      
              * WebProcess/WebPage/WebPage.cpp:
              (WebKit::WebPage::drawRect):
              * WebProcess/WebPage/ChunkedUpdateDrawingArea.cpp:
              (WebKit::ChunkedUpdateDrawingArea::display):
              (WebKit::ChunkedUpdateDrawingArea::setSize):
              * WebProcess/WebPage/mac/LayerBackedDrawingAreaMac.mm:
              (WebKit::LayerBackedDrawingArea::syncCompositingLayers):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75169 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c0dca2a1
  3. 05 Jan, 2011 1 commit
    • carlosgc@webkit.org's avatar
      2011-01-05 Carlos Garcia Campos <cgarcia@igalia.com> · 57a2f41c
      carlosgc@webkit.org authored
              Reviewed by Martin Robinson.
      
              [GTK] Fork code of ScrollbarThemeGtk that will differ for GTK+ 3
              https://bugs.webkit.org/show_bug.cgi?id=51923
      
              Split out pieces of ScrollbarThemeGtk into ScrollbarThemeGtk2 and
              ScrollbarThemeGtk3 that will differ between GTK+ 2 and GTK+ 3.
      
              No new tests. This should not change functionality.
      
              * GNUmakefile.am: Add ScrollbarThemeGtk2.cpp and ScrollbarThemeGtk3.cpp
              * platform/gtk/ScrollbarThemeGtk.cpp:
              (WebCore::ScrollbarThemeGtk::updateScrollbarsFrameThickness):
              * platform/gtk/ScrollbarThemeGtk.h:
              * platform/gtk/ScrollbarThemeGtk2.cpp: Added.
              (WebCore::ScrollbarThemeGtk::updateThemeProperties):
              (WebCore::ScrollbarThemeGtk::paintTrackBackground):
              (WebCore::ScrollbarThemeGtk::paintScrollbarBackground):
              (WebCore::ScrollbarThemeGtk::paintThumb):
              (WebCore::ScrollbarThemeGtk::paintButton):
              * platform/gtk/ScrollbarThemeGtk3.cpp: Added.
              (WebCore::ScrollbarThemeGtk::updateThemeProperties):
              (WebCore::ScrollbarThemeGtk::paintTrackBackground):
              (WebCore::ScrollbarThemeGtk::paintScrollbarBackground):
              (WebCore::ScrollbarThemeGtk::paintThumb):
              (WebCore::ScrollbarThemeGtk::paintButton):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75070 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      57a2f41c
  4. 04 Jan, 2011 1 commit
    • cfleizach@apple.com's avatar
      WK2: Support Accessibility · aa50410b
      cfleizach@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=51859
      
      Reviewed by Sam Weinig.
      
      Tools: 
      
      Use rootObject() method to get top of accessibility tree.
      
      * DumpRenderTree/mac/AccessibilityControllerMac.mm:
      (AccessibilityController::focusedElement):
      (AccessibilityController::rootElement):
      
      WebCore: 
      
      WK2 doesn't use platform scroll views anymore. Accessibility code
      needs to have its own scroll views. 
      
      Test: platform/mac/accessibility/webkit-scrollarea.html
      
      * CMakeLists.txt:
      * GNUmakefile.am:
      * WebCore.exp.in:
      * WebCore.gypi:
      * WebCore.pro:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.xcodeproj/project.pbxproj:
      * accessibility/AXObjectCache.cpp:
      (WebCore::AXObjectCache::AXObjectCache):
      (WebCore::AXObjectCache::get):
      (WebCore::AXObjectCache::getOrCreate):
      (WebCore::AXObjectCache::rootObject):
      (WebCore::AXObjectCache::remove):
      (WebCore::AXObjectCache::handleScrollbarUpdate):
      * accessibility/AXObjectCache.h:
      (WebCore::AXObjectCache::handleScrollbarUpdate):
      * accessibility/AccessibilityARIAGrid.h:
      * accessibility/AccessibilityAllInOne.cpp:
      * accessibility/AccessibilityImageMapLink.cpp:
      * accessibility/AccessibilityImageMapLink.h:
      * accessibility/AccessibilityListBoxOption.cpp:
      * accessibility/AccessibilityListBoxOption.h:
      * accessibility/AccessibilityObject.cpp:
      (WebCore::AccessibilityObject::updateChildrenIfNecessary):
      (WebCore::AccessibilityObject::elementAccessibilityHitTest):
      (WebCore::AccessibilityObject::axObjectCache):
      (WebCore::AccessibilityObject::focusedUIElement):
      * accessibility/AccessibilityObject.h:
      (WebCore::AccessibilityObject::isAccessibilityScrollView):
      (WebCore::AccessibilityObject::isScrollView):
      (WebCore::AccessibilityObject::canSetNumericValue):
      (WebCore::AccessibilityObject::scrollBar):
      (WebCore::AccessibilityObject::size):
      (WebCore::AccessibilityObject::setValue):
      * accessibility/AccessibilityRenderObject.cpp:
      (WebCore::AccessibilityRenderObject::parentObject):
      (WebCore::AccessibilityRenderObject::accessibilityHitTest):
      (WebCore::AccessibilityRenderObject::updateChildrenIfNecessary):
      (WebCore::AccessibilityRenderObject::addChildren):
      * accessibility/AccessibilityRenderObject.h:
      * accessibility/AccessibilityScrollView.cpp: Added.
      (WebCore::AccessibilityScrollView::AccessibilityScrollView):
      (WebCore::AccessibilityScrollView::create):
      (WebCore::AccessibilityScrollView::scrollBar):
      (WebCore::AccessibilityScrollView::children):
      (WebCore::AccessibilityScrollView::updateChildrenIfNecessary):
      (WebCore::AccessibilityScrollView::removeChildScrollbar):
      (WebCore::AccessibilityScrollView::addChildScrollbar):
      (WebCore::AccessibilityScrollView::addChildren):
      (WebCore::AccessibilityScrollView::webAreaObject):
      (WebCore::AccessibilityScrollView::accessibilityHitTest):
      (WebCore::AccessibilityScrollView::document):
      (WebCore::AccessibilityScrollView::elementRect):
      (WebCore::AccessibilityScrollView::parentObject):
      * accessibility/AccessibilityScrollView.h: Added.
      (WebCore::AccessibilityScrollView::roleValue):
      (WebCore::AccessibilityScrollView::scrollView):
      (WebCore::AccessibilityScrollView::accessibilityIsIgnored):
      (WebCore::AccessibilityScrollView::isAccessibilityScrollView):
      (WebCore::toAccessibilityScrollView):
      * accessibility/AccessibilityScrollbar.cpp:
      (WebCore::AccessibilityScrollbar::AccessibilityScrollbar):
      (WebCore::AccessibilityScrollbar::create):
      (WebCore::AccessibilityScrollbar::elementRect):
      (WebCore::AccessibilityScrollbar::document):
      (WebCore::AccessibilityScrollbar::orientation):
      (WebCore::AccessibilityScrollbar::isEnabled):
      (WebCore::AccessibilityScrollbar::valueForRange):
      (WebCore::AccessibilityScrollbar::setValue):
      * accessibility/AccessibilityScrollbar.h:
      (WebCore::AccessibilityScrollbar::setParent):
      (WebCore::AccessibilityScrollbar::canSetValueAttribute):
      (WebCore::AccessibilityScrollbar::canSetNumericValue):
      (WebCore::AccessibilityScrollbar::isAccessibilityScrollbar):
      (WebCore::AccessibilityScrollbar::parentObject):
      (WebCore::AccessibilityScrollbar::roleValue):
      * accessibility/mac/AccessibilityObjectMac.mm:
      (WebCore::AccessibilityObject::accessibilityIgnoreAttachment):
      * accessibility/mac/AccessibilityObjectWrapper.mm:
      (-[AccessibilityObjectWrapper accessibilityAttributeNames]):
      (-[AccessibilityObjectWrapper remoteAccessibilityParentObject]):
      (-[AccessibilityObjectWrapper position]):
      (-[AccessibilityObjectWrapper scrollViewParent]):
      (-[AccessibilityObjectWrapper accessibilityAttributeValue:]):
      (-[AccessibilityObjectWrapper accessibilityHitTest:]):
      (-[AccessibilityObjectWrapper accessibilitySetValue:forAttribute:]):
      * dom/Document.cpp:
      (WebCore::Document::axObjectCache):
      * loader/EmptyClients.h:
      (WebCore::EmptyFrameLoaderClient::accessibilityRemoteObject):
      * loader/FrameLoaderClient.h:
      * page/FrameView.cpp:
      (WebCore::FrameView::~FrameView):
      (WebCore::FrameView::axObjectCache):
      * page/FrameView.h:
      * platform/ScrollView.cpp:
      (WebCore::ScrollView::setHasHorizontalScrollbar):
      (WebCore::ScrollView::setHasVerticalScrollbar):
      * platform/Scrollbar.cpp:
      (WebCore::Scrollbar::~Scrollbar):
      (WebCore::Scrollbar::scroll):
      (WebCore::Scrollbar::axObjectCache):
      * platform/Scrollbar.h:
      * platform/Widget.h:
      (WebCore::Widget::axObjectCache):
      
      WebKit/gtk: 
      
      Use rootObject() method to get top of ax tree.
      
      * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
      (DumpRenderTreeSupportGtk::getFocusedAccessibleElement):
      * webkit/webkitwebview.cpp:
      (webkit_web_view_get_accessible):
      
      WebKit/mac: 
      
      Use rootObject() method to get top of AX tree.
      
      * WebCoreSupport/WebFrameLoaderClient.h:
      (WebFrameLoaderClient::accessibilityRemoteObject):
      * WebView/WebFrame.mm:
      (-[WebFrame setAccessibleName:]):
      (-[WebFrame accessibilityRoot]):
      * WebView/WebFrameInternal.h:
      * WebView/WebFramePrivate.h:
      * WebView/WebHTMLView.mm:
      (-[WebHTMLView accessibilityAttributeValue:]):
      (-[WebHTMLView accessibilityFocusedUIElement]):
      (-[WebHTMLView accessibilityHitTest:]):
      (-[WebHTMLView _accessibilityParentForSubview:]):
      
      WebKit/win: 
      
      Use rootObject() method to get the top of the AX tree.
      
      * AccessibleDocument.cpp:
      (AccessibleDocument::AccessibleDocument):
      
      WebKit2: 
      
      Implement remote accessibility API to support cross process accessibility
      on the Mac platform.
      
      * Shared/WebProcessCreationParameters.cpp:
      (WebKit::WebProcessCreationParameters::encode):
      (WebKit::WebProcessCreationParameters::decode):
      * Shared/WebProcessCreationParameters.h:
      * UIProcess/API/mac/PageClientImpl.h:
      * UIProcess/API/mac/PageClientImpl.mm:
      (WebKit::PageClientImpl::accessibilityChildTokenReceived):
      * UIProcess/API/mac/WKView.mm:
      (-[WKView initWithFrame:contextRef:pageGroupRef:]):
      (-[WKView _updateWindowAndViewFrames]):
      (-[WKView _setAccessibilityChildToken:]):
      (-[WKView accessibilityIsIgnored]):
      (-[WKView accessibilityHitTest:]):
      (-[WKView accessibilityAttributeValue:]):
      * UIProcess/API/mac/WKViewInternal.h:
      * UIProcess/PageClient.h:
      * UIProcess/WebContext.cpp:
      (WebKit::WebContext::ensureWebProcess):
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::windowAndViewFramesChanged):
      (WebKit::WebPageProxy::didReceiveAccessibilityPageToken):
      (WebKit::WebPageProxy::sendAccessibilityPresenterToken):
      * UIProcess/WebPageProxy.h:
      * UIProcess/WebPageProxy.messages.in:
      * WebKit2.xcodeproj/project.pbxproj:
      * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
      (WebKit::WebFrameLoaderClient::accessibilityRemoteObject):
      * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::windowAndViewFramesChanged):
      * WebProcess/WebPage/WebPage.h:
      (WebKit::WebPage::accessibilityPosition):
      * WebProcess/WebPage/WebPage.messages.in:
      * WebProcess/WebPage/mac/AccessibilityWebPageObject.h: Added.
      * WebProcess/WebPage/mac/AccessibilityWebPageObject.mm: Added.
      (-[AccessibilityWebPageObject setWebPage:]):
      (-[AccessibilityWebPageObject setRemoteParent:]):
      (-[AccessibilityWebPageObject dealloc]):
      (-[AccessibilityWebPageObject accessibilityIsIgnored]):
      (-[AccessibilityWebPageObject accessibilityAttributeNames]):
      (-[AccessibilityWebPageObject accessibilityIsAttributeSettable:]):
      (-[AccessibilityWebPageObject accessibilitySetValue:forAttribute:]):
      (-[AccessibilityWebPageObject accessibilityActionNames]):
      (-[AccessibilityWebPageObject accessibilityChildren]):
      (-[AccessibilityWebPageObject accessibilityAttributeValue:]):
      (-[AccessibilityWebPageObject accessibilityShouldUseUniqueId]):
      (-[AccessibilityWebPageObject accessibilityHitTest:]):
      (-[AccessibilityWebPageObject accessibilityFocusedUIElement]):
      * WebProcess/WebPage/mac/WebPageMac.mm:
      (WebKit::WebPage::platformInitialize):
      (WebKit::WebPage::sendAccessibilityPresenterToken):
      (WebKit::WebPage::accessibilityRemoteObject):
      * WebProcess/WebProcess.cpp:
      (WebKit::WebProcess::initializeWebProcess):
      * WebProcess/WebProcess.h:
      (WebKit::WebProcess::presenterApplicationPid):
      * WebProcess/mac/WebProcessMainMac.mm:
      (WebKit::WebProcessMain):
      
      LayoutTests: 
      
      * platform/mac/accessibility/webkit-scrollarea-expected.txt: Added.
      * platform/mac/accessibility/webkit-scrollarea.html: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75031 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      aa50410b
  5. 01 Jan, 2011 3 commits
  6. 30 Dec, 2010 3 commits
    • mrobinson@webkit.org's avatar
      2010-12-30 Martin Robinson <mrobinson@igalia.com> · c54e30e5
      mrobinson@webkit.org authored
              Reviewed by Xan Lopez.
      
              [GTK] Fork pieces of RenderThemeGtk that will differ for GTK+ 3
              https://bugs.webkit.org/show_bug.cgi?id=51755
      
              Split out pieces of RenderThemeGtk into RenderThemeGtk2 and RenderThemeGtk3
              if they are going to differ between GTK+ 2.x and GTK+ 3.x. This is the preliminary
              step to landing support for the new GTK+ 3.x theming API.
      
              No new tests. This should not change functionality.
      
              * GNUmakefile.am: Add RenderThemeGtk2 and RenderThemeGtk3 to the sources list.
              * platform/gtk/RenderThemeGtk.cpp:
              (WebCore::RenderThemeGtk::adjustTextFieldStyle): Call the setTextInputBorders static method.
              (WebCore::RenderThemeGtk::adjustTextAreaStyle): Ditto.
              (WebCore::RenderThemeGtk::paintMediaButton): Ditto.
              (WebCore::RenderThemeGtk::adjustProgressBarStyle): ditto.
              * platform/gtk/RenderThemeGtk.h: Make setTextInputBorders a method, so that
              it can be exist in RenderThemeGtk{2,3} and be called from RenderThemeGtk.
              * platform/gtk/RenderThemeGtk2.cpp: Added. A fork of the bits of RenderThemeGtk
              that will eventually be platform-dependent.
              * platform/gtk/RenderThemeGtk3.cpp: Added. Ditto.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74817 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c54e30e5
    • darin@apple.com's avatar
      2010-12-30 Darin Adler <darin@apple.com> · f0f276ac
      darin@apple.com authored
              Reviewed by David Kilzer.
      
              Remove unused JSBinding source files
              https://bugs.webkit.org/show_bug.cgi?id=51762
      
              * bindings/js/JSBinding.h: Removed.
              * bindings/js/specialization: Removed.
              * bindings/js/specialization/JSBindingState.cpp: Removed.
              * bindings/js/specialization/JSBindingState.h: Removed.
      
              * CMakeLists.txt: Removed references to files.
              * GNUmakefile.am: Ditto.
              * WebCore.gypi: Ditto.
              * WebCore.pro: Ditto.
              * WebCore.vcproj/WebCore.vcproj: Ditto.
              * bindings/js/JSBindingsAllInOne.cpp: Ditto.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74814 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f0f276ac
    • pfeldman@chromium.org's avatar
      2010-12-29 Pavel Feldman <pfeldman@chromium.org> · 075ed242
      pfeldman@chromium.org authored
              Reviewed by Yury Semikhatsky.
      
              Web Inspector: extract Database & DOM Storage agents; remove InspectorBackend.
              https://bugs.webkit.org/show_bug.cgi?id=51707
      
              This change brushes up storage agents + removes redundant InspectorBackend class.
      
              * CMakeLists.txt:
              * GNUmakefile.am:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * inspector/CodeGeneratorInspector.pm:
              * inspector/InjectedScriptHost.cpp:
              (WebCore::InjectedScriptHost::databaseForId):
              (WebCore::InjectedScriptHost::selectDatabase):
              (WebCore::InjectedScriptHost::selectDOMStorage):
              (WebCore::InjectedScriptHost::inspectorDOMAgent):
              * inspector/Inspector.idl:
              * inspector/InspectorBackend.cpp: Removed.
              * inspector/InspectorBackend.h: Removed.
              * inspector/InspectorController.cpp:
              (WebCore::InspectorController::InspectorController):
              (WebCore::InspectorController::~InspectorController):
              (WebCore::InspectorController::connectFrontend):
              (WebCore::InspectorController::releaseFrontendLifetimeAgents):
              (WebCore::InspectorController::didUseDOMStorage):
              (WebCore::InspectorController::setInjectedScriptSource):
              (WebCore::InspectorController::dispatchOnInjectedScript):
              (WebCore::InspectorController::releaseWrapperObjectGroup):
              * inspector/InspectorController.h:
              * inspector/InspectorDOMStorageAgent.cpp: Added.
              (WebCore::InspectorDOMStorageAgent::~InspectorDOMStorageAgent):
              (WebCore::InspectorDOMStorageAgent::getDOMStorageEntries):
              (WebCore::InspectorDOMStorageAgent::setDOMStorageItem):
              (WebCore::InspectorDOMStorageAgent::removeDOMStorageItem):
              (WebCore::InspectorDOMStorageAgent::selectDOMStorage):
              (WebCore::InspectorDOMStorageAgent::InspectorDOMStorageAgent):
              (WebCore::InspectorDOMStorageAgent::getDOMStorageResourceForId):
              * inspector/InspectorDOMStorageAgent.h: Copied from WebCore/inspector/InspectorStorageAgent.h.
              (WebCore::InspectorDOMStorageAgent::create):
              (WebCore::InspectorDOMStorageAgent::frontend):
              * inspector/InspectorDatabaseAgent.cpp: Renamed from WebCore/inspector/InspectorStorageAgent.cpp.
              (WebCore::InspectorDatabaseAgent::~InspectorDatabaseAgent):
              (WebCore::InspectorDatabaseAgent::getDatabaseTableNames):
              (WebCore::InspectorDatabaseAgent::executeSQL):
              (WebCore::InspectorDatabaseAgent::databaseForId):
              (WebCore::InspectorDatabaseAgent::selectDatabase):
              (WebCore::InspectorDatabaseAgent::clearFrontend):
              (WebCore::InspectorDatabaseAgent::InspectorDatabaseAgent):
              * inspector/InspectorDatabaseAgent.h: Renamed from WebCore/inspector/InspectorStorageAgent.h.
              (WebCore::InspectorDatabaseAgent::create):
              (WebCore::InspectorDatabaseAgent::frontend):
              * inspector/front-end/ScriptsPanel.js:
              (WebInspector.ScriptsPanel.prototype.show):
              (WebInspector.ScriptsPanel.prototype.attachDebuggerWhenShown):
              (WebInspector.ScriptsPanel.prototype._toggleDebugging):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74785 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      075ed242
  7. 29 Dec, 2010 3 commits
    • mrobinson@webkit.org's avatar
      2010-12-27 Amruth Raj <amruthraj@motorola.com> and Ravi Kasibhatla ... · 59b9ac1d
      mrobinson@webkit.org authored
      2010-12-27  Amruth Raj  <amruthraj@motorola.com> and Ravi Kasibhatla  <ravi.kasibhatla@motorola.com>
      
              Reviewed by Martin Robinson.
      
              [GTK] Enable building whatever already exists of WebKit2
              https://bugs.webkit.org/show_bug.cgi?id=37369
      
              No new functionality added or deleted. Only makefile change. Hence, no tests added.
      
              * GNUmakefile.am: Removed bindings/gobject from webcore_sources & webcore_cppflags and
              added them to WebKit/gtk/GNUmakefile.am
              * platform/network/soup/cache/webkit/soup-cache.h: Remove include <webkit/webkitdefines.h>
              and declare WEBKIT_API directly
      2010-12-15  Amruth Raj  <amruthraj@motorola.com> and Ravi Kasibhatla  <ravi.kasibhatla@motorola.com>
      
              Reviewed by Martin Robinson.
      
              [GTK] Enable building whatever already exists of WebKit2
              https://bugs.webkit.org/show_bug.cgi?id=37369
      
              * GNUmakefile.am: Added.
              * WebKit2Prefix.h: Included WebCore/config.h for GTK port as the first header
              file for WebKit2 sources files.
              * gtk: Added.
              * gtk/webkit2.pc.in: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74766 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      59b9ac1d
    • pfeldman@chromium.org's avatar
      2010-12-29 Pavel Feldman <pfeldman@chromium.org> · 72ec867e
      pfeldman@chromium.org authored
              Not reviewed: revert r74755 and 74757.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74761 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      72ec867e
    • pfeldman@chromium.org's avatar
      2010-12-29 Pavel Feldman <pfeldman@chromium.org> · 1c50cf22
      pfeldman@chromium.org authored
              Reviewed by Yury Semikhatsky.
      
              Web Inspector: extract Database & DOM Storage
              agents; remove InspectorBackend.
              https://bugs.webkit.org/show_bug.cgi?id=51707
      
              This change brushes up storage agents + removes redundant
              InspectorBackend class.
      
              * CMakeLists.txt:
              * GNUmakefile.am:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * inspector/CodeGeneratorInspector.pm:
              * inspector/InjectedScriptHost.cpp:
              (WebCore::InjectedScriptHost::databaseForId):
              (WebCore::InjectedScriptHost::selectDatabase):
              (WebCore::InjectedScriptHost::selectDOMStorage):
              (WebCore::InjectedScriptHost::inspectorDOMAgent):
              * inspector/Inspector.idl:
              * inspector/InspectorBackend.cpp: Removed.
              * inspector/InspectorBackend.h: Removed.
              * inspector/InspectorController.cpp:
              (WebCore::InspectorController::InspectorController):
              (WebCore::InspectorController::~InspectorController):
              (WebCore::InspectorController::connectFrontend):
              (WebCore::InspectorController::releaseFrontendLifetimeAgents):
              (WebCore::InspectorController::didUseDOMStorage):
              (WebCore::InspectorController::setInjectedScriptSource):
              (WebCore::InspectorController::dispatchOnInjectedScript):
              (WebCore::InspectorController::releaseWrapperObjectGroup):
              * inspector/InspectorController.h:
              * inspector/InspectorDOMStorageAgent.cpp: Added.
              (WebCore::InspectorDOMStorageAgent::~InspectorDOMStorageAgent):
              (WebCore::InspectorDOMStorageAgent::getDOMStorageEntries):
              (WebCore::InspectorDOMStorageAgent::setDOMStorageItem):
              (WebCore::InspectorDOMStorageAgent::removeDOMStorageItem):
              (WebCore::InspectorDOMStorageAgent::selectDOMStorage):
              (WebCore::InspectorDOMStorageAgent::InspectorDOMStorageAgent):
              (WebCore::InspectorDOMStorageAgent::getDOMStorageResourceForId):
              * inspector/InspectorDOMStorageAgent.h: Copied from WebCore/inspector/InspectorStorageAgent.h.
              (WebCore::InspectorDOMStorageAgent::create):
              (WebCore::InspectorDOMStorageAgent::frontend):
              * inspector/InspectorDatabaseAgent.cpp: Renamed from WebCore/inspector/InspectorStorageAgent.cpp.
              (WebCore::InspectorDatabaseAgent::~InspectorDatabaseAgent):
              (WebCore::InspectorDatabaseAgent::getDatabaseTableNames):
              (WebCore::InspectorDatabaseAgent::executeSQL):
              (WebCore::InspectorDatabaseAgent::databaseForId):
              (WebCore::InspectorDatabaseAgent::selectDatabase):
              (WebCore::InspectorDatabaseAgent::clearFrontend):
              (WebCore::InspectorDatabaseAgent::InspectorDatabaseAgent):
              * inspector/InspectorDatabaseAgent.h: Renamed from WebCore/inspector/InspectorStorageAgent.h.
              (WebCore::InspectorDatabaseAgent::create):
              (WebCore::InspectorDatabaseAgent::frontend):
              * inspector/InspectorFrontendClientLocal.cpp:
              * inspector/InspectorFrontendClientLocal.h:
              * inspector/front-end/ScriptsPanel.js:
              (WebInspector.ScriptsPanel.prototype.show):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74755 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1c50cf22
  8. 22 Dec, 2010 1 commit
  9. 20 Dec, 2010 1 commit
    • xan@webkit.org's avatar
      2010-12-20 Xan Lopez <xlopez@igalia.com> · 6d6a743c
      xan@webkit.org authored
              Reviewed by Gustavo Noronha.
      
              * configure.ac: bump version for 1.3.8 release.
      
      WebCore:
      
      2010-12-20  Xan Lopez  <xlopez@igalia.com>
      
              Reviewed by Gustavo Noronha.
      
              * GNUmakefile.am: add missing files.
      
      WebKit/gtk:
      
      2010-12-20  Xan Lopez  <xlopez@igalia.com>
      
              Reviewed by Gustavo Noronha.
      
              * GNUmakefile.am: add missing files.
              * NEWS: update for 1.3.8 release.
      
      JavaScriptCore:
      
      2010-12-20  Xan Lopez  <xlopez@igalia.com>
      
              Reviewed by Gustavo Noronha.
      
              * GNUmakefile.am: add missing files.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74366 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6d6a743c
  10. 15 Dec, 2010 2 commits
  11. 14 Dec, 2010 4 commits
    • mihaip@chromium.org's avatar
      2010-12-14 Mihai Parparita <mihaip@chromium.org> · b042a70b
      mihaip@chromium.org authored
              Reviewed by Dimitri Glazkov.
      
              Move asynchronous event dispatching out of Document
              https://bugs.webkit.org/show_bug.cgi?id=49785
      
              Move asynchonous event code out of Document and into a standalone
              EventQueue class (which supports async events for both regular nodes
              and the window object).
      
              No new tests necessary, since no new functionality is exposed (existing
              layout tests pass).
      
              * Android.mk:
              * CMakeLists.txt:
              * GNUmakefile.am:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * dom/Document.cpp:
              (WebCore::Document::Document):
              (WebCore::Document::enqueueWindowEvent):
              (WebCore::Document::enqueueHashchangeEvent):
              * dom/DOMAllInOne.cpp:
              (WebCore::Document::eventQueue):
              * dom/Document.h:
              * dom/EventQueue.cpp: Added.
              (WebCore::EventQueue::EventQueue):
              (WebCore::EventQueue::enqueueEvent):
              (WebCore::EventQueue::pendingEventTimerFired):
              (WebCore::EventQueue::dispatchEvent):
              * dom/EventQueue.h: Added.
              * storage/StorageEventDispatcher.cpp:
              (WebCore::StorageEventDispatcher::dispatch):
      2010-12-14  Mihai Parparita  <mihaip@chromium.org>
      
              Reviewed by Dimitri Glazkov.
      
              Move asynchronous event dispatching out of Document
              https://bugs.webkit.org/show_bug.cgi?id=49785
      
              Change enqueueEvent callsite.
      
              * src/StorageAreaProxy.cpp:
              (WebCore::StorageAreaProxy::storageEvent):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74062 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b042a70b
    • japhet@chromium.org's avatar
      2010-12-14 Nate Chapin <japhet@chromium.org> · d7ab4074
      japhet@chromium.org authored
              Reviewed by Adam Barth.
      
              Rename Loader to CachedResourceRequest.
              https://bugs.webkit.org/show_bug.cgi?id=50848
      
              No new tests, rename only.
      
              * Android.mk:
              * CMakeLists.txt:
              * GNUmakefile.am:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * css/CSSStyleSelector.cpp:
              * loader/cache/CachedCSSStyleSheet.cpp:
              * loader/cache/CachedFont.cpp:
              * loader/cache/CachedResource.cpp:
              (WebCore::CachedResource::setRequest):
              * loader/cache/CachedResource.h:
              * loader/cache/CachedResourceLoader.cpp:
              (WebCore::CachedResourceLoader::load):
              (WebCore::CachedResourceLoader::loadDone):
              (WebCore::CachedResourceLoader::cancelRequests):
              * loader/cache/CachedResourceLoader.h:
              * loader/cache/CachedResourceRequest.cpp: Copied from WebCore/loader/loader.cpp.
              * loader/cache/CachedResourceRequest.h: Copied from WebCore/loader/loader.h.
              * loader/loader.cpp: Removed.
              * loader/loader.h: Removed.
              * xml/XSLStyleSheetLibxslt.cpp:
              * xml/XSLTProcessor.cpp:
              * xml/XSLTProcessorLibxslt.cpp:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74049 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d7ab4074
    • dglazkov@chromium.org's avatar
      2010-12-14 Dimitri Glazkov <dglazkov@chromium.org> · a959b3e6
      dglazkov@chromium.org authored
              Fix GTK build by adding source files that were accidentally skipped in
              r74044. Sorry!
      
              * GNUmakefile.am: Added SliderThumbElement.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74047 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a959b3e6
    • dglazkov@chromium.org's avatar
      2010-12-13 Dimitri Glazkov <dglazkov@chromium.org> · 363181d9
      dglazkov@chromium.org authored
              Reviewed by David Levin.
      
              Move SliderThumbElement into its own file.
              https://bugs.webkit.org/show_bug.cgi?id=50973
      
              No change in behavior, so no tests.
      
              * Android.mk: Added SliderThumbElement.
              * CMakeLists.txt: Ditto.
              * WebCore.gyp/WebCore.gyp: Ditto.
              * WebCore.gypi: Ditto.
              * WebCore.pro: Ditto.
              * WebCore.vcproj/WebCore.vcproj: Ditto.
              * WebCore.xcodeproj/project.pbxproj: Ditto,
              * html/shadow/SliderThumbElement.cpp: Added.
              * html/shadow/SliderThumbElement.h: Added.
              * rendering/RenderSlider.cpp: Removed code that was moved into
                  SliderThumbElement.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74044 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      363181d9
  12. 13 Dec, 2010 2 commits
    • yurys@chromium.org's avatar
      2010-12-13 Yury Semikhatsky <yurys@chromium.org> · e42c177c
      yurys@chromium.org authored
              Unreviewed. Rollout 73914, 73915, 73917, 73920 and 73921.
      
              REGRESSION(r73914): "Chromium page_cycler_morejs fails" (Requested by yurys on #webkit).
              https://bugs.webkit.org/show_bug.cgi?id=50950
      
              * fast/events/resources/window-onerror.js: Removed.
              * fast/events/window-onerror1-expected.txt: Removed.
              * fast/events/window-onerror1.html: Removed.
              * fast/events/window-onerror10-expected.txt: Removed.
              * fast/events/window-onerror10.html: Removed.
              * fast/events/window-onerror11-expected.txt: Removed.
              * fast/events/window-onerror11.html: Removed.
              * fast/events/window-onerror2-expected.txt: Removed.
              * fast/events/window-onerror2.html: Removed.
              * fast/events/window-onerror3-expected.txt: Removed.
              * fast/events/window-onerror3.html: Removed.
              * fast/events/window-onerror4-expected.txt: Removed.
              * fast/events/window-onerror4.html: Removed.
              * fast/events/window-onerror5-expected.txt: Removed.
              * fast/events/window-onerror5.html: Removed.
              * fast/events/window-onerror6-expected.txt: Removed.
              * fast/events/window-onerror6.html: Removed.
              * fast/events/window-onerror7-expected.txt: Removed.
              * fast/events/window-onerror7.html: Removed.
              * fast/events/window-onerror8-expected.txt: Removed.
              * fast/events/window-onerror8.html: Removed.
              * fast/events/window-onerror9-expected.txt: Removed.
              * fast/events/window-onerror9.html: Removed.
              * fast/workers/worker-script-error-expected.txt:
              * http/tests/security/resources/onerror-iframe.html: Removed.
              * http/tests/security/window-onerror-exception-in-iframe-expected.txt: Removed.
              * http/tests/security/window-onerror-exception-in-iframe.html: Removed.
              * platform/chromium-win/fast/workers/worker-script-error-expected.txt:
              * platform/chromium/fast/events/window-onerror1-expected.txt: Removed.
              * platform/chromium/fast/events/window-onerror10-expected.txt: Removed.
              * platform/chromium/fast/events/window-onerror11-expected.txt: Removed.
              * platform/chromium/fast/events/window-onerror2-expected.txt: Removed.
              * platform/chromium/fast/events/window-onerror3-expected.txt: Removed.
              * platform/chromium/fast/events/window-onerror4-expected.txt: Removed.
              * platform/chromium/fast/events/window-onerror5-expected.txt: Removed.
              * platform/chromium/fast/events/window-onerror6-expected.txt: Removed.
              * platform/chromium/fast/events/window-onerror7-expected.txt: Removed.
              * platform/chromium/fast/events/window-onerror8-expected.txt: Removed.
              * platform/chromium/fast/events/window-onerror9-expected.txt: Removed.
              * platform/chromium/http/tests/security/window-onerror-exception-in-iframe-expected.txt: Removed.
              * platform/chromium/userscripts/window-onerror-for-isolated-world-1-expected.txt: Removed.
              * platform/chromium/userscripts/window-onerror-for-isolated-world-2-expected.txt: Removed.
              * platform/gtk/Skipped:
              * userscripts/window-onerror-for-isolated-world-1-expected.txt: Removed.
              * userscripts/window-onerror-for-isolated-world-1.html: Removed.
              * userscripts/window-onerror-for-isolated-world-2-expected.txt: Removed.
              * userscripts/window-onerror-for-isolated-world-2.html: Removed.
      2010-12-13  Yury Semikhatsky  <yurys@chromium.org>
      
              Unreviewed. Rollout 73914, 73915, 73917, 73920 and 73921.
      
              REGRESSION(r73914): "Chromium page_cycler_morejs fails" (Requested by yurys on #webkit).
              https://bugs.webkit.org/show_bug.cgi?id=50950
      
              * Android.jscbindings.mk:
              * CMakeLists.txt:
              * GNUmakefile.am:
              * WebCore.gypi:
              * WebCore.order:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/JSBindingsAllInOne.cpp:
              * bindings/js/JSDOMBinding.cpp:
              (WebCore::reportException):
              * bindings/js/JSWorkerContextErrorHandler.cpp: Renamed from WebCore/bindings/js/JSErrorHandler.cpp.
              (WebCore::JSWorkerContextErrorHandler::JSWorkerContextErrorHandler):
              (WebCore::JSWorkerContextErrorHandler::~JSWorkerContextErrorHandler):
              (WebCore::JSWorkerContextErrorHandler::handleEvent):
              * bindings/js/JSWorkerContextErrorHandler.h: Renamed from WebCore/bindings/js/JSErrorHandler.h.
              (WebCore::JSWorkerContextErrorHandler::create):
              (WebCore::createJSWorkerContextErrorHandler):
              * bindings/scripts/CodeGeneratorJS.pm:
              * bindings/scripts/CodeGeneratorV8.pm:
              * bindings/v8/V8ConsoleMessage.cpp:
              (WebCore::V8ConsoleMessage::dispatchNow):
              (WebCore::V8ConsoleMessage::handler):
              * bindings/v8/V8ConsoleMessage.h:
              * bindings/v8/V8WindowErrorHandler.cpp: Removed.
              * bindings/v8/V8WindowErrorHandler.h: Removed.
              * bindings/v8/WorkerContextExecutionProxy.cpp:
              (WebCore::v8MessageHandler):
              * bindings/v8/WorkerScriptController.cpp:
              (WebCore::WorkerScriptController::evaluate):
              * dom/Document.cpp:
              (WebCore::Document::reportException):
              (WebCore::Document::addMessage):
              * dom/Document.h:
              * dom/ErrorEvent.cpp:
              * dom/ErrorEvent.h:
              * dom/Event.cpp:
              * dom/Event.h:
              * dom/ScriptExecutionContext.cpp:
              (WebCore::ScriptExecutionContext::ScriptExecutionContext):
              * dom/ScriptExecutionContext.h:
              * websockets/WebSocket.cpp:
              (WebCore::WebSocket::connect):
              * websockets/WebSocketChannel.cpp:
              (WebCore::WebSocketChannel::didOpen):
              (WebCore::WebSocketChannel::appendToBuffer):
              * websockets/WebSocketHandshake.cpp:
              (WebCore::WebSocketHandshake::readServerHandshake):
              (WebCore::WebSocketHandshake::readStatusLine):
              (WebCore::WebSocketHandshake::readHTTPHeaders):
              (WebCore::WebSocketHandshake::checkResponseHeaders):
              * workers/DefaultSharedWorkerRepository.cpp:
              (WebCore::postExceptionTask):
              (WebCore::postConsoleMessageTask):
              * workers/WorkerContext.cpp:
              (WebCore::WorkerContext::WorkerContext):
              (WebCore::WorkerContext::reportException):
              (WebCore::WorkerContext::addMessage):
              * workers/WorkerContext.h:
              * workers/WorkerMessagingProxy.cpp:
              (WebCore::WorkerExceptionTask::performTask):
              (WebCore::postConsoleMessageTask):
              * xml/XMLHttpRequest.cpp:
              (WebCore::reportUnsafeUsage):
      2010-12-13  Yury Semikhatsky  <yurys@chromium.org>
      
              Unreviewed. Rollout 73914, 73915, 73917, 73920 and 73921.
      
              REGRESSION(r73914): "Chromium page_cycler_morejs fails" (Requested by yurys on #webkit).
              https://bugs.webkit.org/show_bug.cgi?id=50950
      
              * src/WebWorkerClientImpl.cpp:
              (WebKit::WebWorkerClientImpl::postExceptionToWorkerObject):
              (WebKit::WebWorkerClientImpl::postConsoleMessageToWorkerObject):
              (WebKit::WebWorkerClientImpl::postExceptionToWorkerObjectTask):
              (WebKit::WebWorkerClientImpl::postConsoleMessageToWorkerObjectTask):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73939 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e42c177c
    • yurys@chromium.org's avatar
      2010-12-13 Yury Semikhatsky <yurys@chromium.org> · 68b2822e
      yurys@chromium.org authored
              Reviewed by Adam Barth.
      
              WebCore doesn't fire window.onerror event when uncaught JavaScript exceptions are thrown
              https://bugs.webkit.org/show_bug.cgi?id=8519
      
              Uncaught exceptions are propagated to window.onerror hander if one is present.
              The handler is expected to be a function accepting three arguments: error message,
              resource url and line number where the exception occured.
      
              * fast/events/resources/window-onerror.js: Added.
              (throwException):
              * fast/events/window-onerror1-expected.txt: Added.
              * fast/events/window-onerror1.html: Added.
              * fast/events/window-onerror10-expected.txt: Added.
              * fast/events/window-onerror10.html: Added.
              * fast/events/window-onerror11-expected.txt: Added.
              * fast/events/window-onerror11.html: Added.
              * fast/events/window-onerror2-expected.txt: Added.
              * fast/events/window-onerror2.html: Added.
              * fast/events/window-onerror3-expected.txt: Added.
              * fast/events/window-onerror3.html: Added.
              * fast/events/window-onerror4-expected.txt: Added.
              * fast/events/window-onerror4.html: Added.
              * fast/events/window-onerror5-expected.txt: Added.
              * fast/events/window-onerror5.html: Added.
              * fast/events/window-onerror6-expected.txt: Added.
              * fast/events/window-onerror6.html: Added.
              * fast/events/window-onerror7-expected.txt: Added.
              * fast/events/window-onerror7.html: Added.
              * fast/events/window-onerror8-expected.txt: Added.
              * fast/events/window-onerror8.html: Added.
              * fast/events/window-onerror9-expected.txt: Added.
              * fast/events/window-onerror9.html: Added.
              * fast/workers/worker-script-error-expected.txt:
              * http/tests/security/resources/onerror-iframe.html: Added.
              * http/tests/security/window-onerror-exception-in-iframe-expected.txt: Added.
              * http/tests/security/window-onerror-exception-in-iframe.html: Added.
              * platform/chromium-win/fast/workers/worker-script-error-expected.txt:
              * platform/chromium/fast/events/window-onerror1-expected.txt: Added.
              * platform/chromium/fast/events/window-onerror10-expected.txt: Added.
              * platform/chromium/fast/events/window-onerror11-expected.txt: Added.
              * platform/chromium/fast/events/window-onerror2-expected.txt: Added.
              * platform/chromium/fast/events/window-onerror3-expected.txt: Added.
              * platform/chromium/fast/events/window-onerror4-expected.txt: Added.
              * platform/chromium/fast/events/window-onerror5-expected.txt: Added.
              * platform/chromium/fast/events/window-onerror6-expected.txt: Added.
              * platform/chromium/fast/events/window-onerror7-expected.txt: Added.
              * platform/chromium/fast/events/window-onerror8-expected.txt: Added.
              * platform/chromium/fast/events/window-onerror9-expected.txt: Added.
              * platform/chromium/http/tests/security/window-onerror-exception-in-iframe-expected.txt: Added.
              * platform/chromium/userscripts/window-onerror-for-isolated-world-1-expected.txt: Added.
              * platform/chromium/userscripts/window-onerror-for-isolated-world-2-expected.txt: Added.
              * userscripts/window-onerror-for-isolated-world-1-expected.txt: Added.
              * userscripts/window-onerror-for-isolated-world-1.html: Added.
              * userscripts/window-onerror-for-isolated-world-2-expected.txt: Added.
              * userscripts/window-onerror-for-isolated-world-2.html: Added.
      2010-12-13  Yury Semikhatsky  <yurys@chromium.org>
      
              Reviewed by Adam Barth.
      
              WebCore doesn't fire window.onerror event when uncaught JavaScript exceptions are thrown
              https://bugs.webkit.org/show_bug.cgi?id=8519
      
              Uncaught exceptions are propagated to window.onerror hander if one is present.
              The handler is expected to be a function accepting three arguments: error message,
              resource url and line number where the exception occured.
      
              It was decided to dispatch ErrorEvent to all listeners/handlers no matter if they
              were created in the same isolated world where the exception occured or not.
      
              Tests: fast/events/window-onerror1.html
                     fast/events/window-onerror10.html
                     fast/events/window-onerror11.html
                     fast/events/window-onerror2.html
                     fast/events/window-onerror3.html
                     fast/events/window-onerror4.html
                     fast/events/window-onerror5.html
                     fast/events/window-onerror6.html
                     fast/events/window-onerror7.html
                     fast/events/window-onerror8.html
                     fast/events/window-onerror9.html
                     http/tests/security/window-onerror-exception-in-iframe.html
                     userscripts/window-onerror-for-isolated-world-1.html
                     userscripts/window-onerror-for-isolated-world-2.html
      
              * Android.jscbindings.mk:
              * CMakeLists.txt:
              * GNUmakefile.am:
              * WebCore.gypi:
              * WebCore.order:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/JSBindingsAllInOne.cpp:
              * bindings/js/JSDOMBinding.cpp:
              (WebCore::reportException):
              * bindings/js/JSErrorHandler.cpp: Renamed from WebCore/bindings/js/JSWorkerContextErrorHandler.cpp.
              (WebCore::JSErrorHandler::JSErrorHandler):
              (WebCore::JSErrorHandler::~JSErrorHandler):
              (WebCore::JSErrorHandler::handleEvent):
              * bindings/js/JSErrorHandler.h: Copied from WebCore/bindings/js/JSWorkerContextErrorHandler.h.
              (WebCore::JSErrorHandler::create):
              (WebCore::createJSErrorHandler):
              * bindings/scripts/CodeGeneratorJS.pm:
              * bindings/scripts/CodeGeneratorV8.pm:
              * bindings/v8/V8ConsoleMessage.cpp:
              (WebCore::V8ConsoleMessage::dispatchNow):
              (WebCore::V8ConsoleMessage::handler): the method was changed to use generic WebCore exception
              reporting mechanism which is also used by JSC bindings.
              * bindings/v8/V8ConsoleMessage.h:
              * bindings/v8/V8WindowErrorHandler.cpp: Copied from WebCore/bindings/js/JSWorkerContextErrorHandler.h.
              (WebCore::V8WindowErrorHandler::V8WindowErrorHandler):
              (WebCore::V8WindowErrorHandler::callListenerFunction):
              * bindings/v8/V8WindowErrorHandler.h: Renamed from WebCore/bindings/js/JSWorkerContextErrorHandler.h.
              (WebCore::V8WindowErrorHandler::create):
              * bindings/v8/WorkerContextExecutionProxy.cpp:
              (WebCore::v8MessageHandler):
              * bindings/v8/WorkerScriptController.cpp:
              (WebCore::WorkerScriptController::evaluate):
              * dom/Document.cpp:
              (WebCore::Document::errorEventTarget):
              (WebCore::Document::logExceptionToConsole):
              * dom/Document.h:
              * dom/ScriptExecutionContext.cpp:
              (WebCore::ScriptExecutionContext::PendingException::PendingException):
              (WebCore::ScriptExecutionContext::ScriptExecutionContext):
              (WebCore::ScriptExecutionContext::reportException): this method is not virtual anymore to
              ensure that error event dispatching algorithm is the same in WorkerContext and in Document.
              (WebCore::ScriptExecutionContext::dispatchErrorEvent):
              * dom/ScriptExecutionContext.h:
              * workers/DefaultSharedWorkerRepository.cpp:
              (WebCore::postExceptionTask):
              * workers/WorkerContext.cpp:
              (WebCore::WorkerContext::WorkerContext):
              (WebCore::WorkerContext::errorEventTarget):
              (WebCore::WorkerContext::logExceptionToConsole):
              * workers/WorkerContext.h:
              * workers/WorkerMessagingProxy.cpp:
              (WebCore::WorkerExceptionTask::performTask):
      2010-12-13  Yury Semikhatsky  <yurys@chromium.org>
      
              Reviewed by Adam Barth.
      
              WebCore doesn't fire window.onerror event when uncaught JavaScript exceptions are thrown
              https://bugs.webkit.org/show_bug.cgi?id=8519
      
              Uncaught exceptions are propagated to window.onerror hander if one is present.
              The handler is expected to be a function accepting three arguments: error message,
              resource url and line number where the exception occured.
      
              * src/WebWorkerClientImpl.cpp:
              (WebKit::WebWorkerClientImpl::postExceptionToWorkerObject):
              (WebKit::WebWorkerClientImpl::postExceptionToWorkerObjectTask):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73914 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      68b2822e
  13. 12 Dec, 2010 2 commits
    • morrita@google.com's avatar
      2010-10-28 MORITA Hajime <morrita@google.com> · 7a18feed
      morrita@google.com authored
              Reviewed by Ojan Vafai.
      
              spellcheck does not check pasted text
              https://bugs.webkit.org/show_bug.cgi?id=40092
      
              * editing/spelling/script-tests/spellcheck-paste.js: Added.
              * editing/spelling/spellcheck-paste.html: Added.
              * editing/spelling/spellcheck-paste-expected.txt: Added.
              * platform/chromium/test_expectations.txt:
              * platform/gtk/Skipped:
              * platform/mac-leopard/Skipped:
              * platform/mac-tiger/Skipped:
              * platform/mac-wk2/Skipped:
              * platform/qt/Skipped:
              * platform/win/Skipped:
      2010-10-28  MORITA Hajime  <morrita@google.com>
      
              Reviewed by Ojan Vafai.
      
              spellcheck does not check pasted text
              https://bugs.webkit.org/show_bug.cgi?id=40092
      
              - Introduced SpellChecker class to encapsulate asynchronous spell
                checker state: sequence id, requesting text and target node.
                This is also the first step to decompose spell-check related
                code to a separate class.
              - Added EditorClient::isAsynchronousSpellCheckingEnabled()
                to use async spellcheck API on the platform.
                These APIs are touched by SpellChecker.
              - Used SpellChecker to check a pasted test. Text to check is
                collected from the subtree under the editingRoot.
              - Added Setting::m_asynchronousSpellCheckingEnabled to control
                async spell checking.
      
              Test: editing/spelling/spellcheck-paste.html
      
              * CMakeLists.txt:
              * GNUmakefile.am:
              * WebCore.exp.in:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * dom/DocumentMarkerController.cpp:
              (WebCore::DocumentMarkerController::showMarkers):
              (showDocumentMarkers):
              * dom/DocumentMarkerController.h:
              * dom/PositionIterator.cpp:
              (WebCore::PositionIterator::setOffsetInLeafNode):
              * dom/PositionIterator.h:
              * editing/Editor.cpp:
              (WebCore::Editor::replaceSelectionWithFragment):
              (WebCore::Editor::Editor):
              (WebCore::findFirstMarkable):
              (WebCore::Editor::selectionStartHasSpellingMarkerFor):
              * editing/Editor.h:
              (WebCore::Editor::spellChecker):
              * editing/SpellChecker.cpp: Added.
              (WebCore::SpellChecker::SpellChecker):
              (WebCore::SpellChecker::~SpellChecker):
              (WebCore::SpellChecker::initRequest):
              (WebCore::SpellChecker::clearRequest):
              (WebCore::SpellChecker::isAsynchronousEnabled):
              (WebCore::SpellChecker::canCheckAsynchronously):
              (WebCore::SpellChecker::isBusy):
              (WebCore::SpellChecker::isValid):
              (WebCore::SpellChecker::isCheckable):
              (WebCore::SpellChecker::requestCheckingFor):
              (WebCore::forwardIterator):
              (WebCore::SpellChecker::didCheck):
              * editing/SpellChecker.h: Added.
              (WebCore::SpellCheckingResult::SpellCheckingResult):
              (WebCore::SpellCheckingResult::type):
              (WebCore::SpellCheckingResult::location):
              (WebCore::SpellCheckingResult::length):
              * loader/EmptyClients.h:
              (WebCore::EmptyEditorClient::requestCheckingOfString):
              * page/EditorClient.h:
              * page/Settings.cpp:
              (WebCore::Settings::Settings):
              * page/Settings.h:
              (WebCore::Settings::setAsynchronousSpellCheckingEnabled):
              (WebCore::Settings::asynchronousSpellCheckingEnabled):
      2010-10-28  MORITA Hajime  <morrita@google.com>
      
              Reviewed by Ojan Vafai.
      
              spellcheck does not check pasted text
              https://bugs.webkit.org/show_bug.cgi?id=40092
      
              Added a stub implememntation.
      
              * src/EditorClientImpl.h:
              (WebKit::EditorClientImpl::requestCheckingOfString):
      2010-10-28  MORITA Hajime  <morrita@google.com>
      
              Reviewed by Ojan Vafai.
      
              spellcheck does not check pasted text
              https://bugs.webkit.org/show_bug.cgi?id=40092
      
              Added a stub implememntation.
      
              * WebCoreSupport/EditorClientEfl.h:
              (WebCore::EditorClientEfl::requestCheckingOfString):
      2010-10-28  MORITA Hajime  <morrita@google.com>
      
              Reviewed by Ojan Vafai.
      
              spellcheck does not check pasted text
              https://bugs.webkit.org/show_bug.cgi?id=40092
      
              Added a stub implememntation.
      
              * WebCoreSupport/EditorClientGtk.h:
              (WebKit::EditorClient::requestCheckingOfString):
      2010-10-28  MORITA Hajime  <morrita@google.com>
      
              Reviewed by Ojan Vafai.
      
              spellcheck does not check pasted text
              https://bugs.webkit.org/show_bug.cgi?id=40092
      
              Added a stub implememntation.
      
              * WebCoreSupport/EditorClientHaiku.h:
              (WebCore::EditorClientHaiku::requestCheckingOfString):
      2010-10-28  MORITA Hajime  <morrita@google.com>
      
              Reviewed by Ojan Vafai.
      
              spellcheck does not check pasted text
              https://bugs.webkit.org/show_bug.cgi?id=40092
      
              Added asynchronous spell checking API to WebEditorClient using
              -[NSSpellChecker requestCheckingOfString].
              Note that WebEditorSpellCheckResponder is a small class to receive
              requested spell-checking result. Note that this feature is
              disabled at default.
      
              Also added [WebPreferences setAsynchronousSpellCheckingEnabled:] to
              enable the feature from LayoutTestController.
      
              * WebCoreSupport/WebEditorClient.h:
              * WebCoreSupport/WebEditorClient.mm:
              (-[WebEditorSpellCheckResponder initWithSender:WebCore::sequence:results:]):
              (-[WebEditorSpellCheckResponder perform]):
              (toCoreSpellingResult):
              (-[WebEditorSpellCheckResponder WTF::WebCore::]):
              (WebEditorClient::requestCheckingOfString):
              * WebView/WebPreferenceKeysPrivate.h:
              * WebView/WebPreferences.mm:
              (+[WebPreferences initialize]):
              (-[WebPreferences setAsynchronousSpellCheckingEnabled:]):
              (-[WebPreferences asynchronousSpellCheckingEnabled]):
              * WebView/WebPreferencesPrivate.h:
              * WebView/WebView.mm:
              (-[WebView _preferencesChangedNotification:]):
      2010-10-28  MORITA Hajime  <morrita@google.com>
      
              Reviewed by Ojan Vafai.
      
              spellcheck does not check pasted text
              https://bugs.webkit.org/show_bug.cgi?id=40092
      
              Added a stub implememntation.
      
              * WebCoreSupport/EditorClientQt.h:
              (WebCore::EditorClientQt::requestCheckingOfString):
      2010-10-28  MORITA Hajime  <morrita@google.com>
      
              Reviewed by Ojan Vafai.
      
              spellcheck does not check pasted text
              https://bugs.webkit.org/show_bug.cgi?id=40092
      
              Added a stub implememntation.
      
              * WebCoreSupport/WebEditorClient.h:
              (WebEditorClient::requestCheckingOfString):
      2010-10-28  MORITA Hajime  <morrita@google.com>
      
              Reviewed by Ojan Vafai.
      
              spellcheck does not check pasted text
              https://bugs.webkit.org/show_bug.cgi?id=40092
      
              Added a stub implememntation.
      
              * WebCoreSupport/EditorClientWinCE.h:
              (WebKit::EditorClient::requestCheckingOfString):
      2010-10-28  MORITA Hajime  <morrita@google.com>
      
              Reviewed by Ojan Vafai.
      
              spellcheck does not check pasted text
              https://bugs.webkit.org/show_bug.cgi?id=40092
      
              Added a stub implememntation.
      
              * WebKitSupport/EditorClientWx.h:
              (WebCore::EditorClientWx::requestCheckingOfString):
      2010-10-28  MORITA Hajime  <morrita@google.com>
      
              Reviewed by Ojan Vafai.
      
              spellcheck does not check pasted text
              https://bugs.webkit.org/show_bug.cgi?id=40092
      
              Added a stub implememntation.
      
              * WebProcess/WebCoreSupport/WebEditorClient.cpp:
              (WebKit::WebEditorClient::requestCheckingOfString):
              * WebProcess/WebCoreSupport/WebEditorClient.h:
      2010-10-28  MORITA Hajime  <morrita@google.com>
      
              Reviewed by Ojan Vafai.
      
              spellcheck does not check pasted text
              https://bugs.webkit.org/show_bug.cgi?id=40092
      
              Added LayoutTestController::setAsynchronousSpellCheckingEnabled()
              to control the setting.
      
              * DumpRenderTree/LayoutTestController.cpp:
              (setAsynchronousSpellCheckingEnabledCallback):
              (LayoutTestController::staticFunctions):
              * DumpRenderTree/LayoutTestController.h:
              * DumpRenderTree/chromium/LayoutTestController.h:
              * DumpRenderTree/chromium/LayoutTestController.cpp:
              (LayoutTestController::LayoutTestController):
              (LayoutTestController::setAsynchronousSpellCheckingEnabled):
              * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
              (LayoutTestController::setAsynchronousSpellCheckingEnabled):
              * DumpRenderTree/mac/DumpRenderTree.mm:
              (resetDefaultsToConsistentValues):
              * DumpRenderTree/mac/LayoutTestControllerMac.mm:
              (LayoutTestController::setAsynchronousSpellCheckingEnabled):
              * DumpRenderTree/qt/LayoutTestControllerQt.h:
              * DumpRenderTree/qt/LayoutTestControllerQt.cpp:
              (LayoutTestController::setAsynchronousSpellCheckingEnabled):
              * DumpRenderTree/win/LayoutTestControllerWin.cpp:
              (LayoutTestController::setAsynchronousSpellCheckingEnabled):
              * DumpRenderTree/wx/LayoutTestControllerWx.cpp:
              (LayoutTestController::setAsynchronousSpellCheckingEnabled):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73886 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7a18feed
    • philn@webkit.org's avatar
      2010-12-12 Philippe Normand <pnormand@igalia.com> · 1927b01a
      philn@webkit.org authored
              Reviewed by Xan Lopez.
      
              build-webkit --gtk --minimal fails
              https://bugs.webkit.org/show_bug.cgi?id=46267
      
              No new tests, build fix only.
      
              * GNUmakefile.am: Include some JS bindings generated headers in
              the build even if their corresponding feature is disabled. They
              are needed to make the DOM bindings build.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73872 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1927b01a
  14. 10 Dec, 2010 6 commits
    • kbr@google.com's avatar
      2010-12-10 Kenneth Russell <kbr@google.com> · 81bb4971
      kbr@google.com authored
              Reviewed by James Robinson.
      
              Implement extension entry points and remove EXTENSIONS enum
              https://bugs.webkit.org/show_bug.cgi?id=40316
      
              Added support for ensuring that a particular OpenGL extension is
              enabled.
      
              * public/WebGraphicsContext3D.h:
              * src/Extensions3DChromium.cpp:
              (WebCore::Extensions3DChromium::ensureEnabled):
              * src/GraphicsContext3DChromium.cpp:
              (WebCore::GraphicsContext3DInternal::initializeExtensions):
              (WebCore::GraphicsContext3DInternal::supportsExtension):
              (WebCore::GraphicsContext3DInternal::ensureExtensionEnabled):
              * src/GraphicsContext3DInternal.h:
              * src/WebGraphicsContext3DDefaultImpl.cpp:
              (WebKit::WebGraphicsContext3DDefaultImpl::getRequestableExtensionsCHROMIUM):
              (WebKit::WebGraphicsContext3DDefaultImpl::requestExtensionCHROMIUM):
              * src/WebGraphicsContext3DDefaultImpl.h:
      2010-12-10  Kenneth Russell  <kbr@google.com>
      
              Reviewed by James Robinson.
      
              Implement extension entry points and remove EXTENSIONS enum
              https://bugs.webkit.org/show_bug.cgi?id=40316
      
              Implemented WebGLRenderingContext's getSupportedExtensions and
              getExtensions entry points, and, to verify them, added support for
              the first specified WebGL extension, OES_texture_float. This
              extension is now advertised in the Chromium and WebKit ports when
              the underlying hardware supports it.
      
              The new OES_texture_float test in the WebGL conformance suite
              verifies the allocation and population of floating point textures,
              and their use as render targets. However, because this extension
              is optional, it is not easily testable with a layout test; there
              is only one set of expectations for a given test, and two would be
              needed, one when the extension is available and one when it is not.
      
              Tested with the oes-texture-float.html WebGL conformance test in
              Chromium and WebKit on Mac OS X on hardware that supports the
              extension. Also verified with a configuration that does not
              advertise the extension that this same test passes.
      
              * CMakeLists.txt:
              * DerivedSources.make:
              * GNUmakefile.am:
              * WebCore.gypi:
              * WebCore.pri:
              * WebCore.pro:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/JSWebGLRenderingContextCustom.cpp:
              (WebCore::toJS):
              (WebCore::JSWebGLRenderingContext::markChildren):
              (WebCore::JSWebGLRenderingContext::getExtension):
              (WebCore::JSWebGLRenderingContext::getSupportedExtensions):
              * bindings/v8/custom/V8WebGLRenderingContextCustom.cpp:
              (WebCore::toV8Object):
              (WebCore::V8WebGLRenderingContext::getExtensionCallback):
              (WebCore::V8WebGLRenderingContext::getSupportedExtensionsCallback):
              * html/canvas/OESTextureFloat.cpp: Added.
              (WebCore::OESTextureFloat::OESTextureFloat):
              (WebCore::OESTextureFloat::~OESTextureFloat):
              (WebCore::OESTextureFloat::getName):
              (WebCore::OESTextureFloat::create):
              * html/canvas/OESTextureFloat.h: Added.
              * html/canvas/OESTextureFloat.idl: Added.
              * html/canvas/WebGLExtension.cpp: Added.
              (WebCore::WebGLExtension::WebGLExtension):
              (WebCore::WebGLExtension::~WebGLExtension):
              * html/canvas/WebGLExtension.h: Added.
              * html/canvas/WebGLRenderingContext.cpp:
              (WebCore::WebGLRenderingContext::getExtension):
              (WebCore::WebGLRenderingContext::getSupportedExtensions):
              (WebCore::WebGLRenderingContext::validateTexFuncFormatAndType):
              (WebCore::WebGLRenderingContext::validateTexFuncData):
              (WebCore::WebGLRenderingContext::getNumberOfExtensions):
              (WebCore::WebGLRenderingContext::getExtensionNumber):
              * html/canvas/WebGLRenderingContext.h:
              * html/canvas/WebGLRenderingContext.idl:
              * platform/graphics/Extensions3D.h:
              * platform/graphics/GraphicsContext3D.cpp:
              (WebCore::GraphicsContext3D::computeFormatAndTypeParameters):
              (WebCore::GraphicsContext3D::extractTextureData):
              (WebCore::doUnpackingAndPacking):
              (WebCore::doPacking):
              (WebCore::doFloatingPointPacking):
              (WebCore::GraphicsContext3D::packPixels):
              * platform/graphics/GraphicsContext3D.h:
              * platform/graphics/chromium/Extensions3DChromium.h:
              * platform/graphics/opengl/Extensions3DOpenGL.cpp:
              (WebCore::Extensions3DOpenGL::supports):
              (WebCore::Extensions3DOpenGL::ensureEnabled):
              * platform/graphics/opengl/Extensions3DOpenGL.h:
              * platform/graphics/opengl/GraphicsContext3DOpenGL.cpp:
              (WebCore::GraphicsContext3D::texImage2D):
              * platform/graphics/qt/Extensions3DQt.cpp:
              (WebCore::Extensions3DQt::ensureEnabled):
              * platform/graphics/qt/Extensions3DQt.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73806 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      81bb4971
    • commit-queue@webkit.org's avatar
      2010-12-09 Jenn Braithwaite <jennb@chromium.org> · b4be94a9
      commit-queue@webkit.org authored
              Reviewed by Adam Barth.
      
              TextResourceDecoder::checkForHeadCharset can look way past the limit.
              https://bugs.webkit.org/show_bug.cgi?id=47397
      
              Replaced charset detection algorithm with real parser.
              Added tests for parser bugs mentioned in the thread for this bug report.
              Converted hixie's encoding parsing tests to a layout test.
      
              Tests: fast/encoding/bracket-in-script.html
                     fast/encoding/bracket-in-tag.html
                     fast/encoding/escaped-bracket.html
                     fast/encoding/meta-in-body.html
                     fast/encoding/meta-in-script.html
                     fast/encoding/meta-in-title.html
                     fast/encoding/mismatched-end-tag.html
                     fast/encoding/namespace-meta.html
                     fast/encoding/not-http-equiv-content.html
                     fast/encoding/parser-tests.html
                     fast/encoding/quotes-in-title.html
                     fast/encoding/tag-name-digit.html
                     http/tests/misc/charset-sniffer-end-sniffing.html
      
              * Android.mk:
              * CMakeLists.txt:
              * GNUmakefile.am:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * html/parser/HTMLMetaCharsetParser.cpp: Added.
              (WebCore::HTMLMetaCharsetParser::HTMLMetaCharsetParser):
              (WebCore::HTMLMetaCharsetParser::~HTMLMetaCharsetParser):
              (WebCore::HTMLMetaCharsetParser::extractCharset):
              (WebCore::HTMLMetaCharsetParser::processMeta):
              (WebCore::HTMLMetaCharsetParser::checkForMetaCharset):
              * html/parser/HTMLMetaCharsetParser.h: Added.
              (WebCore::HTMLMetaCharsetParser::create):
              (WebCore::HTMLMetaCharsetParser::encoding):
              * loader/TextResourceDecoder.cpp:
              (WebCore::TextResourceDecoder::checkForHeadCharset):
              (WebCore::TextResourceDecoder::checkForMetaCharset):
              * loader/TextResourceDecoder.h:
      2010-12-09  Jenn Braithwaite  <jennb@chromium.org>
      
              Reviewed by Adam Barth.
      
              TextResourceDecoder::checkForHeadCharset can look way past the limit.
              https://bugs.webkit.org/show_bug.cgi?id=47397
      
              Replaced charset detection algorithm with real parser.
              Added tests for parser bugs mentioned in the thread for this bug report.
              Converted hixie's encoding parsing tests to a layout test.
              Added http-equiv attribute to meta tag in 2 existing tests.
      
              * fast/encoding/bracket-in-script-expected.txt: Added.
              * fast/encoding/bracket-in-script.html: Added.
              * fast/encoding/bracket-in-tag-expected.txt: Added.
              * fast/encoding/bracket-in-tag.html: Added.
              * fast/encoding/escaped-bracket-expected.txt: Added.
              * fast/encoding/escaped-bracket.html: Added.
              * fast/encoding/meta-in-body-expected.txt: Added.
              * fast/encoding/meta-in-body.html: Added.
              * fast/encoding/meta-in-script-expected.txt: Added.
              * fast/encoding/meta-in-script.html: Added.
              * fast/encoding/meta-in-title-expected.txt: Added.
              * fast/encoding/meta-in-title.html: Added.
              * fast/encoding/mismatched-end-tag-expected.txt: Added.
              * fast/encoding/mismatched-end-tag.html: Added.
              * fast/encoding/namespace-meta-expected.txt: Added.
              * fast/encoding/namespace-meta.html: Added.
              * fast/encoding/namespace-tolerance.html:
              * fast/encoding/not-http-equiv-content-expected.txt: Added.
              * fast/encoding/not-http-equiv-content.html: Added.
              * fast/encoding/parser-tests-expected.txt: Added.
              * fast/encoding/parser-tests.html: Added.
              * fast/encoding/quotes-in-title-expected.txt: Added.
              * fast/encoding/quotes-in-title.html: Added.
              * fast/encoding/resources/001.html: Added.
              * fast/encoding/resources/002.html: Added.
              * fast/encoding/resources/003.html: Added.
              * fast/encoding/resources/004.html: Added.
              * fast/encoding/resources/005.html: Added.
              * fast/encoding/resources/006.html: Added.
              * fast/encoding/resources/007.html: Added.
              * fast/encoding/resources/008.html: Added.
              * fast/encoding/resources/009.html: Added.
              * fast/encoding/resources/010.html: Added.
              * fast/encoding/resources/011.html: Added.
              * fast/encoding/resources/012.html: Added.
              * fast/encoding/resources/013.html: Added.
              * fast/encoding/resources/014.html: Added.
              * fast/encoding/resources/015.html: Added.
              * fast/encoding/resources/016.html: Added.
              * fast/encoding/resources/017.html: Added.
              * fast/encoding/resources/018.html: Added.
              * fast/encoding/resources/019.html: Added.
              * fast/encoding/resources/020.html: Added.
              * fast/encoding/resources/021.html: Added.
              * fast/encoding/resources/022.html: Added.
              * fast/encoding/resources/023.html: Added.
              * fast/encoding/resources/024.html: Added.
              * fast/encoding/resources/025.html: Added.
              * fast/encoding/resources/026.html: Added.
              * fast/encoding/resources/027.html: Added.
              * fast/encoding/resources/028.html: Added.
              * fast/encoding/resources/029.html: Added.
              * fast/encoding/resources/030.html: Added.
              * fast/encoding/resources/031.html: Added.
              * fast/encoding/resources/032.html: Added.
              * fast/encoding/resources/033.html: Added.
              * fast/encoding/resources/034.html: Added.
              * fast/encoding/resources/035.html: Added.
              * fast/encoding/resources/036.html: Added.
              * fast/encoding/resources/037.html: Added.
              * fast/encoding/resources/038.html: Added.
              * fast/encoding/resources/039.html: Added.
              * fast/encoding/resources/040.html: Added.
              * fast/encoding/resources/041.html: Added.
              * fast/encoding/resources/042.html: Added.
              * fast/encoding/resources/043.html: Added.
              * fast/encoding/resources/044.html: Added.
              * fast/encoding/resources/045.html: Added.
              * fast/encoding/resources/046.html: Added.
              * fast/encoding/resources/047.html: Added.
              * fast/encoding/resources/048.html: Added.
              * fast/encoding/resources/049.html: Added.
              * fast/encoding/resources/050.html: Added.
              * fast/encoding/resources/051.html: Added.
              * fast/encoding/resources/052.html: Added.
              * fast/encoding/resources/053.html: Added.
              * fast/encoding/resources/054.html: Added.
              * fast/encoding/resources/055.html: Added.
              * fast/encoding/resources/056.html: Added.
              * fast/encoding/resources/057.html: Added.
              * fast/encoding/resources/058.html: Added.
              * fast/encoding/resources/059.html: Added.
              * fast/encoding/resources/060.html: Added.
              * fast/encoding/resources/061.html: Added.
              * fast/encoding/resources/062.html: Added.
              * fast/encoding/resources/063.html: Added.
              * fast/encoding/resources/064.html: Added.
              * fast/encoding/resources/065.html: Added.
              * fast/encoding/resources/066.html: Added.
              * fast/encoding/resources/067.html: Added.
              * fast/encoding/resources/068.html: Added.
              * fast/encoding/resources/069.html: Added.
              * fast/encoding/resources/070.html: Added.
              * fast/encoding/resources/071.html: Added.
              * fast/encoding/resources/072.html: Added.
              * fast/encoding/resources/073.html: Added.
              * fast/encoding/resources/074.html: Added.
              * fast/encoding/resources/075.html: Added.
              * fast/encoding/resources/076.html: Added.
              * fast/encoding/resources/077.html: Added.
              * fast/encoding/resources/078.html: Added.
              * fast/encoding/resources/079.html: Added.
              * fast/encoding/resources/080.html: Added.
              * fast/encoding/resources/081.html: Added.
              * fast/encoding/resources/082.html: Added.
              * fast/encoding/resources/083.html: Added.
              * fast/encoding/resources/084.html: Added.
              * fast/encoding/resources/085.html: Added.
              * fast/encoding/resources/086.html: Added.
              * fast/encoding/resources/087.html: Added.
              * fast/encoding/resources/088.html: Added.
              * fast/encoding/resources/089.html: Added.
              * fast/encoding/resources/090.html: Added.
              * fast/encoding/resources/091.html: Added.
              * fast/encoding/resources/092.html: Added.
              * fast/encoding/resources/093.html: Added.
              * fast/encoding/resources/094.html: Added.
              * fast/encoding/resources/095.html: Added.
              * fast/encoding/resources/096.html: Added.
              * fast/encoding/resources/097.html: Added.
              * fast/encoding/resources/098.html: Added.
              * fast/encoding/resources/099.html: Added.
              * fast/encoding/resources/100.html: Added.
              * fast/encoding/resources/101.html: Added.
              * fast/encoding/resources/102.html: Added.
              * fast/encoding/resources/103.html: Added.
              * fast/encoding/resources/104.html: Added.
              * fast/encoding/resources/105.html: Added.
              * fast/encoding/resources/106.html: Added.
              * fast/encoding/resources/107.html: Added.
              * fast/encoding/resources/108.html: Added.
              * fast/encoding/resources/109.html: Added.
              * fast/encoding/resources/110.html: Added.
              * fast/encoding/resources/111.html: Added.
              * fast/encoding/resources/112.html: Added.
              * fast/encoding/resources/113.html: Added.
              * fast/encoding/resources/114.html: Added.
              * fast/encoding/resources/115.html: Added.
              * fast/encoding/resources/116.html: Added.
              * fast/encoding/resources/117.html: Added.
              * fast/encoding/resources/118.html: Added.
              * fast/encoding/resources/119.html: Added.
              * fast/encoding/resources/120.html: Added.
              * fast/encoding/resources/121.html: Added.
              * fast/encoding/resources/122.html: Added.
              * fast/encoding/resources/123.html: Added.
              * fast/encoding/tag-name-digit-expected.txt: Added.
              * fast/encoding/tag-name-digit.html: Added.
              * fast/text/international/bidi-innertext.html:
              * http/tests/misc/charset-sniffer-end-sniffing-expected.txt: Added.
              * http/tests/misc/charset-sniffer-end-sniffing.html: Added.
              * http/tests/misc/resources/charset-sniffer-end-sniffing.php: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73756 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b4be94a9
    • japhet@chromium.org's avatar
      2010-12-10 Nate Chapin <japhet@chromium.org> · f8d43691
      japhet@chromium.org authored
              Reviewed by Antti Koivisto.
      
              Merge Loader and Request. Currently, Loader is a singleton attached
              to MemoryCache. Our goal is to remove knowledge of the loading process
              from MemoryCache, so we should attach Loader to CachedResourceLoader instead.
              Once Loader is moved off of MemoryCache, there's no reason it needs to be a singleton,
              which removes the main reason for Request existing as a separate class (to store per-request
              state that Loader couldn't).
      
              Loader will be given a more descriptive name in a later patch.
      
              https://bugs.webkit.org/show_bug.cgi?id=49837
      
              Refactor only, no new tests.
      
              * Android.mk:
              * CMakeLists.txt:
              * GNUmakefile.am:
              * WebCore.gypi:
              * WebCore.pro:
              * loader/FrameLoader.cpp:
              * loader/Request.cpp:
              * loader/Request.h:
              * loader/cache/CachedFont.cpp:
              * loader/cache/CachedImage.cpp:
              * loader/cache/CachedResource.cpp:
              * loader/cache/CachedResource.h:
              * loader/cache/CachedResourceLoader.cpp:
              (WebCore::CachedResourceLoader::CachedResourceLoader):
              (WebCore::CachedResourceLoader::~CachedResourceLoader):
              (WebCore::CachedResourceLoader::requestImage):
              (WebCore::CachedResourceLoader::setAutoLoadImages):
              (WebCore::CachedResourceLoader::load):
              (WebCore::CachedResourceLoader::loadDone): Was setLoadInProgress(false),
                  plus other CachedResourceLoader cleanup that had been handled in Loader.
              (WebCore::CachedResourceLoader::cancelRequests): Moved from Loader.
              (WebCore::CachedResourceLoader::requestCount):
              * loader/cache/CachedResourceLoader.h:
              (WebCore::CachedResourceLoader::loadFinishing): Was setLoadInProgress(true)
              * loader/cache/MemoryCache.h:
              * loader/loader.cpp:
              (WebCore::Loader::Loader):
              (WebCore::Loader::~Loader):
              (WebCore::Loader::load):
              (WebCore::Loader::willSendRequest):
              (WebCore::Loader::didFinishLoading):
              (WebCore::Loader::didFail):
              (WebCore::Loader::didReceiveResponse):
              (WebCore::Loader::didReceiveData):
              (WebCore::Loader::didReceiveCachedMetadata):
              * loader/loader.h:
              (WebCore::Loader::cachedResourceLoader):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73749 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f8d43691
    • philn@webkit.org's avatar
      2010-12-10 Philippe Normand <pnormand@igalia.com> · 7a878367
      philn@webkit.org authored
              Reviewed by Gustavo Noronha Silva.
      
              [GStreamer] data: source could also support non-base64 encoded URIs
              https://bugs.webkit.org/show_bug.cgi?id=30007
      
              Removed our ancient implementation of dataurisrc. We should now
              use the one in gst-plugins-bad which is more mature.
      
              * GNUmakefile.am:
              * platform/graphics/gstreamer/DataSourceGStreamer.cpp: Removed.
              * platform/graphics/gstreamer/DataSourceGStreamer.h: Removed.
              * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
              (WebCore::doGstInit):
      
      LayoutTests:
      
              Reviewed by Gustavo Noronha Silva.
      
              [GStreamer] data: source could also support non-base64 encoded URIs
              https://bugs.webkit.org/show_bug.cgi?id=30007
      
              * platform/gtk/Skipped: Unskipped media/audio-data-url.html. It
              should now be much more reliable on the bots running latest
              GStreamer versions.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73700 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7a878367
    • rniwa@webkit.org's avatar
      2010-12-09 Ryosuke Niwa <rniwa@webkit.org> · b69181d8
      rniwa@webkit.org authored
              Reviewed by Ojan Vafai.
      
              Make DOM Mutation Events Asynchronous
              https://bugs.webkit.org/show_bug.cgi?id=46936
      
              Implemented DOM mutations events as scoped events. A scoped event is an event whose
              dispatch is done via ScopedEventQueue. The behavior of the queue is controlled by
              EventQueueScope objects (RAII idiom), which increments and decrements the scoping level
              on its constructor and destructor respectively.
      
              When the scoping level is 0 (initial level), scoped events are dispatched as soon as
              they are enqueued and act like synchronous events. When the scoping level is greater than 0,
              however, events are queued in ScopedEventQueue and their dispatches are delayed until
              the scoping level goes back to 0 (by the destruction of EventQueueScope).
      
              DOMSubtreeModified, DOMNodeInserted, DOMNodeRemoved, DOMNodeRemovedFromDocument,
              DOMNodeInsertedIntoDocument, DOMFocusIn, DOMFocusOut, focusin, and focusout are treated as
              scoped events, and a scope object is instantiated in EditCommand::apply to delay dispatches
              of the events until the completion of each call of EditCommand::doApply.
      
              Test: fast/events/mutation/execCommands.html
      
              * Android.mk: Added ScopedEventQueue.cpp.
              * CMakeLists.txt: Ditto.
              * WebCore.pro: Ditto.
              * GNUmakefile.am: Added ScopedEventQueue.cpp and ScopedEventQueue.h.
              * WebCore.gypi:  Ditto.
              * WebCore.vcproj/project.vcproj: Ditto.
              * WebCore.xcodeproj/project.pbxproj: Ditto.
              * dom/ContainerNode.cpp:
              (WebCore::dispatchChildInsertionEvents): Calls dispatchScopedEvent.
              (WebCore::dispatchChildRemovalEvents): Ditto.
              * dom/DOMAllInOne.cpp: Added ScopedEventQueue.cpp.
              * dom/Element.cpp:
              (WebCore::Element::dispatchAttrRemovalEvent): Ditto. 
              (WebCore::Element::dispatchAttrAdditionEvent): Ditto.
              * dom/Node.cpp:
              (WebCore::Node::dispatchScopedEvent): Added.
              (WebCore::Node::dispatchSubtreeModifiedEvent): Calls dispatchScopedEvent.
              * dom/Node.h:
              * dom/ScopedEventQueue.cpp: Added.
              (WebCore::ScopedEventQueue::initialize): Added.
              (WebCore::ScopedEventQueue::enqueueEvent): Added.
              (WebCore::ScopedEventQueue::dispatchAllEvents): Added.
              (WebCore::ScopedEventQueue::dispatchEvent): Added.
              (WebCore::ScopedEventQueue::instance): Added.
              (WebCore::ScopedEventQueue::incrementScopingLevel): Added.
              (WebCore::ScopedEventQueue::decrementScopingLevel): Added.
              * dom/ScopedEventQueue.h: Added.
              (WebCore::ScopedEventQueue::~ScopedEventQueue): Added.
              (WebCore::ScopedEventQueue::ScopedEventQueue): Added.
              (WebCore::EventQueueScope::EventQueueScope): Added.
              (WebCore::EventQueueScope::~EventQueueScope): Added.
              * editing/EditCommand.cpp:
              (WebCore::EditCommand::apply): Instantiates EventQueueScope.
      2010-12-09  Ryosuke Niwa  <rniwa@webkit.org>
      
              Reviewed by Ojan Vafai.
      
              Make DOM Mutation Events Asynchronous
              https://bugs.webkit.org/show_bug.cgi?id=46936
      
              Added a test to ensure no DOM mutation events are fired while execCommand is in progress.
      
              * fast/events/crash-on-mutate-during-drop.html: DOMNodeInserted is fired after BR is detached
              from the document, and can't be observed. Modify the DOM when text node is inserted.
              * fast/events/scoped: Added.
              * fast/events/scoped/editing-commands-expected.txt: Added.
              * fast/events/scoped/editing-commands.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73690 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b69181d8
    • rniwa@webkit.org's avatar
      2010-12-09 Sheriff Bot <webkit.review.bot@gmail.com> · 1a796035
      rniwa@webkit.org authored
              Unreviewed, rolling out r73684.
              http://trac.webkit.org/changeset/73684
              https://bugs.webkit.org/show_bug.cgi?id=50801
      
              "missing bug number" (Requested by rniwa on #webkit).
      
              * Android.mk:
              * CMakeLists.txt:
              * GNUmakefile.am:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * dom/ContainerNode.cpp:
              (WebCore::dispatchChildInsertionEvents):
              (WebCore::dispatchChildRemovalEvents):
              * dom/DOMAllInOne.cpp:
              * dom/Element.cpp:
              (WebCore::Element::dispatchAttrRemovalEvent):
              (WebCore::Element::dispatchAttrAdditionEvent):
              * dom/Node.cpp:
              (WebCore::Node::dispatchSubtreeModifiedEvent):
              (WebCore::Node::dispatchUIEvent):
              * dom/Node.h:
              * dom/ScopedEventQueue.cpp: Removed.
              * dom/ScopedEventQueue.h: Removed.
              * editing/EditCommand.cpp:
              (WebCore::EditCommand::apply):
      2010-12-09  Sheriff Bot  <webkit.review.bot@gmail.com>
      
              Unreviewed, rolling out r73684.
              http://trac.webkit.org/changeset/73684
              https://bugs.webkit.org/show_bug.cgi?id=50801
      
              "missing bug number" (Requested by rniwa on #webkit).
      
              * fast/events/crash-on-mutate-during-drop.html:
              * fast/events/scoped/editing-commands-expected.txt: Removed.
              * fast/events/scoped/editing-commands.html: Removed.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73689 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1a796035
  15. 09 Dec, 2010 3 commits
    • rniwa@webkit.org's avatar
      2010-12-09 Ryosuke Niwa <rniwa@webkit.org> · 59951184
      rniwa@webkit.org authored
              Reviewed by Ojan Vafai.
      
              Implemented DOM mutations events as scoped events. A scoped event is an event whose
              dispatch is done via ScopedEventQueue. The behavior of the queue is controlled by
              EventQueueScope objects (RAII idiom), which increments and decrements the scoping level
              on its constructor and destructor respectively.
      
              When the scoping level is 0 (initial level), scoped events are dispatched as soon as
              they are enqueued and act like synchronous events. When the scoping level is greater than 0,
              however, events are queued in ScopedEventQueue and their dispatches are delayed until
              the scoping level goes back to 0 (by the destruction of EventQueueScope).
      
              DOMSubtreeModified, DOMNodeInserted, DOMNodeRemoved, DOMNodeRemovedFromDocument,
              DOMNodeInsertedIntoDocument, DOMFocusIn, DOMFocusOut, focusin, and focusout are treated as
              scoped events, and a scope object is instantiated in EditCommand::apply to delay dispatches
              of the events until the completion of each call of EditCommand::doApply.
      
              Test: fast/events/mutation/execCommands.html
      
              * Android.mk: Added ScopedEventQueue.cpp.
              * CMakeLists.txt: Ditto.
              * WebCore.pro: Ditto.
              * GNUmakefile.am: Added ScopedEventQueue.cpp and ScopedEventQueue.h.
              * WebCore.gypi:  Ditto.
              * WebCore.vcproj/project.vcproj: Ditto.
              * WebCore.xcodeproj/project.pbxproj: Ditto.
              * dom/ContainerNode.cpp:
              (WebCore::dispatchChildInsertionEvents): Calls dispatchScopedEvent.
              (WebCore::dispatchChildRemovalEvents): Ditto.
              * dom/DOMAllInOne.cpp: Added ScopedEventQueue.cpp.
              * dom/Element.cpp:
              (WebCore::Element::dispatchAttrRemovalEvent): Ditto. 
              (WebCore::Element::dispatchAttrAdditionEvent): Ditto.
              * dom/Node.cpp:
              (WebCore::Node::dispatchScopedEvent): Added.
              (WebCore::Node::dispatchSubtreeModifiedEvent): Calls dispatchScopedEvent.
              * dom/Node.h:
              * dom/ScopedEventQueue.cpp: Added.
              (WebCore::ScopedEventQueue::initialize): Added.
              (WebCore::ScopedEventQueue::enqueueEvent): Added.
              (WebCore::ScopedEventQueue::dispatchAllEvents): Added.
              (WebCore::ScopedEventQueue::dispatchEvent): Added.
              (WebCore::ScopedEventQueue::instance): Added.
              (WebCore::ScopedEventQueue::incrementScopingLevel): Added.
              (WebCore::ScopedEventQueue::decrementScopingLevel): Added.
              * dom/ScopedEventQueue.h: Added.
              (WebCore::ScopedEventQueue::~ScopedEventQueue): Added.
              (WebCore::ScopedEventQueue::ScopedEventQueue): Added.
              (WebCore::EventQueueScope::EventQueueScope): Added.
              (WebCore::EventQueueScope::~EventQueueScope): Added.
              * editing/EditCommand.cpp:
              (WebCore::EditCommand::apply): Instantiates EventQueueScope.
      2010-12-09  Ryosuke Niwa  <rniwa@webkit.org>
      
              Reviewed by Ojan Vafai.
      
              Added a test to ensure no DOM mutation events are fired while execCommand is in progress.
      
              * fast/events/crash-on-mutate-during-drop.html: DOMNodeInserted is fired after BR is detached
              from the document, and can't be observed. Modify the DOM when text node is inserted.
              * fast/events/mutation: Added.
              * fast/events/mutation/execCommands.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73684 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      59951184
    • kbr@google.com's avatar
      2010-12-09 Kenneth Russell <kbr@google.com> · 28baa6a6
      kbr@google.com authored
              Unreviewed. Another speculative Gtk build fix after r73669. Add
              needed derived sources to GNUmakefile.am.
      
              * GNUmakefile.am:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73674 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      28baa6a6
    • philn@webkit.org's avatar
      2010-12-06 Philippe Normand <pnormand@igalia.com> · 9d37a571
      philn@webkit.org authored
              Reviewed by Martin Robinson.
      
              [GTK] Support the Mozilla-style Fullscreen Javascript API
              https://bugs.webkit.org/show_bug.cgi?id=50572
      
              * configure.ac: new configure flag to disable the new Javascript
              Fullscreen API build. It is enabled by default.
      
      WebCore:
      
              Reviewed by Martin Robinson.
      
              [GTK] Support the Mozilla-style Fullscreen Javascript API
              https://bugs.webkit.org/show_bug.cgi?id=50572
      
              * GNUmakefile.am: enable the Javascript Fullscreen API feature if
              it's been requested at configure time.
      
      WebKit/gtk:
      
              Reviewed by Martin Robinson.
      
              [GTK] Support the Mozilla-style Fullscreen Javascript API
              https://bugs.webkit.org/show_bug.cgi?id=50572
      
              Fullscreen API support. It is controlled at runtime using a new
              setting called enable-fullscreen, set to FALSE by default.
      
              * WebCoreSupport/ChromeClientGtk.cpp:
              (WebKit::ChromeClient::supportsFullScreenForElement):
              (WebKit::ChromeClient::enterFullScreenForElement):
              (WebKit::ChromeClient::exitFullScreenForElement):
              * WebCoreSupport/ChromeClientGtk.h:
              * webkit/webkitwebsettings.cpp:
              (webkit_web_settings_class_init):
              (webkit_web_settings_set_property):
              (webkit_web_settings_get_property):
              (webkit_web_settings_copy):
              * webkit/webkitwebview.cpp:
              (webkit_web_view_update_settings):
      
      WebKitTools:
      
              Reviewed by Martin Robinson.
      
              [GTK] Support the Mozilla-style Fullscreen Javascript API
              https://bugs.webkit.org/show_bug.cgi?id=50572
      
              Enable the Javascript Fullscreen support in the GtkLauncher. Also
              make DRT update the Chrome when the WebView settings have been
              reset to consistent values.
      
              * DumpRenderTree/gtk/DumpRenderTree.cpp:
              (resetDefaultsToConsistentValues):
              * GtkLauncher/main.c:
              (create_window):
              * Scripts/build-webkit:
      
      LayoutTests:
      
              Reviewed by Martin Robinson.
      
              [GTK] Support the Mozilla-style Fullscreen Javascript API
              https://bugs.webkit.org/show_bug.cgi?id=50572
      
              * platform/gtk/Skipped: Unskip now passing fullscreen tests.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73624 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9d37a571
  16. 08 Dec, 2010 1 commit
    • bweinstein@apple.com's avatar
      Layering Violation in ContextMenu - member variable of type HitTestResult · ff7b94c4
      bweinstein@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=50586
              
      Reviewed by John Sullivan.
      
      WebCore: 
      
      ContextMenu had a layering violation by having a member variable of type HitTestResult, because
      classes in WebCore/platform can't know about classes in WebCore.
              
      This patch moves the HitTestResult and all functions that use it out of ContextMenu into ContextMenuController.
      All of the functions that dealt with populating the ContextMenu are now in ContextMenuController, and this
      allowed us to delete the ContextMenu file, putting all of the cross-platform code that used to be it
      in ContextMenuController, and the rest of the code is in the platform-specific files.
      
      No change in behavior, no new tests.
      
      * Android.mk: Removed ContextMenu.cpp.
      * CMakeLists.txt: Ditto.
      * GNUmakefile.am: Ditto.
      * WebCore.gypi: Ditto.
      * WebCore.pro: Ditto.
      * WebCore.vcproj/WebCore.vcproj: Ditto.
      * WebCore.xcodeproj/project.pbxproj: Ditto.
      
      * page/ContextMenuController.cpp:
      (WebCore::ContextMenuController::ContextMenuController): Initialized m_hitTestResult to an empty HitTestResult.
      (WebCore::ContextMenuController::handleContextMenuEvent): Call populate on the ContextMenuController instead
          of the ContextMenu.
      (WebCore::ContextMenuController::createContextMenu): Fix some indination, and store the HitTestResult in a member
          variable.
      (WebCore::ContextMenuController::showContextMenu): Call addInspectElementItem on the ContextMenuController.
      (WebCore::ContextMenuController::contextMenuItemSelected): Use m_hitTestResult whenever we need a HitTestResult.
      (WebCore::ContextMenuController::appendItem): Validates the item for its state, and then appends it to the parent menu.
          This allowed us to move checkOrEnableIfNeeded from ContextMenu.
      
      These functions were all moved from ContextMenu, and changed slightly to fit in ContextMenuController.
      All calls to ContextMenu::appendItem were changed to ContextMenuController::appendItem, which takes care
      of validating the menu.
      (WebCore::separatorItem): Moved from ContextMenu.
      (WebCore::ContextMenuController::createAndAppendFontSubMenu): Ditto.
      (WebCore::ContextMenuController::createAndAppendSpellingAndGrammarSubMenu): Ditto.
      (WebCore::ContextMenuController::createAndAppendSpeechSubMenu): Ditto.
      (WebCore::ContextMenuController::createAndAppendWritingDirectionSubMenu): Ditto.
      (WebCore::ContextMenuController::createAndAppendTextDirectionSubMenu): Ditto.
      (WebCore::ContextMenuController::createAndAppendSubstitutionsSubMenu): Ditto.
      (WebCore::ContextMenuController::createAndAppendTransformationsSubMenu): Ditto.
      (WebCore::selectionContainsPossibleWord): Ditto.
      (WebCore::ContextMenuController::populate): Ditto.
      (WebCore::ContextMenuController::addInspectElementItem): Ditto.
      (WebCore::ContextMenuController::checkOrEnableIfNeeded): Ditto.
              
      * page/ContextMenuController.h:
      (WebCore::ContextMenuController::hitTestResult): Returns the HitTestResult of the current ContextMenu.
      
      * platform/ContextMenu.cpp: Removed.
      * platform/ContextMenu.h:
      * platform/efl/ContextMenuEfl.cpp:
      (WebCore::ContextMenu::ContextMenu): Removed m_hitTestResult from the constructor.
      (WebCore::ContextMenu::appendItem): Removed the call to checkOrEnableIfNeeded.
      * platform/gtk/ContextMenuGtk.cpp:
      (WebCore::ContextMenu::ContextMenu): Removed m_hitTestResult from the constructor.
      (WebCore::ContextMenu::appendItem): Ditto.
      * platform/haiku/ContextMenuHaiku.cpp:
      (WebCore::ContextMenu::ContextMenu): Removed m_hitTestResult from the constructor.
      (WebCore::ContextMenu::appendItem): Ditto.
      (WebCore::ContextMenu::insertItem): Ditto.
      * platform/mac/ContextMenuMac.mm:
      (-[WebCoreMenuTarget validateMenuItem:]): Calls checkOrEnableIfNeeded on the controller instead of
          the context menu.
      (WebCore::ContextMenu::ContextMenu): Removed m_hitTestResult from the constructor.
      (WebCore::ContextMenu::appendItem): Removed the call to checkOrEnableIfNeeded.
      (WebCore::ContextMenu::insertItem): Ditto.
      * platform/win/ContextMenuWin.cpp:
      (WebCore::ContextMenu::ContextMenu): Removed m_hitTestResult from the constructor.
      (WebCore::ContextMenu::insertItem): Removed the call to checkOrEnableIfNeeded.
      * platform/wx/ContextMenuWx.cpp:
      (WebCore::ContextMenu::ContextMenu): Removed m_hitTestResult from the constructor.
      (ContextMenu::appendItem): Ditto.
      
      WebKit/chromium: 
      
      Update users of ContextMenu and ContextMenuController to match where the new functions 
      are located.
      
      * src/ContextMenuClientImpl.cpp:
      (WebKit::selectMisspelledWord):
      (WebKit::ContextMenuClientImpl::getCustomMenuFromDefaultItems):
      
      WebKit/gtk: 
      
      Update users of ContextMenu and ContextMenuController to match where the new functions 
      are located.
      
      * WebCoreSupport/ContextMenuClientGtk.cpp:
      (WebKit::ContextMenuClient::getCustomMenuFromDefaultItems):
      
      WebKit/mac: 
      
      Update users of ContextMenu and ContextMenuController to match where the new functions 
      are located.
      
      * WebCoreSupport/WebContextMenuClient.mm:
      (WebContextMenuClient::getCustomMenuFromDefaultItems):
      (WebContextMenuClient::contextMenuItemSelected):
      * WebView/WebHTMLView.mm:
      (-[WebMenuTarget validateMenuItem:]):
      
      WebKit/qt: 
      
      Update users of ContextMenu and ContextMenuController to match where the new functions 
      are located.
      
      * Api/qwebpage.cpp:
      (QWebPagePrivate::createContextMenu):
      (QWebPage::updatePositionDependentActions):
      
      WebKit/win: 
      
      Update users of ContextMenu and ContextMenuController to match where the new functions 
      are located.
      
      * WebCoreSupport/WebContextMenuClient.cpp:
      (WebContextMenuClient::getCustomMenuFromDefaultItems): Get the HitTestResult and ContextMenu from the 
          ContextMenuController (from the page).
      (WebContextMenuClient::contextMenuItemSelected): Get the HitTestResult from the ContextMenuController.
      * WebView.cpp:
      (WebView::handleContextMenuEvent): Ditto.
      
      WebKit2: 
      
      Update users of ContextMenu and ContextMenuController to match where the new functions 
      are located.
      
      * Shared/WebContextMenuItemData.cpp:
      (WebKit::WebContextMenuItemData::WebContextMenuItemData): Remove the call to checkOrEnableItem, that call will be made when
          the ContextMenuItem is added to the ContextMenu through the ContextMenuController.
      * WebProcess/WebPage/WebContextMenu.cpp:
      (WebKit::WebContextMenu::show):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73535 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ff7b94c4
  17. 07 Dec, 2010 1 commit
    • tkent@chromium.org's avatar
      2010-12-07 Kenichi Ishibashi <bashi@google.com> · 995765c6
      tkent@chromium.org authored
              Reviewed by Kent Tamura.
      
              Let HTMLObjectElement be a form associated element
              https://bugs.webkit.org/show_bug.cgi?id=48821
      
              Introduces FormAssociatedElement class which would be a super class
              of form assocated elements. Some of member functions and variables of
              HTMLFormControlElement are migrated into this class.
              Following the HTML5 spec, HTMLFormControlElement class and
              HTMLObjectElement class are subclasses of it for now.
      
              Test: fast/forms/form-collection-elements-order.html
      
              * Android.mk: Added FormAssociatedElement.cpp
              * CMakeLists.txt: Ditto.
              * GNUmakefile.am: Added FormAssociatedElement.{cpp,h}
              * WebCore.exp.in: Added the symbol for toHTMLElement(FormAssociatedElement*)
              * WebCore.gypi: Added FormAssociatedElement.{cpp,h}
              * WebCore.pro: Ditto.
              * WebCore.vcproj/WebCore.vcproj: Ditto.
              * WebCore.xcodeproj/project.pbxproj: Ditto.
              * dom/CheckedRadioButtons.h: Fixed class forward declaration order.
              * dom/Document.cpp:
              (WebCore::Document::registerFormElementWithFormAttribute): Modified to
              use FormAssociatedElement instead of HTMLFormControlElement
              (WebCore::Document::unregisterFormElementWithFormAttribute): Ditto.
              (WebCore::Document::resetFormElementsOwner):
              * dom/Document.h: Ditto.
              * html/DOMFormData.cpp: Ditto.
              (WebCore::DOMFormData::DOMFormData):
              * html/FormAssociatedElement.cpp: Copied and renamed from WebCore/html/HTMLFormControlElement.cpp.
              (WebCore::FormAssociatedElement::FormAssociatedElement):
              (WebCore::FormAssociatedElement::~FormAssociatedElement):
              (WebCore::FormAssociatedElement::validity):
              (WebCore::FormAssociatedElement::insertedIntoTree):
              (WebCore::FormAssociatedElement::removedFromTree):
              (WebCore::FormAssociatedElement::removeFromForm):
              (WebCore::FormAssociatedElement::resetFormOwner):
              (WebCore::FormAssociatedElement::formAttributeChanged):
              (WebCore::toHTMLElement):
              * html/FormAssociatedElement.h: Ditto.
              (WebCore::FormAssociatedElement::ref):
              (WebCore::FormAssociatedElement::deref):
              (WebCore::FormAssociatedElement::formDestroyed):
              (WebCore::FormAssociatedElement::setForm):
              * html/HTMLElement.h: Changed the access level of findFormAncestor().
              * html/HTMLFormCollection.cpp:
              (WebCore::HTMLFormCollection::item): Modified to use FormAssociatedElement
              instead of HTMLFormControlElement.
              (WebCore::HTMLFormCollection::getNamedFormItem): Ditto.
              (WebCore::HTMLFormCollection::updateNameCache): Ditto.
              * html/HTMLFormControlElement.cpp: Modified regarding with the change of class
              hierarchy.
              (WebCore::HTMLFormControlElement::HTMLFormControlElement):
              (WebCore::HTMLFormControlElement::~HTMLFormControlElement):
              (WebCore::HTMLFormControlElement::insertedIntoTree):
              (WebCore::HTMLFormControlElement::removedFromTree):
              (WebCore::HTMLFormControlElement::supportsFocus):
              (WebCore::HTMLFormControlElement::checkValidity):
              (WebCore::HTMLFormControlElement::virtualForm):
              (WebCore::HTMLFormControlElement::isDefaultButtonForForm):
              (WebCore::HTMLFormControlElement::attributeChanged):
              * html/HTMLFormControlElement.h: Ditto.
              (WebCore::HTMLFormControlElement::form):
              (WebCore::HTMLFormControlElement::disabled):
              (WebCore::HTMLFormControlElement::type):
              (WebCore::HTMLFormControlElement::refFormAssociatedElement):
              (WebCore::HTMLFormControlElement::derefFormAssociatedElement):
              * html/HTMLFormElement.cpp: Modified to use FormAssociatedElement
              instead of HTMLFormControlElement.
              (WebCore::HTMLFormElement::submitImplicitly):
              (WebCore::HTMLFormElement::validateInteractively):
              (WebCore::HTMLFormElement::submit):
              (WebCore::HTMLFormElement::reset):
              (WebCore::HTMLFormElement::formElementIndexWithFormAttribute):
              (WebCore::HTMLFormElement::formElementIndex):
              (WebCore::HTMLFormElement::registerFormElement):
              (WebCore::HTMLFormElement::removeFormElement):
              (WebCore::HTMLFormElement::defaultButton):
              (WebCore::HTMLFormElement::checkValidity):
              (WebCore::HTMLFormElement::collectUnhandledInvalidControls):
              (WebCore::HTMLFormElement::documentDidBecomeActive):
              * html/HTMLFormElement.h: Ditto.
              (WebCore::HTMLFormElement::associatedElements):
              * html/HTMLInputElement.cpp: Ditto.
              (WebCore::HTMLInputElement::updateCheckedRadioButtons):
              * html/HTMLObjectElement.cpp: Modified regarding with the change of class
              hierarchy.
              (WebCore::HTMLObjectElement::HTMLObjectElement):
              (WebCore::HTMLObjectElement::~HTMLObjectElement):
              (WebCore::HTMLObjectElement::create):
              (WebCore::HTMLObjectElement::attributeChanged):
              (WebCore::HTMLObjectElement::insertedIntoTree):
              (WebCore::HTMLObjectElement::removedFromTree):
              (WebCore::HTMLObjectElement::appendFormData):
              (WebCore::HTMLObjectElement::formControlName):
              * html/HTMLObjectElement.h: Ditto.
              (WebCore::HTMLObjectElement::form):
              (WebCore::HTMLObjectElement::isFormControlElement):
              (WebCore::HTMLObjectElement::isEnumeratable):
              (WebCore::HTMLObjectElement::refFormAssociatedElement):
              (WebCore::HTMLObjectElement::derefFormAssociatedElement):
              * html/HTMLTagNames.in: Added constructorNeedsFormElement to object tag.
              * html/ValidationMessage.cpp: Modified to use FormAssociatedElement
              instead of HTMLFormControlElement.
              (WebCore::ValidationMessage::ValidationMessage):
              (WebCore::ValidationMessage::create):
              * html/ValidationMessage.h: Ditto.
              * html/ValidityState.cpp: Ditto.
              (WebCore::ValidityState::validationMessage):
              (WebCore::ValidityState::setCustomErrorMessage):
              (WebCore::ValidityState::valueMissing):
              (WebCore::ValidityState::typeMismatch):
              (WebCore::ValidityState::patternMismatch):
              (WebCore::ValidityState::tooLong):
              (WebCore::ValidityState::rangeUnderflow):
              (WebCore::ValidityState::rangeOverflow):
              (WebCore::ValidityState::stepMismatch):
              * html/ValidityState.h: Ditto.
              (WebCore::ValidityState::create):
              (WebCore::ValidityState::ValidityState):
              * loader/FormSubmission.cpp: Ditto.
              (WebCore::FormSubmission::create):
      
      2010-12-07  Kenichi Ishibashi  <bashi@google.com>
      
              Reviewed by Kent Tamura.
      
              Let HTMLObjectElement be a form associated element
              https://bugs.webkit.org/show_bug.cgi?id=48821
      
              Modified to use FormAssociatedElement instead of HTMLFormControlElement.
      
              * src/WebFormElement.cpp: 
              (WebKit::WebFormElement::getFormControlElements): Modified to use
              FormAssociatedElement instead of HTMLFormControlElement.
              * src/WebPasswordFormUtils.cpp:
              (WebKit::findPasswordFormFields): Ditto.
              * src/WebSearchableFormData.cpp:
              (WebCore::GetButtonToActivate): Ditto.
              (WebCore::HasSuitableTextElement): Ditto.
      
      2010-12-07  Kenichi Ishibashi  <bashi@google.com>
      
              Reviewed by Kent Tamura.
      
              Let HTMLObjectElement be a form associated element
              https://bugs.webkit.org/show_bug.cgi?id=48821
      
              Modified to use FormAssociatedElement instead of HTMLFormControlElement.
      
              * WebFrame.cpp:
              (WebFrame::elementWithName): Modified to use FormAssociatedElement
              instead of HTMLFormControlElement.
              (WebFrame::controlsInForm): Ditto.
      
      2010-12-07  Kenichi Ishibashi  <bashi@google.com>
      
              Reviewed by Kent Tamura.
      
              Let HTMLObjectElement be a form associated element
              https://bugs.webkit.org/show_bug.cgi?id=48821
      
              Modified to use FormAssociatedElement instead of HTMLFormControlElement.
      
              * WebView/WebHTMLRepresentation.mm:
              (-[WebHTMLRepresentation elementWithName:inForm:]): Modified to use
              FormAssociatedElement instead of HTMLFormControlElement.
              (-[WebHTMLRepresentation controlsInForm:]): Ditto.
      
      2010-12-07  Kenichi Ishibashi  <bashi@google.com>
      
              Reviewed by Kent Tamura.
      
              Let HTMLObjectElement be a form associated element
              https://bugs.webkit.org/show_bug.cgi?id=48821
      
              Adds a test to ensure the order of form.elements attribute.
              Updates two tests to check whether object elements are handled
              correctly in form.elements attribute.
      
              * fast/forms/form-attribute-expected.txt: Updated.
              * fast/forms/form-collection-elements-order-expected.txt: Added.
              * fast/forms/form-collection-elements-order.html: Added.
              * fast/forms/script-tests/form-attribute.js: Updated.
              * fast/forms/script-tests/form-collection-elements-order.js: Added.
              (checkOrder):
              * fast/forms/script-tests/form-collection-elements.js: Updated.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73430 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      995765c6
  18. 05 Dec, 2010 1 commit
    • luiz@webkit.org's avatar
      2010-11-30 Luiz Agostini <luiz.agostini@openbossa.org> · b1deeffb
      luiz@webkit.org authored
              Reviewed by Darin Adler.
      
              HTML5 <details> and <summary> initial implementation
              https://bugs.webkit.org/show_bug.cgi?id=50309
      
              HTML5 <details> and <summary> elements initial implementation. The main objective is
              to add the files for html element and renderers, and to get rid of build system issues
              in future patches.
      
              See: http://www.w3.org/TR/html5/interactive-elements.html#the-details-element
                   http://www.w3.org/TR/html5/interactive-elements.html#the-summary-element
      
              build systems
      
              * CMakeLists.txt:
              * DerivedSources.cpp:
              * DerivedSources.make:
              * GNUmakefile.am:
              * WebCore.gypi:
              * WebCore.pri:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/gobject/GNUmakefile.am:
      
              Some css properties to the new html elements.
      
              * css/html.css:
              (details):
              (summary):
      
              New html element associated with the corresponding tag.
      
              * html/HTMLAttributeNames.in:
              * html/HTMLTagNames.in:
      
              1 html element and 3 renderers were added.
      
              * html/HTMLDetailsElement.cpp: Added.
              * html/HTMLDetailsElement.h: Added.
              * html/HTMLDetailsElement.idl: Added.
              * html/HTMLElementsAllInOne.cpp:
              * rendering/RenderDetails.cpp: Added.
              * rendering/RenderDetails.h: Added.
              * rendering/RenderDetailsMarker.cpp: Added.
              * rendering/RenderDetailsMarker.h: Added.
              * rendering/RenderSummary.cpp: Added.
              * rendering/RenderSummary.h: Added.
              * rendering/RenderingAllInOne.cpp:
      
              New renderer type checkers.
      
              * rendering/RenderObject.h:
              (WebCore::RenderObject::isDetails):
              (WebCore::RenderObject::isDetailsMarker):
              (WebCore::RenderObject::isSummary):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73346 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b1deeffb