[chromium] Convert WebTransformOperations into pure virtual
https://bugs.webkit.org/show_bug.cgi?id=105553

Patch by Ali Juma <ajuma@chromium.org> on 2013-01-18
Reviewed by James Robinson.

Source/Platform:

* chromium/public/WebCompositorSupport.h:
(WebKit):
(WebKit::WebCompositorSupport::createTransformOperations):
(WebCompositorSupport):
* chromium/public/WebTransformKeyframe.h:
(WebTransformKeyframe):
* chromium/public/WebTransformOperations.h:
(WebKit::WebTransformOperations::~WebTransformOperations):
(WebTransformOperations):

Source/WebCore:

This removes the implementation of WebTransformOperations and updates
users to construct instances using a factory function. This also adds
the implementation of WebTransformKeyFrame.

No new tests, no change in functionality.

* WebCore.gypi:
* platform/chromium/support/WebTransformKeyframe.cpp: Copied from Source/Platform/chromium/public/WebTransformKeyframe.h.
(WebKit):
(WebKit::WebTransformKeyframe::WebTransformKeyframe):
(WebKit::WebTransformKeyframe::~WebTransformKeyframe):
(WebKit::WebTransformKeyframe::time):
(WebKit::WebTransformKeyframe::value):
* platform/chromium/support/WebTransformOperations.cpp: Removed.
* platform/graphics/chromium/AnimationTranslationUtil.cpp:
(WebCore::toWebTransformOperations):
(WebCore::WebTransformAnimationCurve):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@140184 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[V8] Remove custom V8ScriptProfileNodeCustom::toV8()
https://bugs.webkit.org/show_bug.cgi?id=107245

Reviewed by Adam Barth.

V8ScriptProfileNodeCustom::toV8() needs not to be custom.
Furthermore, the current custom toV8() is wrong in that
it doesn't use a creationContext and it doesn't set a wrapper
class id. This is one of steps to avoiding ASSERT()s
that will be added in https://bugs.webkit.org/show_bug.cgi?id=107137 .

No tests. No change in behavior.

* UseV8.cmake:
* WebCore.gypi:
* bindings/v8/custom/V8ScriptProfileNodeCustom.cpp: Removed.
* inspector/ScriptProfileNode.idl:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@140185 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Refactor isPowerOf2() and add getLSBSet()
https://bugs.webkit.org/show_bug.cgi?id=107306

Reviewed by Filip Pizlo.

Source/JavaScriptCore: 

Moved implementation of isPowerOf2() to new hasOneBitSet() in wtf/MathExtras.h.

* runtime/PropertyMapHashTable.h:
(JSC::isPowerOf2):

Source/WTF: 

Moved runtime/PropertyMapHashTable.h:PowerOf2() to new hasOneBitSet() and added getLSBSet().

* wtf/MathExtras.h:
(hasOneBitSet):
(getLSBSet):


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