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

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

Issue 1156303012: Use the container() chain when locating the containing flow thread. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 | « LayoutTests/fast/multicol/dynamic/block-with-abspos-video-becomes-multicol-crash-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutObject.cpp
diff --git a/Source/core/layout/LayoutObject.cpp b/Source/core/layout/LayoutObject.cpp
index b2dd0cfcc2827188b9e9e9a21935dcff4e8e59ac..83943cce5661f85182b54450b38060c2b1f98f15 100644
--- a/Source/core/layout/LayoutObject.cpp
+++ b/Source/core/layout/LayoutObject.cpp
@@ -676,9 +676,9 @@ LayoutFlowThread* LayoutObject::locateFlowThreadContainingBlock() const
return nullptr;
if (curr->isLayoutFlowThread())
return toLayoutFlowThread(curr);
- LayoutObject* containingBlock = curr->containingBlock();
+ LayoutObject* container = curr->container();
curr = curr->parent();
- while (curr != containingBlock) {
+ while (curr != container) {
if (curr->isLayoutFlowThread()) {
// The nearest ancestor flow thread isn't in our containing block chain. Then we
// aren't really part of any flow thread, and we should stop looking. This happens
« no previous file with comments | « LayoutTests/fast/multicol/dynamic/block-with-abspos-video-becomes-multicol-crash-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698