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

Unified Diff: third_party/WebKit/Source/core/layout/api/LineLayoutItem.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/api/LineLayoutItem.h
diff --git a/third_party/WebKit/Source/core/layout/api/LineLayoutItem.h b/third_party/WebKit/Source/core/layout/api/LineLayoutItem.h
index 5ce2bdbe29fa2a42cf49f84bf42a65788c6b4a66..8b5d3d57ad1c4c698afbf13601511c9996d535ba 100644
--- a/third_party/WebKit/Source/core/layout/api/LineLayoutItem.h
+++ b/third_party/WebKit/Source/core/layout/api/LineLayoutItem.h
@@ -446,6 +446,17 @@ public:
ObjectPaintInvalidator(*m_layoutObject).slowSetPaintingLayerNeedsRepaint();
}
+ bool needToRestoreCollapsedSpace()
+ {
+ return isText() && toLayoutText(m_layoutObject)->needToRestoreCollapsedSpace();
+ }
+
+ void setNeedToRestoreCollapsedSpace(bool needToRestoreCollapsedSpace)
+ {
+ if (isText())
+ toLayoutText(m_layoutObject)->setNeedToRestoreCollapsedSpace(needToRestoreCollapsedSpace);
+ }
+
struct LineLayoutItemHash {
STATIC_ONLY(LineLayoutItemHash);
static unsigned hash(const LineLayoutItem& key) { return WTF::PtrHash<LayoutObject>::hash(key.m_layoutObject); }

Powered by Google App Engine
This is Rietveld 408576698