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

Unified Diff: third_party/WebKit/Source/core/layout/api/LineLayoutBlockFlow.h

Issue 1583783002: Use IndentTextOrNot instead of a bool (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@568851-2
Patch Set: Update Created 4 years, 11 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/LineLayoutBlockFlow.h
diff --git a/third_party/WebKit/Source/core/layout/api/LineLayoutBlockFlow.h b/third_party/WebKit/Source/core/layout/api/LineLayoutBlockFlow.h
index 41b5e0e3371a907eae6da502434674d36b0341d6..6b221176109a6bce8ff36631ac51ee592e357394 100644
--- a/third_party/WebKit/Source/core/layout/api/LineLayoutBlockFlow.h
+++ b/third_party/WebKit/Source/core/layout/api/LineLayoutBlockFlow.h
@@ -43,9 +43,9 @@ public:
return LineLayoutItem(toBlockFlow()->lastChild());
}
- LayoutUnit startAlignedOffsetForLine(LayoutUnit position, bool shouldIndentText)
+ LayoutUnit startAlignedOffsetForLine(LayoutUnit position, IndentTextOrNot indentText)
{
- return toBlockFlow()->startAlignedOffsetForLine(position, shouldIndentText);
+ return toBlockFlow()->startAlignedOffsetForLine(position, indentText);
}
LayoutUnit textIndentOffset() const
@@ -108,9 +108,9 @@ public:
toBlockFlow()->setStaticInlinePositionForChild(*toLayoutBox(box), inlinePosition);
}
- void updateStaticInlinePositionForChild(LineLayoutBox box, LayoutUnit logicalTop, bool shouldIndentText = false)
+ void updateStaticInlinePositionForChild(LineLayoutBox box, LayoutUnit logicalTop, IndentTextOrNot indentText = DoNotIndentText)
{
- toBlockFlow()->updateStaticInlinePositionForChild(*toLayoutBox(box), logicalTop, shouldIndentText);
+ toBlockFlow()->updateStaticInlinePositionForChild(*toLayoutBox(box), logicalTop, indentText);
}
FloatingObject* insertFloatingObject(LayoutBox& box)
@@ -168,14 +168,14 @@ public:
return toBlockFlow()->logicalWidthForFloat(floatingObject);
}
- LayoutUnit logicalRightOffsetForLine(LayoutUnit position, bool shouldIndentText, LayoutUnit logicalHeight = 0) const
+ LayoutUnit logicalRightOffsetForLine(LayoutUnit position, IndentTextOrNot indentText, LayoutUnit logicalHeight = 0) const
{
- return toBlockFlow()->logicalRightOffsetForLine(position, shouldIndentText, logicalHeight);
+ return toBlockFlow()->logicalRightOffsetForLine(position, indentText, logicalHeight);
}
- LayoutUnit logicalLeftOffsetForLine(LayoutUnit position, bool shouldIndentText, LayoutUnit logicalHeight = 0) const
+ LayoutUnit logicalLeftOffsetForLine(LayoutUnit position, IndentTextOrNot indentText, LayoutUnit logicalHeight = 0) const
{
- return toBlockFlow()->logicalLeftOffsetForLine(position, shouldIndentText, logicalHeight);
+ return toBlockFlow()->logicalLeftOffsetForLine(position, indentText, logicalHeight);
}
private:

Powered by Google App Engine
This is Rietveld 408576698