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

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

Issue 2536453002: Rename some functions about layout locations (Closed)
Patch Set: Rebase Created 4 years, 1 month 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/line/InlineFlowBox.h
diff --git a/third_party/WebKit/Source/core/layout/line/InlineFlowBox.h b/third_party/WebKit/Source/core/layout/line/InlineFlowBox.h
index 0589ef350c6bcf34c097bb0e2c750d4ebca93750..3c657572fc7ad4fa1485da06903b32a61a9e1cc7 100644
--- a/third_party/WebKit/Source/core/layout/line/InlineFlowBox.h
+++ b/third_party/WebKit/Source/core/layout/line/InlineFlowBox.h
@@ -356,8 +356,8 @@ class InlineFlowBox : public InlineBox {
LayoutRect frameRectIncludingLineHeight(LayoutUnit lineTop,
LayoutUnit lineBottom) const {
if (isHorizontal())
- return LayoutRect(m_topLeft.x(), lineTop, width(), lineBottom - lineTop);
- return LayoutRect(lineTop, m_topLeft.y(), lineBottom - lineTop, height());
+ return LayoutRect(x(), lineTop, logicalWidth(), lineBottom - lineTop);
+ return LayoutRect(lineTop, y(), lineBottom - lineTop, logicalWidth());
}
LayoutRect logicalFrameRectIncludingLineHeight(LayoutUnit lineTop,

Powered by Google App Engine
This is Rietveld 408576698