Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(175)

Unified Diff: third_party/WebKit/Source/core/dom/Element.cpp

Issue 1405223003: Allow style sharing for canvas, iframe, embed and object. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/Element.cpp
diff --git a/third_party/WebKit/Source/core/dom/Element.cpp b/third_party/WebKit/Source/core/dom/Element.cpp
index c9ea807bae982ef00154a3280aaaee7081d32fcc..93ac883057d67cf9520f0d41b323434e5fed3312 100644
--- a/third_party/WebKit/Source/core/dom/Element.cpp
+++ b/third_party/WebKit/Source/core/dom/Element.cpp
@@ -3550,11 +3550,6 @@ bool Element::supportsStyleSharing() const
return false;
if (hasAnimations())
return false;
- // Turn off style sharing for elements that can gain layers for reasons outside of the style system.
- // See comments in LayoutObject::setStyle().
- // FIXME: Why does gaining a layer from outside the style system require disabling sharing?
- if (isHTMLFrameElementBase(*this) || isHTMLPlugInElement(*this) || isHTMLCanvasElement(*this))
- return false;
if (Fullscreen::isActiveFullScreenElement(*this))
return false;
return true;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698