| OLD | NEW |
| 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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 #endif | 197 #endif |
| 198 | 198 |
| 199 // inline-block elements paint all phases atomically. This function ensures
that. Certain other elements | 199 // inline-block elements paint all phases atomically. This function ensures
that. Certain other elements |
| 200 // (flex items) require this behavior as well, and this function exists as a
helper for them. | 200 // (flex items) require this behavior as well, and this function exists as a
helper for them. |
| 201 // It is expected that the caller will call this function independent of the
value of paintInfo.phase. | 201 // It is expected that the caller will call this function independent of the
value of paintInfo.phase. |
| 202 static void paintAsInlineBlock(RenderObject*, PaintInfo&, const LayoutPoint&
); | 202 static void paintAsInlineBlock(RenderObject*, PaintInfo&, const LayoutPoint&
); |
| 203 | 203 |
| 204 bool recalcChildOverflowAfterStyleChange(); | 204 bool recalcChildOverflowAfterStyleChange(); |
| 205 bool recalcOverflowAfterStyleChange(); | 205 bool recalcOverflowAfterStyleChange(); |
| 206 | 206 |
| 207 virtual void invalidateTreeIfNeeded(const PaintInvalidationState&) override; | |
| 208 | |
| 209 protected: | 207 protected: |
| 210 virtual void willBeDestroyed() override; | 208 virtual void willBeDestroyed() override; |
| 211 | 209 |
| 212 void dirtyForLayoutFromPercentageHeightDescendants(SubtreeLayoutScope&); | 210 void dirtyForLayoutFromPercentageHeightDescendants(SubtreeLayoutScope&); |
| 213 | 211 |
| 214 virtual void layout() override; | 212 virtual void layout() override; |
| 215 | 213 |
| 216 enum PositionedLayoutBehavior { | 214 enum PositionedLayoutBehavior { |
| 217 DefaultLayout, | 215 DefaultLayout, |
| 218 ForcedLayoutAfterContainingBlockMoved | 216 ForcedLayoutAfterContainingBlockMoved |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 // member variables out of RenderBlock and into RenderBlockFlow. | 350 // member variables out of RenderBlock and into RenderBlockFlow. |
| 353 friend class RenderBlockFlow; | 351 friend class RenderBlockFlow; |
| 354 friend class RenderParagraph; | 352 friend class RenderParagraph; |
| 355 }; | 353 }; |
| 356 | 354 |
| 357 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock()); | 355 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock()); |
| 358 | 356 |
| 359 } // namespace blink | 357 } // namespace blink |
| 360 | 358 |
| 361 #endif // SKY_ENGINE_CORE_RENDERING_RENDERBLOCK_H_ | 359 #endif // SKY_ENGINE_CORE_RENDERING_RENDERBLOCK_H_ |
| OLD | NEW |