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

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

Issue 2382733002: Introduce markChildForPaginationRelayoutIfNeeded(). (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutBlock.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 void setHasMarginBeforeQuirk(bool b) { m_hasMarginBeforeQuirk = b; } 165 void setHasMarginBeforeQuirk(bool b) { m_hasMarginBeforeQuirk = b; }
166 void setHasMarginAfterQuirk(bool b) { m_hasMarginAfterQuirk = b; } 166 void setHasMarginAfterQuirk(bool b) { m_hasMarginAfterQuirk = b; }
167 167
168 bool hasMarginBeforeQuirk() const { return m_hasMarginBeforeQuirk; } 168 bool hasMarginBeforeQuirk() const { return m_hasMarginBeforeQuirk; }
169 bool hasMarginAfterQuirk() const { return m_hasMarginAfterQuirk; } 169 bool hasMarginAfterQuirk() const { return m_hasMarginAfterQuirk; }
170 170
171 bool hasMarginBeforeQuirk(const LayoutBox* child) const; 171 bool hasMarginBeforeQuirk(const LayoutBox* child) const;
172 bool hasMarginAfterQuirk(const LayoutBox* child) const; 172 bool hasMarginAfterQuirk(const LayoutBox* child) const;
173 173
174 void markPositionedObjectsForLayout(); 174 void markPositionedObjectsForLayout();
175 // FIXME: Do we really need this to be virtual? It's just so we can call thi s on
176 // LayoutBoxes without needed to check whether they're LayoutBlocks first.
177 void markForPaginationRelayoutIfNeeded(SubtreeLayoutScope&) final;
178 175
179 LayoutUnit textIndentOffset() const; 176 LayoutUnit textIndentOffset() const;
180 177
181 PositionWithAffinity positionForPoint(const LayoutPoint&) override; 178 PositionWithAffinity positionForPoint(const LayoutPoint&) override;
182 179
183 LayoutUnit blockDirectionOffset(const LayoutSize& offsetFromBlock) const; 180 LayoutUnit blockDirectionOffset(const LayoutSize& offsetFromBlock) const;
184 LayoutUnit inlineDirectionOffset(const LayoutSize& offsetFromBlock) const; 181 LayoutUnit inlineDirectionOffset(const LayoutSize& offsetFromBlock) const;
185 182
186 LayoutBlock* blockBeforeWithinSelectionRoot(LayoutSize& offset) const; 183 LayoutBlock* blockBeforeWithinSelectionRoot(LayoutSize& offset) const;
187 184
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 // TODO(lunalu): Temporary in order to ensure compatibility with existing la yout test 419 // TODO(lunalu): Temporary in order to ensure compatibility with existing la yout test
423 // results. 420 // results.
424 virtual void adjustChildDebugRect(LayoutRect&) const {} 421 virtual void adjustChildDebugRect(LayoutRect&) const {}
425 }; 422 };
426 423
427 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlock, isLayoutBlock()); 424 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlock, isLayoutBlock());
428 425
429 } // namespace blink 426 } // namespace blink
430 427
431 #endif // LayoutBlock_h 428 #endif // LayoutBlock_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutBlock.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698