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

Unified Diff: third_party/WebKit/Source/core/style/ComputedStyle.cpp

Issue 2829773003: Make ComputedStyle::InheritFrom group independent. (Closed)
Patch Set: Rebase Created 3 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
« 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: third_party/WebKit/Source/core/style/ComputedStyle.cpp
diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.cpp b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
index f4ddbc24d241a7349c12a07fae6013710d75b2be..b13c148a871d257039c2ce3500e72dfa8ee61536 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.cpp
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
@@ -312,19 +312,19 @@ ContentDistributionType ComputedStyle::ResolvedAlignContentDistribution(
void ComputedStyle::InheritFrom(const ComputedStyle& inherit_parent,
IsAtShadowBoundary is_at_shadow_boundary) {
+ EUserModify current_user_modify = UserModify();
+
ComputedStyleBase::InheritFrom(inherit_parent, is_at_shadow_boundary);
alancutter (OOO until 2018) 2017/05/09 00:09:18 Unrelated to this patch: Why does this function ta
shend 2017/05/09 00:16:02 I think ComputedStyleBase::InheritFrom was created
+ rare_inherited_data_ = inherit_parent.rare_inherited_data_;
+ inherited_data_ = inherit_parent.inherited_data_;
+ if (svg_style_ != inherit_parent.svg_style_)
+ svg_style_.Access()->InheritFrom(inherit_parent.svg_style_.Get());
+
if (is_at_shadow_boundary == kAtShadowBoundary) {
// Even if surrounding content is user-editable, shadow DOM should act as a
// single unit, and not necessarily be editable
- EUserModify current_user_modify = UserModify();
- rare_inherited_data_ = inherit_parent.rare_inherited_data_;
SetUserModify(current_user_modify);
- } else {
- rare_inherited_data_ = inherit_parent.rare_inherited_data_;
}
- inherited_data_ = inherit_parent.inherited_data_;
- if (svg_style_ != inherit_parent.svg_style_)
- svg_style_.Access()->InheritFrom(inherit_parent.svg_style_.Get());
}
void ComputedStyle::CopyNonInheritedFromCached(const ComputedStyle& other) {
« 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