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

Unified Diff: third_party/WebKit/Source/core/css/resolver/StyleResolverState.h

Issue 2918983002: Remove references to rare_inherited_data_ in ComputedStyle. (Closed)
Patch Set: fix setTextOrientation 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 | third_party/WebKit/Source/core/style/ComputedStyle.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/resolver/StyleResolverState.h
diff --git a/third_party/WebKit/Source/core/css/resolver/StyleResolverState.h b/third_party/WebKit/Source/core/css/resolver/StyleResolverState.h
index c1eea4842862e0bc8e8526944aa8f6114e3b10f5..e558f765661de1e62f4c1abfa89346016a32d86a 100644
--- a/third_party/WebKit/Source/core/css/resolver/StyleResolverState.h
+++ b/third_party/WebKit/Source/core/css/resolver/StyleResolverState.h
@@ -202,8 +202,10 @@ class CORE_EXPORT StyleResolverState {
font_builder_.DidChangeWritingMode();
}
void SetTextOrientation(ETextOrientation text_orientation) {
- if (style_->SetTextOrientation(text_orientation))
+ if (style_->GetTextOrientation() != text_orientation) {
+ style_->SetTextOrientation(text_orientation);
font_builder_.DidChangeTextOrientation();
+ }
}
void SetHasDirAutoAttribute(bool value) { has_dir_auto_attribute_ = value; }
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/style/ComputedStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698