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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutBlock.cpp

Issue 2342173002: Fix #641162: LayoutInline propagate position changes to abspos descendants (Closed)
Patch Set: 80 col rebase Created 4 years, 2 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2007 David Smith (catfish.man@gmail.com) 4 * (C) 2007 David Smith (catfish.man@gmail.com)
5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 965 matching lines...) Expand 10 before | Expand all | Expand 10 after
976 const PaintInvalidationState& paintInvalidationState) { 976 const PaintInvalidationState& paintInvalidationState) {
977 return LayoutBox::invalidatePaintIfNeeded(paintInvalidationState); 977 return LayoutBox::invalidatePaintIfNeeded(paintInvalidationState);
978 } 978 }
979 979
980 PaintInvalidationReason LayoutBlock::invalidatePaintIfNeeded( 980 PaintInvalidationReason LayoutBlock::invalidatePaintIfNeeded(
981 const PaintInvalidatorContext& context) const { 981 const PaintInvalidatorContext& context) const {
982 return BlockPaintInvalidator(*this, context).invalidatePaintIfNeeded(); 982 return BlockPaintInvalidator(*this, context).invalidatePaintIfNeeded();
983 } 983 }
984 984
985 void LayoutBlock::removePositionedObjects( 985 void LayoutBlock::removePositionedObjects(
986 LayoutBlock* o, 986 LayoutObject* o,
987 ContainingBlockState containingBlockState) { 987 ContainingBlockState containingBlockState) {
988 TrackedLayoutBoxListHashSet* positionedDescendants = positionedObjects(); 988 TrackedLayoutBoxListHashSet* positionedDescendants = positionedObjects();
989 if (!positionedDescendants) 989 if (!positionedDescendants)
990 return; 990 return;
991 991
992 Vector<LayoutBox*, 16> deadObjects; 992 Vector<LayoutBox*, 16> deadObjects;
993 for (auto* positionedObject : *positionedDescendants) { 993 for (auto* positionedObject : *positionedDescendants) {
994 if (!o || (positionedObject->isDescendantOf(o) && o != positionedObject)) { 994 if (!o || (positionedObject->isDescendantOf(o) && o != positionedObject)) {
995 if (containingBlockState == NewContainingBlock) { 995 if (containingBlockState == NewContainingBlock) {
996 positionedObject->setChildNeedsLayout(MarkOnlyThis); 996 positionedObject->setChildNeedsLayout(MarkOnlyThis);
(...skipping 1138 matching lines...) Expand 10 before | Expand all | Expand 10 after
2135 } 2135 }
2136 2136
2137 return availableHeight; 2137 return availableHeight;
2138 } 2138 }
2139 2139
2140 bool LayoutBlock::hasDefiniteLogicalHeight() const { 2140 bool LayoutBlock::hasDefiniteLogicalHeight() const {
2141 return availableLogicalHeightForPercentageComputation() != LayoutUnit(-1); 2141 return availableLogicalHeightForPercentageComputation() != LayoutUnit(-1);
2142 } 2142 }
2143 2143
2144 } // namespace blink 2144 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBlock.h ('k') | third_party/WebKit/Source/core/layout/LayoutInline.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698