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

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

Issue 119693002: Don't force recalc if there are no shadow boundary crossing rules (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years 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: Source/core/dom/Element.cpp
diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp
index ced2bd06440792fe0a24dbe5deac5b25b4f45e55..7d0bc3c61e9488e6dd618bf9c0270a929ecaa870 100644
--- a/Source/core/dom/Element.cpp
+++ b/Source/core/dom/Element.cpp
@@ -1621,7 +1621,7 @@ StyleRecalcChange Element::recalcOwnStyle(StyleRecalcChange change)
}
if (styleChangeType() >= SubtreeStyleChange)
- return Force;
+ return document().ensureStyleResolver().treeBoundaryCrossingRules().isEmpty() ? Inherit : Force;
esprehn 2013/12/20 19:11:43 I'm not sure if this will work with adding <style>
return max(localChange, change);
}
« 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