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); } |