Index: third_party/WebKit/Source/core/css/resolver/SharedStyleFinder.cpp |
diff --git a/third_party/WebKit/Source/core/css/resolver/SharedStyleFinder.cpp b/third_party/WebKit/Source/core/css/resolver/SharedStyleFinder.cpp |
index ff251b5a974f96c2b50f1a537eca42703b9b10f4..0b67a2a8113a01fd03370c8d0faf89d7904fbe6d 100644 |
--- a/third_party/WebKit/Source/core/css/resolver/SharedStyleFinder.cpp |
+++ b/third_party/WebKit/Source/core/css/resolver/SharedStyleFinder.cpp |
@@ -279,6 +279,10 @@ bool SharedStyleFinder::canShareStyleWithElement(Element& candidate) const |
return false; |
} |
+ // TODO(kochi): Investigate cases when assigned slots can share styles. |
+ if (element().assignedSlot()) |
+ return false; |
+ |
return true; |
} |