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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutText.h

Issue 2280513004: Restore a collapsed trailing space of text used for line break (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add CJK and word-break: break-all cases Created 4 years, 4 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: third_party/WebKit/Source/core/layout/LayoutText.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutText.h b/third_party/WebKit/Source/core/layout/LayoutText.h
index 42e7fa333d08a1cfde7fba0fb0c0bf8b66559297..176fe0bad225005549d0580593f1858b113c3ddc 100644
--- a/third_party/WebKit/Source/core/layout/LayoutText.h
+++ b/third_party/WebKit/Source/core/layout/LayoutText.h
@@ -180,6 +180,9 @@ public:
float hyphenWidth(const Font&, TextDirection);
+ bool hasLineBreakForTextWrap() { return m_hasLineBreakForTextWrap; }
+ void setLineBreakForTextWrap(bool hasLineBreakForTextWrap) { m_hasLineBreakForTextWrap = hasLineBreakForTextWrap; }
+
protected:
void willBeDestroyed() override;
@@ -238,6 +241,7 @@ private:
bool m_containsReversedText : 1;
bool m_canUseSimpleFontCodePath : 1;
mutable bool m_knownToHaveNoOverflowAndNoFallbackFonts : 1;
+ bool m_hasLineBreakForTextWrap : 1;
float m_minWidth;
float m_maxWidth;

Powered by Google App Engine
This is Rietveld 408576698