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

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: 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..c3ef0f9f65714dd2d2f20bbffebbbc49a93d1008 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 needToRestoreCollapsedSpace() { return m_needToRestoreCollapsedSpace; }
+ void setNeedToRestoreCollapsedSpace(bool needToRestoreCollapsedSpace) { m_needToRestoreCollapsedSpace = needToRestoreCollapsedSpace; }
+
protected:
void willBeDestroyed() override;
@@ -238,6 +241,7 @@ private:
bool m_containsReversedText : 1;
bool m_canUseSimpleFontCodePath : 1;
mutable bool m_knownToHaveNoOverflowAndNoFallbackFonts : 1;
+ bool m_needToRestoreCollapsedSpace : 1;
float m_minWidth;
float m_maxWidth;

Powered by Google App Engine
This is Rietveld 408576698