Delete webkit-perf.appspot.com code from WebKit repository
https://bugs.webkit.org/show_bug.cgi?id=107390

Reviewed by Adam Barth.

Delete webkit-perf.appspot.com code from WebKit repository since I maintain
and push the code via https://github.com/rniwa/webkit-perf now.

* Websites/webkit-perf.appspot.com: Removed.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@140266 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Refactor SVGSVGElement to inherit from SVGStyledTransformableElement
https://bugs.webkit.org/show_bug.cgi?id=107393

Reviewed by Dirk Schulze.

Source/WebCore:

This patch refactors SVGSVGElement to inherit from SVGStyledTransformableElement instead
of SVGStyledLocatableElement. In a followup patch, SVGStyledTransformableElement will
be refactored into SVGGraphicsElement which will match the spec:
https://svgwg.org/svg2-draft/single-page.html#struct-InterfaceSVGSVGElement

Tests: svg/transforms/svgsvgelement-transform-expected.svg
       svg/transforms/svgsvgelement-transform.svg

* svg/SVGSVGElement.cpp:
(WebCore):
(WebCore::SVGSVGElement::SVGSVGElement):
(WebCore::SVGSVGElement::didMoveToNewDocument):
(WebCore::SVGSVGElement::parseAttribute):
(WebCore::SVGSVGElement::insertedInto):
(WebCore::SVGSVGElement::removedFrom):
* svg/SVGSVGElement.h:
(SVGSVGElement):
* svg/SVGSVGElement.idl:

LayoutTests:

* svg/transforms/svgsvgelement-transform-expected.svg: Added.
* svg/transforms/svgsvgelement-transform.svg: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@140267 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed build fix for Qt WK2 after r140258.
Use the size_t type instead of unsigned for the variable
which holds the position of the first null character in the
console message.

* WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
(WTR::InjectedBundlePage::willAddMessageToConsole):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@140268 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[chromium] move geolocation related methods to TestRunner
https://bugs.webkit.org/show_bug.cgi?id=107267

Reviewed by Adam Barth.

* DumpRenderTree/chromium/DRTTestRunner.cpp:
(DRTTestRunner::DRTTestRunner):
* DumpRenderTree/chromium/DRTTestRunner.h:
(DRTTestRunner):
* DumpRenderTree/chromium/TestRunner/public/WebTestDelegate.h:
(WebTestRunner::WebTestDelegate::numberOfPendingGeolocationPermissionRequests):
(WebTestRunner::WebTestDelegate::setGeolocationPermission):
(WebTestRunner::WebTestDelegate::setMockGeolocationPosition):
(WebTestRunner::WebTestDelegate::setMockGeolocationPositionUnavailableError):
* DumpRenderTree/chromium/TestRunner/src/TestRunner.cpp:
(WebTestRunner::TestRunner::TestRunner):
(WebTestRunner::TestRunner::numberOfPendingGeolocationPermissionRequests):
(WebTestRunner):
(WebTestRunner::TestRunner::setGeolocationPermission):
(WebTestRunner::TestRunner::setMockGeolocationPosition):
(WebTestRunner::TestRunner::setMockGeolocationPositionUnavailableError):
* DumpRenderTree/chromium/TestRunner/src/TestRunner.h:
(TestRunner):
* DumpRenderTree/chromium/WebViewHost.cpp:
(WebViewHost::numberOfPendingGeolocationPermissionRequests):
(WebViewHost::setGeolocationPermission):
(WebViewHost::setMockGeolocationPosition):
(WebViewHost::setMockGeolocationPositionUnavailableError):
* DumpRenderTree/chromium/WebViewHost.h:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@140269 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[V8] Create a persistent wrapper for Window.prototype and innerGlobalObject
https://bugs.webkit.org/show_bug.cgi?id=107253

Reviewed by Adam Barth.

This is one of steps to avoid hitting an ASSERT()
that will be added in https://bugs.webkit.org/show_bug.cgi?id=107137 .
We should have a persistent wrapper for all DOM objects
and set a class id on the wrapper.

No tests. No change in behavior.

* bindings/v8/V8DOMWindowShell.cpp:
(WebCore::V8DOMWindowShell::installDOMWindow):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@140270 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[chromium] move notification related methods to TestRunner
https://bugs.webkit.org/show_bug.cgi?id=107269

Reviewed by Adam Barth.

* DumpRenderTree/chromium/DRTTestRunner.cpp:
(DRTTestRunner::DRTTestRunner):
* DumpRenderTree/chromium/DRTTestRunner.h:
(DRTTestRunner):
* DumpRenderTree/chromium/TestRunner/public/WebTestDelegate.h:
(WebTestDelegate):
(WebTestRunner::WebTestDelegate::grantWebNotificationPermission):
(WebTestRunner::WebTestDelegate::simulateLegacyWebNotificationClick):
* DumpRenderTree/chromium/TestRunner/src/TestRunner.cpp:
(WebTestRunner::TestRunner::TestRunner):
(WebTestRunner):
(WebTestRunner::TestRunner::grantWebNotificationPermission):
(WebTestRunner::TestRunner::simulateLegacyWebNotificationClick):
* DumpRenderTree/chromium/TestRunner/src/TestRunner.h:
(TestRunner):
* DumpRenderTree/chromium/WebViewHost.cpp:
(WebViewHost::grantWebNotificationPermission):
(WebViewHost::simulateLegacyWebNotificationClick):
* DumpRenderTree/chromium/WebViewHost.h:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@140271 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[gstreamer]  assertion in g_object_unref from _WebKitWebAudioSourcePrivate destructor
https://bugs.webkit.org/show_bug.cgi?id=107374

Reviewed by Philippe Normand.

WebKitWebAudioSrc object gets unrefed one time too many in
_WebKitWebAudioSourcePrivate destructor, causing an assertion
in g_object_unref. This patch passes NULL instead of
g_object_unref to gst_task_new() so that the WebKitWebAudioSrc
object does not get unrefed when the GstTask is destroyed.

No new tests, already covered by webaudio tests.

* platform/audio/gstreamer/WebKitWebAudioSourceGStreamer.cpp:
(webkit_web_audio_src_init):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@140272 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: Make V8 LiveEdit API disabled by default
https://bugs.webkit.org/show_bug.cgi?id=106668

Patch by Peter Rybin <peter.rybin@gmail.com> on 2013-01-20
Reviewed by Yury Semikhatsky.

Initialize method is patched accordingly.

* bindings/v8/JavaScriptCallFrame.cpp:
(WebCore::JavaScriptCallFrame::restart): missing enable/disable calls added for restart
* bindings/v8/V8Initializer.cpp:
(WebCore::initializeV8Common): initializer method patched

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@140273 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Remove obsolete plug-in sandboxing code.
https://bugs.webkit.org/show_bug.cgi?id=107362

Reviewed by Darin Adler.

Source/WebCore:

* WebCore.xcodeproj/project.pbxproj:
* plugins/npapi-sandbox.h: Removed.

Source/WebKit2:

* WebKit2.xcodeproj/project.pbxproj:
* DerivedSources.make:
* PluginProcess/mac/com.apple.WebKit.PluginProcess.sb.in: Removed.

* PluginProcess/mac/PluginProcessMac.mm:
(WebKit::initializeSandbox): Fixed a memory leak in code that stays.

* WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp:
(WebKit::NPN_GetValue):

* WebProcess/Plugins/Netscape/mac/NetscapeSandboxFunctions.h:
* WebProcess/Plugins/Netscape/mac/NetscapeSandboxFunctions.mm:
Removed API related parts. Remaining code will move to a better place in a follow-up
patch, just keeping it here for easier reviewing.
(enterSandbox): Removed no longer used arguments.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@140274 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Inserting a node into the DFG graph should not require five lines of code
https://bugs.webkit.org/show_bug.cgi?id=107381

Reviewed by Sam Weinig.
        
This adds fairly comprehensive support for inserting a node into a DFG graph in one
method call. A common example of this is:
        
m_insertionSet.insertNode(indexInBlock, DontRefChildren, DontRefNode, SpecNone, ForceOSRExit, codeOrigin);
        
The arguments to insert() specify what reference counting you need to have happen
(RefChildren => recursively refs all children, RefNode => non-recursively refs the node
that was created), the prediction to set (SpecNone is a common default), followed by
the arguments to the Node() constructor. InsertionSet::insertNode() and similar methods
(Graph::addNode() and BasicBlock::appendNode()) all use a common variadic template
function macro from DFGVariadicFunction.h. Also, all of these methods will automatically
non-recursively ref() the node being created if the flags say NodeMustGenerate.
        
In all, this new mechanism retains the flexibility of the old approach (you get to
manage ref counts yourself, albeit in less code) while ensuring that most code that adds
nodes to the graph now needs less code to do it.
        
In the future, we should revisit the reference counting methodology in the DFG: we could
do like most compilers and get rid of it entirely, or we could make it automatic. This
patch doesn't attempt to make any such major changes, and only seeks to simplify the
technique we were already using (manual ref counting).

* GNUmakefile.list.am:
* JavaScriptCore.xcodeproj/project.pbxproj:
* bytecode/Operands.h:
(JSC::dumpOperands):
* dfg/DFGAdjacencyList.h:
(AdjacencyList):
(JSC::DFG::AdjacencyList::kind):
* dfg/DFGArgumentsSimplificationPhase.cpp:
(JSC::DFG::ArgumentsSimplificationPhase::run):
* dfg/DFGBasicBlock.h:
(DFG):
(BasicBlock):
* dfg/DFGBasicBlockInlines.h: Added.
(DFG):
* dfg/DFGCFGSimplificationPhase.cpp:
(JSC::DFG::CFGSimplificationPhase::run):
(JSC::DFG::CFGSimplificationPhase::keepOperandAlive):
* dfg/DFGCommon.h:
* dfg/DFGConstantFoldingPhase.cpp:
(JSC::DFG::ConstantFoldingPhase::ConstantFoldingPhase):
(JSC::DFG::ConstantFoldingPhase::foldConstants):
(JSC::DFG::ConstantFoldingPhase::addStructureTransitionCheck):
(JSC::DFG::ConstantFoldingPhase::paintUnreachableCode):
(ConstantFoldingPhase):
* dfg/DFGFixupPhase.cpp:
(JSC::DFG::FixupPhase::FixupPhase):
(JSC::DFG::FixupPhase::fixupBlock):
(JSC::DFG::FixupPhase::fixupNode):
(FixupPhase):
(JSC::DFG::FixupPhase::checkArray):
(JSC::DFG::FixupPhase::blessArrayOperation):
(JSC::DFG::FixupPhase::injectInt32ToDoubleNode):
* dfg/DFGGraph.h:
(JSC::DFG::Graph::ref):
(Graph):
* dfg/DFGInsertionSet.h:
(DFG):
(JSC::DFG::Insertion::Insertion):
(JSC::DFG::Insertion::element):
(Insertion):
(JSC::DFG::InsertionSet::InsertionSet):
(JSC::DFG::InsertionSet::insert):
(InsertionSet):
(JSC::DFG::InsertionSet::execute):
* dfg/DFGNode.h:
(JSC::DFG::Node::Node):
(Node):
* dfg/DFGStructureCheckHoistingPhase.cpp:
(JSC::DFG::StructureCheckHoistingPhase::run):
* dfg/DFGVariadicFunction.h: Added.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@140275 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Add more JavaScript tests.

Rubber stampted by Geoffrey Garen.
        
This adds my JSRegress suite to LayoutTests. This includes silly microbenchmarks that I've
used to test JSC's performance on various interesting cases. But it's also good at catching
bugs, so we might as well be running it as part of regression testing. All of these tests
are short-running, so it shouldn't get in the way of anyone.

* fast/js/regress: Added.
* fast/js/regress/Float32Array-matrix-mult-expected.txt: Added.
* fast/js/regress/Float32Array-matrix-mult.html: Added.
* fast/js/regress/Int16Array-bubble-sort-expected.txt: Added.
* fast/js/regress/Int16Array-bubble-sort.html: Added.
* fast/js/regress/Int16Array-load-int-mul-expected.txt: Added.
* fast/js/regress/Int16Array-load-int-mul.html: Added.
* fast/js/regress/Int8Array-load-expected.txt: Added.
* fast/js/regress/Int8Array-load.html: Added.
* fast/js/regress/adapt-to-double-divide-expected.txt: Added.
* fast/js/regress/adapt-to-double-divide.html: Added.
* fast/js/regress/aliased-arguments-getbyval-expected.txt: Added.
* fast/js/regress/aliased-arguments-getbyval.html: Added.
* fast/js/regress/allocate-big-object-expected.txt: Added.
* fast/js/regress/allocate-big-object.html: Added.
* fast/js/regress/arity-mismatch-inlining-expected.txt: Added.
* fast/js/regress/arity-mismatch-inlining.html: Added.
* fast/js/regress/array-access-polymorphic-structure-expected.txt: Added.
* fast/js/regress/array-access-polymorphic-structure.html: Added.
* fast/js/regress/array-with-double-add-expected.txt: Added.
* fast/js/regress/array-with-double-add.html: Added.
* fast/js/regress/array-with-double-increment-expected.txt: Added.
* fast/js/regress/array-with-double-increment.html: Added.
* fast/js/regress/array-with-double-mul-add-expected.txt: Added.
* fast/js/regress/array-with-double-mul-add.html: Added.
* fast/js/regress/array-with-double-sum-expected.txt: Added.
* fast/js/regress/array-with-double-sum.html: Added.
* fast/js/regress/array-with-int32-add-sub-expected.txt: Added.
* fast/js/regress/array-with-int32-add-sub.html: Added.
* fast/js/regress/array-with-int32-or-double-sum-expected.txt: Added.
* fast/js/regress/array-with-int32-or-double-sum.html: Added.
* fast/js/regress/big-int-mul-expected.txt: Added.
* fast/js/regress/big-int-mul.html: Added.
* fast/js/regress/boolean-test-expected.txt: Added.
* fast/js/regress/boolean-test.html: Added.
* fast/js/regress/cast-int-to-double-expected.txt: Added.
* fast/js/regress/cast-int-to-double.html: Added.
* fast/js/regress/cell-argument-expected.txt: Added.
* fast/js/regress/cell-argument.html: Added.
* fast/js/regress/cfg-simplify-expected.txt: Added.
* fast/js/regress/cfg-simplify.html: Added.
* fast/js/regress/cmpeq-obj-to-obj-other-expected.txt: Added.
* fast/js/regress/cmpeq-obj-to-obj-other.html: Added.
* fast/js/regress/constant-test-expected.txt: Added.
* fast/js/regress/constant-test.html: Added.
* fast/js/regress/direct-arguments-getbyval-expected.txt: Added.
* fast/js/regress/direct-arguments-getbyval.html: Added.
* fast/js/regress/double-pollution-getbyval-expected.txt: Added.
* fast/js/regress/double-pollution-getbyval.html: Added.
* fast/js/regress/double-pollution-putbyoffset-expected.txt: Added.
* fast/js/regress/double-pollution-putbyoffset.html: Added.
* fast/js/regress/external-arguments-getbyval-expected.txt: Added.
* fast/js/regress/external-arguments-getbyval.html: Added.
* fast/js/regress/external-arguments-putbyval-expected.txt: Added.
* fast/js/regress/external-arguments-putbyval.html: Added.
* fast/js/regress/fold-double-to-int-expected.txt: Added.
* fast/js/regress/fold-double-to-int.html: Added.
* fast/js/regress/function-dot-apply-expected.txt: Added.
* fast/js/regress/function-dot-apply.html: Added.
* fast/js/regress/function-test-expected.txt: Added.
* fast/js/regress/function-test.html: Added.
* fast/js/regress/get-by-id-chain-from-try-block-expected.txt: Added.
* fast/js/regress/get-by-id-chain-from-try-block.html: Added.
* fast/js/regress/indexed-properties-in-objects-expected.txt: Added.
* fast/js/regress/indexed-properties-in-objects.html: Added.
* fast/js/regress/inline-arguments-access-expected.txt: Added.
* fast/js/regress/inline-arguments-access.html: Added.
* fast/js/regress/inline-arguments-local-escape-expected.txt: Added.
* fast/js/regress/inline-arguments-local-escape.html: Added.
* fast/js/regress/inline-get-scoped-var-expected.txt: Added.
* fast/js/regress/inline-get-scoped-var.html: Added.
* fast/js/regress/inlined-put-by-id-transition-expected.txt: Added.
* fast/js/regress/inlined-put-by-id-transition.html: Added.
* fast/js/regress/int-or-other-abs-then-get-by-val-expected.txt: Added.
* fast/js/regress/int-or-other-abs-then-get-by-val.html: Added.
* fast/js/regress/int-or-other-abs-zero-then-get-by-val-expected.txt: Added.
* fast/js/regress/int-or-other-abs-zero-then-get-by-val.html: Added.
* fast/js/regress/int-or-other-add-expected.txt: Added.
* fast/js/regress/int-or-other-add-then-get-by-val-expected.txt: Added.
* fast/js/regress/int-or-other-add-then-get-by-val.html: Added.
* fast/js/regress/int-or-other-add.html: Added.
* fast/js/regress/int-or-other-div-then-get-by-val-expected.txt: Added.
* fast/js/regress/int-or-other-div-then-get-by-val.html: Added.
* fast/js/regress/int-or-other-max-then-get-by-val-expected.txt: Added.
* fast/js/regress/int-or-other-max-then-get-by-val.html: Added.
* fast/js/regress/int-or-other-min-then-get-by-val-expected.txt: Added.
* fast/js/regress/int-or-other-min-then-get-by-val.html: Added.
* fast/js/regress/int-or-other-mod-then-get-by-val-expected.txt: Added.
* fast/js/regress/int-or-other-mod-then-get-by-val.html: Added.
* fast/js/regress/int-or-other-mul-then-get-by-val-expected.txt: Added.
* fast/js/regress/int-or-other-mul-then-get-by-val.html: Added.
* fast/js/regress/int-or-other-neg-then-get-by-val-expected.txt: Added.
* fast/js/regress/int-or-other-neg-then-get-by-val.html: Added.
* fast/js/regress/int-or-other-neg-zero-then-get-by-val-expected.txt: Added.
* fast/js/regress/int-or-other-neg-zero-then-get-by-val.html: Added.
* fast/js/regress/int-or-other-sub-expected.txt: Added.
* fast/js/regress/int-or-other-sub-then-get-by-val-expected.txt: Added.
* fast/js/regress/int-or-other-sub-then-get-by-val.html: Added.
* fast/js/regress/int-or-other-sub.html: Added.
* fast/js/regress/int-overflow-local-expected.txt: Added.
* fast/js/regress/int-overflow-local.html: Added.
* fast/js/regress/integer-divide-expected.txt: Added.
* fast/js/regress/integer-divide.html: Added.
* fast/js/regress/make-indexed-storage-expected.txt: Added.
* fast/js/regress/make-indexed-storage.html: Added.
* fast/js/regress/method-on-number-expected.txt: Added.
* fast/js/regress/method-on-number.html: Added.
* fast/js/regress/new-array-buffer-dead-expected.txt: Added.
* fast/js/regress/new-array-buffer-dead.html: Added.
* fast/js/regress/new-array-buffer-push-expected.txt: Added.
* fast/js/regress/new-array-buffer-push.html: Added.
* fast/js/regress/new-array-dead-expected.txt: Added.
* fast/js/regress/new-array-dead.html: Added.
* fast/js/regress/new-array-push-expected.txt: Added.
* fast/js/regress/new-array-push.html: Added.
* fast/js/regress/number-test-expected.txt: Added.
* fast/js/regress/number-test.html: Added.
* fast/js/regress/object-closure-call-expected.txt: Added.
* fast/js/regress/object-closure-call.html: Added.
* fast/js/regress/object-test-expected.txt: Added.
* fast/js/regress/object-test.html: Added.
* fast/js/regress/poly-stricteq-expected.txt: Added.
* fast/js/regress/poly-stricteq.html: Added.
* fast/js/regress/polymorphic-structure-expected.txt: Added.
* fast/js/regress/polymorphic-structure.html: Added.
* fast/js/regress/polyvariant-monomorphic-get-by-id-expected.txt: Added.
* fast/js/regress/polyvariant-monomorphic-get-by-id.html: Added.
* fast/js/regress/rare-osr-exit-on-local-expected.txt: Added.
* fast/js/regress/rare-osr-exit-on-local.html: Added.
* fast/js/regress/register-pressure-from-osr-expected.txt: Added.
* fast/js/regress/register-pressure-from-osr.html: Added.
* fast/js/regress/resources: Added.
* fast/js/regress/resources/regress-post.js: Added.
* fast/js/regress/resources/regress-pre.js: Added.
(window.onerror):
* fast/js/regress/script-tests: Added.
* fast/js/regress/script-tests/Float32Array-matrix-mult.js: Added.
(makeEmptyMatrix):
(multiplyMatrices):
(checkMatricesEqual):
(parseMatrix.string.split.forEach):
(parseMatrix):
(printMatrix.pad):
(printMatrix):
* fast/js/regress/script-tests/Int16Array-bubble-sort.js: Added.
(bubbleSort):
(myRandom):
(validateSort):
* fast/js/regress/script-tests/Int16Array-load-int-mul.js: Added.
(stringHash):
* fast/js/regress/script-tests/Int8Array-load.js: Added.
(adler32):
* fast/js/regress/script-tests/adapt-to-double-divide.js: Added.
(foo):
* fast/js/regress/script-tests/aliased-arguments-getbyval.js: Added.
(bar):
* fast/js/regress/script-tests/allocate-big-object.js: Added.
(foo):
* fast/js/regress/script-tests/arity-mismatch-inlining.js: Added.
(foo):
* fast/js/regress/script-tests/array-access-polymorphic-structure.js: Added.
(foo):
* fast/js/regress/script-tests/array-with-double-add.js: Added.
(foo):
* fast/js/regress/script-tests/array-with-double-increment.js: Added.
(foo):
* fast/js/regress/script-tests/array-with-double-mul-add.js: Added.
(foo):
* fast/js/regress/script-tests/array-with-double-sum.js: Added.
(foo):
* fast/js/regress/script-tests/array-with-int32-add-sub.js: Added.
(foo):
* fast/js/regress/script-tests/array-with-int32-or-double-sum.js: Added.
(foo):
* fast/js/regress/script-tests/big-int-mul.js: Added.
(stringHash):
* fast/js/regress/script-tests/boolean-test.js: Added.
(foo):
* fast/js/regress/script-tests/cast-int-to-double.js: Added.
(foo):
* fast/js/regress/script-tests/cell-argument.js: Added.
(foo):
* fast/js/regress/script-tests/cfg-simplify.js: Added.
(foo):
* fast/js/regress/script-tests/cmpeq-obj-to-obj-other.js: Added.
(foo):
(bar):
(baz):
(dostuff):
* fast/js/regress/script-tests/constant-test.js: Added.
(foo):
* fast/js/regress/script-tests/direct-arguments-getbyval.js: Added.
(bar):
* fast/js/regress/script-tests/double-pollution-getbyval.js: Added.
(foo):
* fast/js/regress/script-tests/double-pollution-putbyoffset.js: Added.
(foo):
* fast/js/regress/script-tests/external-arguments-getbyval.js: Added.
(foo):
(bar):
* fast/js/regress/script-tests/external-arguments-putbyval.js: Added.
(foo):
(bar):
* fast/js/regress/script-tests/fold-double-to-int.js: Added.
(Math.random):
* fast/js/regress/script-tests/function-dot-apply.js: Added.
(thingy):
(doCall):
(foo):
* fast/js/regress/script-tests/function-test.js: Added.
(foo):
* fast/js/regress/script-tests/get-by-id-chain-from-try-block.js: Added.
(A):
(B):
(C):
(D):
(E):
(F):
(G):
(foo):
* fast/js/regress/script-tests/indexed-properties-in-objects.js: Added.
* fast/js/regress/script-tests/inline-arguments-access.js: Added.
(foo):
(bar):
* fast/js/regress/script-tests/inline-arguments-local-escape.js: Added.
(foo):
(bar):
* fast/js/regress/script-tests/inline-get-scoped-var.js: Added.
(foo.bar):
(foo):
* fast/js/regress/script-tests/inlined-put-by-id-transition.js: Added.
(foo):
(Foo):
* fast/js/regress/script-tests/int-or-other-abs-then-get-by-val.js: Added.
(foo):
* fast/js/regress/script-tests/int-or-other-abs-zero-then-get-by-val.js: Added.
(foo):
* fast/js/regress/script-tests/int-or-other-add-then-get-by-val.js: Added.
(foo):
* fast/js/regress/script-tests/int-or-other-add.js: Added.
(foo):
* fast/js/regress/script-tests/int-or-other-div-then-get-by-val.js: Added.
(foo):
* fast/js/regress/script-tests/int-or-other-max-then-get-by-val.js: Added.
(foo):
* fast/js/regress/script-tests/int-or-other-min-then-get-by-val.js: Added.
(foo):
* fast/js/regress/script-tests/int-or-other-mod-then-get-by-val.js: Added.
(foo):
* fast/js/regress/script-tests/int-or-other-mul-then-get-by-val.js: Added.
(foo):
* fast/js/regress/script-tests/int-or-other-neg-then-get-by-val.js: Added.
(foo):
* fast/js/regress/script-tests/int-or-other-neg-zero-then-get-by-val.js: Added.
(foo):
* fast/js/regress/script-tests/int-or-other-sub-then-get-by-val.js: Added.
(foo):
* fast/js/regress/script-tests/int-or-other-sub.js: Added.
(foo):
* fast/js/regress/script-tests/int-overflow-local.js: Added.
(foo):
* fast/js/regress/script-tests/integer-divide.js: Added.
(foo):
(bar):
* fast/js/regress/script-tests/make-indexed-storage.js: Added.
(foo):
(sum):
* fast/js/regress/script-tests/method-on-number.js: Added.
(foo):
* fast/js/regress/script-tests/new-array-buffer-dead.js: Added.
(foo):
(bar):
(baz):
(thingy):
* fast/js/regress/script-tests/new-array-buffer-push.js: Added.
(foo):
(bar):
(baz):
(thingy):
* fast/js/regress/script-tests/new-array-dead.js: Added.
(foo):
(bar):
* fast/js/regress/script-tests/new-array-push.js: Added.
(foo):
* fast/js/regress/script-tests/number-test.js: Added.
(foo):
* fast/js/regress/script-tests/object-closure-call.js: Added.
(makeObjectClosure.foo):
(makeObjectClosure):
* fast/js/regress/script-tests/object-test.js: Added.
(foo):
* fast/js/regress/script-tests/poly-stricteq.js: Added.
* fast/js/regress/script-tests/polymorphic-structure.js: Added.
(foo):
* fast/js/regress/script-tests/polyvariant-monomorphic-get-by-id.js: Added.
(foo):
(Foo):
(Bar):
(bar):
* fast/js/regress/script-tests/rare-osr-exit-on-local.js: Added.
(foo):
* fast/js/regress/script-tests/register-pressure-from-osr.js: Added.
(foo):
* fast/js/regress/script-tests/simple-activation-demo.js: Added.
(foo):
* fast/js/regress/script-tests/slow-array-profile-convergence.js: Added.
(foo):
(sum):
* fast/js/regress/script-tests/slow-convergence.js: Added.
(foo):
* fast/js/regress/script-tests/sparse-conditional.js: Added.
(foo):
* fast/js/regress/script-tests/splice-to-remove.js: Added.
* fast/js/regress/script-tests/string-hash.js: Added.
(stringHash):
* fast/js/regress/script-tests/string-repeat-arith.js: Added.
(foo):
* fast/js/regress/script-tests/string-sub.js: Added.
(foo):
* fast/js/regress/script-tests/string-test.js: Added.
(foo):
* fast/js/regress/script-tests/structure-hoist-over-transitions.js: Added.
(foo):
* fast/js/regress/script-tests/tear-off-arguments-simple.js: Added.
(bar):
* fast/js/regress/script-tests/tear-off-arguments.js: Added.
(bar):
* fast/js/regress/script-tests/temporal-structure.js: Added.
(foo):
* fast/js/regress/script-tests/to-int32-boolean.js: Added.
(foo):
* fast/js/regress/script-tests/undefined-test.js: Added.
(foo):
* fast/js/regress/simple-activation-demo-expected.txt: Added.
* fast/js/regress/simple-activation-demo.html: Added.
* fast/js/regress/slow-array-profile-convergence-expected.txt: Added.
* fast/js/regress/slow-array-profile-convergence.html: Added.
* fast/js/regress/slow-convergence-expected.txt: Added.
* fast/js/regress/slow-convergence.html: Added.
* fast/js/regress/sparse-conditional-expected.txt: Added.
* fast/js/regress/sparse-conditional.html: Added.
* fast/js/regress/splice-to-remove-expected.txt: Added.
* fast/js/regress/splice-to-remove.html: Added.
* fast/js/regress/string-hash-expected.txt: Added.
* fast/js/regress/string-hash.html: Added.
* fast/js/regress/string-repeat-arith-expected.txt: Added.
* fast/js/regress/string-repeat-arith.html: Added.
* fast/js/regress/string-sub-expected.txt: Added.
* fast/js/regress/string-sub.html: Added.
* fast/js/regress/string-test-expected.txt: Added.
* fast/js/regress/string-test.html: Added.
* fast/js/regress/structure-hoist-over-transitions-expected.txt: Added.
* fast/js/regress/structure-hoist-over-transitions.html: Added.
* fast/js/regress/tear-off-arguments-expected.txt: Added.
* fast/js/regress/tear-off-arguments-simple-expected.txt: Added.
* fast/js/regress/tear-off-arguments-simple.html: Added.
* fast/js/regress/tear-off-arguments.html: Added.
* fast/js/regress/temporal-structure-expected.txt: Added.
* fast/js/regress/temporal-structure.html: Added.
* fast/js/regress/to-int32-boolean-expected.txt: Added.
* fast/js/regress/to-int32-boolean.html: Added.
* fast/js/regress/undefined-test-expected.txt: Added.
* fast/js/regress/undefined-test.html: Added.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@140276 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[chromium] move speech related methods to TestRunner library
https://bugs.webkit.org/show_bug.cgi?id=107266

Reviewed by Adam Barth.

* DumpRenderTree/chromium/DRTTestRunner.cpp:
(DRTTestRunner::DRTTestRunner):
(DRTTestRunner::displayInvalidatedRegion):
* DumpRenderTree/chromium/DRTTestRunner.h:
(DRTTestRunner):
* DumpRenderTree/chromium/TestRunner/public/WebTestDelegate.h:
(WebTestDelegate):
(WebTestRunner::WebTestDelegate::addMockSpeechInputResult):
(WebTestRunner::WebTestDelegate::setMockSpeechInputDumpRect):
(WebTestRunner::WebTestDelegate::addMockSpeechRecognitionResult):
(WebTestRunner::WebTestDelegate::setMockSpeechRecognitionError):
(WebTestRunner::WebTestDelegate::wasMockSpeechRecognitionAborted):
* DumpRenderTree/chromium/TestRunner/src/TestRunner.cpp:
(WebTestRunner::TestRunner::TestRunner):
(WebTestRunner):
(WebTestRunner::TestRunner::addMockSpeechInputResult):
(WebTestRunner::TestRunner::setMockSpeechInputDumpRect):
(WebTestRunner::TestRunner::addMockSpeechRecognitionResult):
(WebTestRunner::TestRunner::setMockSpeechRecognitionError):
(WebTestRunner::TestRunner::wasMockSpeechRecognitionAborted):
* DumpRenderTree/chromium/TestRunner/src/TestRunner.h:
(TestRunner):
* DumpRenderTree/chromium/WebViewHost.cpp:
(WebViewHost::addMockSpeechInputResult):
(WebViewHost::setMockSpeechInputDumpRect):
(WebViewHost::addMockSpeechRecognitionResult):
(WebViewHost::setMockSpeechRecognitionError):
(WebViewHost::wasMockSpeechRecognitionAborted):
* DumpRenderTree/chromium/WebViewHost.h:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@140277 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2013-01-20  Geoffrey Garen  <ggaren@apple.com>

        Unreviewed.

        Temporarily disabling this ASSERT to get the bots green
        while I investigate a fix.

        * runtime/PrototypeMap.cpp:
        (JSC::PrototypeMap::emptyObjectStructureForPrototype):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@140278 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Avoid filling a rounded rect when radii are zero
https://bugs.webkit.org/show_bug.cgi?id=107402
<rdar://problem/12793315>

Reviewed by Sam Weinig.

It's more efficient to clip and fill rects than rounded rects,
so optimize for the case where rounded rect radii are zero.

* platform/graphics/GraphicsContext.cpp:
(WebCore::GraphicsContext::clipRoundedRect):
(WebCore::GraphicsContext::clipOutRoundedRect):
(WebCore::GraphicsContext::fillRoundedRect):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@140279 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed. Simple indentation fix.

* GNUmakefile.am:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@140280 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[chromium] move frame generation related methods to TestRunner
https://bugs.webkit.org/show_bug.cgi?id=107268

Reviewed by Adam Barth.

* DumpRenderTree/chromium/DRTTestRunner.cpp:
(DRTTestRunner::DRTTestRunner):
(DRTTestRunner::setWillSendRequestReturnsNull):
* DumpRenderTree/chromium/DRTTestRunner.h:
(DRTTestRunner):
* DumpRenderTree/chromium/TestRunner/public/WebTestDelegate.h:
(WebTestRunner::WebTestDelegate::display):
(WebTestRunner::WebTestDelegate::displayInvalidatedRegion):
* DumpRenderTree/chromium/TestRunner/src/TestRunner.cpp:
(WebTestRunner::TestRunner::TestRunner):
(WebTestRunner::TestRunner::display):
(WebTestRunner):
(WebTestRunner::TestRunner::displayInvalidatedRegion):
* DumpRenderTree/chromium/TestRunner/src/TestRunner.h:
(TestRunner):
* DumpRenderTree/chromium/WebViewHost.cpp:
(WebViewHost::display):
(WebViewHost::displayInvalidatedRegion):
* DumpRenderTree/chromium/WebViewHost.h:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@140281 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[BlackBerry] Improve Fatfinger phase.
https://bugs.webkit.org/show_bug.cgi?id=107403

Patch by Tiancheng Jiang <tijiang@rim.com> on 2013-01-20
Reviewed by Rob Buis.

RIM PR 219489
Internally reviewd by Mike Fenton & Gen Mak.

Treat ClickableByDefault and MadeClickableByTheWebpage elements as
same category. Avoid unnecessary nodes check step.

* WebKitSupport/FatFingers.cpp:
(BlackBerry::WebKit::FatFingers::isElementClickable):
(BlackBerry::WebKit::FatFingers::FatFingers):
(BlackBerry::WebKit::FatFingers::findBestPoint):
(BlackBerry::WebKit::FatFingers::getNodesFromRect):
* WebKitSupport/FatFingers.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@140282 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Simplify a list of negative PLATFORM() tests
https://bugs.webkit.org/show_bug.cgi?id=107365

Patch by Laszlo Gombos <l.gombos@samsung.com> on 2013-01-20
Reviewed by Eric Seidel.

Simplify a list of negative PLATFORM() tests into a simpler list
of positive tests for better readability and maintenance.

No new tests as there is no new functionality.

* config.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@140283 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Weak GC maps should be easier to use
https://bugs.webkit.org/show_bug.cgi?id=107312

Reviewed by Sam Weinig.

Follow-up fix.

* runtime/PrototypeMap.cpp:
(JSC::PrototypeMap::emptyObjectStructureForPrototype): Restored this
ASSERT, which was disabled because of a bug in WeakGCMap.

* runtime/WeakGCMap.h:
(JSC::WeakGCMap::add): We can't pass our passed-in value to add() because
a PassWeak() clears itself when passed to another function. So, we pass
nullptr instead, and fix things up afterwards.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@140284 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Remove support getting per-resource callbacks in the UIProcess
https://bugs.webkit.org/show_bug.cgi?id=107405

Reviewed by Anders Carlsson.

Removes support for the WKPageResourceLoadClient. Access to per-resource
callbacks are still available in the bundle, and via the WebInspector.

* UIProcess/API/C/WKPage.cpp:
* UIProcess/API/C/WKPage.h:
* UIProcess/WebPageProxy.cpp:
* UIProcess/WebPageProxy.h:
* UIProcess/WebPageProxy.messages.in:
Stop handling per-resource messages and forwarding them to the API.

* UIProcess/WebResourceLoadClient.cpp: Removed.
* UIProcess/WebResourceLoadClient.h: Removed.
* WebKit2.xcodeproj/project.pbxproj:
Remove the files.

* WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
(WebKit::WebFrameLoaderClient::assignIdentifierToInitialRequest):
(WebKit::WebFrameLoaderClient::dispatchWillSendRequest):
(WebKit::WebFrameLoaderClient::dispatchDidReceiveResponse):
(WebKit::WebFrameLoaderClient::dispatchDidReceiveContentLength):
(WebKit::WebFrameLoaderClient::dispatchDidFinishLoading):
(WebKit::WebFrameLoaderClient::dispatchDidFailLoading):
Stop sending per-resource messages to the UIProcess.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@140285 268f45cc-cd09-0410-ab3c-d52691b4dbfc