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

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

Issue 2750153002: getClientRects() shouldn't clip against any ancestors. (Closed)
Patch Set: Document tests. Use width/height instead of right/bottom, since that's easier to follow. Created 3 years, 9 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
Index: third_party/WebKit/Source/core/layout/LayoutFlowThread.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutFlowThread.cpp b/third_party/WebKit/Source/core/layout/LayoutFlowThread.cpp
index 0062a5a7d7fa19f85abaf2804916b110b90d1b4a..237bacac61753464c90959f7a1c38ec97f50d2aa 100644
--- a/third_party/WebKit/Source/core/layout/LayoutFlowThread.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutFlowThread.cpp
@@ -149,7 +149,9 @@ void LayoutFlowThread::absoluteQuadsForDescendant(const LayoutBox& descendant,
LayoutRect fragment = boundingRectInFlowThread;
// We use inclusiveIntersect() because intersect() would reset the
// coordinates for zero-height objects.
- fragment.inclusiveIntersect(iterator.fragmentainerInFlowThread());
+ LayoutRect clipRect = iterator.clipRectInFlowThread(
+ MultiColumnFragmentainerGroup::BlockDirectionAxis);
+ fragment.inclusiveIntersect(clipRect);
fragment.moveBy(-offsetFromFlowThread);
quads.push_back(descendant.localToAbsoluteQuad(FloatRect(fragment), mode));
}

Powered by Google App Engine
This is Rietveld 408576698