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

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

Issue 2943983002: [LayoutNG] Implement CSS 'text-indent' property (Closed)
Patch Set: Cleanup Created 3 years, 6 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 | « third_party/WebKit/Source/core/style/ComputedStyle.h ('k') | 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 dc9453b0c6038c467b69fa87e53dba0cf0e83b7c..a82afadb42f79326fe090bb63dc0033b38047e1d 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.cpp
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
@@ -1296,6 +1296,14 @@ ETextAlign ComputedStyle::GetTextAlign(bool is_last_line) const {
return GetTextAlign();
}
+bool ComputedStyle::ShouldUseTextIndent(bool is_first_line,
+ bool is_after_forced_break) const {
+ bool should_use =
+ is_first_line || (is_after_forced_break &&
+ GetTextIndentLine() != TextIndentLine::kFirstLine);
+ return TextIndentType() == TextIndentType::kNormal ? should_use : !should_use;
Nico 2017/09/15 19:33:57 Is this meant to call GetTextIndentType()? As-is,
kojii 2017/09/16 05:25:21 Thanks, you're right, I'll send a fix.
+}
+
const AtomicString& ComputedStyle::TextEmphasisMarkString() const {
switch (GetTextEmphasisMark()) {
case TextEmphasisMark::kNone:
« no previous file with comments | « third_party/WebKit/Source/core/style/ComputedStyle.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698