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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutReplaced.cpp

Issue 2465983002: Rename "paint invalidation rect" etc. to "visual rect". (Closed)
Patch Set: - 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/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())

Powered by Google App Engine
This is Rietveld 408576698