- 06 Jan, 2011 1 commit
-
-
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
-
- 05 Jan, 2011 1 commit
-
-
paroga@webkit.org authored
Reviewed by Andreas Kling. [CMake] Fix the usage of SOURCE_GROUP https://bugs.webkit.org/show_bug.cgi?id=51739 * Source/cmake/WebKitMacros.cmake: 2011-01-05 Patrick Gansterer <paroga@webkit.org> Reviewed by Andreas Kling. [CMake] Fix the usage of SOURCE_GROUP https://bugs.webkit.org/show_bug.cgi?id=51739 * CMakeLists.txt: 2011-01-05 Patrick Gansterer <paroga@webkit.org> Reviewed by Andreas Kling. [CMake] Fix the usage of SOURCE_GROUP https://bugs.webkit.org/show_bug.cgi?id=51739 * CMakeLists.txt: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75069 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 04 Jan, 2011 1 commit
-
-
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
-
- 03 Jan, 2011 1 commit
-
-
commit-queue@webkit.org authored
Reviewed by Daniel Bates. In the cmake build system move logic related to ENABLE_NOTIFICATIONS into its own block. https://bugs.webkit.org/show_bug.cgi?id=51827 * CMakeLists.txt: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74916 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 02 Jan, 2011 1 commit
-
-
paroga@webkit.org authored
[CMake] Unreviewed build fix. * CMakeLists.txt: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74871 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 01 Jan, 2011 3 commits
-
-
abarth@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=51604 Reviewed by Eric Seidel. Update references to JavaScriptCore to point to the new location. * Android.mk: * CMakeLists.txt: * DerivedSources.pro: * GNUmakefile.am: * Makefile: * WebKit.pri: * WebKit.pro: * wscript: Tools: Update references to JavaScriptCore to point to the new location. * BuildSlaveSupport/build.webkit.org-config/master.cfg: * DumpRenderTree/qt/DumpRenderTree.pro: * DumpRenderTree/qt/ImageDiff.pro: * DumpRenderTree/qt/TestNetscapePlugin/TestNetscapePlugin.pro: * DumpRenderTree/wscript: * Scripts/build-jsc: * Scripts/build-webkit: * Scripts/do-file-rename: * Scripts/do-webcore-rename: * Scripts/run-javascriptcore-tests: * Scripts/update-javascriptcore-test-results: * Scripts/webkitdirs.pm: * Scripts/webkitpy/common/config/build_unittest.py: * Scripts/webkitpy/style/checker.py: * Scripts/webkitpy/style/checker_unittest.py: * Scripts/webkitpy/style/checkers/cpp_unittest.py: * WebKitTestRunner/InjectedBundle/qt/InjectedBundle.pro: * WebKitTestRunner/qt/WebKitTestRunner.pro: * wx/build/settings.py: WebCore: Update references to JavaScriptCore. * Android.derived.jscbindings.mk: * Android.v8bindings.mk: * CMakeLists.txt: * WebCore.gyp/WebCore.gyp: * WebCore.pro: - These changes are subtle and might not be 100% correct. * move-js-headers.sh: WebKit/chromium: * WebKit.gyp: - Point to JavaScriptCore in its new location. WebKit/gtk: * GNUmakefile.am: * docs/GNUmakefile.am: - Point to JavaScriptCore in its new location. WebKit/qt: * WebKit_pch.h: * docs/qtwebkit.qdocconf: - Point to JavaScriptCore in its new location. WebKit/win: * WebKit.vcproj/WebKit.sln: - Point to JavaScriptCore in its new location. WebKit/wx: * bindings/python/wscript: * wscript: - Point to JavaScriptCore in its new location. WebKit2: * WebKit2.pro: - Point to JavaScriptCore in its new location. Websites/bugs.webkit.org: * PrettyPatch/PrettyPatch.rb: - Remove reference to JavaScriptCore as a source directory. Websites/webkit.org: * coding/assertion-guidelines.html: - Update documentation to point to the new location of JavaScriptCore. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74855 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
abarth@webkit.org authored
Remove empty file. * Android.mk: * CMakeLists.txt: * GNUmakefile.am: * WebCore.gypi: * WebCore.pro: * WebCore.vcproj/WebCore.vcproj: * WebCore.xcodeproj/project.pbxproj: * dom/DOMAllInOne.cpp: * dom/Entity.cpp: Removed. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74851 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
abarth@webkit.org authored
Remove empty file. * CMakeLists.txt: * GNUmakefile.am: * WebCore.pro: * WebCore.vcproj/WebCore.vcproj: * WebCore.xcodeproj/project.pbxproj: * bindings/js/JSBindingsAllInOne.cpp: * bindings/js/JSPopStateEventCustom.cpp: Removed. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74850 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 30 Dec, 2010 3 commits
-
-
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
-
paroga@webkit.org authored
Reviewed by Darin Adler. bindings/js/JSDesktopNotificationsCustom.cpp is not included in the cmake build which is required when NOTIFICATIONS is enabled. https://bugs.webkit.org/show_bug.cgi?id=51761 * CMakeLists.txt: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74810 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
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
-
- 29 Dec, 2010 4 commits
-
-
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
-
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
-
paroga@webkit.org authored
Unreviewed build fix for WinCE after r73802. Reapply parts from r72585: Port ContextMenuWin.cpp to WinCE https://bugs.webkit.org/show_bug.cgi?id=48408 * CMakeLists.txt: * platform/ContextMenu.h: * platform/win/ContextMenuWin.cpp: (WebCore::ContextMenu::getContextMenuItems): (WebCore::ContextMenu::createNativeMenuFromItems): 2010-12-29 Patrick Gansterer <paroga@webkit.org> Unreviewed build fix for WinCE after r73802. * WebCoreSupport/ContextMenuClientWinCE.cpp: (WebKit::ContextMenuClientWinCE::customizeMenu): * WebCoreSupport/ContextMenuClientWinCE.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74742 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
paroga@webkit.org authored
Unreviewed. Use gcc as default preprocessor. * Sources/cmake/OptionsCommon.cmake: 2010-12-29 Patrick Gansterer <paroga@webkit.org> Reviewed by Andreas Kling. [CMake] Remove WebKitGenerators https://bugs.webkit.org/show_bug.cgi?id=50445 * CMakeLists.txt: Pass preprocessor to generate-bindings.pl. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74739 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 24 Dec, 2010 1 commit
-
-
commit-queue@webkit.org authored
Reviewed by Kenneth Rohde Christiansen. [EFL] Add option to enable Touch Events. https://bugs.webkit.org/show_bug.cgi?id=49125 Add ENABLE_TOUCH_EVENTS option. * cmake/OptionsEfl.cmake: * cmakeconfig.h.cmake: 2010-12-24 Ryuan Choi <ryuan.choi@samsung.com> Reviewed by Kenneth Rohde Christiansen. [EFL] Add option to enable Touch Events. https://bugs.webkit.org/show_bug.cgi?id=49125 Add files for EFL to support TOUCH_EVENTS. * CMakeLists.txt: * CMakeListsEfl.txt: * platform/PlatformTouchEvent.h: Add EFL related constructor. * platform/PlatformTouchPoint.h: ditto. * platform/efl/PlatformTouchEventEfl.cpp: Added. (WebCore::PlatformTouchEvent::PlatformTouchEvent): * platform/efl/PlatformTouchPointEfl.cpp: Added. (WebCore::PlatformTouchPoint::PlatformTouchPoint): 2010-12-24 Ryuan Choi <ryuan.choi@samsung.com> Reviewed by Kenneth Rohde Christiansen. [EFL] Add option to enable Touch Events. https://bugs.webkit.org/show_bug.cgi?id=49125 Implement ewk_frame_feed_touch_event to feed touch events. Because EFL doesn't have touch events, Application should generate and pass it. * WebCoreSupport/ChromeClientEfl.h: (WebCore::ChromeClientEfl::needTouchEvents): * ewk/ewk_frame.cpp: (ewk_frame_feed_touch_event): * ewk/ewk_frame.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74626 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 14 Dec, 2010 3 commits
-
-
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
-
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
-
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
-
- 13 Dec, 2010 2 commits
-
-
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
-
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
-
- 12 Dec, 2010 1 commit
-
-
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
-
- 10 Dec, 2010 5 commits
-
-
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
-
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
-
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
-
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
-
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
-
- 09 Dec, 2010 2 commits
-
-
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
-
kbr@google.com authored
Unreviewed. Speculative Gtk build fix after https://bugs.webkit.org/show_bug.cgi?id=36512 / r73669. Process all of the WebGL classes' IDL files. * CMakeLists.txt: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73672 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 08 Dec, 2010 1 commit
-
-
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
-
- 07 Dec, 2010 2 commits
-
-
paroga@webkit.org authored
Reviewed by Andreas Kling. [CMake] Remove WebKitGenerators https://bugs.webkit.org/show_bug.cgi?id=50445 * CMakeLists.txt: * cmake/WebKitGenerators.cmake: Removed. 2010-12-07 Patrick Gansterer <paroga@webkit.org> Reviewed by Andreas Kling. [CMake] Remove WebKitGenerators https://bugs.webkit.org/show_bug.cgi?id=50445 Move remaining logic into main CMakeLists.txt. * CMakeLists.txt: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73434 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
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
-
- 05 Dec, 2010 1 commit
-
-
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
-
- 03 Dec, 2010 4 commits
-
-
paroga@webkit.org authored
Unreviewed build fix. Try to fix EFL build after r73273. * CMakeLists.txt: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73303 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
paroga@webkit.org authored
Reviewed by Andreas Kling. [CMake] Remove WebCore_IDL_PURE_FILES https://bugs.webkit.org/show_bug.cgi?id=50445 * CMakeLists.txt: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73289 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
crogers@google.com authored
Reviewed by Kenneth Russell. First steps to adding web audio files to build systems https://bugs.webkit.org/show_bug.cgi?id=49952 * wtf/Complex.h: 2010-12-03 Chris Rogers <crogers@google.com> Reviewed by Kenneth Russell. First steps to adding web audio files to build systems https://bugs.webkit.org/show_bug.cgi?id=49952 No new tests since audio API is not yet implemented. * CMakeLists.txt: * DerivedSources.make: * ForwardingHeaders/wtf/Complex.h: Added. * GNUmakefile.am: * WebCore.gyp/WebCore.gyp: * WebCore.gypi: * WebCore.pri: * WebCore.pro: * bindings/js/JSDOMWindowCustom.cpp: (WebCore::JSDOMWindow::audioContext): * features.pri: * page/DOMWindow.idl: * platform/audio/HRTFElevation.cpp: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73283 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
paroga@webkit.org authored
Reviewed by Andreas Kling. Move Inspector generator logic into main CMakeLists.txt file https://bugs.webkit.org/show_bug.cgi?id=50445 * CMakeLists.txt: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73273 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 02 Dec, 2010 1 commit
-
-
apavlov@chromium.org authored
Reviewed by Yury Semikhatsky. Web Inspector: Remove obsolete CSS backend API from InspectorDOMAgent https://bugs.webkit.org/show_bug.cgi?id=50318 WebCore: * CMakeLists.txt: * GNUmakefile.am: * WebCore.gypi: * WebCore.order: * WebCore.pro: * WebCore.vcproj/WebCore.vcproj: * WebCore.xcodeproj/project.pbxproj: * inspector/Inspector.idl: * inspector/InspectorCSSAgent.h: * inspector/InspectorCSSStore.cpp: Removed. * inspector/InspectorCSSStore.h: Removed. * inspector/InspectorController.cpp: (WebCore::InspectorController::InspectorController): (WebCore::InspectorController::connectFrontend): (WebCore::InspectorController::didCommitLoad): * inspector/InspectorController.h: * inspector/InspectorDOMAgent.cpp: (WebCore::InspectorDOMAgent::InspectorDOMAgent): (WebCore::InspectorDOMAgent::unbind): * inspector/InspectorDOMAgent.h: (WebCore::InspectorDOMAgent::create): LayoutTests: * inspector/styles-iframe.html: * inspector/styles-source-lines.html: * inspector/styles-source-offsets-expected.txt: * inspector/styles-source-offsets.html: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73121 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 01 Dec, 2010 1 commit
-
-
paroga@webkit.org authored
Reviewed by Andreas Kling. Cleanup main CMakeLists.txt after r72664, r72672 and r72667 https://bugs.webkit.org/show_bug.cgi?id=50232 * CMakeLists.txt: Removed obsolete dependencies. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73012 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 30 Nov, 2010 1 commit
-
-
paroga@webkit.org authored
Reviewed by Andreas Kling. Move CSS generator logic into main CMakeLists.txt file https://bugs.webkit.org/show_bug.cgi?id=50230 * CMakeLists.txt: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73003 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-