| Index: third_party/WebKit/Source/web/FindInPageCoordinates.cpp
|
| diff --git a/third_party/WebKit/Source/web/FindInPageCoordinates.cpp b/third_party/WebKit/Source/web/FindInPageCoordinates.cpp
|
| index fb0f337f35e8a5074f214fd9e34845c05c22fa10..c8ed56dff03a580443c3ffc187d9c2896b81a585 100644
|
| --- a/third_party/WebKit/Source/web/FindInPageCoordinates.cpp
|
| +++ b/third_party/WebKit/Source/web/FindInPageCoordinates.cpp
|
| @@ -96,9 +96,9 @@ static FloatRect toNormalizedRect(const FloatRect& absoluteRect,
|
| // leave consistent tickmarks. So, use their position when the view is not
|
| // scrolled, like an absolute position.
|
| if (layoutObject->style()->position() == FixedPosition &&
|
| - container->isLayoutView())
|
| - normalizedRect.moveBy(
|
| - -toLayoutView(container)->frameView()->scrollPosition());
|
| + container->isLayoutView()) {
|
| + normalizedRect.move(-toLayoutView(container)->frameView()->scrollOffset());
|
| + }
|
|
|
| normalizedRect.scale(1 / containerRect.width(), 1 / containerRect.height());
|
| return normalizedRect;
|
|
|