Remove use of a V8 isolate outside of bindings code in ImageBitmapFactories.cpp.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@170089 bbb929c8-8fbe-4397-9dbb-9b2b20218538
update3dRenderingContext is 13.5% of GraphicsLayerUpdater::rebuildTree

Prior to this CL, we were recomputing the 3D rendering context root for every
RenderLayer every frame. That work accounted for 13.5% of
GraphicsLayerUpdater::rebuildTree and 2.4% of the entire compositing update.
This work is almost entirely wasted because the 3D rendering context is
completely determined by style information and therefore can change only when
style changes.

Elliott and I looked at integrating this computation with recalc style, but
upon studying the code closely, I realize that this function doesn't actually
walk up the tree very far. Instead, it looks only at the enclosing render
layer of the containing block. That means we don't need to cache this data on
RenderLayer at all. Instead, we can recompute it when needed by the one caller:
CompositedLayerMapping::updateRenderingContext. That caller only cares about
RenderLayers that actually have a composited layer mapping, which is vastly
fewer than all RenderLayers. Moreover, that caller already understands
dirtiness caused by style changes.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@170090 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Make style independent of the presence of the <shadow> element.

BUG=353406
TEST=fast/dom/shadow/style-and-shadow-element.html

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

git-svn-id: svn://svn.chromium.org/blink/trunk@170091 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert of Move Event to oilpan's heap (https://codereview.chromium.org/208173004/)

Reason for revert:
Seems likely to have caused a number of flaky failures in layout tests in oilpan builds:

Flakiness dashboard link: http://test-results.appspot.com/dashboards/flakiness_dashboard.html#group=%40ToT%20Blink&tests=http%2Ftests%2Fmedia%2Fmedia-source%2Fwebkitmediasource-closed-on-htmlmediaelement-destruction.html%2Csvg%2Fanimations%2Fsmil-leak-element-instances-noBaseValRef.svg%2Csvg%2Fanimations%2Fsmil-leak-element-instances.svg%2Csvg%2Fanimations%2Fsmil-leak-elements.svg

Example failure bot: http://build.chromium.org/p/chromium.webkit/builders/WebKit%20Linux%20Oilpan/builds/2770

Example failure:
--- /mnt/data/b/build/slave/WebKit_Linux_Oilpan/build/layout-test-results/svg/animations/smil-leak-element-instances-noBaseValRef-expected.txt
+++ /mnt/data/b/build/slave/WebKit_Linux_Oilpan/build/layout-test-results/svg/animations/smil-leak-element-instances-noBaseValRef-actual.txt
@@ -1 +1 @@
-PASS
+FAIL: -3 extra live node(s)




Original issue's description:
> Move Event to oilpan's heap
> 
> Now there is no test failing when I change RefCounted<Event> to RefCountedGarbageCollected<Event>. Thus this CL does the change.
> 
> BUG=340522
> 
> Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=169941

TBR=oilpan-reviews@chromium.org,ager@chromium.org,wibling@chromium.org,haraken@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=340522

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

git-svn-id: svn://svn.chromium.org/blink/trunk@170092 bbb929c8-8fbe-4397-9dbb-9b2b20218538
:host-context should support functional notation only.

Blink supported :host-context without a functional notation as an equivalent
to :host. That is not allowed according to the CSS Scoping spec.

BUG=356582

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

git-svn-id: svn://svn.chromium.org/blink/trunk@170093 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Unship '::-webkit-distributed(...)' functional pseudo element.

We've already shipped '::content'. It's time to unship '::-webkit-distributed'.

The usage of CSSPseudoElementPrefixedDistributed is '~0%'.
http://www.chromestatus.com/metrics/feature/timeline/popularity/99

BUG=268236

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

git-svn-id: svn://svn.chromium.org/blink/trunk@170094 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Mark gc-dom-tree-lifetime as flaky timeout

TBR=kouhei@chromium.org
BUG=356828

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

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