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

Unified Diff: Source/core/layout/LayoutInline.cpp

Issue 1164533005: Don't double-inflate visual overflow rect for LayoutInlines (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Touch up Tc. 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 | « LayoutTests/fast/repaint/inline-outline-repaint-2-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutInline.cpp
diff --git a/Source/core/layout/LayoutInline.cpp b/Source/core/layout/LayoutInline.cpp
index baf29814ff97a470c120b8c83bae6b57ca0e7908..d119daa9b998652e8f05207ecf127dba611d6397 100644
--- a/Source/core/layout/LayoutInline.cpp
+++ b/Source/core/layout/LayoutInline.cpp
@@ -1051,12 +1051,9 @@ LayoutRect LayoutInline::clippedOverflowRect(const LayoutBoxModelObject* paintIn
return LayoutRect();
LayoutRect overflowRect(linesVisualOverflowBoundingBox());
-
- LayoutUnit outlineSize = style()->outlineSize();
- overflowRect.inflate(outlineSize);
-
mapRectToPaintInvalidationBacking(paintInvalidationContainer, overflowRect, paintInvalidationState);
+ LayoutUnit outlineSize = style()->outlineSize();
if (outlineSize) {
for (LayoutObject* curr = firstChild(); curr; curr = curr->nextSibling()) {
if (!curr->isText())
« no previous file with comments | « LayoutTests/fast/repaint/inline-outline-repaint-2-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698