| Index: third_party/WebKit/Source/core/layout/LayoutReplaced.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutReplaced.cpp b/third_party/WebKit/Source/core/layout/LayoutReplaced.cpp
|
| index fbb7df39504cc68dda9c322c62bf7291d91f5392..f9822157bb6549f5d03c19b554367585db36a873 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutReplaced.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutReplaced.cpp
|
| @@ -928,10 +928,10 @@ void LayoutReplaced::setSelectionState(SelectionState state) {
|
| // invalidation rect if the image is selected. Since the selection state has
|
| // changed update the rect.
|
| if (hasLayer()) {
|
| - LayoutRect rect = localOverflowRectForPaintInvalidation();
|
| + LayoutRect rect = localVisualRect();
|
| PaintLayer::mapRectToPaintInvalidationBacking(
|
| *this, containerForPaintInvalidation(), rect);
|
| - setPreviousPaintInvalidationRect(rect);
|
| + setPreviousVisualRect(rect);
|
| }
|
|
|
| if (canUpdateSelectionOnRootLineBoxes())
|
|
|