1. 01 Jan, 2011 2 commits
  2. 30 Dec, 2010 3 commits
    • darin@apple.com's avatar
      2010-12-30 Darin Adler <darin@apple.com> · f0f276ac
      darin@apple.com authored
              Reviewed by David Kilzer.
      
              Remove unused JSBinding source files
              https://bugs.webkit.org/show_bug.cgi?id=51762
      
              * bindings/js/JSBinding.h: Removed.
              * bindings/js/specialization: Removed.
              * bindings/js/specialization/JSBindingState.cpp: Removed.
              * bindings/js/specialization/JSBindingState.h: Removed.
      
              * CMakeLists.txt: Removed references to files.
              * GNUmakefile.am: Ditto.
              * WebCore.gypi: Ditto.
              * WebCore.pro: Ditto.
              * WebCore.vcproj/WebCore.vcproj: Ditto.
              * bindings/js/JSBindingsAllInOne.cpp: Ditto.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74814 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f0f276ac
    • paroga@webkit.org's avatar
      2010-12-30 Benjamin C Meyer <bmeyer@rim.com> · 5170cbac
      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
      5170cbac
    • pfeldman@chromium.org's avatar
      2010-12-29 Pavel Feldman <pfeldman@chromium.org> · 075ed242
      pfeldman@chromium.org authored
              Reviewed by Yury Semikhatsky.
      
              Web Inspector: extract Database & DOM Storage agents; remove InspectorBackend.
              https://bugs.webkit.org/show_bug.cgi?id=51707
      
              This change brushes up storage agents + removes redundant InspectorBackend class.
      
              * CMakeLists.txt:
              * GNUmakefile.am:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * inspector/CodeGeneratorInspector.pm:
              * inspector/InjectedScriptHost.cpp:
              (WebCore::InjectedScriptHost::databaseForId):
              (WebCore::InjectedScriptHost::selectDatabase):
              (WebCore::InjectedScriptHost::selectDOMStorage):
              (WebCore::InjectedScriptHost::inspectorDOMAgent):
              * inspector/Inspector.idl:
              * inspector/InspectorBackend.cpp: Removed.
              * inspector/InspectorBackend.h: Removed.
              * inspector/InspectorController.cpp:
              (WebCore::InspectorController::InspectorController):
              (WebCore::InspectorController::~InspectorController):
              (WebCore::InspectorController::connectFrontend):
              (WebCore::InspectorController::releaseFrontendLifetimeAgents):
              (WebCore::InspectorController::didUseDOMStorage):
              (WebCore::InspectorController::setInjectedScriptSource):
              (WebCore::InspectorController::dispatchOnInjectedScript):
              (WebCore::InspectorController::releaseWrapperObjectGroup):
              * inspector/InspectorController.h:
              * inspector/InspectorDOMStorageAgent.cpp: Added.
              (WebCore::InspectorDOMStorageAgent::~InspectorDOMStorageAgent):
              (WebCore::InspectorDOMStorageAgent::getDOMStorageEntries):
              (WebCore::InspectorDOMStorageAgent::setDOMStorageItem):
              (WebCore::InspectorDOMStorageAgent::removeDOMStorageItem):
              (WebCore::InspectorDOMStorageAgent::selectDOMStorage):
              (WebCore::InspectorDOMStorageAgent::InspectorDOMStorageAgent):
              (WebCore::InspectorDOMStorageAgent::getDOMStorageResourceForId):
              * inspector/InspectorDOMStorageAgent.h: Copied from WebCore/inspector/InspectorStorageAgent.h.
              (WebCore::InspectorDOMStorageAgent::create):
              (WebCore::InspectorDOMStorageAgent::frontend):
              * inspector/InspectorDatabaseAgent.cpp: Renamed from WebCore/inspector/InspectorStorageAgent.cpp.
              (WebCore::InspectorDatabaseAgent::~InspectorDatabaseAgent):
              (WebCore::InspectorDatabaseAgent::getDatabaseTableNames):
              (WebCore::InspectorDatabaseAgent::executeSQL):
              (WebCore::InspectorDatabaseAgent::databaseForId):
              (WebCore::InspectorDatabaseAgent::selectDatabase):
              (WebCore::InspectorDatabaseAgent::clearFrontend):
              (WebCore::InspectorDatabaseAgent::InspectorDatabaseAgent):
              * inspector/InspectorDatabaseAgent.h: Renamed from WebCore/inspector/InspectorStorageAgent.h.
              (WebCore::InspectorDatabaseAgent::create):
              (WebCore::InspectorDatabaseAgent::frontend):
              * inspector/front-end/ScriptsPanel.js:
              (WebInspector.ScriptsPanel.prototype.show):
              (WebInspector.ScriptsPanel.prototype.attachDebuggerWhenShown):
              (WebInspector.ScriptsPanel.prototype._toggleDebugging):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74785 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      075ed242
  3. 29 Dec, 2010 4 commits
    • pfeldman@chromium.org's avatar
      2010-12-29 Pavel Feldman <pfeldman@chromium.org> · 72ec867e
      pfeldman@chromium.org authored
              Not reviewed: revert r74755 and 74757.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74761 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      72ec867e
    • pfeldman@chromium.org's avatar
      2010-12-29 Pavel Feldman <pfeldman@chromium.org> · 1c50cf22
      pfeldman@chromium.org authored
              Reviewed by Yury Semikhatsky.
      
              Web Inspector: extract Database & DOM Storage
              agents; remove InspectorBackend.
              https://bugs.webkit.org/show_bug.cgi?id=51707
      
              This change brushes up storage agents + removes redundant
              InspectorBackend class.
      
              * CMakeLists.txt:
              * GNUmakefile.am:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * inspector/CodeGeneratorInspector.pm:
              * inspector/InjectedScriptHost.cpp:
              (WebCore::InjectedScriptHost::databaseForId):
              (WebCore::InjectedScriptHost::selectDatabase):
              (WebCore::InjectedScriptHost::selectDOMStorage):
              (WebCore::InjectedScriptHost::inspectorDOMAgent):
              * inspector/Inspector.idl:
              * inspector/InspectorBackend.cpp: Removed.
              * inspector/InspectorBackend.h: Removed.
              * inspector/InspectorController.cpp:
              (WebCore::InspectorController::InspectorController):
              (WebCore::InspectorController::~InspectorController):
              (WebCore::InspectorController::connectFrontend):
              (WebCore::InspectorController::releaseFrontendLifetimeAgents):
              (WebCore::InspectorController::didUseDOMStorage):
              (WebCore::InspectorController::setInjectedScriptSource):
              (WebCore::InspectorController::dispatchOnInjectedScript):
              (WebCore::InspectorController::releaseWrapperObjectGroup):
              * inspector/InspectorController.h:
              * inspector/InspectorDOMStorageAgent.cpp: Added.
              (WebCore::InspectorDOMStorageAgent::~InspectorDOMStorageAgent):
              (WebCore::InspectorDOMStorageAgent::getDOMStorageEntries):
              (WebCore::InspectorDOMStorageAgent::setDOMStorageItem):
              (WebCore::InspectorDOMStorageAgent::removeDOMStorageItem):
              (WebCore::InspectorDOMStorageAgent::selectDOMStorage):
              (WebCore::InspectorDOMStorageAgent::InspectorDOMStorageAgent):
              (WebCore::InspectorDOMStorageAgent::getDOMStorageResourceForId):
              * inspector/InspectorDOMStorageAgent.h: Copied from WebCore/inspector/InspectorStorageAgent.h.
              (WebCore::InspectorDOMStorageAgent::create):
              (WebCore::InspectorDOMStorageAgent::frontend):
              * inspector/InspectorDatabaseAgent.cpp: Renamed from WebCore/inspector/InspectorStorageAgent.cpp.
              (WebCore::InspectorDatabaseAgent::~InspectorDatabaseAgent):
              (WebCore::InspectorDatabaseAgent::getDatabaseTableNames):
              (WebCore::InspectorDatabaseAgent::executeSQL):
              (WebCore::InspectorDatabaseAgent::databaseForId):
              (WebCore::InspectorDatabaseAgent::selectDatabase):
              (WebCore::InspectorDatabaseAgent::clearFrontend):
              (WebCore::InspectorDatabaseAgent::InspectorDatabaseAgent):
              * inspector/InspectorDatabaseAgent.h: Renamed from WebCore/inspector/InspectorStorageAgent.h.
              (WebCore::InspectorDatabaseAgent::create):
              (WebCore::InspectorDatabaseAgent::frontend):
              * inspector/InspectorFrontendClientLocal.cpp:
              * inspector/InspectorFrontendClientLocal.h:
              * inspector/front-end/ScriptsPanel.js:
              (WebInspector.ScriptsPanel.prototype.show):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74755 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1c50cf22
    • paroga@webkit.org's avatar
      2010-12-29 Patrick Gansterer <paroga@webkit.org> · d371891d
      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
      d371891d
    • paroga@webkit.org's avatar
      2010-12-29 Patrick Gansterer <paroga@webkit.org> · 8498ce97
      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
      8498ce97
  4. 24 Dec, 2010 1 commit
    • commit-queue@webkit.org's avatar
      2010-12-24 Ryuan Choi <ryuan.choi@samsung.com> · f59758d1
      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
      f59758d1
  5. 14 Dec, 2010 3 commits
    • mihaip@chromium.org's avatar
      2010-12-14 Mihai Parparita <mihaip@chromium.org> · b042a70b
      mihaip@chromium.org authored
              Reviewed by Dimitri Glazkov.
      
              Move asynchronous event dispatching out of Document
              https://bugs.webkit.org/show_bug.cgi?id=49785
      
              Move asynchonous event code out of Document and into a standalone
              EventQueue class (which supports async events for both regular nodes
              and the window object).
      
              No new tests necessary, since no new functionality is exposed (existing
              layout tests pass).
      
              * Android.mk:
              * CMakeLists.txt:
              * GNUmakefile.am:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * dom/Document.cpp:
              (WebCore::Document::Document):
              (WebCore::Document::enqueueWindowEvent):
              (WebCore::Document::enqueueHashchangeEvent):
              * dom/DOMAllInOne.cpp:
              (WebCore::Document::eventQueue):
              * dom/Document.h:
              * dom/EventQueue.cpp: Added.
              (WebCore::EventQueue::EventQueue):
              (WebCore::EventQueue::enqueueEvent):
              (WebCore::EventQueue::pendingEventTimerFired):
              (WebCore::EventQueue::dispatchEvent):
              * dom/EventQueue.h: Added.
              * storage/StorageEventDispatcher.cpp:
              (WebCore::StorageEventDispatcher::dispatch):
      2010-12-14  Mihai Parparita  <mihaip@chromium.org>
      
              Reviewed by Dimitri Glazkov.
      
              Move asynchronous event dispatching out of Document
              https://bugs.webkit.org/show_bug.cgi?id=49785
      
              Change enqueueEvent callsite.
      
              * src/StorageAreaProxy.cpp:
              (WebCore::StorageAreaProxy::storageEvent):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74062 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b042a70b
    • japhet@chromium.org's avatar
      2010-12-14 Nate Chapin <japhet@chromium.org> · d7ab4074
      japhet@chromium.org authored
              Reviewed by Adam Barth.
      
              Rename Loader to CachedResourceRequest.
              https://bugs.webkit.org/show_bug.cgi?id=50848
      
              No new tests, rename only.
      
              * Android.mk:
              * CMakeLists.txt:
              * GNUmakefile.am:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * css/CSSStyleSelector.cpp:
              * loader/cache/CachedCSSStyleSheet.cpp:
              * loader/cache/CachedFont.cpp:
              * loader/cache/CachedResource.cpp:
              (WebCore::CachedResource::setRequest):
              * loader/cache/CachedResource.h:
              * loader/cache/CachedResourceLoader.cpp:
              (WebCore::CachedResourceLoader::load):
              (WebCore::CachedResourceLoader::loadDone):
              (WebCore::CachedResourceLoader::cancelRequests):
              * loader/cache/CachedResourceLoader.h:
              * loader/cache/CachedResourceRequest.cpp: Copied from WebCore/loader/loader.cpp.
              * loader/cache/CachedResourceRequest.h: Copied from WebCore/loader/loader.h.
              * loader/loader.cpp: Removed.
              * loader/loader.h: Removed.
              * xml/XSLStyleSheetLibxslt.cpp:
              * xml/XSLTProcessor.cpp:
              * xml/XSLTProcessorLibxslt.cpp:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74049 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d7ab4074
    • dglazkov@chromium.org's avatar
      2010-12-13 Dimitri Glazkov <dglazkov@chromium.org> · 363181d9
      dglazkov@chromium.org authored
              Reviewed by David Levin.
      
              Move SliderThumbElement into its own file.
              https://bugs.webkit.org/show_bug.cgi?id=50973
      
              No change in behavior, so no tests.
      
              * Android.mk: Added SliderThumbElement.
              * CMakeLists.txt: Ditto.
              * WebCore.gyp/WebCore.gyp: Ditto.
              * WebCore.gypi: Ditto.
              * WebCore.pro: Ditto.
              * WebCore.vcproj/WebCore.vcproj: Ditto.
              * WebCore.xcodeproj/project.pbxproj: Ditto,
              * html/shadow/SliderThumbElement.cpp: Added.
              * html/shadow/SliderThumbElement.h: Added.
              * rendering/RenderSlider.cpp: Removed code that was moved into
                  SliderThumbElement.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74044 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      363181d9
  6. 13 Dec, 2010 2 commits
    • yurys@chromium.org's avatar
      2010-12-13 Yury Semikhatsky <yurys@chromium.org> · e42c177c
      yurys@chromium.org authored
              Unreviewed. Rollout 73914, 73915, 73917, 73920 and 73921.
      
              REGRESSION(r73914): "Chromium page_cycler_morejs fails" (Requested by yurys on #webkit).
              https://bugs.webkit.org/show_bug.cgi?id=50950
      
              * fast/events/resources/window-onerror.js: Removed.
              * fast/events/window-onerror1-expected.txt: Removed.
              * fast/events/window-onerror1.html: Removed.
              * fast/events/window-onerror10-expected.txt: Removed.
              * fast/events/window-onerror10.html: Removed.
              * fast/events/window-onerror11-expected.txt: Removed.
              * fast/events/window-onerror11.html: Removed.
              * fast/events/window-onerror2-expected.txt: Removed.
              * fast/events/window-onerror2.html: Removed.
              * fast/events/window-onerror3-expected.txt: Removed.
              * fast/events/window-onerror3.html: Removed.
              * fast/events/window-onerror4-expected.txt: Removed.
              * fast/events/window-onerror4.html: Removed.
              * fast/events/window-onerror5-expected.txt: Removed.
              * fast/events/window-onerror5.html: Removed.
              * fast/events/window-onerror6-expected.txt: Removed.
              * fast/events/window-onerror6.html: Removed.
              * fast/events/window-onerror7-expected.txt: Removed.
              * fast/events/window-onerror7.html: Removed.
              * fast/events/window-onerror8-expected.txt: Removed.
              * fast/events/window-onerror8.html: Removed.
              * fast/events/window-onerror9-expected.txt: Removed.
              * fast/events/window-onerror9.html: Removed.
              * fast/workers/worker-script-error-expected.txt:
              * http/tests/security/resources/onerror-iframe.html: Removed.
              * http/tests/security/window-onerror-exception-in-iframe-expected.txt: Removed.
              * http/tests/security/window-onerror-exception-in-iframe.html: Removed.
              * platform/chromium-win/fast/workers/worker-script-error-expected.txt:
              * platform/chromium/fast/events/window-onerror1-expected.txt: Removed.
              * platform/chromium/fast/events/window-onerror10-expected.txt: Removed.
              * platform/chromium/fast/events/window-onerror11-expected.txt: Removed.
              * platform/chromium/fast/events/window-onerror2-expected.txt: Removed.
              * platform/chromium/fast/events/window-onerror3-expected.txt: Removed.
              * platform/chromium/fast/events/window-onerror4-expected.txt: Removed.
              * platform/chromium/fast/events/window-onerror5-expected.txt: Removed.
              * platform/chromium/fast/events/window-onerror6-expected.txt: Removed.
              * platform/chromium/fast/events/window-onerror7-expected.txt: Removed.
              * platform/chromium/fast/events/window-onerror8-expected.txt: Removed.
              * platform/chromium/fast/events/window-onerror9-expected.txt: Removed.
              * platform/chromium/http/tests/security/window-onerror-exception-in-iframe-expected.txt: Removed.
              * platform/chromium/userscripts/window-onerror-for-isolated-world-1-expected.txt: Removed.
              * platform/chromium/userscripts/window-onerror-for-isolated-world-2-expected.txt: Removed.
              * platform/gtk/Skipped:
              * userscripts/window-onerror-for-isolated-world-1-expected.txt: Removed.
              * userscripts/window-onerror-for-isolated-world-1.html: Removed.
              * userscripts/window-onerror-for-isolated-world-2-expected.txt: Removed.
              * userscripts/window-onerror-for-isolated-world-2.html: Removed.
      2010-12-13  Yury Semikhatsky  <yurys@chromium.org>
      
              Unreviewed. Rollout 73914, 73915, 73917, 73920 and 73921.
      
              REGRESSION(r73914): "Chromium page_cycler_morejs fails" (Requested by yurys on #webkit).
              https://bugs.webkit.org/show_bug.cgi?id=50950
      
              * Android.jscbindings.mk:
              * CMakeLists.txt:
              * GNUmakefile.am:
              * WebCore.gypi:
              * WebCore.order:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/JSBindingsAllInOne.cpp:
              * bindings/js/JSDOMBinding.cpp:
              (WebCore::reportException):
              * bindings/js/JSWorkerContextErrorHandler.cpp: Renamed from WebCore/bindings/js/JSErrorHandler.cpp.
              (WebCore::JSWorkerContextErrorHandler::JSWorkerContextErrorHandler):
              (WebCore::JSWorkerContextErrorHandler::~JSWorkerContextErrorHandler):
              (WebCore::JSWorkerContextErrorHandler::handleEvent):
              * bindings/js/JSWorkerContextErrorHandler.h: Renamed from WebCore/bindings/js/JSErrorHandler.h.
              (WebCore::JSWorkerContextErrorHandler::create):
              (WebCore::createJSWorkerContextErrorHandler):
              * bindings/scripts/CodeGeneratorJS.pm:
              * bindings/scripts/CodeGeneratorV8.pm:
              * bindings/v8/V8ConsoleMessage.cpp:
              (WebCore::V8ConsoleMessage::dispatchNow):
              (WebCore::V8ConsoleMessage::handler):
              * bindings/v8/V8ConsoleMessage.h:
              * bindings/v8/V8WindowErrorHandler.cpp: Removed.
              * bindings/v8/V8WindowErrorHandler.h: Removed.
              * bindings/v8/WorkerContextExecutionProxy.cpp:
              (WebCore::v8MessageHandler):
              * bindings/v8/WorkerScriptController.cpp:
              (WebCore::WorkerScriptController::evaluate):
              * dom/Document.cpp:
              (WebCore::Document::reportException):
              (WebCore::Document::addMessage):
              * dom/Document.h:
              * dom/ErrorEvent.cpp:
              * dom/ErrorEvent.h:
              * dom/Event.cpp:
              * dom/Event.h:
              * dom/ScriptExecutionContext.cpp:
              (WebCore::ScriptExecutionContext::ScriptExecutionContext):
              * dom/ScriptExecutionContext.h:
              * websockets/WebSocket.cpp:
              (WebCore::WebSocket::connect):
              * websockets/WebSocketChannel.cpp:
              (WebCore::WebSocketChannel::didOpen):
              (WebCore::WebSocketChannel::appendToBuffer):
              * websockets/WebSocketHandshake.cpp:
              (WebCore::WebSocketHandshake::readServerHandshake):
              (WebCore::WebSocketHandshake::readStatusLine):
              (WebCore::WebSocketHandshake::readHTTPHeaders):
              (WebCore::WebSocketHandshake::checkResponseHeaders):
              * workers/DefaultSharedWorkerRepository.cpp:
              (WebCore::postExceptionTask):
              (WebCore::postConsoleMessageTask):
              * workers/WorkerContext.cpp:
              (WebCore::WorkerContext::WorkerContext):
              (WebCore::WorkerContext::reportException):
              (WebCore::WorkerContext::addMessage):
              * workers/WorkerContext.h:
              * workers/WorkerMessagingProxy.cpp:
              (WebCore::WorkerExceptionTask::performTask):
              (WebCore::postConsoleMessageTask):
              * xml/XMLHttpRequest.cpp:
              (WebCore::reportUnsafeUsage):
      2010-12-13  Yury Semikhatsky  <yurys@chromium.org>
      
              Unreviewed. Rollout 73914, 73915, 73917, 73920 and 73921.
      
              REGRESSION(r73914): "Chromium page_cycler_morejs fails" (Requested by yurys on #webkit).
              https://bugs.webkit.org/show_bug.cgi?id=50950
      
              * src/WebWorkerClientImpl.cpp:
              (WebKit::WebWorkerClientImpl::postExceptionToWorkerObject):
              (WebKit::WebWorkerClientImpl::postConsoleMessageToWorkerObject):
              (WebKit::WebWorkerClientImpl::postExceptionToWorkerObjectTask):
              (WebKit::WebWorkerClientImpl::postConsoleMessageToWorkerObjectTask):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73939 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e42c177c
    • yurys@chromium.org's avatar
      2010-12-13 Yury Semikhatsky <yurys@chromium.org> · 68b2822e
      yurys@chromium.org authored
              Reviewed by Adam Barth.
      
              WebCore doesn't fire window.onerror event when uncaught JavaScript exceptions are thrown
              https://bugs.webkit.org/show_bug.cgi?id=8519
      
              Uncaught exceptions are propagated to window.onerror hander if one is present.
              The handler is expected to be a function accepting three arguments: error message,
              resource url and line number where the exception occured.
      
              * fast/events/resources/window-onerror.js: Added.
              (throwException):
              * fast/events/window-onerror1-expected.txt: Added.
              * fast/events/window-onerror1.html: Added.
              * fast/events/window-onerror10-expected.txt: Added.
              * fast/events/window-onerror10.html: Added.
              * fast/events/window-onerror11-expected.txt: Added.
              * fast/events/window-onerror11.html: Added.
              * fast/events/window-onerror2-expected.txt: Added.
              * fast/events/window-onerror2.html: Added.
              * fast/events/window-onerror3-expected.txt: Added.
              * fast/events/window-onerror3.html: Added.
              * fast/events/window-onerror4-expected.txt: Added.
              * fast/events/window-onerror4.html: Added.
              * fast/events/window-onerror5-expected.txt: Added.
              * fast/events/window-onerror5.html: Added.
              * fast/events/window-onerror6-expected.txt: Added.
              * fast/events/window-onerror6.html: Added.
              * fast/events/window-onerror7-expected.txt: Added.
              * fast/events/window-onerror7.html: Added.
              * fast/events/window-onerror8-expected.txt: Added.
              * fast/events/window-onerror8.html: Added.
              * fast/events/window-onerror9-expected.txt: Added.
              * fast/events/window-onerror9.html: Added.
              * fast/workers/worker-script-error-expected.txt:
              * http/tests/security/resources/onerror-iframe.html: Added.
              * http/tests/security/window-onerror-exception-in-iframe-expected.txt: Added.
              * http/tests/security/window-onerror-exception-in-iframe.html: Added.
              * platform/chromium-win/fast/workers/worker-script-error-expected.txt:
              * platform/chromium/fast/events/window-onerror1-expected.txt: Added.
              * platform/chromium/fast/events/window-onerror10-expected.txt: Added.
              * platform/chromium/fast/events/window-onerror11-expected.txt: Added.
              * platform/chromium/fast/events/window-onerror2-expected.txt: Added.
              * platform/chromium/fast/events/window-onerror3-expected.txt: Added.
              * platform/chromium/fast/events/window-onerror4-expected.txt: Added.
              * platform/chromium/fast/events/window-onerror5-expected.txt: Added.
              * platform/chromium/fast/events/window-onerror6-expected.txt: Added.
              * platform/chromium/fast/events/window-onerror7-expected.txt: Added.
              * platform/chromium/fast/events/window-onerror8-expected.txt: Added.
              * platform/chromium/fast/events/window-onerror9-expected.txt: Added.
              * platform/chromium/http/tests/security/window-onerror-exception-in-iframe-expected.txt: Added.
              * platform/chromium/userscripts/window-onerror-for-isolated-world-1-expected.txt: Added.
              * platform/chromium/userscripts/window-onerror-for-isolated-world-2-expected.txt: Added.
              * userscripts/window-onerror-for-isolated-world-1-expected.txt: Added.
              * userscripts/window-onerror-for-isolated-world-1.html: Added.
              * userscripts/window-onerror-for-isolated-world-2-expected.txt: Added.
              * userscripts/window-onerror-for-isolated-world-2.html: Added.
      2010-12-13  Yury Semikhatsky  <yurys@chromium.org>
      
              Reviewed by Adam Barth.
      
              WebCore doesn't fire window.onerror event when uncaught JavaScript exceptions are thrown
              https://bugs.webkit.org/show_bug.cgi?id=8519
      
              Uncaught exceptions are propagated to window.onerror hander if one is present.
              The handler is expected to be a function accepting three arguments: error message,
              resource url and line number where the exception occured.
      
              It was decided to dispatch ErrorEvent to all listeners/handlers no matter if they
              were created in the same isolated world where the exception occured or not.
      
              Tests: fast/events/window-onerror1.html
                     fast/events/window-onerror10.html
                     fast/events/window-onerror11.html
                     fast/events/window-onerror2.html
                     fast/events/window-onerror3.html
                     fast/events/window-onerror4.html
                     fast/events/window-onerror5.html
                     fast/events/window-onerror6.html
                     fast/events/window-onerror7.html
                     fast/events/window-onerror8.html
                     fast/events/window-onerror9.html
                     http/tests/security/window-onerror-exception-in-iframe.html
                     userscripts/window-onerror-for-isolated-world-1.html
                     userscripts/window-onerror-for-isolated-world-2.html
      
              * Android.jscbindings.mk:
              * CMakeLists.txt:
              * GNUmakefile.am:
              * WebCore.gypi:
              * WebCore.order:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/JSBindingsAllInOne.cpp:
              * bindings/js/JSDOMBinding.cpp:
              (WebCore::reportException):
              * bindings/js/JSErrorHandler.cpp: Renamed from WebCore/bindings/js/JSWorkerContextErrorHandler.cpp.
              (WebCore::JSErrorHandler::JSErrorHandler):
              (WebCore::JSErrorHandler::~JSErrorHandler):
              (WebCore::JSErrorHandler::handleEvent):
              * bindings/js/JSErrorHandler.h: Copied from WebCore/bindings/js/JSWorkerContextErrorHandler.h.
              (WebCore::JSErrorHandler::create):
              (WebCore::createJSErrorHandler):
              * bindings/scripts/CodeGeneratorJS.pm:
              * bindings/scripts/CodeGeneratorV8.pm:
              * bindings/v8/V8ConsoleMessage.cpp:
              (WebCore::V8ConsoleMessage::dispatchNow):
              (WebCore::V8ConsoleMessage::handler): the method was changed to use generic WebCore exception
              reporting mechanism which is also used by JSC bindings.
              * bindings/v8/V8ConsoleMessage.h:
              * bindings/v8/V8WindowErrorHandler.cpp: Copied from WebCore/bindings/js/JSWorkerContextErrorHandler.h.
              (WebCore::V8WindowErrorHandler::V8WindowErrorHandler):
              (WebCore::V8WindowErrorHandler::callListenerFunction):
              * bindings/v8/V8WindowErrorHandler.h: Renamed from WebCore/bindings/js/JSWorkerContextErrorHandler.h.
              (WebCore::V8WindowErrorHandler::create):
              * bindings/v8/WorkerContextExecutionProxy.cpp:
              (WebCore::v8MessageHandler):
              * bindings/v8/WorkerScriptController.cpp:
              (WebCore::WorkerScriptController::evaluate):
              * dom/Document.cpp:
              (WebCore::Document::errorEventTarget):
              (WebCore::Document::logExceptionToConsole):
              * dom/Document.h:
              * dom/ScriptExecutionContext.cpp:
              (WebCore::ScriptExecutionContext::PendingException::PendingException):
              (WebCore::ScriptExecutionContext::ScriptExecutionContext):
              (WebCore::ScriptExecutionContext::reportException): this method is not virtual anymore to
              ensure that error event dispatching algorithm is the same in WorkerContext and in Document.
              (WebCore::ScriptExecutionContext::dispatchErrorEvent):
              * dom/ScriptExecutionContext.h:
              * workers/DefaultSharedWorkerRepository.cpp:
              (WebCore::postExceptionTask):
              * workers/WorkerContext.cpp:
              (WebCore::WorkerContext::WorkerContext):
              (WebCore::WorkerContext::errorEventTarget):
              (WebCore::WorkerContext::logExceptionToConsole):
              * workers/WorkerContext.h:
              * workers/WorkerMessagingProxy.cpp:
              (WebCore::WorkerExceptionTask::performTask):
      2010-12-13  Yury Semikhatsky  <yurys@chromium.org>
      
              Reviewed by Adam Barth.
      
              WebCore doesn't fire window.onerror event when uncaught JavaScript exceptions are thrown
              https://bugs.webkit.org/show_bug.cgi?id=8519
      
              Uncaught exceptions are propagated to window.onerror hander if one is present.
              The handler is expected to be a function accepting three arguments: error message,
              resource url and line number where the exception occured.
      
              * src/WebWorkerClientImpl.cpp:
              (WebKit::WebWorkerClientImpl::postExceptionToWorkerObject):
              (WebKit::WebWorkerClientImpl::postExceptionToWorkerObjectTask):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73914 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      68b2822e
  7. 12 Dec, 2010 1 commit
    • morrita@google.com's avatar
      2010-10-28 MORITA Hajime <morrita@google.com> · 7a18feed
      morrita@google.com authored
              Reviewed by Ojan Vafai.
      
              spellcheck does not check pasted text
              https://bugs.webkit.org/show_bug.cgi?id=40092
      
              * editing/spelling/script-tests/spellcheck-paste.js: Added.
              * editing/spelling/spellcheck-paste.html: Added.
              * editing/spelling/spellcheck-paste-expected.txt: Added.
              * platform/chromium/test_expectations.txt:
              * platform/gtk/Skipped:
              * platform/mac-leopard/Skipped:
              * platform/mac-tiger/Skipped:
              * platform/mac-wk2/Skipped:
              * platform/qt/Skipped:
              * platform/win/Skipped:
      2010-10-28  MORITA Hajime  <morrita@google.com>
      
              Reviewed by Ojan Vafai.
      
              spellcheck does not check pasted text
              https://bugs.webkit.org/show_bug.cgi?id=40092
      
              - Introduced SpellChecker class to encapsulate asynchronous spell
                checker state: sequence id, requesting text and target node.
                This is also the first step to decompose spell-check related
                code to a separate class.
              - Added EditorClient::isAsynchronousSpellCheckingEnabled()
                to use async spellcheck API on the platform.
                These APIs are touched by SpellChecker.
              - Used SpellChecker to check a pasted test. Text to check is
                collected from the subtree under the editingRoot.
              - Added Setting::m_asynchronousSpellCheckingEnabled to control
                async spell checking.
      
              Test: editing/spelling/spellcheck-paste.html
      
              * CMakeLists.txt:
              * GNUmakefile.am:
              * WebCore.exp.in:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * dom/DocumentMarkerController.cpp:
              (WebCore::DocumentMarkerController::showMarkers):
              (showDocumentMarkers):
              * dom/DocumentMarkerController.h:
              * dom/PositionIterator.cpp:
              (WebCore::PositionIterator::setOffsetInLeafNode):
              * dom/PositionIterator.h:
              * editing/Editor.cpp:
              (WebCore::Editor::replaceSelectionWithFragment):
              (WebCore::Editor::Editor):
              (WebCore::findFirstMarkable):
              (WebCore::Editor::selectionStartHasSpellingMarkerFor):
              * editing/Editor.h:
              (WebCore::Editor::spellChecker):
              * editing/SpellChecker.cpp: Added.
              (WebCore::SpellChecker::SpellChecker):
              (WebCore::SpellChecker::~SpellChecker):
              (WebCore::SpellChecker::initRequest):
              (WebCore::SpellChecker::clearRequest):
              (WebCore::SpellChecker::isAsynchronousEnabled):
              (WebCore::SpellChecker::canCheckAsynchronously):
              (WebCore::SpellChecker::isBusy):
              (WebCore::SpellChecker::isValid):
              (WebCore::SpellChecker::isCheckable):
              (WebCore::SpellChecker::requestCheckingFor):
              (WebCore::forwardIterator):
              (WebCore::SpellChecker::didCheck):
              * editing/SpellChecker.h: Added.
              (WebCore::SpellCheckingResult::SpellCheckingResult):
              (WebCore::SpellCheckingResult::type):
              (WebCore::SpellCheckingResult::location):
              (WebCore::SpellCheckingResult::length):
              * loader/EmptyClients.h:
              (WebCore::EmptyEditorClient::requestCheckingOfString):
              * page/EditorClient.h:
              * page/Settings.cpp:
              (WebCore::Settings::Settings):
              * page/Settings.h:
              (WebCore::Settings::setAsynchronousSpellCheckingEnabled):
              (WebCore::Settings::asynchronousSpellCheckingEnabled):
      2010-10-28  MORITA Hajime  <morrita@google.com>
      
              Reviewed by Ojan Vafai.
      
              spellcheck does not check pasted text
              https://bugs.webkit.org/show_bug.cgi?id=40092
      
              Added a stub implememntation.
      
              * src/EditorClientImpl.h:
              (WebKit::EditorClientImpl::requestCheckingOfString):
      2010-10-28  MORITA Hajime  <morrita@google.com>
      
              Reviewed by Ojan Vafai.
      
              spellcheck does not check pasted text
              https://bugs.webkit.org/show_bug.cgi?id=40092
      
              Added a stub implememntation.
      
              * WebCoreSupport/EditorClientEfl.h:
              (WebCore::EditorClientEfl::requestCheckingOfString):
      2010-10-28  MORITA Hajime  <morrita@google.com>
      
              Reviewed by Ojan Vafai.
      
              spellcheck does not check pasted text
              https://bugs.webkit.org/show_bug.cgi?id=40092
      
              Added a stub implememntation.
      
              * WebCoreSupport/EditorClientGtk.h:
              (WebKit::EditorClient::requestCheckingOfString):
      2010-10-28  MORITA Hajime  <morrita@google.com>
      
              Reviewed by Ojan Vafai.
      
              spellcheck does not check pasted text
              https://bugs.webkit.org/show_bug.cgi?id=40092
      
              Added a stub implememntation.
      
              * WebCoreSupport/EditorClientHaiku.h:
              (WebCore::EditorClientHaiku::requestCheckingOfString):
      2010-10-28  MORITA Hajime  <morrita@google.com>
      
              Reviewed by Ojan Vafai.
      
              spellcheck does not check pasted text
              https://bugs.webkit.org/show_bug.cgi?id=40092
      
              Added asynchronous spell checking API to WebEditorClient using
              -[NSSpellChecker requestCheckingOfString].
              Note that WebEditorSpellCheckResponder is a small class to receive
              requested spell-checking result. Note that this feature is
              disabled at default.
      
              Also added [WebPreferences setAsynchronousSpellCheckingEnabled:] to
              enable the feature from LayoutTestController.
      
              * WebCoreSupport/WebEditorClient.h:
              * WebCoreSupport/WebEditorClient.mm:
              (-[WebEditorSpellCheckResponder initWithSender:WebCore::sequence:results:]):
              (-[WebEditorSpellCheckResponder perform]):
              (toCoreSpellingResult):
              (-[WebEditorSpellCheckResponder WTF::WebCore::]):
              (WebEditorClient::requestCheckingOfString):
              * WebView/WebPreferenceKeysPrivate.h:
              * WebView/WebPreferences.mm:
              (+[WebPreferences initialize]):
              (-[WebPreferences setAsynchronousSpellCheckingEnabled:]):
              (-[WebPreferences asynchronousSpellCheckingEnabled]):
              * WebView/WebPreferencesPrivate.h:
              * WebView/WebView.mm:
              (-[WebView _preferencesChangedNotification:]):
      2010-10-28  MORITA Hajime  <morrita@google.com>
      
              Reviewed by Ojan Vafai.
      
              spellcheck does not check pasted text
              https://bugs.webkit.org/show_bug.cgi?id=40092
      
              Added a stub implememntation.
      
              * WebCoreSupport/EditorClientQt.h:
              (WebCore::EditorClientQt::requestCheckingOfString):
      2010-10-28  MORITA Hajime  <morrita@google.com>
      
              Reviewed by Ojan Vafai.
      
              spellcheck does not check pasted text
              https://bugs.webkit.org/show_bug.cgi?id=40092
      
              Added a stub implememntation.
      
              * WebCoreSupport/WebEditorClient.h:
              (WebEditorClient::requestCheckingOfString):
      2010-10-28  MORITA Hajime  <morrita@google.com>
      
              Reviewed by Ojan Vafai.
      
              spellcheck does not check pasted text
              https://bugs.webkit.org/show_bug.cgi?id=40092
      
              Added a stub implememntation.
      
              * WebCoreSupport/EditorClientWinCE.h:
              (WebKit::EditorClient::requestCheckingOfString):
      2010-10-28  MORITA Hajime  <morrita@google.com>
      
              Reviewed by Ojan Vafai.
      
              spellcheck does not check pasted text
              https://bugs.webkit.org/show_bug.cgi?id=40092
      
              Added a stub implememntation.
      
              * WebKitSupport/EditorClientWx.h:
              (WebCore::EditorClientWx::requestCheckingOfString):
      2010-10-28  MORITA Hajime  <morrita@google.com>
      
              Reviewed by Ojan Vafai.
      
              spellcheck does not check pasted text
              https://bugs.webkit.org/show_bug.cgi?id=40092
      
              Added a stub implememntation.
      
              * WebProcess/WebCoreSupport/WebEditorClient.cpp:
              (WebKit::WebEditorClient::requestCheckingOfString):
              * WebProcess/WebCoreSupport/WebEditorClient.h:
      2010-10-28  MORITA Hajime  <morrita@google.com>
      
              Reviewed by Ojan Vafai.
      
              spellcheck does not check pasted text
              https://bugs.webkit.org/show_bug.cgi?id=40092
      
              Added LayoutTestController::setAsynchronousSpellCheckingEnabled()
              to control the setting.
      
              * DumpRenderTree/LayoutTestController.cpp:
              (setAsynchronousSpellCheckingEnabledCallback):
              (LayoutTestController::staticFunctions):
              * DumpRenderTree/LayoutTestController.h:
              * DumpRenderTree/chromium/LayoutTestController.h:
              * DumpRenderTree/chromium/LayoutTestController.cpp:
              (LayoutTestController::LayoutTestController):
              (LayoutTestController::setAsynchronousSpellCheckingEnabled):
              * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
              (LayoutTestController::setAsynchronousSpellCheckingEnabled):
              * DumpRenderTree/mac/DumpRenderTree.mm:
              (resetDefaultsToConsistentValues):
              * DumpRenderTree/mac/LayoutTestControllerMac.mm:
              (LayoutTestController::setAsynchronousSpellCheckingEnabled):
              * DumpRenderTree/qt/LayoutTestControllerQt.h:
              * DumpRenderTree/qt/LayoutTestControllerQt.cpp:
              (LayoutTestController::setAsynchronousSpellCheckingEnabled):
              * DumpRenderTree/win/LayoutTestControllerWin.cpp:
              (LayoutTestController::setAsynchronousSpellCheckingEnabled):
              * DumpRenderTree/wx/LayoutTestControllerWx.cpp:
              (LayoutTestController::setAsynchronousSpellCheckingEnabled):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73886 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7a18feed
  8. 10 Dec, 2010 5 commits
    • kbr@google.com's avatar
      2010-12-10 Kenneth Russell <kbr@google.com> · 81bb4971
      kbr@google.com authored
              Reviewed by James Robinson.
      
              Implement extension entry points and remove EXTENSIONS enum
              https://bugs.webkit.org/show_bug.cgi?id=40316
      
              Added support for ensuring that a particular OpenGL extension is
              enabled.
      
              * public/WebGraphicsContext3D.h:
              * src/Extensions3DChromium.cpp:
              (WebCore::Extensions3DChromium::ensureEnabled):
              * src/GraphicsContext3DChromium.cpp:
              (WebCore::GraphicsContext3DInternal::initializeExtensions):
              (WebCore::GraphicsContext3DInternal::supportsExtension):
              (WebCore::GraphicsContext3DInternal::ensureExtensionEnabled):
              * src/GraphicsContext3DInternal.h:
              * src/WebGraphicsContext3DDefaultImpl.cpp:
              (WebKit::WebGraphicsContext3DDefaultImpl::getRequestableExtensionsCHROMIUM):
              (WebKit::WebGraphicsContext3DDefaultImpl::requestExtensionCHROMIUM):
              * src/WebGraphicsContext3DDefaultImpl.h:
      2010-12-10  Kenneth Russell  <kbr@google.com>
      
              Reviewed by James Robinson.
      
              Implement extension entry points and remove EXTENSIONS enum
              https://bugs.webkit.org/show_bug.cgi?id=40316
      
              Implemented WebGLRenderingContext's getSupportedExtensions and
              getExtensions entry points, and, to verify them, added support for
              the first specified WebGL extension, OES_texture_float. This
              extension is now advertised in the Chromium and WebKit ports when
              the underlying hardware supports it.
      
              The new OES_texture_float test in the WebGL conformance suite
              verifies the allocation and population of floating point textures,
              and their use as render targets. However, because this extension
              is optional, it is not easily testable with a layout test; there
              is only one set of expectations for a given test, and two would be
              needed, one when the extension is available and one when it is not.
      
              Tested with the oes-texture-float.html WebGL conformance test in
              Chromium and WebKit on Mac OS X on hardware that supports the
              extension. Also verified with a configuration that does not
              advertise the extension that this same test passes.
      
              * CMakeLists.txt:
              * DerivedSources.make:
              * GNUmakefile.am:
              * WebCore.gypi:
              * WebCore.pri:
              * WebCore.pro:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/JSWebGLRenderingContextCustom.cpp:
              (WebCore::toJS):
              (WebCore::JSWebGLRenderingContext::markChildren):
              (WebCore::JSWebGLRenderingContext::getExtension):
              (WebCore::JSWebGLRenderingContext::getSupportedExtensions):
              * bindings/v8/custom/V8WebGLRenderingContextCustom.cpp:
              (WebCore::toV8Object):
              (WebCore::V8WebGLRenderingContext::getExtensionCallback):
              (WebCore::V8WebGLRenderingContext::getSupportedExtensionsCallback):
              * html/canvas/OESTextureFloat.cpp: Added.
              (WebCore::OESTextureFloat::OESTextureFloat):
              (WebCore::OESTextureFloat::~OESTextureFloat):
              (WebCore::OESTextureFloat::getName):
              (WebCore::OESTextureFloat::create):
              * html/canvas/OESTextureFloat.h: Added.
              * html/canvas/OESTextureFloat.idl: Added.
              * html/canvas/WebGLExtension.cpp: Added.
              (WebCore::WebGLExtension::WebGLExtension):
              (WebCore::WebGLExtension::~WebGLExtension):
              * html/canvas/WebGLExtension.h: Added.
              * html/canvas/WebGLRenderingContext.cpp:
              (WebCore::WebGLRenderingContext::getExtension):
              (WebCore::WebGLRenderingContext::getSupportedExtensions):
              (WebCore::WebGLRenderingContext::validateTexFuncFormatAndType):
              (WebCore::WebGLRenderingContext::validateTexFuncData):
              (WebCore::WebGLRenderingContext::getNumberOfExtensions):
              (WebCore::WebGLRenderingContext::getExtensionNumber):
              * html/canvas/WebGLRenderingContext.h:
              * html/canvas/WebGLRenderingContext.idl:
              * platform/graphics/Extensions3D.h:
              * platform/graphics/GraphicsContext3D.cpp:
              (WebCore::GraphicsContext3D::computeFormatAndTypeParameters):
              (WebCore::GraphicsContext3D::extractTextureData):
              (WebCore::doUnpackingAndPacking):
              (WebCore::doPacking):
              (WebCore::doFloatingPointPacking):
              (WebCore::GraphicsContext3D::packPixels):
              * platform/graphics/GraphicsContext3D.h:
              * platform/graphics/chromium/Extensions3DChromium.h:
              * platform/graphics/opengl/Extensions3DOpenGL.cpp:
              (WebCore::Extensions3DOpenGL::supports):
              (WebCore::Extensions3DOpenGL::ensureEnabled):
              * platform/graphics/opengl/Extensions3DOpenGL.h:
              * platform/graphics/opengl/GraphicsContext3DOpenGL.cpp:
              (WebCore::GraphicsContext3D::texImage2D):
              * platform/graphics/qt/Extensions3DQt.cpp:
              (WebCore::Extensions3DQt::ensureEnabled):
              * platform/graphics/qt/Extensions3DQt.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73806 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      81bb4971
    • commit-queue@webkit.org's avatar
      2010-12-09 Jenn Braithwaite <jennb@chromium.org> · b4be94a9
      commit-queue@webkit.org authored
              Reviewed by Adam Barth.
      
              TextResourceDecoder::checkForHeadCharset can look way past the limit.
              https://bugs.webkit.org/show_bug.cgi?id=47397
      
              Replaced charset detection algorithm with real parser.
              Added tests for parser bugs mentioned in the thread for this bug report.
              Converted hixie's encoding parsing tests to a layout test.
      
              Tests: fast/encoding/bracket-in-script.html
                     fast/encoding/bracket-in-tag.html
                     fast/encoding/escaped-bracket.html
                     fast/encoding/meta-in-body.html
                     fast/encoding/meta-in-script.html
                     fast/encoding/meta-in-title.html
                     fast/encoding/mismatched-end-tag.html
                     fast/encoding/namespace-meta.html
                     fast/encoding/not-http-equiv-content.html
                     fast/encoding/parser-tests.html
                     fast/encoding/quotes-in-title.html
                     fast/encoding/tag-name-digit.html
                     http/tests/misc/charset-sniffer-end-sniffing.html
      
              * Android.mk:
              * CMakeLists.txt:
              * GNUmakefile.am:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * html/parser/HTMLMetaCharsetParser.cpp: Added.
              (WebCore::HTMLMetaCharsetParser::HTMLMetaCharsetParser):
              (WebCore::HTMLMetaCharsetParser::~HTMLMetaCharsetParser):
              (WebCore::HTMLMetaCharsetParser::extractCharset):
              (WebCore::HTMLMetaCharsetParser::processMeta):
              (WebCore::HTMLMetaCharsetParser::checkForMetaCharset):
              * html/parser/HTMLMetaCharsetParser.h: Added.
              (WebCore::HTMLMetaCharsetParser::create):
              (WebCore::HTMLMetaCharsetParser::encoding):
              * loader/TextResourceDecoder.cpp:
              (WebCore::TextResourceDecoder::checkForHeadCharset):
              (WebCore::TextResourceDecoder::checkForMetaCharset):
              * loader/TextResourceDecoder.h:
      2010-12-09  Jenn Braithwaite  <jennb@chromium.org>
      
              Reviewed by Adam Barth.
      
              TextResourceDecoder::checkForHeadCharset can look way past the limit.
              https://bugs.webkit.org/show_bug.cgi?id=47397
      
              Replaced charset detection algorithm with real parser.
              Added tests for parser bugs mentioned in the thread for this bug report.
              Converted hixie's encoding parsing tests to a layout test.
              Added http-equiv attribute to meta tag in 2 existing tests.
      
              * fast/encoding/bracket-in-script-expected.txt: Added.
              * fast/encoding/bracket-in-script.html: Added.
              * fast/encoding/bracket-in-tag-expected.txt: Added.
              * fast/encoding/bracket-in-tag.html: Added.
              * fast/encoding/escaped-bracket-expected.txt: Added.
              * fast/encoding/escaped-bracket.html: Added.
              * fast/encoding/meta-in-body-expected.txt: Added.
              * fast/encoding/meta-in-body.html: Added.
              * fast/encoding/meta-in-script-expected.txt: Added.
              * fast/encoding/meta-in-script.html: Added.
              * fast/encoding/meta-in-title-expected.txt: Added.
              * fast/encoding/meta-in-title.html: Added.
              * fast/encoding/mismatched-end-tag-expected.txt: Added.
              * fast/encoding/mismatched-end-tag.html: Added.
              * fast/encoding/namespace-meta-expected.txt: Added.
              * fast/encoding/namespace-meta.html: Added.
              * fast/encoding/namespace-tolerance.html:
              * fast/encoding/not-http-equiv-content-expected.txt: Added.
              * fast/encoding/not-http-equiv-content.html: Added.
              * fast/encoding/parser-tests-expected.txt: Added.
              * fast/encoding/parser-tests.html: Added.
              * fast/encoding/quotes-in-title-expected.txt: Added.
              * fast/encoding/quotes-in-title.html: Added.
              * fast/encoding/resources/001.html: Added.
              * fast/encoding/resources/002.html: Added.
              * fast/encoding/resources/003.html: Added.
              * fast/encoding/resources/004.html: Added.
              * fast/encoding/resources/005.html: Added.
              * fast/encoding/resources/006.html: Added.
              * fast/encoding/resources/007.html: Added.
              * fast/encoding/resources/008.html: Added.
              * fast/encoding/resources/009.html: Added.
              * fast/encoding/resources/010.html: Added.
              * fast/encoding/resources/011.html: Added.
              * fast/encoding/resources/012.html: Added.
              * fast/encoding/resources/013.html: Added.
              * fast/encoding/resources/014.html: Added.
              * fast/encoding/resources/015.html: Added.
              * fast/encoding/resources/016.html: Added.
              * fast/encoding/resources/017.html: Added.
              * fast/encoding/resources/018.html: Added.
              * fast/encoding/resources/019.html: Added.
              * fast/encoding/resources/020.html: Added.
              * fast/encoding/resources/021.html: Added.
              * fast/encoding/resources/022.html: Added.
              * fast/encoding/resources/023.html: Added.
              * fast/encoding/resources/024.html: Added.
              * fast/encoding/resources/025.html: Added.
              * fast/encoding/resources/026.html: Added.
              * fast/encoding/resources/027.html: Added.
              * fast/encoding/resources/028.html: Added.
              * fast/encoding/resources/029.html: Added.
              * fast/encoding/resources/030.html: Added.
              * fast/encoding/resources/031.html: Added.
              * fast/encoding/resources/032.html: Added.
              * fast/encoding/resources/033.html: Added.
              * fast/encoding/resources/034.html: Added.
              * fast/encoding/resources/035.html: Added.
              * fast/encoding/resources/036.html: Added.
              * fast/encoding/resources/037.html: Added.
              * fast/encoding/resources/038.html: Added.
              * fast/encoding/resources/039.html: Added.
              * fast/encoding/resources/040.html: Added.
              * fast/encoding/resources/041.html: Added.
              * fast/encoding/resources/042.html: Added.
              * fast/encoding/resources/043.html: Added.
              * fast/encoding/resources/044.html: Added.
              * fast/encoding/resources/045.html: Added.
              * fast/encoding/resources/046.html: Added.
              * fast/encoding/resources/047.html: Added.
              * fast/encoding/resources/048.html: Added.
              * fast/encoding/resources/049.html: Added.
              * fast/encoding/resources/050.html: Added.
              * fast/encoding/resources/051.html: Added.
              * fast/encoding/resources/052.html: Added.
              * fast/encoding/resources/053.html: Added.
              * fast/encoding/resources/054.html: Added.
              * fast/encoding/resources/055.html: Added.
              * fast/encoding/resources/056.html: Added.
              * fast/encoding/resources/057.html: Added.
              * fast/encoding/resources/058.html: Added.
              * fast/encoding/resources/059.html: Added.
              * fast/encoding/resources/060.html: Added.
              * fast/encoding/resources/061.html: Added.
              * fast/encoding/resources/062.html: Added.
              * fast/encoding/resources/063.html: Added.
              * fast/encoding/resources/064.html: Added.
              * fast/encoding/resources/065.html: Added.
              * fast/encoding/resources/066.html: Added.
              * fast/encoding/resources/067.html: Added.
              * fast/encoding/resources/068.html: Added.
              * fast/encoding/resources/069.html: Added.
              * fast/encoding/resources/070.html: Added.
              * fast/encoding/resources/071.html: Added.
              * fast/encoding/resources/072.html: Added.
              * fast/encoding/resources/073.html: Added.
              * fast/encoding/resources/074.html: Added.
              * fast/encoding/resources/075.html: Added.
              * fast/encoding/resources/076.html: Added.
              * fast/encoding/resources/077.html: Added.
              * fast/encoding/resources/078.html: Added.
              * fast/encoding/resources/079.html: Added.
              * fast/encoding/resources/080.html: Added.
              * fast/encoding/resources/081.html: Added.
              * fast/encoding/resources/082.html: Added.
              * fast/encoding/resources/083.html: Added.
              * fast/encoding/resources/084.html: Added.
              * fast/encoding/resources/085.html: Added.
              * fast/encoding/resources/086.html: Added.
              * fast/encoding/resources/087.html: Added.
              * fast/encoding/resources/088.html: Added.
              * fast/encoding/resources/089.html: Added.
              * fast/encoding/resources/090.html: Added.
              * fast/encoding/resources/091.html: Added.
              * fast/encoding/resources/092.html: Added.
              * fast/encoding/resources/093.html: Added.
              * fast/encoding/resources/094.html: Added.
              * fast/encoding/resources/095.html: Added.
              * fast/encoding/resources/096.html: Added.
              * fast/encoding/resources/097.html: Added.
              * fast/encoding/resources/098.html: Added.
              * fast/encoding/resources/099.html: Added.
              * fast/encoding/resources/100.html: Added.
              * fast/encoding/resources/101.html: Added.
              * fast/encoding/resources/102.html: Added.
              * fast/encoding/resources/103.html: Added.
              * fast/encoding/resources/104.html: Added.
              * fast/encoding/resources/105.html: Added.
              * fast/encoding/resources/106.html: Added.
              * fast/encoding/resources/107.html: Added.
              * fast/encoding/resources/108.html: Added.
              * fast/encoding/resources/109.html: Added.
              * fast/encoding/resources/110.html: Added.
              * fast/encoding/resources/111.html: Added.
              * fast/encoding/resources/112.html: Added.
              * fast/encoding/resources/113.html: Added.
              * fast/encoding/resources/114.html: Added.
              * fast/encoding/resources/115.html: Added.
              * fast/encoding/resources/116.html: Added.
              * fast/encoding/resources/117.html: Added.
              * fast/encoding/resources/118.html: Added.
              * fast/encoding/resources/119.html: Added.
              * fast/encoding/resources/120.html: Added.
              * fast/encoding/resources/121.html: Added.
              * fast/encoding/resources/122.html: Added.
              * fast/encoding/resources/123.html: Added.
              * fast/encoding/tag-name-digit-expected.txt: Added.
              * fast/encoding/tag-name-digit.html: Added.
              * fast/text/international/bidi-innertext.html:
              * http/tests/misc/charset-sniffer-end-sniffing-expected.txt: Added.
              * http/tests/misc/charset-sniffer-end-sniffing.html: Added.
              * http/tests/misc/resources/charset-sniffer-end-sniffing.php: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73756 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b4be94a9
    • japhet@chromium.org's avatar
      2010-12-10 Nate Chapin <japhet@chromium.org> · f8d43691
      japhet@chromium.org authored
              Reviewed by Antti Koivisto.
      
              Merge Loader and Request. Currently, Loader is a singleton attached
              to MemoryCache. Our goal is to remove knowledge of the loading process
              from MemoryCache, so we should attach Loader to CachedResourceLoader instead.
              Once Loader is moved off of MemoryCache, there's no reason it needs to be a singleton,
              which removes the main reason for Request existing as a separate class (to store per-request
              state that Loader couldn't).
      
              Loader will be given a more descriptive name in a later patch.
      
              https://bugs.webkit.org/show_bug.cgi?id=49837
      
              Refactor only, no new tests.
      
              * Android.mk:
              * CMakeLists.txt:
              * GNUmakefile.am:
              * WebCore.gypi:
              * WebCore.pro:
              * loader/FrameLoader.cpp:
              * loader/Request.cpp:
              * loader/Request.h:
              * loader/cache/CachedFont.cpp:
              * loader/cache/CachedImage.cpp:
              * loader/cache/CachedResource.cpp:
              * loader/cache/CachedResource.h:
              * loader/cache/CachedResourceLoader.cpp:
              (WebCore::CachedResourceLoader::CachedResourceLoader):
              (WebCore::CachedResourceLoader::~CachedResourceLoader):
              (WebCore::CachedResourceLoader::requestImage):
              (WebCore::CachedResourceLoader::setAutoLoadImages):
              (WebCore::CachedResourceLoader::load):
              (WebCore::CachedResourceLoader::loadDone): Was setLoadInProgress(false),
                  plus other CachedResourceLoader cleanup that had been handled in Loader.
              (WebCore::CachedResourceLoader::cancelRequests): Moved from Loader.
              (WebCore::CachedResourceLoader::requestCount):
              * loader/cache/CachedResourceLoader.h:
              (WebCore::CachedResourceLoader::loadFinishing): Was setLoadInProgress(true)
              * loader/cache/MemoryCache.h:
              * loader/loader.cpp:
              (WebCore::Loader::Loader):
              (WebCore::Loader::~Loader):
              (WebCore::Loader::load):
              (WebCore::Loader::willSendRequest):
              (WebCore::Loader::didFinishLoading):
              (WebCore::Loader::didFail):
              (WebCore::Loader::didReceiveResponse):
              (WebCore::Loader::didReceiveData):
              (WebCore::Loader::didReceiveCachedMetadata):
              * loader/loader.h:
              (WebCore::Loader::cachedResourceLoader):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73749 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f8d43691
    • rniwa@webkit.org's avatar
      2010-12-09 Ryosuke Niwa <rniwa@webkit.org> · b69181d8
      rniwa@webkit.org authored
              Reviewed by Ojan Vafai.
      
              Make DOM Mutation Events Asynchronous
              https://bugs.webkit.org/show_bug.cgi?id=46936
      
              Implemented DOM mutations events as scoped events. A scoped event is an event whose
              dispatch is done via ScopedEventQueue. The behavior of the queue is controlled by
              EventQueueScope objects (RAII idiom), which increments and decrements the scoping level
              on its constructor and destructor respectively.
      
              When the scoping level is 0 (initial level), scoped events are dispatched as soon as
              they are enqueued and act like synchronous events. When the scoping level is greater than 0,
              however, events are queued in ScopedEventQueue and their dispatches are delayed until
              the scoping level goes back to 0 (by the destruction of EventQueueScope).
      
              DOMSubtreeModified, DOMNodeInserted, DOMNodeRemoved, DOMNodeRemovedFromDocument,
              DOMNodeInsertedIntoDocument, DOMFocusIn, DOMFocusOut, focusin, and focusout are treated as
              scoped events, and a scope object is instantiated in EditCommand::apply to delay dispatches
              of the events until the completion of each call of EditCommand::doApply.
      
              Test: fast/events/mutation/execCommands.html
      
              * Android.mk: Added ScopedEventQueue.cpp.
              * CMakeLists.txt: Ditto.
              * WebCore.pro: Ditto.
              * GNUmakefile.am: Added ScopedEventQueue.cpp and ScopedEventQueue.h.
              * WebCore.gypi:  Ditto.
              * WebCore.vcproj/project.vcproj: Ditto.
              * WebCore.xcodeproj/project.pbxproj: Ditto.
              * dom/ContainerNode.cpp:
              (WebCore::dispatchChildInsertionEvents): Calls dispatchScopedEvent.
              (WebCore::dispatchChildRemovalEvents): Ditto.
              * dom/DOMAllInOne.cpp: Added ScopedEventQueue.cpp.
              * dom/Element.cpp:
              (WebCore::Element::dispatchAttrRemovalEvent): Ditto. 
              (WebCore::Element::dispatchAttrAdditionEvent): Ditto.
              * dom/Node.cpp:
              (WebCore::Node::dispatchScopedEvent): Added.
              (WebCore::Node::dispatchSubtreeModifiedEvent): Calls dispatchScopedEvent.
              * dom/Node.h:
              * dom/ScopedEventQueue.cpp: Added.
              (WebCore::ScopedEventQueue::initialize): Added.
              (WebCore::ScopedEventQueue::enqueueEvent): Added.
              (WebCore::ScopedEventQueue::dispatchAllEvents): Added.
              (WebCore::ScopedEventQueue::dispatchEvent): Added.
              (WebCore::ScopedEventQueue::instance): Added.
              (WebCore::ScopedEventQueue::incrementScopingLevel): Added.
              (WebCore::ScopedEventQueue::decrementScopingLevel): Added.
              * dom/ScopedEventQueue.h: Added.
              (WebCore::ScopedEventQueue::~ScopedEventQueue): Added.
              (WebCore::ScopedEventQueue::ScopedEventQueue): Added.
              (WebCore::EventQueueScope::EventQueueScope): Added.
              (WebCore::EventQueueScope::~EventQueueScope): Added.
              * editing/EditCommand.cpp:
              (WebCore::EditCommand::apply): Instantiates EventQueueScope.
      2010-12-09  Ryosuke Niwa  <rniwa@webkit.org>
      
              Reviewed by Ojan Vafai.
      
              Make DOM Mutation Events Asynchronous
              https://bugs.webkit.org/show_bug.cgi?id=46936
      
              Added a test to ensure no DOM mutation events are fired while execCommand is in progress.
      
              * fast/events/crash-on-mutate-during-drop.html: DOMNodeInserted is fired after BR is detached
              from the document, and can't be observed. Modify the DOM when text node is inserted.
              * fast/events/scoped: Added.
              * fast/events/scoped/editing-commands-expected.txt: Added.
              * fast/events/scoped/editing-commands.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73690 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b69181d8
    • rniwa@webkit.org's avatar
      2010-12-09 Sheriff Bot <webkit.review.bot@gmail.com> · 1a796035
      rniwa@webkit.org authored
              Unreviewed, rolling out r73684.
              http://trac.webkit.org/changeset/73684
              https://bugs.webkit.org/show_bug.cgi?id=50801
      
              "missing bug number" (Requested by rniwa on #webkit).
      
              * Android.mk:
              * CMakeLists.txt:
              * GNUmakefile.am:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * dom/ContainerNode.cpp:
              (WebCore::dispatchChildInsertionEvents):
              (WebCore::dispatchChildRemovalEvents):
              * dom/DOMAllInOne.cpp:
              * dom/Element.cpp:
              (WebCore::Element::dispatchAttrRemovalEvent):
              (WebCore::Element::dispatchAttrAdditionEvent):
              * dom/Node.cpp:
              (WebCore::Node::dispatchSubtreeModifiedEvent):
              (WebCore::Node::dispatchUIEvent):
              * dom/Node.h:
              * dom/ScopedEventQueue.cpp: Removed.
              * dom/ScopedEventQueue.h: Removed.
              * editing/EditCommand.cpp:
              (WebCore::EditCommand::apply):
      2010-12-09  Sheriff Bot  <webkit.review.bot@gmail.com>
      
              Unreviewed, rolling out r73684.
              http://trac.webkit.org/changeset/73684
              https://bugs.webkit.org/show_bug.cgi?id=50801
      
              "missing bug number" (Requested by rniwa on #webkit).
      
              * fast/events/crash-on-mutate-during-drop.html:
              * fast/events/scoped/editing-commands-expected.txt: Removed.
              * fast/events/scoped/editing-commands.html: Removed.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73689 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1a796035
  9. 09 Dec, 2010 2 commits
    • rniwa@webkit.org's avatar
      2010-12-09 Ryosuke Niwa <rniwa@webkit.org> · 59951184
      rniwa@webkit.org authored
              Reviewed by Ojan Vafai.
      
              Implemented DOM mutations events as scoped events. A scoped event is an event whose
              dispatch is done via ScopedEventQueue. The behavior of the queue is controlled by
              EventQueueScope objects (RAII idiom), which increments and decrements the scoping level
              on its constructor and destructor respectively.
      
              When the scoping level is 0 (initial level), scoped events are dispatched as soon as
              they are enqueued and act like synchronous events. When the scoping level is greater than 0,
              however, events are queued in ScopedEventQueue and their dispatches are delayed until
              the scoping level goes back to 0 (by the destruction of EventQueueScope).
      
              DOMSubtreeModified, DOMNodeInserted, DOMNodeRemoved, DOMNodeRemovedFromDocument,
              DOMNodeInsertedIntoDocument, DOMFocusIn, DOMFocusOut, focusin, and focusout are treated as
              scoped events, and a scope object is instantiated in EditCommand::apply to delay dispatches
              of the events until the completion of each call of EditCommand::doApply.
      
              Test: fast/events/mutation/execCommands.html
      
              * Android.mk: Added ScopedEventQueue.cpp.
              * CMakeLists.txt: Ditto.
              * WebCore.pro: Ditto.
              * GNUmakefile.am: Added ScopedEventQueue.cpp and ScopedEventQueue.h.
              * WebCore.gypi:  Ditto.
              * WebCore.vcproj/project.vcproj: Ditto.
              * WebCore.xcodeproj/project.pbxproj: Ditto.
              * dom/ContainerNode.cpp:
              (WebCore::dispatchChildInsertionEvents): Calls dispatchScopedEvent.
              (WebCore::dispatchChildRemovalEvents): Ditto.
              * dom/DOMAllInOne.cpp: Added ScopedEventQueue.cpp.
              * dom/Element.cpp:
              (WebCore::Element::dispatchAttrRemovalEvent): Ditto. 
              (WebCore::Element::dispatchAttrAdditionEvent): Ditto.
              * dom/Node.cpp:
              (WebCore::Node::dispatchScopedEvent): Added.
              (WebCore::Node::dispatchSubtreeModifiedEvent): Calls dispatchScopedEvent.
              * dom/Node.h:
              * dom/ScopedEventQueue.cpp: Added.
              (WebCore::ScopedEventQueue::initialize): Added.
              (WebCore::ScopedEventQueue::enqueueEvent): Added.
              (WebCore::ScopedEventQueue::dispatchAllEvents): Added.
              (WebCore::ScopedEventQueue::dispatchEvent): Added.
              (WebCore::ScopedEventQueue::instance): Added.
              (WebCore::ScopedEventQueue::incrementScopingLevel): Added.
              (WebCore::ScopedEventQueue::decrementScopingLevel): Added.
              * dom/ScopedEventQueue.h: Added.
              (WebCore::ScopedEventQueue::~ScopedEventQueue): Added.
              (WebCore::ScopedEventQueue::ScopedEventQueue): Added.
              (WebCore::EventQueueScope::EventQueueScope): Added.
              (WebCore::EventQueueScope::~EventQueueScope): Added.
              * editing/EditCommand.cpp:
              (WebCore::EditCommand::apply): Instantiates EventQueueScope.
      2010-12-09  Ryosuke Niwa  <rniwa@webkit.org>
      
              Reviewed by Ojan Vafai.
      
              Added a test to ensure no DOM mutation events are fired while execCommand is in progress.
      
              * fast/events/crash-on-mutate-during-drop.html: DOMNodeInserted is fired after BR is detached
              from the document, and can't be observed. Modify the DOM when text node is inserted.
              * fast/events/mutation: Added.
              * fast/events/mutation/execCommands.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73684 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      59951184
    • kbr@google.com's avatar
      2010-12-09 Kenneth Russell <kbr@google.com> · 36191196
      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
      36191196
  10. 08 Dec, 2010 1 commit
    • bweinstein@apple.com's avatar
      Layering Violation in ContextMenu - member variable of type HitTestResult · ff7b94c4
      bweinstein@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=50586
              
      Reviewed by John Sullivan.
      
      WebCore: 
      
      ContextMenu had a layering violation by having a member variable of type HitTestResult, because
      classes in WebCore/platform can't know about classes in WebCore.
              
      This patch moves the HitTestResult and all functions that use it out of ContextMenu into ContextMenuController.
      All of the functions that dealt with populating the ContextMenu are now in ContextMenuController, and this
      allowed us to delete the ContextMenu file, putting all of the cross-platform code that used to be it
      in ContextMenuController, and the rest of the code is in the platform-specific files.
      
      No change in behavior, no new tests.
      
      * Android.mk: Removed ContextMenu.cpp.
      * CMakeLists.txt: Ditto.
      * GNUmakefile.am: Ditto.
      * WebCore.gypi: Ditto.
      * WebCore.pro: Ditto.
      * WebCore.vcproj/WebCore.vcproj: Ditto.
      * WebCore.xcodeproj/project.pbxproj: Ditto.
      
      * page/ContextMenuController.cpp:
      (WebCore::ContextMenuController::ContextMenuController): Initialized m_hitTestResult to an empty HitTestResult.
      (WebCore::ContextMenuController::handleContextMenuEvent): Call populate on the ContextMenuController instead
          of the ContextMenu.
      (WebCore::ContextMenuController::createContextMenu): Fix some indination, and store the HitTestResult in a member
          variable.
      (WebCore::ContextMenuController::showContextMenu): Call addInspectElementItem on the ContextMenuController.
      (WebCore::ContextMenuController::contextMenuItemSelected): Use m_hitTestResult whenever we need a HitTestResult.
      (WebCore::ContextMenuController::appendItem): Validates the item for its state, and then appends it to the parent menu.
          This allowed us to move checkOrEnableIfNeeded from ContextMenu.
      
      These functions were all moved from ContextMenu, and changed slightly to fit in ContextMenuController.
      All calls to ContextMenu::appendItem were changed to ContextMenuController::appendItem, which takes care
      of validating the menu.
      (WebCore::separatorItem): Moved from ContextMenu.
      (WebCore::ContextMenuController::createAndAppendFontSubMenu): Ditto.
      (WebCore::ContextMenuController::createAndAppendSpellingAndGrammarSubMenu): Ditto.
      (WebCore::ContextMenuController::createAndAppendSpeechSubMenu): Ditto.
      (WebCore::ContextMenuController::createAndAppendWritingDirectionSubMenu): Ditto.
      (WebCore::ContextMenuController::createAndAppendTextDirectionSubMenu): Ditto.
      (WebCore::ContextMenuController::createAndAppendSubstitutionsSubMenu): Ditto.
      (WebCore::ContextMenuController::createAndAppendTransformationsSubMenu): Ditto.
      (WebCore::selectionContainsPossibleWord): Ditto.
      (WebCore::ContextMenuController::populate): Ditto.
      (WebCore::ContextMenuController::addInspectElementItem): Ditto.
      (WebCore::ContextMenuController::checkOrEnableIfNeeded): Ditto.
              
      * page/ContextMenuController.h:
      (WebCore::ContextMenuController::hitTestResult): Returns the HitTestResult of the current ContextMenu.
      
      * platform/ContextMenu.cpp: Removed.
      * platform/ContextMenu.h:
      * platform/efl/ContextMenuEfl.cpp:
      (WebCore::ContextMenu::ContextMenu): Removed m_hitTestResult from the constructor.
      (WebCore::ContextMenu::appendItem): Removed the call to checkOrEnableIfNeeded.
      * platform/gtk/ContextMenuGtk.cpp:
      (WebCore::ContextMenu::ContextMenu): Removed m_hitTestResult from the constructor.
      (WebCore::ContextMenu::appendItem): Ditto.
      * platform/haiku/ContextMenuHaiku.cpp:
      (WebCore::ContextMenu::ContextMenu): Removed m_hitTestResult from the constructor.
      (WebCore::ContextMenu::appendItem): Ditto.
      (WebCore::ContextMenu::insertItem): Ditto.
      * platform/mac/ContextMenuMac.mm:
      (-[WebCoreMenuTarget validateMenuItem:]): Calls checkOrEnableIfNeeded on the controller instead of
          the context menu.
      (WebCore::ContextMenu::ContextMenu): Removed m_hitTestResult from the constructor.
      (WebCore::ContextMenu::appendItem): Removed the call to checkOrEnableIfNeeded.
      (WebCore::ContextMenu::insertItem): Ditto.
      * platform/win/ContextMenuWin.cpp:
      (WebCore::ContextMenu::ContextMenu): Removed m_hitTestResult from the constructor.
      (WebCore::ContextMenu::insertItem): Removed the call to checkOrEnableIfNeeded.
      * platform/wx/ContextMenuWx.cpp:
      (WebCore::ContextMenu::ContextMenu): Removed m_hitTestResult from the constructor.
      (ContextMenu::appendItem): Ditto.
      
      WebKit/chromium: 
      
      Update users of ContextMenu and ContextMenuController to match where the new functions 
      are located.
      
      * src/ContextMenuClientImpl.cpp:
      (WebKit::selectMisspelledWord):
      (WebKit::ContextMenuClientImpl::getCustomMenuFromDefaultItems):
      
      WebKit/gtk: 
      
      Update users of ContextMenu and ContextMenuController to match where the new functions 
      are located.
      
      * WebCoreSupport/ContextMenuClientGtk.cpp:
      (WebKit::ContextMenuClient::getCustomMenuFromDefaultItems):
      
      WebKit/mac: 
      
      Update users of ContextMenu and ContextMenuController to match where the new functions 
      are located.
      
      * WebCoreSupport/WebContextMenuClient.mm:
      (WebContextMenuClient::getCustomMenuFromDefaultItems):
      (WebContextMenuClient::contextMenuItemSelected):
      * WebView/WebHTMLView.mm:
      (-[WebMenuTarget validateMenuItem:]):
      
      WebKit/qt: 
      
      Update users of ContextMenu and ContextMenuController to match where the new functions 
      are located.
      
      * Api/qwebpage.cpp:
      (QWebPagePrivate::createContextMenu):
      (QWebPage::updatePositionDependentActions):
      
      WebKit/win: 
      
      Update users of ContextMenu and ContextMenuController to match where the new functions 
      are located.
      
      * WebCoreSupport/WebContextMenuClient.cpp:
      (WebContextMenuClient::getCustomMenuFromDefaultItems): Get the HitTestResult and ContextMenu from the 
          ContextMenuController (from the page).
      (WebContextMenuClient::contextMenuItemSelected): Get the HitTestResult from the ContextMenuController.
      * WebView.cpp:
      (WebView::handleContextMenuEvent): Ditto.
      
      WebKit2: 
      
      Update users of ContextMenu and ContextMenuController to match where the new functions 
      are located.
      
      * Shared/WebContextMenuItemData.cpp:
      (WebKit::WebContextMenuItemData::WebContextMenuItemData): Remove the call to checkOrEnableItem, that call will be made when
          the ContextMenuItem is added to the ContextMenu through the ContextMenuController.
      * WebProcess/WebPage/WebContextMenu.cpp:
      (WebKit::WebContextMenu::show):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73535 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ff7b94c4
  11. 07 Dec, 2010 2 commits
    • paroga@webkit.org's avatar
      2010-12-07 Patrick Gansterer <paroga@webkit.org> · 4f8a599d
      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
      4f8a599d
    • tkent@chromium.org's avatar
      2010-12-07 Kenichi Ishibashi <bashi@google.com> · 995765c6
      tkent@chromium.org authored
              Reviewed by Kent Tamura.
      
              Let HTMLObjectElement be a form associated element
              https://bugs.webkit.org/show_bug.cgi?id=48821
      
              Introduces FormAssociatedElement class which would be a super class
              of form assocated elements. Some of member functions and variables of
              HTMLFormControlElement are migrated into this class.
              Following the HTML5 spec, HTMLFormControlElement class and
              HTMLObjectElement class are subclasses of it for now.
      
              Test: fast/forms/form-collection-elements-order.html
      
              * Android.mk: Added FormAssociatedElement.cpp
              * CMakeLists.txt: Ditto.
              * GNUmakefile.am: Added FormAssociatedElement.{cpp,h}
              * WebCore.exp.in: Added the symbol for toHTMLElement(FormAssociatedElement*)
              * WebCore.gypi: Added FormAssociatedElement.{cpp,h}
              * WebCore.pro: Ditto.
              * WebCore.vcproj/WebCore.vcproj: Ditto.
              * WebCore.xcodeproj/project.pbxproj: Ditto.
              * dom/CheckedRadioButtons.h: Fixed class forward declaration order.
              * dom/Document.cpp:
              (WebCore::Document::registerFormElementWithFormAttribute): Modified to
              use FormAssociatedElement instead of HTMLFormControlElement
              (WebCore::Document::unregisterFormElementWithFormAttribute): Ditto.
              (WebCore::Document::resetFormElementsOwner):
              * dom/Document.h: Ditto.
              * html/DOMFormData.cpp: Ditto.
              (WebCore::DOMFormData::DOMFormData):
              * html/FormAssociatedElement.cpp: Copied and renamed from WebCore/html/HTMLFormControlElement.cpp.
              (WebCore::FormAssociatedElement::FormAssociatedElement):
              (WebCore::FormAssociatedElement::~FormAssociatedElement):
              (WebCore::FormAssociatedElement::validity):
              (WebCore::FormAssociatedElement::insertedIntoTree):
              (WebCore::FormAssociatedElement::removedFromTree):
              (WebCore::FormAssociatedElement::removeFromForm):
              (WebCore::FormAssociatedElement::resetFormOwner):
              (WebCore::FormAssociatedElement::formAttributeChanged):
              (WebCore::toHTMLElement):
              * html/FormAssociatedElement.h: Ditto.
              (WebCore::FormAssociatedElement::ref):
              (WebCore::FormAssociatedElement::deref):
              (WebCore::FormAssociatedElement::formDestroyed):
              (WebCore::FormAssociatedElement::setForm):
              * html/HTMLElement.h: Changed the access level of findFormAncestor().
              * html/HTMLFormCollection.cpp:
              (WebCore::HTMLFormCollection::item): Modified to use FormAssociatedElement
              instead of HTMLFormControlElement.
              (WebCore::HTMLFormCollection::getNamedFormItem): Ditto.
              (WebCore::HTMLFormCollection::updateNameCache): Ditto.
              * html/HTMLFormControlElement.cpp: Modified regarding with the change of class
              hierarchy.
              (WebCore::HTMLFormControlElement::HTMLFormControlElement):
              (WebCore::HTMLFormControlElement::~HTMLFormControlElement):
              (WebCore::HTMLFormControlElement::insertedIntoTree):
              (WebCore::HTMLFormControlElement::removedFromTree):
              (WebCore::HTMLFormControlElement::supportsFocus):
              (WebCore::HTMLFormControlElement::checkValidity):
              (WebCore::HTMLFormControlElement::virtualForm):
              (WebCore::HTMLFormControlElement::isDefaultButtonForForm):
              (WebCore::HTMLFormControlElement::attributeChanged):
              * html/HTMLFormControlElement.h: Ditto.
              (WebCore::HTMLFormControlElement::form):
              (WebCore::HTMLFormControlElement::disabled):
              (WebCore::HTMLFormControlElement::type):
              (WebCore::HTMLFormControlElement::refFormAssociatedElement):
              (WebCore::HTMLFormControlElement::derefFormAssociatedElement):
              * html/HTMLFormElement.cpp: Modified to use FormAssociatedElement
              instead of HTMLFormControlElement.
              (WebCore::HTMLFormElement::submitImplicitly):
              (WebCore::HTMLFormElement::validateInteractively):
              (WebCore::HTMLFormElement::submit):
              (WebCore::HTMLFormElement::reset):
              (WebCore::HTMLFormElement::formElementIndexWithFormAttribute):
              (WebCore::HTMLFormElement::formElementIndex):
              (WebCore::HTMLFormElement::registerFormElement):
              (WebCore::HTMLFormElement::removeFormElement):
              (WebCore::HTMLFormElement::defaultButton):
              (WebCore::HTMLFormElement::checkValidity):
              (WebCore::HTMLFormElement::collectUnhandledInvalidControls):
              (WebCore::HTMLFormElement::documentDidBecomeActive):
              * html/HTMLFormElement.h: Ditto.
              (WebCore::HTMLFormElement::associatedElements):
              * html/HTMLInputElement.cpp: Ditto.
              (WebCore::HTMLInputElement::updateCheckedRadioButtons):
              * html/HTMLObjectElement.cpp: Modified regarding with the change of class
              hierarchy.
              (WebCore::HTMLObjectElement::HTMLObjectElement):
              (WebCore::HTMLObjectElement::~HTMLObjectElement):
              (WebCore::HTMLObjectElement::create):
              (WebCore::HTMLObjectElement::attributeChanged):
              (WebCore::HTMLObjectElement::insertedIntoTree):
              (WebCore::HTMLObjectElement::removedFromTree):
              (WebCore::HTMLObjectElement::appendFormData):
              (WebCore::HTMLObjectElement::formControlName):
              * html/HTMLObjectElement.h: Ditto.
              (WebCore::HTMLObjectElement::form):
              (WebCore::HTMLObjectElement::isFormControlElement):
              (WebCore::HTMLObjectElement::isEnumeratable):
              (WebCore::HTMLObjectElement::refFormAssociatedElement):
              (WebCore::HTMLObjectElement::derefFormAssociatedElement):
              * html/HTMLTagNames.in: Added constructorNeedsFormElement to object tag.
              * html/ValidationMessage.cpp: Modified to use FormAssociatedElement
              instead of HTMLFormControlElement.
              (WebCore::ValidationMessage::ValidationMessage):
              (WebCore::ValidationMessage::create):
              * html/ValidationMessage.h: Ditto.
              * html/ValidityState.cpp: Ditto.
              (WebCore::ValidityState::validationMessage):
              (WebCore::ValidityState::setCustomErrorMessage):
              (WebCore::ValidityState::valueMissing):
              (WebCore::ValidityState::typeMismatch):
              (WebCore::ValidityState::patternMismatch):
              (WebCore::ValidityState::tooLong):
              (WebCore::ValidityState::rangeUnderflow):
              (WebCore::ValidityState::rangeOverflow):
              (WebCore::ValidityState::stepMismatch):
              * html/ValidityState.h: Ditto.
              (WebCore::ValidityState::create):
              (WebCore::ValidityState::ValidityState):
              * loader/FormSubmission.cpp: Ditto.
              (WebCore::FormSubmission::create):
      
      2010-12-07  Kenichi Ishibashi  <bashi@google.com>
      
              Reviewed by Kent Tamura.
      
              Let HTMLObjectElement be a form associated element
              https://bugs.webkit.org/show_bug.cgi?id=48821
      
              Modified to use FormAssociatedElement instead of HTMLFormControlElement.
      
              * src/WebFormElement.cpp: 
              (WebKit::WebFormElement::getFormControlElements): Modified to use
              FormAssociatedElement instead of HTMLFormControlElement.
              * src/WebPasswordFormUtils.cpp:
              (WebKit::findPasswordFormFields): Ditto.
              * src/WebSearchableFormData.cpp:
              (WebCore::GetButtonToActivate): Ditto.
              (WebCore::HasSuitableTextElement): Ditto.
      
      2010-12-07  Kenichi Ishibashi  <bashi@google.com>
      
              Reviewed by Kent Tamura.
      
              Let HTMLObjectElement be a form associated element
              https://bugs.webkit.org/show_bug.cgi?id=48821
      
              Modified to use FormAssociatedElement instead of HTMLFormControlElement.
      
              * WebFrame.cpp:
              (WebFrame::elementWithName): Modified to use FormAssociatedElement
              instead of HTMLFormControlElement.
              (WebFrame::controlsInForm): Ditto.
      
      2010-12-07  Kenichi Ishibashi  <bashi@google.com>
      
              Reviewed by Kent Tamura.
      
              Let HTMLObjectElement be a form associated element
              https://bugs.webkit.org/show_bug.cgi?id=48821
      
              Modified to use FormAssociatedElement instead of HTMLFormControlElement.
      
              * WebView/WebHTMLRepresentation.mm:
              (-[WebHTMLRepresentation elementWithName:inForm:]): Modified to use
              FormAssociatedElement instead of HTMLFormControlElement.
              (-[WebHTMLRepresentation controlsInForm:]): Ditto.
      
      2010-12-07  Kenichi Ishibashi  <bashi@google.com>
      
              Reviewed by Kent Tamura.
      
              Let HTMLObjectElement be a form associated element
              https://bugs.webkit.org/show_bug.cgi?id=48821
      
              Adds a test to ensure the order of form.elements attribute.
              Updates two tests to check whether object elements are handled
              correctly in form.elements attribute.
      
              * fast/forms/form-attribute-expected.txt: Updated.
              * fast/forms/form-collection-elements-order-expected.txt: Added.
              * fast/forms/form-collection-elements-order.html: Added.
              * fast/forms/script-tests/form-attribute.js: Updated.
              * fast/forms/script-tests/form-collection-elements-order.js: Added.
              (checkOrder):
              * fast/forms/script-tests/form-collection-elements.js: Updated.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73430 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      995765c6
  12. 05 Dec, 2010 1 commit
    • luiz@webkit.org's avatar
      2010-11-30 Luiz Agostini <luiz.agostini@openbossa.org> · b1deeffb
      luiz@webkit.org authored
              Reviewed by Darin Adler.
      
              HTML5 <details> and <summary> initial implementation
              https://bugs.webkit.org/show_bug.cgi?id=50309
      
              HTML5 <details> and <summary> elements initial implementation. The main objective is
              to add the files for html element and renderers, and to get rid of build system issues
              in future patches.
      
              See: http://www.w3.org/TR/html5/interactive-elements.html#the-details-element
                   http://www.w3.org/TR/html5/interactive-elements.html#the-summary-element
      
              build systems
      
              * CMakeLists.txt:
              * DerivedSources.cpp:
              * DerivedSources.make:
              * GNUmakefile.am:
              * WebCore.gypi:
              * WebCore.pri:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/gobject/GNUmakefile.am:
      
              Some css properties to the new html elements.
      
              * css/html.css:
              (details):
              (summary):
      
              New html element associated with the corresponding tag.
      
              * html/HTMLAttributeNames.in:
              * html/HTMLTagNames.in:
      
              1 html element and 3 renderers were added.
      
              * html/HTMLDetailsElement.cpp: Added.
              * html/HTMLDetailsElement.h: Added.
              * html/HTMLDetailsElement.idl: Added.
              * html/HTMLElementsAllInOne.cpp:
              * rendering/RenderDetails.cpp: Added.
              * rendering/RenderDetails.h: Added.
              * rendering/RenderDetailsMarker.cpp: Added.
              * rendering/RenderDetailsMarker.h: Added.
              * rendering/RenderSummary.cpp: Added.
              * rendering/RenderSummary.h: Added.
              * rendering/RenderingAllInOne.cpp:
      
              New renderer type checkers.
      
              * rendering/RenderObject.h:
              (WebCore::RenderObject::isDetails):
              (WebCore::RenderObject::isDetailsMarker):
              (WebCore::RenderObject::isSummary):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73346 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b1deeffb
  13. 03 Dec, 2010 4 commits
  14. 02 Dec, 2010 1 commit
    • apavlov@chromium.org's avatar
      2010-12-01 Alexander Pavlov <apavlov@chromium.org> · 0c63b63d
      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
      0c63b63d
  15. 01 Dec, 2010 1 commit
  16. 30 Nov, 2010 2 commits
  17. 24 Nov, 2010 2 commits
    • jianli@chromium.org's avatar
      Implement DataView interface from Typed Array specification · 3cbb559a
      jianli@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=46541
      
      Reviewed by Kenneth Russell.
      
      WebCore:
      
      Test: fast/canvas/webgl/data-view-test.html
      
      * CMakeLists.txt:
      * DerivedSources.make:
      * GNUmakefile.am:
      * WebCore.gypi:
      * WebCore.pri:
      * WebCore.pro:
      * WebCore.xcodeproj/project.pbxproj:
      * bindings/generic/RuntimeEnabledFeatures.h:
      (WebCore::RuntimeEnabledFeatures::dataViewEnabled):
      * bindings/js/JSArrayBufferViewHelper.h:
      (WebCore::constructArrayBufferViewWithArrayBufferArgument):
      (WebCore::constructArrayBufferView):
      * bindings/js/JSDOMWindowCustom.cpp:
      (WebCore::JSDOMWindow::dataView):
      * bindings/js/JSDataViewCustom.cpp: Added.
      * bindings/js/JSFloat32ArrayCustom.cpp:
      (WebCore::JSFloat32ArrayConstructor::constructJSFloat32Array):
      * bindings/js/JSInt16ArrayCustom.cpp:
      (WebCore::JSInt16ArrayConstructor::constructJSInt16Array):
      * bindings/js/JSInt32ArrayCustom.cpp:
      (WebCore::JSInt32ArrayConstructor::constructJSInt32Array):
      * bindings/js/JSInt8ArrayCustom.cpp:
      (WebCore::JSInt8ArrayConstructor::constructJSInt8Array):
      * bindings/js/JSUint16ArrayCustom.cpp:
      (WebCore::JSUint16ArrayConstructor::constructJSUint16Array):
      * bindings/js/JSUint32ArrayCustom.cpp:
      (WebCore::JSUint32ArrayConstructor::constructJSUint32Array):
      * bindings/js/JSUint8ArrayCustom.cpp:
      (WebCore::JSUint8ArrayConstructor::constructJSUint8Array):
      * bindings/v8/custom/V8ArrayBufferViewCustom.h:
      (WebCore::constructWebGLArrayWithArrayBufferArgument):
      (WebCore::constructWebGLArray):
      * bindings/v8/custom/V8DataViewCustom.cpp: Added.
      * html/canvas/ArrayBufferView.h:
      (WebCore::ArrayBufferView::isDataView):
      * html/canvas/DataView.cpp: Added.
      * html/canvas/DataView.h: Added.
      * html/canvas/DataView.idl: Added.
      * page/DOMWindow.idl:
      
      LayoutTests:
      
      Add a new test for testing DataView interface. Also update some tests
      to exclude DataView property from being tested because it is not
      exposed to all platforms.
      
      * fast/canvas/webgl/data-view-test-expected.txt: Added.
      * fast/canvas/webgl/data-view-test.html: Added.
      * fast/dom/Window/script-tests/window-property-descriptors.js:
      * fast/dom/Window/window-properties.html:
      * fast/dom/script-tests/prototype-inheritance-2.js:
      (constructorNamesForWindow):
      * fast/dom/script-tests/prototype-inheritance.js:
      * fast/js/script-tests/global-constructors.js:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@72718 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3cbb559a
    • commit-queue@webkit.org's avatar
      2010-11-24 Eric Uhrhane <ericu@chromium.org> · 61c3288f
      commit-queue@webkit.org authored
              Reviewed by David Levin.
      
              Implement FileWriterSync
              https://bugs.webkit.org/show_bug.cgi?id=49939
      
              Tests to follow in a separate CL, once the test framework in 47680 goes in.
      
              Build file changes to add FileWriterBase and FileWriterBaseCallback.
              * CMakeLists.txt:
              * GNUmakefile.am:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
      
              FileWriterSync doesn't turn out to need to be an ActiveDOMObject.
              * bindings/scripts/CodeGeneratorV8.pm:
      
              Added new AsyncFileWriter::waitForOperationToComplete to enable
              synchronous calls.
              * fileapi/AsyncFileWriter.h:
      
              Added a way to get a FileSystemSync.
              * fileapi/DOMFileSystemSync.cpp:
              * fileapi/FileEntrySync.cpp:
              * fileapi/FileEntrySync.h:
              * fileapi/FileEntrySync.idl:
      
              Added an error code for OK, rather than just having 0 everywhere.
              * fileapi/FileError.h:
      
              Turned FileWriterCallback into FileWriterBaseCallback.
              * fileapi/FileSystemCallbacks.cpp:
              * fileapi/FileSystemCallbacks.h:
      
              Refactored out a common base class, FileWriterBase, for FileWriter and
              FileWriterSync.
              * fileapi/FileWriter.cpp:
              * fileapi/FileWriter.h:
              * fileapi/FileWriterBase.cpp: Added.
              * fileapi/FileWriterBase.h: Added.
              * fileapi/FileWriterBaseCallback.h: Added.
              * fileapi/FileWriterSync.cpp:
              * fileapi/FileWriterSync.h:
      
              Small tweaks to deal with the base class refactoring.
              * fileapi/DOMFileSystem.cpp:
              * fileapi/DOMFileSystemSync.h:
      
              Removed "CallWith=ScriptExecutionContext", as FileWriterSync doesn't actually need it.
              * fileapi/FileWriterSync.idl:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@72715 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      61c3288f
  18. 23 Nov, 2010 2 commits
    • satish@chromium.org's avatar
      2010-11-18 Satish Sampath <satish@chromium.org> · a739a241
      satish@chromium.org authored
              Reviewed by Jeremy Orlow.
      
              For speech input event, send an event object containing all the recognition results and metadata.
              https://bugs.webkit.org/show_bug.cgi?id=49736
      
              * fast/speech/input-onspeechchange-event-expected.txt: Added.
              * fast/speech/input-onspeechchange-event.html: New test to check multiple results.
              * fast/speech/input-text-language-tag.html: Updated with new method signature.
              * fast/speech/input-text-speechbutton.html: Ditto.
              * fast/speech/speech-button-ignore-generated-events.html: Ditto.
      2010-11-18  Satish Sampath  <satish@chromium.org>
      
              Reviewed by Jeremy Orlow.
      
              For speech input event, send an event object containing all the recognition results and metadata.
              https://bugs.webkit.org/show_bug.cgi?id=49736
      
              Currently the speech input event 'onwebkitspeechchange' receives no parameters. WebCore already
              has the full list of recognition results and populates only the top result into the input field
              automatically. In this patch we pass a SpeechInputEvent object to the event handler, and the JS
              code can access the full list of results via "event.results.length", "results[i].utterance" and
              "results[i].confidence". Also updated mock object with appropriate methods to test multiple results.
      
              Test: fast/speech/input-onspeechchange-event.html
      
              * CMakeLists.txt:
              * GNUmakefile.am:
              * WebCore.gypi:
              * WebCore.pri:
              * WebCore.pro:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/JSEventCustom.cpp:
              (WebCore::toJS): Added new event
              * bindings/v8/custom/V8EventCustom.cpp:
              (WebCore::toV8): Added new event
              * dom/Event.cpp:
              (WebCore::Event::isSpeechInputEvent):
              * dom/Event.h:
              * html/HTMLInputElement.cpp:
              * html/HTMLInputElement.h:
              * page/SpeechInputEvent.h: New file implementing SpeechInputEvent.idl
              (WebCore::SpeechInputEvent::~SpeechInputEvent):
              (WebCore::SpeechInputEvent::create):
              (WebCore::SpeechInputEvent::isSpeechInputEvent):
              (WebCore::SpeechInputEvent::results):
              (WebCore::SpeechInputEvent::SpeechInputEvent):
              * page/SpeechInputEvent.idl: New file defining SpeechInputEvent object
              * page/SpeechInputListener.h:
              * page/SpeechInputResult.cpp:
              (WebCore::SpeechInputResult::create):
              * page/SpeechInputResult.h:
              * page/SpeechInputResult.idl: New file defining a single SpeechInputResult object
              * page/SpeechInputResultList.h: New file implementing SpeechInputResultList.idl
              (WebCore::SpeechInputResultList::create):
              (WebCore::SpeechInputResultList::length):
              (WebCore::SpeechInputResultList::item):
              (WebCore::SpeechInputResultList::SpeechInputResultList):
              * page/SpeechInputResultList.idl: New file defining a list of SpeechInputResult objects
              * platform/mock/SpeechInputClientMock.cpp:
              (WebCore::SpeechInputClientMock::addRecognitionResult): Renamed method and added one parameter.
              (WebCore::SpeechInputClientMock::clearResults):
              (WebCore::SpeechInputClientMock::timerFired):
              * platform/mock/SpeechInputClientMock.h:
              * rendering/TextControlInnerElements.cpp:
              (WebCore::InputFieldSpeechButtonElement::setRecognitionResult): Pass new event object to handler.
      2010-11-18  Satish Sampath  <satish@chromium.org>
      
              Reviewed by Jeremy Orlow.
      
              For speech input event, send an event object containing all the recognition results and metadata.
              https://bugs.webkit.org/show_bug.cgi?id=49736
      
              Updated mock object's method to new signature.
      
              * public/WebSpeechInputControllerMock.h:
              * src/WebSpeechInputControllerMockImpl.cpp:
              (WebKit::WebSpeechInputControllerMockImpl::addMockRecognitionResult):
              * src/WebSpeechInputControllerMockImpl.h:
      2010-11-18  Satish Sampath  <satish@chromium.org>
      
              Reviewed by Jeremy Orlow.
      
              For speech input event, send an event object containing all the recognition results and metadata.
              https://bugs.webkit.org/show_bug.cgi?id=49736
      
              Updated DRT by renaming the mock result method on all platforms to the new signature.
      
              * DumpRenderTree/LayoutTestController.cpp:
              (addMockSpeechInputResultCallback):
              (LayoutTestController::staticFunctions):
              * DumpRenderTree/LayoutTestController.h:
              * DumpRenderTree/chromium/LayoutTestController.cpp:
              (LayoutTestController::LayoutTestController):
              (LayoutTestController::addMockSpeechInputResult):
              * DumpRenderTree/chromium/LayoutTestController.h:
              * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
              (LayoutTestController::addMockSpeechInputResult):
              * DumpRenderTree/mac/LayoutTestControllerMac.mm:
              (LayoutTestController::addMockSpeechInputResult):
              * DumpRenderTree/qt/LayoutTestControllerQt.cpp:
              (LayoutTestController::addMockSpeechInputResult):
              * DumpRenderTree/qt/LayoutTestControllerQt.h:
              * DumpRenderTree/win/LayoutTestControllerWin.cpp:
              (LayoutTestController::addMockSpeechInputResult):
              * DumpRenderTree/wx/LayoutTestControllerWx.cpp:
              (LayoutTestController::addMockSpeechInputResult):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@72591 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a739a241
    • ap@apple.com's avatar
      Reviewed by Darin Adler. · 31bdf571
      ap@apple.com authored
              https://bugs.webkit.org/show_bug.cgi?id=49860
              CSS style rules don't GC protect objects reachable as their properties
      
              Test: fast/dom/StyleSheet/gc-rule-children-wrappers.html
      
              * Android.jscbindings.mk:
              * CMakeLists.txt:
              * GNUmakefile.am:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/JSBindingsAllInOne.cpp:
              Added new files, sorted appropriate sections for easier adding.
      
              * bindings/js/JSCSSFontFaceRuleCustom.cpp: Added.
              (WebCore::JSCSSFontFaceRule::markChildren):
              * bindings/js/JSCSSImportRuleCustom.cpp: Added.
              (WebCore::JSCSSImportRule::markChildren):
              * bindings/js/JSCSSMediaRuleCustom.cpp: Added.
              (WebCore::JSCSSMediaRule::markChildren):
              * bindings/js/JSCSSPageRuleCustom.cpp: Added.
              (WebCore::JSCSSPageRule::markChildren):
              * bindings/js/JSCSSStyleRuleCustom.cpp: Added.
              (WebCore::JSCSSStyleRule::markChildren):
              * bindings/js/JSWebKitCSSKeyframeRuleCustom.cpp: Added.
              (WebCore::JSWebKitCSSKeyframeRule::markChildren):
              * bindings/js/JSWebKitCSSKeyframesRuleCustom.cpp: Added.
              (WebCore::JSWebKitCSSKeyframesRule::markChildren):
              Mark objects reachable through these ones.
      
              * css/CSSFontFaceRule.idl:
              * css/CSSImportRule.idl:
              * css/CSSMediaRule.idl:
              * css/CSSPageRule.idl:
              * css/CSSStyleRule.idl:
              * css/WebKitCSSKeyframeRule.idl:
              * css/WebKitCSSKeyframesRule.idl:
              Added CustomMarkFunction IDL attribute.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@72590 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      31bdf571
  19. 22 Nov, 2010 1 commit
    • commit-queue@webkit.org's avatar
      2010-11-22 John Knottenbelt <jknotten@chromium.org> · 1eb6bc1e
      commit-queue@webkit.org authored
              Reviewed by Steve Block.
      
              Implement mocks for client-based Geolocation.
              https://bugs.webkit.org/show_bug.cgi?id=49258
      
              * Android.mk:
              * CMakeLists.txt:
              * GNUmakefile.am:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * platform/mock/GeolocationClientMock.cpp: Added.
              (WebCore::GeolocationClientMock::GeolocationClientMock):
              (WebCore::GeolocationClientMock::~GeolocationClientMock):
              (WebCore::GeolocationClientMock::setController):
              (WebCore::GeolocationClientMock::setPosition):
              (WebCore::GeolocationClientMock::setError):
              (WebCore::GeolocationClientMock::geolocationDestroyed):
              (WebCore::GeolocationClientMock::startUpdating):
              (WebCore::GeolocationClientMock::stopUpdating):
              (WebCore::GeolocationClientMock::setEnableHighAccuracy):
              (WebCore::GeolocationClientMock::lastPosition):
              (WebCore::GeolocationClientMock::timerFired):
              (WebCore::GeolocationClientMock::makeGeolocationCallback):
              * platform/mock/GeolocationClientMock.h: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@72581 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1eb6bc1e