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

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

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 Apple Inc. All r ights reserved. 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All r ights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 LayoutObject* beforeDescendant); 148 LayoutObject* beforeDescendant);
149 149
150 public: 150 public:
151 void addChild(LayoutObject* newChild, 151 void addChild(LayoutObject* newChild,
152 LayoutObject* beforeChild = nullptr) override; 152 LayoutObject* beforeChild = nullptr) override;
153 153
154 virtual void layoutBlock(bool relayoutChildren); 154 virtual void layoutBlock(bool relayoutChildren);
155 155
156 void insertPositionedObject(LayoutBox*); 156 void insertPositionedObject(LayoutBox*);
157 static void removePositionedObject(LayoutBox*); 157 static void removePositionedObject(LayoutBox*);
158 void removePositionedObjects(LayoutBlock*, 158 void removePositionedObjects(LayoutObject*,
159 ContainingBlockState = SameContainingBlock); 159 ContainingBlockState = SameContainingBlock);
160 160
161 TrackedLayoutBoxListHashSet* positionedObjects() const { 161 TrackedLayoutBoxListHashSet* positionedObjects() const {
162 return hasPositionedObjects() ? positionedObjectsInternal() : nullptr; 162 return hasPositionedObjects() ? positionedObjectsInternal() : nullptr;
163 } 163 }
164 bool hasPositionedObjects() const { 164 bool hasPositionedObjects() const {
165 ASSERT(m_hasPositionedObjects ? (positionedObjectsInternal() && 165 ASSERT(m_hasPositionedObjects ? (positionedObjectsInternal() &&
166 !positionedObjectsInternal()->isEmpty()) 166 !positionedObjectsInternal()->isEmpty())
167 : !positionedObjectsInternal()); 167 : !positionedObjectsInternal());
168 return m_hasPositionedObjects; 168 return m_hasPositionedObjects;
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 // TODO(lunalu): Temporary in order to ensure compatibility with existing layo ut test 548 // TODO(lunalu): Temporary in order to ensure compatibility with existing layo ut test
549 // results. 549 // results.
550 virtual void adjustChildDebugRect(LayoutRect&) const {} 550 virtual void adjustChildDebugRect(LayoutRect&) const {}
551 }; 551 };
552 552
553 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlock, isLayoutBlock()); 553 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlock, isLayoutBlock());
554 554
555 } // namespace blink 555 } // namespace blink
556 556
557 #endif // LayoutBlock_h 557 #endif // LayoutBlock_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698