Chromium Code Reviews| Index: third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp |
| diff --git a/third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp b/third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp |
| index 35033c3c017158144ac11b6eacc661878d7c7e0c..fb1daaf85dc8fe12e0721ca52019a6ac7bf4e28a 100644 |
| --- a/third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp |
| +++ b/third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp |
| @@ -81,9 +81,6 @@ void InlineTextBox::markDirty() |
| LayoutRect InlineTextBox::logicalOverflowRect() const |
| { |
| if (knownToHaveNoOverflow() || !gTextBoxesWithOverflow) { |
| - // FIXME: the call to rawValue() below is temporary and should be removed once the transition |
| - // to LayoutUnit-based types is complete (crbug.com/321237). The call to enclosingIntRect() |
| - // should also likely be switched to LayoutUnit pixel-snapping. |
| return LayoutRect(enclosingIntRect(logicalFrameRect())); |
|
eae
2016/05/10 22:30:11
This should probably be pixelSnappedIntRect instea
wkorman
2016/05/15 22:01:03
Updated to return logicalFrameRect() directly. A s
|
| } |
| @@ -237,8 +234,6 @@ LayoutRect InlineTextBox::localSelectionRect(int startPos, int endPos) const |
| if (sPos || ePos != static_cast<int>(m_len)) { |
| r = LayoutRect(enclosingIntRect(font.selectionRectForText(textRun, FloatPoint(startingPoint), selHeight, sPos, ePos))); |
| } else { // Avoid computing the font width when the entire line box is selected as an optimization. |
| - // FIXME: the call to rawValue() below is temporary and should be removed once the transition |
| - // to LayoutUnit-based types is complete (crbug.com/321237) |
| r = LayoutRect(enclosingIntRect(LayoutRect(startingPoint, LayoutSize(m_logicalWidth, selHeight)))); |
| } |