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

Unified Diff: Source/core/rendering/RenderText.cpp

Issue 570763003: Remove unneeded bool from RenderView::selectionBounds (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaselined (again and again) Created 6 years, 3 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 | « Source/core/rendering/RenderText.h ('k') | Source/core/rendering/RenderView.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « Source/core/rendering/RenderText.h ('k') | Source/core/rendering/RenderView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698