Index: third_party/WebKit/Source/core/paint/BoxClipper.cpp |
diff --git a/third_party/WebKit/Source/core/paint/BoxClipper.cpp b/third_party/WebKit/Source/core/paint/BoxClipper.cpp |
index c653edffa7e116fc4a761ba4a4f11344c89965a1..e751e965148726fba020c69de43bf0c79c774a0a 100644 |
--- a/third_party/WebKit/Source/core/paint/BoxClipper.cpp |
+++ b/third_party/WebKit/Source/core/paint/BoxClipper.cpp |
@@ -47,8 +47,7 @@ BoxClipper::BoxClipper(const LayoutBox& box, const PaintInfo& paintInfo, const L |
if (hasBorderRadius) |
clipRoundedRect = m_box.style()->getRoundedInnerBorderFor(LayoutRect(accumulatedOffset, m_box.size())); |
- // Selection does not affect visual overflow, so this optimization is invalid if selection |
- // is present. |
+ // Selection may extend beyond visual overflow, so this optimization is invalid if selection is present. |
if (contentsClipBehavior == SkipContentsClipIfPossible && box.getSelectionState() == SelectionNone) { |
LayoutRect contentsVisualOverflow = m_box.contentsVisualOverflowRect(); |
if (contentsVisualOverflow.isEmpty()) |