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

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

Issue 1265933002: Make LayoutFlowThread::fragmentsBoundingBox() faster. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Code review. Created 5 years, 4 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 | « no previous file | Source/core/layout/LayoutMultiColumnSet.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutFlowThread.cpp
diff --git a/Source/core/layout/LayoutFlowThread.cpp b/Source/core/layout/LayoutFlowThread.cpp
index 34e5d7793c5f95f03bd9b7239199d10e45d43fa7..91981f8a8d162d58a0b3661530f5ad645b5c2988 100644
--- a/Source/core/layout/LayoutFlowThread.cpp
+++ b/Source/core/layout/LayoutFlowThread.cpp
@@ -166,16 +166,8 @@ LayoutRect LayoutFlowThread::fragmentsBoundingBox(const LayoutRect& layerBoundin
ASSERT(!m_columnSetsInvalidated);
LayoutRect result;
- for (auto* columnSet : m_multiColumnSetList) {
- DeprecatedPaintLayerFragments fragments;
- columnSet->collectLayerFragments(fragments, layerBoundingBox, LayoutRect(LayoutRect::infiniteIntRect()));
- for (const auto& fragment : fragments) {
- LayoutRect fragmentRect(layerBoundingBox);
- fragmentRect.intersect(fragment.paginationClip);
- fragmentRect.moveBy(fragment.paginationOffset);
- result.unite(fragmentRect);
- }
- }
+ for (auto* columnSet : m_multiColumnSetList)
+ result.unite(columnSet->fragmentsBoundingBox(layerBoundingBox));
return result;
}
« no previous file with comments | « no previous file | Source/core/layout/LayoutMultiColumnSet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698