CSSNamespace.h is empty and should be deleted
https://bugs.webkit.org/show_bug.cgi?id=98304

Reviewed by Eric Seidel.

There's no reason to have this file in the repository.

* GNUmakefile.list.am:
* WebCore.gypi:
* WebCore.vcproj/WebCore.vcproj:
* WebCore.xcodeproj/project.pbxproj:
* css/CSSNamespace.h: Removed.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@130333 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] storage/indexeddb tests sometimes timeout
https://bugs.webkit.org/show_bug.cgi?id=65862

Reviewed by Ojan Vafai.

storage/indexeddb/index-cursor.html was taking up to 26 seconds on some debug configurations
due to the large amount of output. Tweak the test to reduce the spam. On my test box this
drops the runtime of this single test from 7s to 2s.

* storage/indexeddb/index-cursor-expected.txt:
* storage/indexeddb/resources/index-cursor.js:
(cursorIteration):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@130334 268f45cc-cd09-0410-ab3c-d52691b4dbfc
IndexedDB: Memory leak when deleting object stores with indexes
https://bugs.webkit.org/show_bug.cgi?id=98292

Reviewed by Tony Chang.

Reference cycles between IDBObjectStore and IDBIndex instances are explicitly
broken when the transaction completes (and the spec allows traversal to fail).
Deleted stores need to have the reference cycle broken too.

Caught by running valgrind over: storage/indexeddb/keypath-basics.html

* Modules/indexeddb/IDBTransaction.cpp:
(WebCore::IDBTransaction::objectStoreDeleted): Add store to set.
(WebCore::IDBTransaction::dispatchEvent): Notify stores in set.
* Modules/indexeddb/IDBTransaction.h: Add set of deleted stores.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@130335 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Remove bogus FIXME from Document.idl
https://bugs.webkit.org/show_bug.cgi?id=98302

Reviewed by Adam Barth.

The FIXME claimed that document.body throwing an exception was not
specced, but in fact it is:
http://www.whatwg.org/specs/web-apps/current-work/multipage/dom.html#dom-document-body

* dom/Document.idl:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@130336 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Simplify the magnitude-perf test harness
https://bugs.webkit.org/show_bug.cgi?id=98305

Reviewed by Ryosuke Niwa.

-Remove the chromium.Interval stuff. This API no longer exists.
-Reduce the number of iterations to 8.
-Start magnitude at 1 instead of 0.
-Remove all the iterationsPerRun junk. This complexity was not achieving the goal of
reducing flakiness.

With these changes, the perf tests are not flaky for me locally.
I ran all the perf tests with --iterations=100 and had no failures,
All the complexity was increasing flakiness.

This also reduces the runtime of the tests by >2x.

* perf/adding-radio-buttons.html:
This test is clearly linear. It should never have been marked constant.
The patch that landed it was fixing an n^2 behavior.

* perf/array-binary-search.html:
Search for the first item in the array so that the search is always actually log n.

* perf/nested-combined-selectors.html:
Now that we run fewer iterations, we don't need to artificially limit this test.

* resources/magnitude-perf.js:
(Magnitude.run):
(Magnitude._run):
(Magnitude._rSquared):
(Magnitude._logIterationInfo):
(Magnitude._bigOGuess):
(Magnitude._runIteration):
(Magnitude):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@130337 268f45cc-cd09-0410-ab3c-d52691b4dbfc
IndexedDB: Don't do full commit for empty transactions
https://bugs.webkit.org/show_bug.cgi?id=89239

Reviewed by Tony Chang.

Don't bother creating a leveldb write batch if there's nothing in the transaction
to commit. Note that a read-only transaction may still have index cleanup so may
not be an empty transaction.

This cuts the Lookup2 benchmark in http://reyesr.github.com/html5-storage-benchmark/
from 70s to 2s.

Covered by existing tests, e.g. storage/indexeddb/transaction-basics.html

* platform/leveldb/LevelDBTransaction.cpp:
(WebCore::LevelDBTransaction::commit):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@130338 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Replace uses of -webkit-box-sizing with box-sizing
https://bugs.webkit.org/show_bug.cgi?id=98312

Reviewed by Tony Chang.

No need to use the prefixed version when the unprefixed works the same.
No new tests since there's no change in behavior..

* css/html.css:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@130339 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed chromium/mac rebaseline for r130329.

* platform/chromium-mac-snowleopard/svg/zoom/page/zoom-svg-through-object-with-absolute-size-2-expected.png:
* platform/chromium-mac-snowleopard/svg/zoom/page/zoom-svg-through-object-with-absolute-size-expected.png:
* platform/chromium-mac-snowleopard/svg/zoom/page/zoom-svg-through-object-with-percentage-size-expected.png:
* platform/chromium-mac/svg/zoom/page/zoom-svg-through-object-with-absolute-size-2-expected.png:
* platform/chromium-mac/svg/zoom/page/zoom-svg-through-object-with-absolute-size-2-expected.txt:
* platform/chromium-mac/svg/zoom/page/zoom-svg-through-object-with-absolute-size-expected.png:
* platform/chromium-mac/svg/zoom/page/zoom-svg-through-object-with-absolute-size-expected.txt:
* platform/chromium-mac/svg/zoom/page/zoom-svg-through-object-with-percentage-size-expected.png:
* platform/chromium-mac/svg/zoom/page/zoom-svg-through-object-with-percentage-size-expected.txt:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@130340 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Add a performance test for subtree detaching
https://bugs.webkit.org/show_bug.cgi?id=98281

Reviewed by Eric Seidel.

The new test tries to stress detaching on a heavy subtree (2 levels deep but with 1,000 nodes per level).
We set display: none on the root and measure the time it takes to update the tree. Note that we will also
measure the time taken by recalcStyle and relayout but I don't think we can avoid that.

* Layout/subtree-detaching.html: Added.


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