Revert of Make DOMWrapperWorld::current() return a reference instead of a pointer (https://codereview.chromium.org/209713003/)

Also reverting dependent patch https://codereview.chromium.org/213543004

Reason for revert:
Likely to have caused memory leaks:
http://build.chromium.org/p/chromium.memory/builders/Linux%20ASan%2BLSan%20Tests%20%282%29/builds/989/steps/browser_tests/logs/stdio#failure1

(1)
Direct leak of 32 byte(s) in 1 object(s) allocated from:
    #0 0x4b50d1 in operator new(unsigned long) /usr/local/google/home/hwennborg/chromium/src/third_party/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:62
    #1 0x9bdfd8a in WebCore::V8PerContextDataHolder::install(v8::Handle<v8::Context>, WTF::PassRefPtr<WebCore::DOMWrapperWorld>) third_party/WebKit/Source/bindings/v8/V8PerContextData.cpp:56
    #2 0x9bdfa06 in WebCore::V8PerContextData::V8PerContextData(v8::Handle<v8::Context>, WTF::PassRefPtr<WebCore::DOMWrapperWorld>) third_party/WebKit/Source/bindings/v8/V8PerContextData.cpp:108
    #3 0x9bc1afd in WebCore::V8PerContextData::create(v8::Handle<v8::Context>, WTF::PassRefPtr<WebCore::DOMWrapperWorld>) third_party/WebKit/Source/bindings/v8/V8PerContextData.h:66:16
    #4 0x9be64fc in WebCore::V8PerIsolateData::ensureDomInJSContext() third_party/WebKit/Source/bindings/v8/V8PerIsolateData.cpp:132

(2)
Indirect leak of 40 byte(s) in 1 object(s) allocated from:
    #0 0x4b50d1 in operator new(unsigned long) /usr/local/google/home/hwennborg/chromium/src/third_party/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:62
    #1 0x9b2ee18 in operator new third_party/WebKit/Source/bindings/v8/DOMWrapperWorld.cpp:59:22
    #2 0x9b2ee18 in WebCore::DOMWrapperWorld::create(int, int) third_party/WebKit/Source/bindings/v8/DOMWrapperWorld.cpp:53
    #3 0x9be64e7 in WebCore::V8PerIsolateData::ensureDomInJSContext() third_party/WebKit/Source/bindings/v8/V8PerIsolateData.cpp:132
 
(3)
Indirect leak of 24 byte(s) in 1 object(s) allocated from:
    #0 0x4b46c1 in __interceptor_malloc /usr/local/google/home/hwennborg/chromium/src/third_party/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:75
    #1 0x62caf0a in partitionAllocGenericFlags third_party/WebKit/Source/wtf/PartitionAlloc.h:533
    #2 0x62caf0a in partitionAllocGeneric third_party/WebKit/Source/wtf/PartitionAlloc.h:549
    #3 0x62caf0a in WTF::fastMalloc(unsigned long) third_party/WebKit/Source/wtf/FastMalloc.cpp:125
    #4 0x9b2ed61 in operator new third_party/WebKit/Source/wtf/RefCounted.h:175
    #5 0x9b2ed61 in WebCore::DOMWrapperWorld::create(int, int) third_party/WebKit/Source/bindings/v8/DOMWrapperWorld.cpp:53

Original issue's description:
> Make DOMWrapperWorld::current() return a reference instead of a pointer
> 
> Now that it's guaranteed that DOMWrapperWorld is not 0 at any given time, we can make it a reference instead of a pointer.
> 
> BUG=341032
> 
> Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170261

TBR=jochen@chromium.org,dcarney@chromium.org,abarth@chromium.org,haraken@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=341032

Review URL: https://codereview.chromium.org/217053007

git-svn-id: svn://svn.chromium.org/blink/trunk@170357 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert "Enable V8 Promises"

This reverts http://src.chromium.org/viewvc/blink?view=rev&rev=170300

The final pieces of the patch, which changed V8RecursionScope and
used it inside WorkerRunLoopTask, do not appear to have been
code-reviewed, and look wrong to both adamk and rafaelw (who have
been the main Blink maintainers of both V8RecursionScope and Microtask).

BUG=352552, 352597

Review URL: https://codereview.chromium.org/216803003

git-svn-id: svn://svn.chromium.org/blink/trunk@170358 bbb929c8-8fbe-4397-9dbb-9b2b20218538
don't call deprecated getClipType

BUG=

Review URL: https://codereview.chromium.org/217143003

git-svn-id: svn://svn.chromium.org/blink/trunk@170359 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Check if in the tree before getting the repaint container.

There are cases where we call containerForRepaint while the RenderObject is not
in the in the tree. This causes crashes as the enclosingLayer() is null. Check
if we're in the tree before running containerForRepaint().

BUG=

Review URL: https://codereview.chromium.org/216113006

git-svn-id: svn://svn.chromium.org/blink/trunk@170360 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove carriage returns from LayoutTests (02)

Split up from https://codereview.chromium.org/211393005/

Generated via:
git grep -I -l $'\r' | grep -v gif$ | grep -v mhtml | head -n 100

TBR=eseidel@chromium.org
BUG=357373

Review URL: https://codereview.chromium.org/217053008

git-svn-id: svn://svn.chromium.org/blink/trunk@170361 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert "CSS Transforms: Implement perspective"

This reverts https://codereview.chromium.org/211233003

This change appears to be causing crashes on mac debug bots in tests.

See: http://test-results.appspot.com/dashboards/flakiness_dashboard.html#group=%40ToT%20Blink&tests=animations%2Finterpolation%2Fperspective-interpolation.html

Typical crash stack:
STDERR: ASSERTION FAILED: isAllowedToQueryCompositingState()
STDERR: ../../third_party/WebKit/Source/core/rendering/RenderLayer.cpp(3603) : WebCore::CompositedLayerMappingPtr WebCore::RenderLayer::compositedLayerMapping() const
STDERR: 1   0x7d14b1d1 WebCore::RenderLayer::compositedLayerMapping() const
STDERR: 2   0x7d149c5f WebCore::RenderLayer::updateLayerPositions(WebCore::RenderGeometryMap*, unsigned int)
STDERR: 3   0x7d149bdc WebCore::RenderLayer::updateLayerPositions(WebCore::RenderGeometryMap*, unsigned int)
STDERR: 4   0x7d17f057 WebCore::RenderLayerModelObject::styleDidChange(WebCore::StyleDifference, WebCore::RenderStyle const*)
STDERR: 5   0x7d07090f WebCore::RenderBox::styleDidChange(WebCore::StyleDifference, WebCore::RenderStyle const*)
STDERR: 6   0x7cfe533c WebCore::RenderBlock::styleDidChange(WebCore::StyleDifference, WebCore::RenderStyle const*)
STDERR: 7   0x7d03d91c WebCore::RenderBlockFlow::styleDidChange(WebCore::StyleDifference, WebCore::RenderStyle const*)
STDERR: 8   0x7d1cc650 WebCore::RenderObject::setStyle(WTF::PassRefPtr<WebCore::RenderStyle>)
STDERR: 9   0x7c0b1fcd WebCore::Element::recalcOwnStyle(WebCore::StyleRecalcChange)
STDERR: 10  0x7c0b196d WebCore::Element::recalcStyle(WebCore::StyleRecalcChange, WebCore::Text*)
STDERR: 11  0x7c0b2500 WebCore::Element::recalcChildStyle(WebCore::StyleRecalcChange)
STDERR: 12  0x7c0b19bf WebCore::Element::recalcStyle(WebCore::StyleRecalcChange, WebCore::Text*)
STDERR: 13  0x7c0b2500 WebCore::Element::recalcChildStyle(WebCore::StyleRecalcChange)
STDERR: 14  0x7c0b19bf WebCore::Element::recalcStyle(WebCore::StyleRecalcChange, WebCore::Text*)
STDERR: 15  0x7c0b2500 WebCore::Element::recalcChildStyle(WebCore::StyleRecalcChange)
STDERR: 16  0x7c0b19bf WebCore::Element::recalcStyle(WebCore::StyleRecalcChange, WebCore::Text*)
STDERR: 17  0x7c0b2500 WebCore::Element::recalcChildStyle(WebCore::StyleRecalcChange)
STDERR: 18  0x7c0b19bf WebCore::Element::recalcStyle(WebCore::StyleRecalcChange, WebCore::Text*)
STDERR: 19  0x7c011dbf WebCore::Document::updateStyle(WebCore::StyleRecalcChange)
STDERR: 20  0x7c0117c4 WebCore::Document::updateRenderTree(WebCore::StyleRecalcChange)
STDERR: 21  0x7a4f9d5c WebCore::Document::updateRenderTreeIfNeeded()
STDERR: 22  0x7c012372 WebCore::Document::updateRenderTreeForNodeIfNeeded(WebCore::Node*)
STDERR: 23  0x7c75f4aa WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue(WebCore::CSSPropertyID, WebCore::EUpdateLayout) const
STDERR: 24  0x7c75f372 WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue(WebCore::CSSPropertyID) const
STDERR: 25  0x7c75eaf8 WebCore::CSSComputedStyleDeclaration::getPropertyValue(WebCore::CSSPropertyID) const
STDERR: 26  0x7c77b9bb WebCore::CSSComputedStyleDeclaration::getPropertyValue(WTF::String const&)
STDERR: 27  0x7b46252d WebCore::CSSStyleDeclarationV8Internal::getPropertyValueMethod(v8::FunctionCallbackInfo<v8::Value> const&)
STDERR: 28  0x7b4606ea WebCore::CSSStyleDeclarationV8Internal::getPropertyValueMethodCallback(v8::FunctionCallbackInfo<v8::Value> const&)
STDERR: 29  0x78496dc0 v8::internal::FunctionCallbackArguments::Call(void (*)(v8::FunctionCallbackInfo<v8::Value> const&))
STDERR: 30  0x784edac8 v8::internal::Builtin_HandleApiCall(int, v8::internal::Object**, v8::internal::Isolate*)
STDERR: 31  0x3d30a0d6

NOTREECHECKS=true
NOTRY=true
TBR=eseidel,dstockwell
BUG=154772

Review URL: https://codereview.chromium.org/217363003

git-svn-id: svn://svn.chromium.org/blink/trunk@170363 bbb929c8-8fbe-4397-9dbb-9b2b20218538