Index: Source/core/rendering/RenderText.cpp |
diff --git a/Source/core/rendering/RenderText.cpp b/Source/core/rendering/RenderText.cpp |
index 35f5cc318ee2b65006ccb98f7cd0854998585da9..29cd468eca8e8354b268c5e43f41eed70e26f4ff 100644 |
--- a/Source/core/rendering/RenderText.cpp |
+++ b/Source/core/rendering/RenderText.cpp |
@@ -1587,7 +1587,7 @@ LayoutRect RenderText::clippedOverflowRectForPaintInvalidation(const RenderLayer |
return parent()->clippedOverflowRectForPaintInvalidation(paintInvalidationContainer); |
} |
-LayoutRect RenderText::selectionRectForPaintInvalidation(const RenderLayerModelObject* paintInvalidationContainer, bool clipToVisibleContent) const |
+LayoutRect RenderText::selectionRectForPaintInvalidation(const RenderLayerModelObject* paintInvalidationContainer) const |
{ |
ASSERT(!needsLayout()); |
@@ -1621,16 +1621,10 @@ LayoutRect RenderText::selectionRectForPaintInvalidation(const RenderLayerModelO |
rect.unite(ellipsisRectForBox(box, startPos, endPos)); |
} |
- if (clipToVisibleContent) { |
- mapRectToPaintInvalidationBacking(paintInvalidationContainer, rect, 0); |
- } else { |
- if (cb->hasColumns()) |
- cb->adjustRectForColumns(rect); |
- |
- rect = localToContainerQuad(FloatRect(rect), paintInvalidationContainer).enclosingBoundingBox(); |
- } |
+ if (cb->hasColumns()) |
+ cb->adjustRectForColumns(rect); |
- return rect; |
+ return localToContainerQuad(FloatRect(rect), paintInvalidationContainer).enclosingBoundingBox(); |
} |
int RenderText::caretMinOffset() const |