1. 13 Aug, 2010 40 commits
    • tonyg@chromium.org's avatar
      2010-08-13 Tony Gentilcore <tonyg@chromium.org> · fd7d08f7
      tonyg@chromium.org authored
              Reviewed by Eric Seidel.
      
              Refactor HTMLScriptRunner to allow deferred scripts to share code
              https://bugs.webkit.org/show_bug.cgi?id=43736
      
              No new tests because no functional change
      
              * html/HTMLScriptRunner.cpp:
              (WebCore::HTMLScriptRunner::sourceFromPendingScript): Make const to enforce the idea that it doesn't change m_parsingBlockingScript.
              (WebCore::HTMLScriptRunner::executeParsingBlockingScript): Rename to make it clear this deals with the parsing blocking script and refactor to use executePendingScriptAndDispatchEvent.
              (WebCore::HTMLScriptRunner::executePendingScriptAndDispatchEvent): Factored out of executePendingScript, this can be used for executing any external script.
              (WebCore::HTMLScriptRunner::executeScript): This can be used for executing any inline or external script. ASSERTs moved to the two calling points.
              (WebCore::HTMLScriptRunner::executeParsingBlockingScripts): Moved method.
              (WebCore::HTMLScriptRunner::requestParsingBlockingScript): Factored out requestPendingScript.
              (WebCore::HTMLScriptRunner::requestPendingScript): Factored out from reqeustParsingBlockingScript.
              (WebCore::HTMLScriptRunner::runScript):
              * html/HTMLScriptRunner.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65350 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fd7d08f7
    • barraclough@apple.com's avatar
      Windows build fix. · bc0c4c2a
      barraclough@apple.com authored
      * WebCore.xcodeproj/project.pbxproj:
      * platform/win/SharedBufferWin.cpp:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65349 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bc0c4c2a
    • commit-queue@webkit.org's avatar
      2010-08-13 Mihai Parparita <mihaip@chromium.org> · 036aba86
      commit-queue@webkit.org authored
              Reviewed by Dimitri Glazkov.
      
              Form state restore tests fail on GTK build with r65340
              https://bugs.webkit.org/show_bug.cgi?id=43998
      
              Move form submits (and rest of test) to run during onload, to make sure
              that the submit generates a history entry.
      
              * fast/forms/state-restore-to-non-autocomplete-form.html:
              * fast/forms/state-restore-to-non-edited-controls.html:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65348 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      036aba86
    • barraclough@apple.com's avatar
      Windows build fix · 44a8e522
      barraclough@apple.com authored
      * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65347 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      44a8e522
    • barraclough@apple.com's avatar
      Windows build fix · 0959eca9
      barraclough@apple.com authored
      * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65346 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0959eca9
    • barraclough@apple.com's avatar
      Windows build fix · 9c8d1723
      barraclough@apple.com authored
      * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65345 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9c8d1723
    • barraclough@apple.com's avatar
      Switch String::/UString::ascii() to return a CString. · 99428fc0
      barraclough@apple.com authored
      Rubber stamped by Sam Weinig.
      
      JavaScriptCore: 
      
      * JavaScriptCore.exp:
      * JavaScriptCore.xcodeproj/project.pbxproj:
      * bytecode/CodeBlock.cpp:
      (JSC::CodeBlock::dump):
      * bytecode/SamplingTool.cpp:
      (JSC::SamplingTool::dump):
      * interpreter/CallFrame.cpp:
      (JSC::CallFrame::dumpCaller):
      * jsc.cpp:
      (runWithScripts):
      (runInteractive):
      * runtime/Identifier.h:
      (JSC::Identifier::ascii):
      * runtime/ScopeChain.cpp:
      (JSC::ScopeChainNode::print):
      * runtime/UString.cpp:
      (JSC::UString::ascii):
      (JSC::UString::latin1):
      * runtime/UString.h:
      * wtf/text/StringImpl.cpp:
      (WTF::StringImpl::asciiOLD):
      * wtf/text/StringImpl.h:
      * wtf/text/WTFString.cpp:
      (WTF::String::ascii):
      (WTF::String::latin1):
      * wtf/text/WTFString.h:
      
      WebCore: 
      
      * WebCore.xcodeproj/project.pbxproj:
      * bridge/c/c_class.cpp:
      (JSC::Bindings::CClass::methodsNamed):
      (JSC::Bindings::CClass::fieldNamed):
      * bridge/jni/jsc/JNIBridgeJSC.cpp:
      (JavaField::valueFromInstance):
      (JavaField::setValueToInstance):
      * bridge/jni/jsc/JavaInstanceJSC.cpp:
      (JavaInstance::invokeMethod):
      * bridge/objc/objc_class.mm:
      (JSC::Bindings::ObjcClass::methodsNamed):
      (JSC::Bindings::ObjcClass::fieldNamed):
      * bridge/objc/objc_instance.mm:
      (ObjcInstance::setValueOfUndefinedField):
      (ObjcInstance::getValueOfUndefinedField):
      * loader/icon/IconRecord.cpp:
      * platform/sql/SQLiteDatabase.cpp:
      * platform/sql/SQLiteStatement.cpp:
      * storage/SQLStatement.cpp:
      
      WebKit: 
      
      * WebKit.xcodeproj/project.pbxproj:
      
      WebKit/mac: 
      
      * Plugins/Hosted/ProxyInstance.mm:
      (WebKit::ProxyInstance::methodsNamed):
      (WebKit::ProxyInstance::fieldNamed):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65344 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      99428fc0
    • dpranke@chromium.org's avatar
      2010-08-13 Dirk Pranke <dpranke@chromium.org> · 643badf6
      dpranke@chromium.org authored
              Reviewed by Eric Seidel.
      
              Rewrite new-run-webkit-test's wait_for_threads_to_finish loop to
              check for exceptions on all threads, not just the first thread.
      
              This change also changes the logging behavior for wedged threads
              to only dump the stacks of threads that are actually wedged.
      
              Refactor the thread classes in the dump_render_tree_thread module
              to make the contract between TestRunner and TestShellThread clearer.
      
              Added a bunch of unit tests.
              https://bugs.webkit.org/show_bug.cgi?id=38561
      
              * Scripts/webkitpy/layout_tests/layout_package/dump_render_tree_thread.py:
              * Scripts/webkitpy/layout_tests/run_webkit_tests.py:
              * Scripts/webkitpy/layout_tests/run_webkit_tests_unittest.py:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65343 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      643badf6
    • weinig@apple.com's avatar
      Fix build. · 898e0bff
      weinig@apple.com authored
      * WebKit2.xcodeproj/project.pbxproj: Make WKDictionary.h public.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65342 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      898e0bff
    • weinig@apple.com's avatar
      Pass values map to willSubmitForm in WebKit2 API · 2ff9d196
      weinig@apple.com authored
      Part of <rdar://problem/8255932>
      https://bugs.webkit.org/show_bug.cgi?id=43995
      
      Reviewed by Brady Eidson.
      
      * Platform/CoreIPC/ArgumentCoders.h:
      (CoreIPC::):
      Add overload for std::pair.
      
      * Shared/ImmutableDictionary.h:
      (WebKit::ImmutableDictionary::adopt):
      Fix function signature by removing size parameter.
      
      * UIProcess/API/C/WKPage.h:
      Add dictionary parameter to callback.
      
      * UIProcess/WebFormClient.cpp:
      (WebKit::WebFormClient::willSubmitForm):
      Create an ImmutableDictionary from the vector of string pairs.
      
      * UIProcess/WebFormClient.h:
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::didReceiveMessage):
      (WebKit::WebPageProxy::willSubmitForm):
      * UIProcess/WebPageProxy.h:
      * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
      (WebKit::WebFrameLoaderClient::dispatchWillSubmitForm):
      Plumb through the values vector.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65341 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2ff9d196
    • commit-queue@webkit.org's avatar
      2010-08-13 Mihai Parparita <mihaip@chromium.org> · 4cbfdfd4
      commit-queue@webkit.org authored
              Reviewed by Dimitri Glazkov.
      
              Session history should skip over JS redirects
              https://bugs.webkit.org/show_bug.cgi?id=42861
      
              Lock the back/forward list for location changes and form submits that
              happen before the onload event fires that are not the result of user
              gestures.
      
              http/tests/history tests now pass, their expectations were updated
              accordingly. Other tests needed a setTimeout wrapper around location
              changes and form submits during onload, otherwise they would not
              generate history entries as expected anymore.
      
              * fast/css/target-fragment-match.html:
              * fast/dom/location-hash.html:
              * fast/dom/Geolocation/resources/cached-page-1.html:
              * fast/dom/Window/timer-resume-on-navigation-back.html:
              * fast/events/pageshow-pagehide-on-back-cached-with-frames-expected.txt:
              * fast/events/pageshow-pagehide-on-back-cached-with-frames.html:
              * fast/forms/button-state-restore.html:
              * fast/forms/state-restore-to-non-autocomplete-form.html:
              * fast/forms/state-restore-to-non-edited-controls.html:
              * fast/frames/resources/cached-page-1.html:
              * fast/frames/resources/cached-page-2.html:
              * fast/harness/resources/cached-page-1.html:
              * fast/harness/resources/cached-page-with-data-urls.html:
              * fast/history/gesture-before-onload-expected.txt: Added.
              * fast/history/gesture-before-onload.html: Added.
              * fast/history/history-length.html:
              * fast/history/resources/gesture-before-onload-target.html: Added.
              * fast/history/saves-state-after-fragment-nav.html:
              * fast/loader/input-element-page-cache-crash.html:
              * fast/loader/stateobjects/document-destroyed-navigate-back.html:
              * fast/loader/stateobjects/pushstate-clears-forward-history.html:
              * fast/loader/subframe-navigate-during-main-frame-load.html:
              * http/tests/history/back-to-post.php:
              * http/tests/history/redirect-js-document-location-before-load-expected.txt:
              * http/tests/history/redirect-js-form-submit-before-load-expected.txt:
              * http/tests/history/redirect-js-location-assign-before-load-expected.txt:
              * http/tests/history/redirect-js-location-before-load-expected.txt:
              * http/tests/history/redirect-js-location-href-before-load-expected.txt:
              * http/tests/loading/307-after-303-after-post-expected.txt:
              * http/tests/loading/redirect-methods-expected.txt:
              * http/tests/navigation/resources/back-send-referrer-helper.php:
              * http/tests/navigation/resources/document-location.js:
              (start):
              * http/tests/navigation/resources/submit-to-fragment.pl:
              * security/autocomplete-cleared-on-back.html:
              * storage/hash-change-with-xhr.js:
              (updateDatabase):
              (invokeBack):
              (runTest):
              (runTestsInner):
      
      2010-08-13  Mihai Parparita  <mihaip@chromium.org>
      
              Reviewed by Dimitri Glazkov.
      
              Session history should skip over JS redirects
              https://bugs.webkit.org/show_bug.cgi?id=42861
      
              Lock the back/forward list for location changes and form submits that
              happen before the onload event fires that are not the result of user
              gestures.
      
              Made form submission (at the ScheduledFormSubmission level) more similar
              to ScheduledURLNavigation by having it call clientRedirected too, fixing
              a long-standing FIXME.
      
              Test: fast/history/gesture-before-onload-location-href.html,
              fast/history/gesture-before-onload-form-submit.html and updated
              expectations for http/tests/history tests that used to fail.
      
              * loader/FormSubmission.cpp:
              (WebCore::FormSubmission::requestURL):
              (WebCore::FormSubmission::populateFrameLoadRequest):
              * loader/FormSubmission.h:
              * loader/RedirectScheduler.cpp:
              (WebCore::ScheduledFormSubmission::ScheduledFormSubmission):
              (WebCore::ScheduledFormSubmission::fire):
              (WebCore::ScheduledFormSubmission::didStartTimer):
              (WebCore::ScheduledFormSubmission::didStopTimer):
              (WebCore::RedirectScheduler::scheduleRedirect):
              (WebCore::RedirectScheduler::mustLockBackForwardList):
              (WebCore::RedirectScheduler::scheduleLocationChange):
              (WebCore::RedirectScheduler::scheduleFormSubmission):
              * loader/RedirectScheduler.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65340 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4cbfdfd4
    • weinig@apple.com's avatar
      Add dictionary API type · 79dc7d5f
      weinig@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=43990
      
      Reviewed by Brady Eidson.
      
      Add an immutable dictionary type (WKStringRef -> WKTypeRef).
      
      * Shared/APIObject.h:
      (WebKit::APIObject::):
      Add new APIType.
      
      * Shared/ImmutableDictionary.cpp: Added.
      (WebKit::ImmutableDictionary::ImmutableDictionary):
      (WebKit::ImmutableDictionary::~ImmutableDictionary):
      * Shared/ImmutableDictionary.h: Added.
      (WebKit::ImmutableDictionary::create):
      (WebKit::ImmutableDictionary::adopt):
      (WebKit::ImmutableDictionary::get):
      (WebKit::ImmutableDictionary::size):
      (WebKit::ImmutableDictionary::):
      (WebKit::ImmutableDictionary::type):
      Add basic implementation
      
      * UIProcess/API/C/WKAPICast.h:
      (WebKit::):
      Add new mappings.
      
      * UIProcess/API/C/WKBase.h:
      Add new opaque type.
      
      * UIProcess/API/C/WKDictionary.cpp: Added.
      (WKDictionaryGetTypeID):
      (WKDictionaryGetItemForKey):
      (WKDictionaryGetSize):
      (WKDictionaryRetain):
      (WKDictionaryRelease):
      * UIProcess/API/C/WKDictionary.h: Added.
      Add API wrappings.
          
      * UIProcess/API/C/WebKit2.h:
      Add missing public headers.
      
      * WebKit2.xcodeproj/project.pbxproj:
      * win/WebKit2.vcproj:
      * win/WebKit2Generated.make:
      Add new files.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65339 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      79dc7d5f
    • weinig@apple.com's avatar
      Add two more unsupported tests to the WebKit2 skipped list. · c2fe23cf
      weinig@apple.com authored
      Rubber-stamped by Beth Dakin and Ban Bernstein.
      
      * platform/mac-wk2/Skipped:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65338 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c2fe23cf
    • weinig@apple.com's avatar
      Add form submission listener to WebKit2 · 7b17ad9c
      weinig@apple.com authored
      Part of <rdar://problem/8255932>
      https://bugs.webkit.org/show_bug.cgi?id=43947
      
      Reviewed by Jon Honeycutt.
      
      * Shared/APIObject.h:
      Add TypeFormSubmissionListener APIType.
              
      * Shared/CoreIPCSupport/WebPageProxyMessageKinds.h:
      Add WillSubmitForm message kind.
      
      * UIProcess/API/C/WKAPICast.h:
      Add new mappings for WKFormSubmissionListenerRef -> WebFormSubmissionListener
      
      * UIProcess/API/C/WKBase.h:
      Add OpaqueWKFormSubmissionListener and rename the other opaque types to match.
      
      * UIProcess/API/C/WKFormSubmissionListener.cpp: Added.
      (WKFormSubmissionListenerGetTypeID):
      (WKFormSubmissionListenerContinue):
      (WKFormSubmissionListenerRetain):
      (WKFormSubmissionListenerRelease):
      * UIProcess/API/C/WKFormSubmissionListener.h: Added.
      Add C wrapper for WebFormSubmissionListener.
      
      * UIProcess/API/C/WKPage.cpp:
      (WKPageSetPageFormClient):
      * UIProcess/API/C/WKPage.h:
      Add WKPageFormClient with willSubmitForm callback. Additional callbacks will be added as
      needed.
      
      * UIProcess/API/C/WebKit2.h:
      Add include for WKFormSubmissionListener.h
      
      * UIProcess/WebFormClient.cpp: Added.
      (WebKit::WebFormClient::WebFormClient):
      (WebKit::WebFormClient::initialize):
      (WebKit::WebFormClient::willSubmitForm):
      * UIProcess/WebFormClient.h: Added.
      Add client for form related delagations.
      
      * UIProcess/WebFormSubmissionListenerProxy.cpp: Added.
      (WebKit::WebFormSubmissionListenerProxy::WebFormSubmissionListenerProxy):
      (WebKit::WebFormSubmissionListenerProxy::continueSubmission):
      * UIProcess/WebFormSubmissionListenerProxy.h: Added.
      (WebKit::WebFormSubmissionListenerProxy::create):
      (WebKit::WebFormSubmissionListenerProxy::type):
      * UIProcess/WebFrameListenerProxy.cpp: Copied from UIProcess/WebFramePolicyListenerProxy.cpp.
      Add new type of listener for form submissions. It inherits from the new base class
      for listeners, WebFrameListenerProxy.
      
      (WebKit::WebFrameListenerProxy::WebFrameListenerProxy):
      (WebKit::WebFrameListenerProxy::~WebFrameListenerProxy):
      (WebKit::WebFrameListenerProxy::invalidate):
      (WebKit::WebFrameListenerProxy::receivedPolicyDecision):
      * UIProcess/WebFrameListenerProxy.h: Copied from UIProcess/WebFramePolicyListenerProxy.h.
      Move logic that would have to be shared between WebFramePolicyListenerProxy and
      WebFormSubmissionListenerProxy into shared base class.
      
      * UIProcess/WebFramePolicyListenerProxy.cpp:
      (WebKit::WebFramePolicyListenerProxy::WebFramePolicyListenerProxy):
      * UIProcess/WebFramePolicyListenerProxy.h:
      (WebKit::WebFramePolicyListenerProxy::create):
      (WebKit::WebFramePolicyListenerProxy::type):
      Move to inheriting from WebFrameListenerProxy.
      
      * UIProcess/WebFrameProxy.cpp:
      (WebKit::WebFrameProxy::disconnect):
      (WebKit::WebFrameProxy::receivedPolicyDecision):
      (WebKit::WebFrameProxy::setUpPolicyListenerProxy):
      (WebKit::WebFrameProxy::setUpFormSubmissionListenerProxy):
      * UIProcess/WebFrameProxy.h:
      Change listener functions to act on WebFrameListenerProxys and add setUpFormSubmissionListenerProxy.
      
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::initializeFormClient):
      (WebKit::WebPageProxy::didReceiveMessage):
      (WebKit::WebPageProxy::willSubmitForm):
      * UIProcess/WebPageProxy.h:
      Plumb through willSubmitForm call as we do with the other listeners.
      
      * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
      (WebKit::WebFrameLoaderClient::dispatchWillSubmitForm):
      Ditto.
      
      * WebKit2.xcodeproj/project.pbxproj: Add new files.
      * win/WebKit2.vcproj: Add new files.
      * win/WebKit2Generated.make: Ditto.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65337 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7b17ad9c
    • leandro@webkit.org's avatar
      2010-08-13 Leandro Pereira <leandro@profusion.mobi> · b989e0a8
      leandro@webkit.org authored
              [EFL] Unreviewed build fix.
              These changes were supposed to be landed on r65319, but due to some
              svn-apply/commit-queue bug it wasn't fully applied. A bug was filed
              by Patrick Gansterer (author of the changes in this commit):
              https://bugs.webkit.org/show_bug.cgi?id=43981
      
              * CMakeLists.txt: Update calls to GENERATE_GPERF and
              GENERATE_GRAMMAR macros.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65336 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b989e0a8
    • cfleizach@apple.com's avatar
      AX: isNativeCheckbox does not work as advertised · 47955bfa
      cfleizach@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=43872
      
      Re-adding this patch after it was erroneously rolled out.
      
      WebCore: 
      
      Test: platform/mac/accessibility/native-vs-nonnative-checkboxes.html
      
      * accessibility/AccessibilityRenderObject.cpp:
      (WebCore::AccessibilityRenderObject::isInputImage):
      (WebCore::AccessibilityRenderObject::isNativeCheckboxOrRadio):
      * dom/InputElement.h:
      * html/HTMLInputElement.h:
      (WebCore::HTMLInputElement::isCheckbox):
      
      LayoutTests: 
      
      * platform/mac/accessibility/native-vs-nonnative-checkboxes-expected.txt: Added.
      * platform/mac/accessibility/native-vs-nonnative-checkboxes.html: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65335 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      47955bfa
    • commit-queue@webkit.org's avatar
      2010-08-13 Sheriff Bot <webkit.review.bot@gmail.com> · 1e5db771
      commit-queue@webkit.org authored
              Unreviewed, rolling out r65331.
              http://trac.webkit.org/changeset/65331
              https://bugs.webkit.org/show_bug.cgi?id=43980
      
              This patch breaks some shadow tests on Qt Linux release
              (Requested by ariya on #webkit).
      
              * platform/graphics/qt/GraphicsContextQt.cpp:
              (WebCore::GraphicsContextPlatformPrivate::GraphicsContextPlatformPrivate):
              (WebCore::GraphicsContext::drawRect):
              (WebCore::GraphicsContext::drawLine):
              (WebCore::GraphicsContext::strokeArc):
              (WebCore::GraphicsContext::drawConvexPolygon):
              (WebCore::drawFilledShadowPath):
              (WebCore::GraphicsContext::fillPath):
              (WebCore::GraphicsContext::strokePath):
              (WebCore::drawBorderlessRectShadow):
              (WebCore::GraphicsContext::fillRect):
              (WebCore::GraphicsContext::fillRoundedRect):
              (WebCore::GraphicsContext::setPlatformShadow):
              (WebCore::GraphicsContext::clearPlatformShadow):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65334 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1e5db771
    • kinuko@chromium.org's avatar
      2010-08-13 Kinuko Yasuda <kinuko@chromium.org> · 5eb0aa71
      kinuko@chromium.org authored
              Reviewed by David Levin.
      
              Update run-bindings-tests expectations
              https://bugs.webkit.org/show_bug.cgi?id=43944
      
              The results have become out of sync after changeset 64552 and 65269.
      
              Test: WebKitTools/Scripts/run-bindings-tests
      
              * bindings/scripts/test/GObject/WebKitDOMTestCallback.cpp:
              (webkit_dom_test_callback_callback_with_class1param):
              (webkit_dom_test_callback_callback_with_class2param):
              (webkit_dom_test_callback_callback_with_non_bool_return_type):
              * bindings/scripts/test/GObject/WebKitDOMTestCallback.h:
              * bindings/scripts/test/GObject/WebKitDOMTestObj.cpp:
              (webkit_dom_test_obj_void_method_with_args):
              (webkit_dom_test_obj_int_method_with_args):
              (webkit_dom_test_obj_obj_method):
              (webkit_dom_test_obj_obj_method_with_args):
              (webkit_dom_test_obj_method_that_requires_all_args):
              (webkit_dom_test_obj_method_that_requires_all_args_and_throws):
              (webkit_dom_test_obj_serialized_value):
              (webkit_dom_test_obj_idb_key):
              (webkit_dom_test_obj_with_dynamic_frame_and_user_gesture):
              (webkit_dom_test_obj_with_dynamic_frame_and_user_gesture_asad):
              (webkit_dom_test_obj_with_script_state_obj):
              (webkit_dom_test_obj_with_script_state_obj_exception):
              (webkit_dom_test_obj_get_read_only_string_attr):
              (webkit_dom_test_obj_get_read_only_test_obj_attr):
              (webkit_dom_test_obj_get_string_attr):
              (webkit_dom_test_obj_set_string_attr):
              (webkit_dom_test_obj_get_test_obj_attr):
              (webkit_dom_test_obj_set_test_obj_attr):
              (webkit_dom_test_obj_get_xml_obj_attr):
              (webkit_dom_test_obj_set_xml_obj_attr):
              (webkit_dom_test_obj_get_reflected_string_attr):
              (webkit_dom_test_obj_set_reflected_string_attr):
              (webkit_dom_test_obj_get_reflected_url_attr):
              (webkit_dom_test_obj_set_reflected_url_attr):
              (webkit_dom_test_obj_get_reflected_non_empty_url_attr):
              (webkit_dom_test_obj_set_reflected_non_empty_url_attr):
              (webkit_dom_test_obj_get_reflected_custom_url_attr):
              (webkit_dom_test_obj_set_reflected_custom_url_attr):
              (webkit_dom_test_obj_get_reflected_custom_non_empty_url_attr):
              (webkit_dom_test_obj_set_reflected_custom_non_empty_url_attr):
              (webkit_dom_test_obj_get_string_attr_with_getter_exception):
              (webkit_dom_test_obj_set_string_attr_with_getter_exception):
              (webkit_dom_test_obj_get_string_attr_with_setter_exception):
              (webkit_dom_test_obj_set_string_attr_with_setter_exception):
              (webkit_dom_test_obj_get_script_string_attr):
              (webkit_dom_test_obj_get_hash):
              (webkit_dom_test_obj_class_init):
              * bindings/scripts/test/GObject/WebKitDOMTestObj.h:
              * bindings/scripts/test/JS/JSTestObj.cpp:
              (WebCore::jsTestObjPrototypeFunctionOverloadedMethod):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65333 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5eb0aa71
    • leandro@webkit.org's avatar
      2010-08-13 Leandro Pereira <leandro@profusion.mobi> · 79a523e5
      leandro@webkit.org authored
              [EFL] Unreviewed build fix.
      
              * cmake/FindGthread.cmake: Fix warnings about obsolete PKGCONFIG macro.
              * cmake/WebKitGenerators.cmake: FLEX_EXECUTABLE was defined already
              by the root CMakeLists.txt file, so remove relevant lines that
              depends on FIND_PACKAGE_HANDLE_STANDARD_ARGS macro, which isn't
              available anymore.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65332 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      79a523e5
    • ariya@webkit.org's avatar
      2010-08-13 Ariya Hidayat <ariya@sencha.com> · 463b25ff
      ariya@webkit.org authored
              Reviewed by Simon Hausmann.
      
              [Qt] Canvas and CSS: blur option in shadow not working
              https://bugs.webkit.org/show_bug.cgi?id=34479
      
              Patch 1: Refactor shadow states handling.
      
              * platform/graphics/qt/GraphicsContextQt.cpp:
              (WebCore::GraphicsContextPlatformPrivate::): Added shadow states as
              member variables.
              (WebCore::GraphicsContextPlatformPrivate::hasShadow): Convenient
              function to check whether there is shadow or not.
              (WebCore::GraphicsContextPlatformPrivate::GraphicsContextPlatformPrivate):
              (WebCore::GraphicsContext::drawRect): Use shadow states instead of
              calling getShadow.
              (WebCore::GraphicsContext::drawLine): ditto.
              (WebCore::GraphicsContext::strokeArc): ditto.
              (WebCore::GraphicsContext::drawConvexPolygon): ditto.
              (WebCore::GraphicsContext::fillPath): ditto.
              (WebCore::GraphicsContext::strokePath): ditto.
              (WebCore::GraphicsContext::fillRect): Removes the use of helper function
              drawBorderlessRectShadow as the code already becomes a lot simpler.
              (WebCore::GraphicsContext::fillRoundedRect): Removes the use of helper
              function drawFilledShadowPath as the code already becomes a lot simpler.
              (WebCore::GraphicsContext::setPlatformShadow): Store shadow states
              and find out the shadow type (complexity) for future use.
              (WebCore::GraphicsContext::clearPlatformShadow): Reset shadow states.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65331 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      463b25ff
    • zmo@google.com's avatar
      2010-08-11 Zhenyao Mo <zmo@google.com> · 0f9b8f57
      zmo@google.com authored
              Reviewed by Dimitri Glazkov.
      
              Regression in linking of programs
              https://bugs.webkit.org/show_bug.cgi?id=43820
      
              Shaders and programs shouldn't be deleted until their attachments are removed, therefore, we need to track the attach/detach/useProgram.
      
              * html/canvas/WebGLObject.cpp: Track the object attachment count and whether it should really be deleted.
              (WebCore::WebGLObject::WebGLObject):
              (WebCore::WebGLObject::setObject):
              (WebCore::WebGLObject::deleteObject):
              * html/canvas/WebGLObject.h: Track the object attachment count and whether it should really be deleted.
              (WebCore::WebGLObject::onAttached):
              (WebCore::WebGLObject::onDetached):
              (WebCore::WebGLObject::getAttachmentCount):
              * html/canvas/WebGLProgram.cpp: Track the attached shaders.
              (WebCore::WebGLProgram::WebGLProgram):
              (WebCore::WebGLProgram::deleteObjectImpl):
              (WebCore::WebGLProgram::getAttachedShader):
              (WebCore::WebGLProgram::attachShader):
              (WebCore::WebGLProgram::detachShader):
              * html/canvas/WebGLProgram.h: Track the attached shaders.
              * html/canvas/WebGLRenderingContext.cpp:
              (WebCore::WebGLRenderingContext::attachShader): Track the attachment of a shader to a program.
              (WebCore::WebGLRenderingContext::deleteProgram): Detach shaders.
              (WebCore::WebGLRenderingContext::detachShader): Track the attachment of a shader to a program.
              (WebCore::WebGLRenderingContext::validateWebGLObject): Also check if object == 0.
              (WebCore::WebGLRenderingContext::linkProgram): Using the cached attached shaders instead of query from driver.
              (WebCore::WebGLRenderingContext::useProgram): Track the attachment of a program to the current rendering pipeline.
      2010-08-11  Zhenyao Mo  <zmo@google.com>
      
              Reviewed by Dimitri Glazkov.
      
              Regression in linking of programs
              https://bugs.webkit.org/show_bug.cgi?id=43820
      
              * fast/canvas/webgl/program-test-expected.txt: Fix the tests so a second shader of the same type attaching to a program will generate error; also, add tests for deleteShader/deleteProgram behavior.
              * fast/canvas/webgl/program-test.html: Ditto.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65330 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0f9b8f57
    • steveblock@google.com's avatar
      2010-08-13 Steve Block <steveblock@google.com> · 52ca7c02
      steveblock@google.com authored
              Reviewed by Alexey Proskuryakov.
      
              Geolocation activity started after frame has been disconnected can cause crash
              https://bugs.webkit.org/show_bug.cgi?id=39879
      
              New requests started after the Frame has been disconnected are ignored. We do
              not invoke the error callback as this would allow buggy or malicious pages to
              hose the CPU. Such a page could hold a reference to a Geolocation object from
              a since closed Page and register new requests from the error callback to
              create an infinite loop.
      
              Tests: fast/dom/Geolocation/disconnected-frame-already.html
      
              * page/Geolocation.cpp:
      2010-08-13  Steve Block  <steveblock@google.com>
      
              Reviewed by Alexey Proskuryakov.
      
              Geolocation activity started after frame has been disconnected can cause crash
              https://bugs.webkit.org/show_bug.cgi?id=39879
      
              Added new tests to GTK skipped list.
      
              * fast/dom/Geolocation/disconnected-frame-already.html: Added.
              * fast/dom/Geolocation/disconnected-frame-already-expected.txt: Added.
              * fast/dom/Geolocation/script-tests/disconnected-frame-already.js: Added.
              * fast/dom/Geolocation/resources/disconnected-frame-already-inner1.html: Added.
              * fast/dom/Geolocation/resources/disconnected-frame-already-inner2.html: Added.
              * platform/gtk/Skipped:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65329 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      52ca7c02
    • alex@webkit.org's avatar
      2010-08-13 Alejandro G. Castro <alex@igalia.com> · fe170308
      alex@webkit.org authored
              Reviewed by Xan Lopez.
      
              We have to add the ACLOCAL_FLAGS in the env to the autogen.sh
              ACLOCAL_FLAGS variable in order to honor the value already
              defined, jhbuild uses it to pass parameters.
      
              * autogen.sh:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65328 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fe170308
    • commit-queue@webkit.org's avatar
      2010-08-13 Satish Sampath <satish@chromium.org> · 27a9e297
      commit-queue@webkit.org authored
              Reviewed by Jeremy Orlow.
      
              Support for multiple speech enabled elements in same page.
              https://bugs.webkit.org/show_bug.cgi?id=43922
      
              * page/SpeechInput.cpp: Generates request ids as necessary when each speech enabled input element gets
              created/destroyed and multiplexes the listener callbacks to the appropriate input element based on the request id.
              (WebCore::SpeechInput::SpeechInput):
              (WebCore::SpeechInput::~SpeechInput):
              (WebCore::SpeechInput::registerListener):
              (WebCore::SpeechInput::unregisterListener):
              (WebCore::SpeechInput::didCompleteRecording):
              (WebCore::SpeechInput::didCompleteRecognition):
              (WebCore::SpeechInput::setRecognitionResult):
              (WebCore::SpeechInput::startRecognition):
              (WebCore::SpeechInput::stopRecording):
              (WebCore::SpeechInput::cancelRecognition):
              * page/SpeechInput.h:
              * page/SpeechInputClient.h: Now requires a one time set for the WebCore::SpeechInputListener and
              takes in a 'requestId' for all calls.
              * page/SpeechInputListener.h: Now returns the above mentioned requestId in all the listener callbacks for
              identifying which input element the event goes to.
              * platform/mock/SpeechInputClientMock.cpp:
              (WebCore::SpeechInputClientMock::SpeechInputClientMock):
              (WebCore::SpeechInputClientMock::setListener):
              (WebCore::SpeechInputClientMock::startRecognition):
              (WebCore::SpeechInputClientMock::stopRecording):
              (WebCore::SpeechInputClientMock::cancelRecognition):
              (WebCore::SpeechInputClientMock::timerFired):
              * platform/mock/SpeechInputClientMock.h:
              * rendering/TextControlInnerElements.cpp:
              (WebCore::InputFieldSpeechButtonElement::InputFieldSpeechButtonElement):
              (WebCore::InputFieldSpeechButtonElement::~InputFieldSpeechButtonElement):
              (WebCore::InputFieldSpeechButtonElement::defaultEventHandler):
              (WebCore::InputFieldSpeechButtonElement::speechInput):
              (WebCore::InputFieldSpeechButtonElement::didCompleteRecording):
              (WebCore::InputFieldSpeechButtonElement::didCompleteRecognition):
              (WebCore::InputFieldSpeechButtonElement::setRecognitionResult):
              * rendering/TextControlInnerElements.h:
      2010-08-13  Satish Sampath  <satish@chromium.org>
      
              Reviewed by Jeremy Orlow.
      
              Support for multiple speech enabled elements in same page.
              https://bugs.webkit.org/show_bug.cgi?id=43922
      
              * public/WebSpeechInputController.h: Bubbles up the requestId given by webcore to the embedder.
              (WebKit::WebSpeechInputController::startRecognition):
              (WebKit::WebSpeechInputController::cancelRecognition):
              (WebKit::WebSpeechInputController::stopRecording):
              * public/WebSpeechInputListener.h: Passes down the requestId given by embedder to webcore.
              (WebKit::WebSpeechInputListener::didCompleteRecording):
              (WebKit::WebSpeechInputListener::setRecognitionResult):
              (WebKit::WebSpeechInputListener::didCompleteRecognition):
              * src/SpeechInputClientImpl.cpp:
              (WebKit::SpeechInputClientImpl::setListener):
              (WebKit::SpeechInputClientImpl::startRecognition):
              (WebKit::SpeechInputClientImpl::stopRecording):
              (WebKit::SpeechInputClientImpl::cancelRecognition):
              (WebKit::SpeechInputClientImpl::didCompleteRecording):
              (WebKit::SpeechInputClientImpl::didCompleteRecognition):
              (WebKit::SpeechInputClientImpl::setRecognitionResult):
              * src/SpeechInputClientImpl.h:
              * src/WebSpeechInputControllerMockImpl.cpp:
              (WebKit::WebSpeechInputControllerMockImpl::WebSpeechInputControllerMockImpl):
              (WebKit::WebSpeechInputControllerMockImpl::~WebSpeechInputControllerMockImpl):
              (WebKit::WebSpeechInputControllerMockImpl::didCompleteRecording):
              (WebKit::WebSpeechInputControllerMockImpl::didCompleteRecognition):
              (WebKit::WebSpeechInputControllerMockImpl::setRecognitionResult):
              (WebKit::WebSpeechInputControllerMockImpl::startRecognition):
              (WebKit::WebSpeechInputControllerMockImpl::cancelRecognition):
              (WebKit::WebSpeechInputControllerMockImpl::stopRecording):
              * src/WebSpeechInputControllerMockImpl.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65327 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      27a9e297
    • ariya@webkit.org's avatar
      2010-08-13 Ariya Hidayat <ariya@sencha.com> · 5e845d41
      ariya@webkit.org authored
              Rubber-stamped by Simon Hausmann.
      
              [Qt] Outdated pixel test reference for basic-shadows.html
              https://bugs.webkit.org/show_bug.cgi?id=43952
      
              * platform/qt/fast/box-shadow/basic-shadows-expected.checksum:
              * platform/qt/fast/box-shadow/basic-shadows-expected.png:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65326 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5e845d41
    • steveblock@google.com's avatar
      2010-08-13 Steve Block <steveblock@google.com> · 61cb516b
      steveblock@google.com authored
              Reviewed by Alexey Proskuryakov.
      
              Need a LayoutTest to check that pages using Geolocation are not put in the page cache
              https://bugs.webkit.org/show_bug.cgi?id=43957
      
              * fast/dom/Geolocation/no-page-cache-expected.txt: Added.
              * fast/dom/Geolocation/no-page-cache.html: Added.
              * fast/dom/Geolocation/resources/cached-page-1.html: Added.
              * fast/dom/Geolocation/resources/cached-page-2.html: Added.
              * fast/dom/Geolocation/script-tests/no-page-cache.js: Added.
              (reportPageOneOnload):
              * platform/gtk/Skipped: Added new test to GTK skipped list
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65325 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      61cb516b
    • eric.carlson@apple.com's avatar
      2010-08-13 Eric Carlson <eric.carlson@apple.com> · c48c5bc4
      eric.carlson@apple.com authored
              Reviewed by David Kilzer.
      
              HTMLMediaElement::prepareForLoad should cancel current plug-in proxy media player
              https://bugs.webkit.org/show_bug.cgi?id=43923
      
              * html/HTMLMediaElement.cpp:
              (WebCore::HTMLMediaElement::prepareForLoad): Tell mediaPlayer to cancel the current load
              if it already exists.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65324 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c48c5bc4
    • senorblanco@chromium.org's avatar
      2010-08-12 Stephen White <senorblanco@chromium.org> · d7e5fff3
      senorblanco@chromium.org authored
              Reviewed by David Levin.
      
              [CHROMIUM] Use the BGRA format for canvas 2D accel upload and readbacks.
              https://bugs.webkit.org/show_bug.cgi?id=43804
      
              Use the BGRA format from GraphicsContext3D, if supported.  Also keep a
              texture around for uploads, rather than re-creating it each time.
      
              Covered by many layout tests (once we're running them).
      
              * platform/graphics/chromium/GLES2Texture.cpp:
              (WebCore::convertFormat):
              Move convertFormat() ahead of texture creation, so we can check for
              BGRA support.
              (WebCore::GLES2Texture::create):
              Use convertFormat() to determine the correct format and types to use;
              use the returned format also for internalFormat, since GLES2 insists
              they match.
              * platform/graphics/skia/PlatformContextSkia.cpp:
              (WebCore::PlatformContextSkia::setGraphicsContext3D):
              Clear the upload texture when a new context is set.
              (WebCore::PlatformContextSkia::uploadSoftwareToHardware):
              Use m_uploadTexture instead of creating a new one each time.
              (WebCore::PlatformContextSkia::readbackHardwareToSoftware):
              When the context supports it, use the BGRA format for readbacks
              instead of swizzling.
              * platform/graphics/skia/PlatformContextSkia.h:
              Add m_uploadTexture for consecutive uploads.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65323 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d7e5fff3
    • hausmann@webkit.org's avatar
      [Qt] Introduce Maemo6 for mobile features · 202ce576
      hausmann@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=43969
      
      Reviewed by Ariya Hidayat.
      
      * WebKit.pri: Use maemo6 where we also use maemo5.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65322 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      202ce576
    • hausmann@webkit.org's avatar
      [Qt] Clean up mobile feature useage · 0c19b5e1
      hausmann@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=43968
      
      Reviewed by Ariya Hidayat.
      
      .:
      
      * WebKit.pri: Set feature defaults here for some Nokia specific mobile platforms
      
      WebCore:
      
      * WebCore.pro: Replaced use of Nokia specific platform scopes with concrete
      feature names.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65321 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0c19b5e1
    • pfeldman@chromium.org's avatar
      2010-08-13 Pavel Feldman <pfeldman@chromium.org> · 7fab097c
      pfeldman@chromium.org authored
              Reviewed by Yury Semikhatsky.
      
              Web Inspector: rename InspectorValue::push and set to
              push{Value|Object|Array} and set{...}.
              https://bugs.webkit.org/show_bug.cgi?id=43966
      
              * bindings/js/ScriptProfile.cpp:
              (WebCore::buildInspectorObjectFor):
              * bindings/js/ScriptValue.cpp:
              (WebCore::jsToInspectorValue):
              * bindings/v8/ScriptCallStack.cpp:
              (WebCore::ScriptCallStack::stackTrace):
              * bindings/v8/ScriptProfile.cpp:
              (WebCore::buildInspectorObjectFor):
              * bindings/v8/ScriptValue.cpp:
              (WebCore::v8ToInspectorValue):
              * inspector/CodeGeneratorInspector.pm:
              * inspector/ConsoleMessage.cpp:
              (WebCore::ConsoleMessage::addToFrontend):
              * inspector/Inspector.idl:
              * inspector/InspectorApplicationCacheAgent.cpp:
              (WebCore::InspectorApplicationCacheAgent::buildObjectForApplicationCache):
              (WebCore::InspectorApplicationCacheAgent::buildArrayForApplicationCacheResources):
              * inspector/InspectorController.cpp:
              (WebCore::InspectorController::buildArrayForCookies):
              (WebCore::InspectorController::getDOMStorageEntries):
              (WebCore::InspectorController::getProfileHeaders):
              (WebCore::InspectorController::getProfile):
              * inspector/InspectorDOMAgent.cpp:
              (WebCore::InspectorDOMAgent::getEventListenersForNode):
              (WebCore::InspectorDOMAgent::buildObjectForNode):
              (WebCore::InspectorDOMAgent::buildArrayForContainerChildren):
              (WebCore::InspectorDOMAgent::getStyles):
              (WebCore::InspectorDOMAgent::getAllStyles):
              (WebCore::InspectorDOMAgent::getRuleRanges):
              (WebCore::InspectorDOMAgent::buildObjectForAttributeStyles):
              (WebCore::InspectorDOMAgent::buildArrayForCSSRules):
              (WebCore::InspectorDOMAgent::buildArrayForPseudoElements):
              (WebCore::InspectorDOMAgent::buildObjectForStyle):
              (WebCore::InspectorDOMAgent::populateObjectWithStyleProperties):
              (WebCore::InspectorDOMAgent::buildArrayForDisabledStyleProperties):
              (WebCore::InspectorDOMAgent::buildObjectForStyleSheet):
              (WebCore::InspectorDOMAgent::buildObjectForRule):
              * inspector/InspectorDebuggerAgent.cpp:
              (WebCore::InspectorDebuggerAgent::saveBreakpoints):
              * inspector/InspectorResource.cpp:
              (WebCore::InspectorResource::updateScriptObject):
              * inspector/InspectorStorageAgent.cpp:
              (WebCore::):
              (WebCore::InspectorStorageAgent::executeSQL):
              * inspector/InspectorTimelineAgent.cpp:
              (WebCore::InspectorTimelineAgent::pushGCEventRecords):
              (WebCore::InspectorTimelineAgent::didInstallTimer):
              (WebCore::InspectorTimelineAgent::didRemoveTimer):
              (WebCore::InspectorTimelineAgent::didScheduleResourceRequest):
              (WebCore::InspectorTimelineAgent::willSendResourceRequest):
              (WebCore::InspectorTimelineAgent::didFinishLoadingResource):
              (WebCore::InspectorTimelineAgent::didMarkTimeline):
              (WebCore::InspectorTimelineAgent::addRecordToTimeline):
              (WebCore::InspectorTimelineAgent::didCompleteCurrentRecord):
              * inspector/InspectorValues.cpp:
              (WebCore::):
              (WebCore::InspectorValue::asValue):
              (WebCore::InspectorValue::asObject):
              (WebCore::InspectorValue::asArray):
              (WebCore::InspectorObject::asObject):
              (WebCore::InspectorArray::asArray):
              * inspector/InspectorValues.h:
              (WebCore::InspectorObject::setBool):
              (WebCore::InspectorObject::setNumber):
              (WebCore::InspectorObject::setString):
              (WebCore::InspectorObject::setValue):
              (WebCore::InspectorObject::setObject):
              (WebCore::InspectorObject::setArray):
              (WebCore::InspectorArray::pushValue):
              (WebCore::InspectorArray::pushObject):
              (WebCore::InspectorArray::pushArray):
              * inspector/ScriptBreakpoint.cpp:
              (WebCore::ScriptBreakpoint::inspectorObjectFromSourceBreakpoints):
              * inspector/TimelineRecordFactory.cpp:
              (WebCore::TimelineRecordFactory::createGenericRecord):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65320 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7fab097c
    • commit-queue@webkit.org's avatar
      2010-08-13 Patrick Gansterer <paroga@paroga.com> · 28b03451
      commit-queue@webkit.org authored
              Reviewed by Nikolas Zimmermann.
      
              [CMake] Cleanup generator code.
              https://bugs.webkit.org/show_bug.cgi?id=39164
      
              * cmake/WebKitGenerators.cmake:
              * cmake/WebKitMacros.cmake:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65319 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      28b03451
    • japhet@chromium.org's avatar
      2010-08-13 Nate Chapin <japhet@chromium.org> · 2ac8d3d5
      japhet@chromium.org authored
              Unreviewed, Chromium test_expectations.txt updates + a rebaseline
      
              * platform/chromium-linux/svg/custom/absolute-sized-content-with-resources-expected.txt: Added.
              * platform/chromium/test_expectations.txt:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65318 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2ac8d3d5
    • commit-queue@webkit.org's avatar
      2010-08-13 Sheriff Bot <webkit.review.bot@gmail.com> · be956fc5
      commit-queue@webkit.org authored
              Unreviewed, rolling out r65204.
              http://trac.webkit.org/changeset/65204
              https://bugs.webkit.org/show_bug.cgi?id=43965
      
              Caused a lot of test crashes in Chromium (Requested by yutak
              on #webkit).
      
              * platform/mac/accessibility/native-vs-nonnative-checkboxes-expected.txt: Removed.
              * platform/mac/accessibility/native-vs-nonnative-checkboxes.html: Removed.
      2010-08-13  Sheriff Bot  <webkit.review.bot@gmail.com>
      
              Unreviewed, rolling out r65204.
              http://trac.webkit.org/changeset/65204
              https://bugs.webkit.org/show_bug.cgi?id=43965
      
              Caused a lot of test crashes in Chromium (Requested by yutak
              on #webkit).
      
              * accessibility/AccessibilityRenderObject.cpp:
              (WebCore::AccessibilityRenderObject::isInputImage):
              (WebCore::AccessibilityRenderObject::isNativeCheckboxOrRadio):
              * dom/InputElement.h:
              * html/HTMLInputElement.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65317 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      be956fc5
    • antonm@chromium.org's avatar
      2010-08-13 Anton Muhin <antonm@chromium.org> · 07d9c24f
      antonm@chromium.org authored
              Reviewed by Nate Chapin.
      
              Reapplying http://trac.webkit.org/changeset/65284 after fixed include.
      
              [v8] Create callbacks for named access of elements from document object on fly.
              https://bugs.webkit.org/show_bug.cgi?id=43725
      
              That should speed up access to methods on document as there is no need to
              consult with interceptor before invoking the method.
      
              This reapplies http://trac.webkit.org/changeset/60670 reverted with
              http://trac.webkit.org/changeset/63845.  The main difference is in treatment
              of removed named elements: we don't remove an accessor any more, but leave it.
              Therefore any accessor should be able to treat the case when there is no
              expando property.
      
              * bindings/scripts/CodeGeneratorV8.pm:
              * bindings/v8/ScriptController.cpp:
              (WebCore::ScriptController::namedItemAdded):
              (WebCore::ScriptController::namedItemRemoved):
              * bindings/v8/V8DOMWindowShell.cpp:
              (WebCore::checkDocumentWrapper):
              (WebCore::V8DOMWindowShell::updateDocumentWrapperCache):
              (WebCore::getter):
              (WebCore::V8DOMWindowShell::namedItemAdded):
              (WebCore::V8DOMWindowShell::namedItemRemoved):
              * bindings/v8/V8DOMWindowShell.h:
              * bindings/v8/V8DOMWrapper.cpp:
              (WebCore::V8DOMWrapper::instantiateV8Object):
              * bindings/v8/custom/V8HTMLDocumentCustom.cpp:
              (WebCore::V8HTMLDocument::WrapInShadowObject):
              (WebCore::V8HTMLDocument::GetNamedProperty):
              (WebCore::V8HTMLDocument::allAccessorSetter):
              (WebCore::toV8):
              * html/HTMLDocument.cpp:
              (WebCore::HTMLDocument::removeItemFromMap):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65316 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      07d9c24f
    • yurys@chromium.org's avatar
      2010-08-13 Yury Semikhatsky <yurys@chromium.org> · d0936bf5
      yurys@chromium.org authored
              Reviewed by Pavel Feldman.
      
              Web Inspector: DRT sometimes crashes on debugger tests
              https://bugs.webkit.org/show_bug.cgi?id=43964
              notifyDone() should be called only when debugger already resumed all active DOM objects,
              otherwise we might accidentally call setTimeout in the inspected page and create
              a new active DOM object while their set should remain unchanged when script execution
              is paused.
      
              * inspector/debugger-cyclic-ref.html:
              * inspector/debugger-eval-while-paused.html:
              * inspector/debugger-no-nested-pause.html:
              * inspector/debugger-pause-in-eval-script.html:
              * inspector/debugger-pause-on-debugger-statement.html:
              * inspector/debugger-proto-property.html:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65315 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d0936bf5
    • pfeldman@chromium.org's avatar
      2010-08-13 Pavel Feldman <pfeldman@chromium.org> · 157e3518
      pfeldman@chromium.org authored
              Reviewed by Yury Semikhatsky.
      
              Web Inspector: remove openInInspectorWindow and evaluateAndStringify from InjectedScript.
              https://bugs.webkit.org/show_bug.cgi?id=43854
      
              * inspector/Inspector.idl:
              * inspector/InspectorController.cpp:
              (WebCore::InspectorController::openInInspectedWindow):
              * inspector/InspectorController.h:
              * inspector/front-end/ExtensionServer.js:
              (WebInspector.ExtensionServer.prototype._onEvaluateOnInspectedPage.callback):
              (WebInspector.ExtensionServer.prototype._onEvaluateOnInspectedPage):
              * inspector/front-end/InjectedScript.js:
              (injectedScriptConstructor):
              * inspector/front-end/InjectedScriptAccess.js:
              * inspector/front-end/InspectorBackendStub.js:
              (WebInspector.InspectorBackendStub):
              * inspector/front-end/ResourcesPanel.js:
              (WebInspector.ResourceSidebarTreeElement.prototype.ondblclick):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65314 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      157e3518
    • ukai@chromium.org's avatar
      2010-08-13 Fumitoshi Ukai <ukai@chromium.org> · a86c8ee0
      ukai@chromium.org authored
              Reviewed by Alexey Proskuryakov.
      
              flaky websocket/tests/frame-length-overflow.html
              https://bugs.webkit.org/show_bug.cgi?id=43902
      
              Add m_shouldDiscardReceivedData flag to indicate it will no longer
              receive data from network.
      
              * websockets/WebSocketChannel.cpp:
              (WebCore::WebSocketChannel::WebSocketChannel):
              (WebCore::WebSocketChannel::didReceiveData):
              (WebCore::WebSocketChannel::didFail):
              (WebCore::WebSocketChannel::processBuffer):
              - when frame length overflows, we couldn't process data any more.
                clear buffer and mark m_shouldDiscardReceivedData true to make sure
                it doesn't process the same buffer again.
              * websockets/WebSocketChannel.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65313 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a86c8ee0
    • krit@webkit.org's avatar
      2010-08-13 Dirk Schulze <krit@webkit.org> · 63d61060
      krit@webkit.org authored
              Reviewed by Nikolas Zimmermann.
      
              Use SVGPathByteStream to animate SVGPath
              https://bugs.webkit.org/show_bug.cgi?id=43929
      
              Use SVGPathByteStream to perform animations of Paths. SVGPathBlender blends
              the starting point to the end point according to the current progress value.
              Cleanup SVGPathSegList, by removing the unnecessary legacy blending code.
      
              No new tests because no functional changes.
      
              * Android.mk:
              * CMakeLists.txt:
              * GNUmakefile.am:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * svg/SVGAllInOne.cpp:
              * svg/SVGAnimateElement.cpp:
              (WebCore::SVGAnimateElement::SVGAnimateElement):
              (WebCore::SVGAnimateElement::calculateAnimatedValue):
              (WebCore::SVGAnimateElement::calculateFromAndToValues):
              (WebCore::SVGAnimateElement::resetToBaseValue):
              (WebCore::SVGAnimateElement::applyResultsToTarget):
              * svg/SVGAnimateElement.h:
              * svg/SVGPathBlender.cpp: Added.
              (WebCore::SVGPathBlender::SVGPathBlender):
              (WebCore::SVGPathBlender::~SVGPathBlender):
              (WebCore::SVGPathBlender::blendAnimatedFloat):
              (WebCore::SVGPathBlender::blendAnimatedFloatPoint):
              (WebCore::SVGPathBlender::blendMoveToSegment):
              (WebCore::SVGPathBlender::blendLineToSegment):
              (WebCore::SVGPathBlender::blendLineToHorizontalSegment):
              (WebCore::SVGPathBlender::blendLineToVerticalSegment):
              (WebCore::SVGPathBlender::blendCurveToCubicSegment):
              (WebCore::SVGPathBlender::blendCurveToCubicSmoothSegment):
              (WebCore::SVGPathBlender::blendCurveToQuadraticSegment):
              (WebCore::SVGPathBlender::blendCurveToQuadraticSmoothSegment):
              (WebCore::SVGPathBlender::blendArcToSegment):
              (WebCore::SVGPathBlender::blendAnimatedPath):
              (WebCore::SVGPathBlender::cleanup):
              * svg/SVGPathBlender.h: Added.
              * svg/SVGPathParserFactory.cpp:
              (WebCore::globalSVGPathBlender):
              (WebCore::SVGPathParserFactory::buildAnimatedSVGPathByteStream):
              * svg/SVGPathParserFactory.h:
              * svg/SVGPathSegList.cpp:
              (WebCore::SVGPathSegList::getPathSegAtLength):
              * svg/SVGPathSegList.h:
              (WebCore::SVGPathSegList::create):
              * svg/SVGPointList.cpp:
              (WebCore::adjustAnimatedValue):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65312 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      63d61060
    • loki@webkit.org's avatar
      Avoid increasing required alignment of target type warning on ARM · 7534a3fa
      loki@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=38045
      
      Reviewed by Gavin Barraclough.
      
      The reinterpret_cast<Type1*>([pointer to Type2]) expressions - where
      sizeof(Type1) > sizeof(Type2) - cause the following warning on ARM:
      increases required alignment of target type warnings.
      Casting the type of [pointer to Type2] object to void* bypasses the
      warning.
      
      * JavaScriptCore/assembler/ARMAssembler.cpp:
      (JSC::ARMAssembler::executableCopy):
      * JavaScriptCore/assembler/AssemblerBuffer.h:
      (JSC::AssemblerBuffer::putShortUnchecked):
      (JSC::AssemblerBuffer::putIntUnchecked):
      (JSC::AssemblerBuffer::putInt64Unchecked):
      * JavaScriptCore/interpreter/RegisterFile.h:
      (JSC::RegisterFile::RegisterFile):
      (JSC::RegisterFile::grow):
      * JavaScriptCore/jit/JITStubs.cpp:
      * JavaScriptCore/pcre/pcre_compile.cpp:
      (jsRegExpCompile):
      * JavaScriptCore/runtime/JSArray.cpp:
      (JSC::JSArray::putSlowCase):
      (JSC::JSArray::increaseVectorLength):
      (JSC::JSArray::increaseVectorPrefixLength):
      (JSC::JSArray::shiftCount):
      (JSC::JSArray::unshiftCount):
      * JavaScriptCore/wtf/FastMalloc.cpp:
      (WTF::PageHeapAllocator::New):
      (WTF::TCMalloc_Central_FreeList::Populate):
      * wtf/MD5.cpp:
      (WTF::reverseBytes):
      (WTF::MD5::addBytes):
      (WTF::MD5::checksum):
      * JavaScriptCore/wtf/StdLibExtras.h:
      (isPointerTypeAlignmentOkay):
      (reinterpret_cast_ptr):
      * JavaScriptCore/wtf/Vector.h:
      (WTF::VectorBuffer::inlineBuffer):
      * JavaScriptCore/wtf/qt/StringQt.cpp:
      (WTF::String::String):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65311 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7534a3fa