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

Unified Diff: Source/core/layout/line/InlineBox.cpp

Issue 1183003003: Move overflow in InlineTextBox::adjustPosition() if it has glyph overflows (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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.h ('k') | Source/core/layout/line/InlineFlowBox.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/line/InlineBox.cpp
diff --git a/Source/core/layout/line/InlineBox.cpp b/Source/core/layout/line/InlineBox.cpp
index 8293466a31a7b56b15400a22e6ddda82b59d778c..d7cb47418729a2d809bb6b6f8b283e7b3a6a9461 100644
--- a/Source/core/layout/line/InlineBox.cpp
+++ b/Source/core/layout/line/InlineBox.cpp
@@ -196,12 +196,12 @@ void InlineBox::attachLine()
toLayoutBox(layoutObject()).setInlineBoxWrapper(this);
}
-void InlineBox::adjustPosition(LayoutUnit dx, LayoutUnit dy)
+void InlineBox::move(const LayoutSize& delta)
{
- m_topLeft.move(dx, dy);
+ m_topLeft.move(delta);
if (layoutObject().isReplaced())
- toLayoutBox(layoutObject()).move(dx, dy);
+ toLayoutBox(layoutObject()).move(delta.width(), delta.height());
}
void InlineBox::paint(const PaintInfo& paintInfo, const LayoutPoint& paintOffset, LayoutUnit /* lineTop */, LayoutUnit /* lineBottom */)
« no previous file with comments | « Source/core/layout/line/InlineBox.h ('k') | Source/core/layout/line/InlineFlowBox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698