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

Unified Diff: Source/core/css/resolver/SharedStyleFinder.cpp

Issue 270503006: Make pseudo-classes selector queries work on DocumentFragment (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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: Source/core/css/resolver/SharedStyleFinder.cpp
diff --git a/Source/core/css/resolver/SharedStyleFinder.cpp b/Source/core/css/resolver/SharedStyleFinder.cpp
index b7b25217eb4a89a84f707b85dc3bf9db632e17c1..116852dc4ad46263543c8f57affc4103f7aef0ed 100644
--- a/Source/core/css/resolver/SharedStyleFinder.cpp
+++ b/Source/core/css/resolver/SharedStyleFinder.cpp
@@ -337,7 +337,7 @@ RenderStyle* SharedStyleFinder::findSharedStyle()
}
// Tracking child index requires unique style for each node. This may get set by the sibling rule match above.
- if (!element().parentElementOrShadowRoot()->childrenSupportStyleSharing()) {
+ if (!element().parentElementOrDocumentFragment()->childrenSupportStyleSharing()) {
esprehn 2014/05/08 05:25:11 This also doesn't make sense, we can't style share
Inactive 2014/05/08 13:17:36 Done.
INCREMENT_STYLE_STATS_COUNTER(m_styleResolver, sharedStyleRejectedByParent);
return 0;
}

Powered by Google App Engine
This is Rietveld 408576698