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

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

Issue 2613213002: Support Style Sharing for Shadow DOM V1 (Closed)
Patch Set: improve check Created 3 years, 11 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
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 7a778aa8dfc8f2c070747c7e2903ea11cfa59b25..8f1e58de7c0335054f84c4f641e02b9a70e4a78b 100644
--- a/third_party/WebKit/Source/core/dom/Element.cpp
+++ b/third_party/WebKit/Source/core/dom/Element.cpp
@@ -4023,10 +4023,6 @@ bool Element::supportsStyleSharing() const {
return false;
if (isHTMLElement() && toHTMLElement(this)->hasDirectionAuto())
return false;
- // TODO(kochi): This prevents any slotted elements from sharing styles.
- // Investigate cases where we share styles to optimize styling performance.
- if (isChildOfV1ShadowHost())
- return false;
if (hasAnimations())
return false;
if (Fullscreen::isFullscreenElement(*this))

Powered by Google App Engine
This is Rietveld 408576698