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

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

Issue 2613213002: Support Style Sharing for Shadow DOM V1 (Closed)
Patch Set: update 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
« no previous file with comments | « third_party/WebKit/Source/core/css/resolver/SharedStyleFinderTest.cpp ('k') | 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 caf5c7ed77ddb838af6063eb06c90b85c048f2b5..fede332a2a2928310f90628608d2ca216e46e7f0 100644
--- a/third_party/WebKit/Source/core/dom/Element.cpp
+++ b/third_party/WebKit/Source/core/dom/Element.cpp
@@ -4047,10 +4047,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))
« no previous file with comments | « third_party/WebKit/Source/core/css/resolver/SharedStyleFinderTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698