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

Unified Diff: Source/core/layout/line/InlineFlowBox.h

Issue 1294483002: [Line Layout API] Convert InlineBox::boxModelObject to new API (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: nits Created 5 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
« no previous file with comments | « Source/core/layout/line/InlineBox.cpp ('k') | Source/core/layout/line/InlineFlowBox.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/line/InlineFlowBox.h
diff --git a/Source/core/layout/line/InlineFlowBox.h b/Source/core/layout/line/InlineFlowBox.h
index c42917215b34ef9928aa23aeaa5937c9bfc3dea6..1d1721e0314f00ddb24b44221005d977ac347869 100644
--- a/Source/core/layout/line/InlineFlowBox.h
+++ b/Source/core/layout/line/InlineFlowBox.h
@@ -131,13 +131,13 @@ public:
{
if (!includeLogicalLeftEdge())
return 0;
- return isHorizontal() ? boxModelObject()->marginLeft() : boxModelObject()->marginTop();
+ return isHorizontal() ? boxModelObject().marginLeft() : boxModelObject().marginTop();
}
LayoutUnit marginLogicalRight() const
{
if (!includeLogicalRightEdge())
return 0;
- return isHorizontal() ? boxModelObject()->marginRight() : boxModelObject()->marginBottom();
+ return isHorizontal() ? boxModelObject().marginRight() : boxModelObject().marginBottom();
}
int borderLogicalLeft() const
{
@@ -155,13 +155,13 @@ public:
{
if (!includeLogicalLeftEdge())
return 0;
- return isHorizontal() ? boxModelObject()->paddingLeft() : boxModelObject()->paddingTop();
+ return isHorizontal() ? boxModelObject().paddingLeft() : boxModelObject().paddingTop();
}
int paddingLogicalRight() const
{
if (!includeLogicalRightEdge())
return 0;
- return isHorizontal() ? boxModelObject()->paddingRight() : boxModelObject()->paddingBottom();
+ return isHorizontal() ? boxModelObject().paddingRight() : boxModelObject().paddingBottom();
}
bool includeLogicalLeftEdge() const { return m_includeLogicalLeftEdge; }
« no previous file with comments | « Source/core/layout/line/InlineBox.cpp ('k') | Source/core/layout/line/InlineFlowBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698