| 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 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 PositionWithAffinity positionForPointWithInlineChildren(const LayoutPoint&); | 298 PositionWithAffinity positionForPointWithInlineChildren(const LayoutPoint&); |
| 299 | 299 |
| 300 // End helper functions and structs used by layoutChildren. | 300 // End helper functions and structs used by layoutChildren. |
| 301 | 301 |
| 302 void removeFromGlobalMaps(); | 302 void removeFromGlobalMaps(); |
| 303 bool widthAvailableToChildrenHasChanged(); | 303 bool widthAvailableToChildrenHasChanged(); |
| 304 | 304 |
| 305 protected: | 305 protected: |
| 306 bool createsBlockFormattingContext() const; | 306 bool createsBlockFormattingContext() const; |
| 307 | 307 |
| 308 // Adjust from painting offsets to the local coords of this renderer | |
| 309 void offsetForContents(LayoutPoint&) const; | |
| 310 | |
| 311 virtual bool updateLogicalWidthAndColumnWidth(); | 308 virtual bool updateLogicalWidthAndColumnWidth(); |
| 312 | 309 |
| 313 protected: | 310 protected: |
| 314 RenderObjectChildList m_children; | 311 RenderObjectChildList m_children; |
| 315 RenderLineBoxList m_lineBoxes; // All of the root line boxes created for t
his block flow. For example, <div>Hello<br>world.</div> will have two total lin
es for the <div>. | 312 RenderLineBoxList m_lineBoxes; // All of the root line boxes created for t
his block flow. For example, <div>Hello<br>world.</div> will have two total lin
es for the <div>. |
| 316 | 313 |
| 317 LayoutUnit m_pageLogicalOffset; | 314 LayoutUnit m_pageLogicalOffset; |
| 318 | 315 |
| 319 unsigned m_hasMarginBeforeQuirk : 1; // Note these quirk values can't be put
in RenderBlockRareData since they are set too frequently. | 316 unsigned m_hasMarginBeforeQuirk : 1; // Note these quirk values can't be put
in RenderBlockRareData since they are set too frequently. |
| 320 unsigned m_hasMarginAfterQuirk : 1; | 317 unsigned m_hasMarginAfterQuirk : 1; |
| 321 unsigned m_beingDestroyed : 1; | 318 unsigned m_beingDestroyed : 1; |
| 322 unsigned m_hasBorderOrPaddingLogicalWidthChanged : 1; | 319 unsigned m_hasBorderOrPaddingLogicalWidthChanged : 1; |
| 323 | 320 |
| 324 // FIXME-BLOCKFLOW: Remove this when the line layout stuff has all moved out
of RenderBlock | 321 // FIXME-BLOCKFLOW: Remove this when the line layout stuff has all moved out
of RenderBlock |
| 325 friend class LineBreaker; | 322 friend class LineBreaker; |
| 326 | 323 |
| 327 // FIXME: This is temporary as we move code that accesses block flow | 324 // FIXME: This is temporary as we move code that accesses block flow |
| 328 // member variables out of RenderBlock and into RenderBlockFlow. | 325 // member variables out of RenderBlock and into RenderBlockFlow. |
| 329 friend class RenderBlockFlow; | 326 friend class RenderBlockFlow; |
| 330 friend class RenderParagraph; | 327 friend class RenderParagraph; |
| 331 }; | 328 }; |
| 332 | 329 |
| 333 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock()); | 330 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock()); |
| 334 | 331 |
| 335 } // namespace blink | 332 } // namespace blink |
| 336 | 333 |
| 337 #endif // SKY_ENGINE_CORE_RENDERING_RENDERBLOCK_H_ | 334 #endif // SKY_ENGINE_CORE_RENDERING_RENDERBLOCK_H_ |
| OLD | NEW |