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

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: 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..6f8ffdce43077f9a2ac6b26b388c74b52a7dfdad 100644
--- a/third_party/WebKit/Source/core/layout/api/LineLayoutBlockFlow.h
+++ b/third_party/WebKit/Source/core/layout/api/LineLayoutBlockFlow.h
@@ -43,7 +43,7 @@ public:
return LineLayoutItem(toBlockFlow()->lastChild());
}
- LayoutUnit startAlignedOffsetForLine(LayoutUnit position, bool shouldIndentText)
+ LayoutUnit startAlignedOffsetForLine(LayoutUnit position, IndentTextOrNot shouldIndentText)
{
return toBlockFlow()->startAlignedOffsetForLine(position, shouldIndentText);
}
@@ -108,7 +108,7 @@ public:
toBlockFlow()->setStaticInlinePositionForChild(*toLayoutBox(box), inlinePosition);
}
- void updateStaticInlinePositionForChild(LineLayoutBox box, LayoutUnit logicalTop, bool shouldIndentText = false)
+ void updateStaticInlinePositionForChild(LineLayoutBox box, LayoutUnit logicalTop, IndentTextOrNot shouldIndentText = DoNotIndentText)
{
toBlockFlow()->updateStaticInlinePositionForChild(*toLayoutBox(box), logicalTop, shouldIndentText);
}
@@ -168,12 +168,12 @@ public:
return toBlockFlow()->logicalWidthForFloat(floatingObject);
}
- LayoutUnit logicalRightOffsetForLine(LayoutUnit position, bool shouldIndentText, LayoutUnit logicalHeight = 0) const
+ LayoutUnit logicalRightOffsetForLine(LayoutUnit position, IndentTextOrNot shouldIndentText, LayoutUnit logicalHeight = 0) const
{
return toBlockFlow()->logicalRightOffsetForLine(position, shouldIndentText, logicalHeight);
}
- LayoutUnit logicalLeftOffsetForLine(LayoutUnit position, bool shouldIndentText, LayoutUnit logicalHeight = 0) const
+ LayoutUnit logicalLeftOffsetForLine(LayoutUnit position, IndentTextOrNot shouldIndentText, LayoutUnit logicalHeight = 0) const
{
return toBlockFlow()->logicalLeftOffsetForLine(position, shouldIndentText, logicalHeight);
}

Powered by Google App Engine
This is Rietveld 408576698