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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 virtual LayoutUnit logicalLeftSelectionOffset(RenderBlock* rootBlock, Layout
Unit position); | 281 virtual LayoutUnit logicalLeftSelectionOffset(RenderBlock* rootBlock, Layout
Unit position); |
282 virtual LayoutUnit logicalRightSelectionOffset(RenderBlock* rootBlock, Layou
tUnit position); | 282 virtual LayoutUnit logicalRightSelectionOffset(RenderBlock* rootBlock, Layou
tUnit position); |
283 | 283 |
284 virtual void absoluteQuads(Vector<FloatQuad>&) const override; | 284 virtual void absoluteQuads(Vector<FloatQuad>&) const override; |
285 | 285 |
286 virtual LayoutRect localCaretRect(InlineBox*, int caretOffset, LayoutUnit* e
xtraWidthToEndOfLine = 0) override final; | 286 virtual LayoutRect localCaretRect(InlineBox*, int caretOffset, LayoutUnit* e
xtraWidthToEndOfLine = 0) override final; |
287 | 287 |
288 Position positionForBox(InlineBox*, bool start = true) const; | 288 Position positionForBox(InlineBox*, bool start = true) const; |
289 PositionWithAffinity positionForPointWithInlineChildren(const LayoutPoint&); | 289 PositionWithAffinity positionForPointWithInlineChildren(const LayoutPoint&); |
290 | 290 |
291 // End helper functions and structs used by layoutChildren. | |
292 | |
293 void removeFromGlobalMaps(); | 291 void removeFromGlobalMaps(); |
294 bool widthAvailableToChildrenHasChanged(); | 292 bool widthAvailableToChildrenHasChanged(); |
295 | 293 |
296 protected: | 294 protected: |
297 virtual bool updateLogicalWidthAndColumnWidth(); | 295 bool updateLogicalWidthAndColumnWidth(); |
298 | 296 |
299 protected: | |
300 RenderObjectChildList m_children; | 297 RenderObjectChildList m_children; |
301 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>. | 298 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>. |
302 | 299 |
303 LayoutUnit m_pageLogicalOffset; | 300 LayoutUnit m_pageLogicalOffset; |
304 | 301 |
305 unsigned m_hasMarginBeforeQuirk : 1; // Note these quirk values can't be put
in RenderBlockRareData since they are set too frequently. | 302 unsigned m_hasMarginBeforeQuirk : 1; // Note these quirk values can't be put
in RenderBlockRareData since they are set too frequently. |
306 unsigned m_hasMarginAfterQuirk : 1; | 303 unsigned m_hasMarginAfterQuirk : 1; |
307 unsigned m_beingDestroyed : 1; | 304 unsigned m_beingDestroyed : 1; |
308 unsigned m_hasBorderOrPaddingLogicalWidthChanged : 1; | 305 unsigned m_hasBorderOrPaddingLogicalWidthChanged : 1; |
309 | 306 |
310 // FIXME-BLOCKFLOW: Remove this when the line layout stuff has all moved out
of RenderBlock | 307 // FIXME-BLOCKFLOW: Remove this when the line layout stuff has all moved out
of RenderBlock |
311 friend class LineBreaker; | 308 friend class LineBreaker; |
312 | 309 |
313 // FIXME: This is temporary as we move code that accesses block flow | 310 // FIXME: This is temporary as we move code that accesses block flow |
314 // member variables out of RenderBlock and into RenderBlockFlow. | 311 // member variables out of RenderBlock and into RenderBlockFlow. |
315 friend class RenderBlockFlow; | 312 friend class RenderBlockFlow; |
316 friend class RenderParagraph; | 313 friend class RenderParagraph; |
317 }; | 314 }; |
318 | 315 |
319 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock()); | 316 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock()); |
320 | 317 |
321 } // namespace blink | 318 } // namespace blink |
322 | 319 |
323 #endif // SKY_ENGINE_CORE_RENDERING_RENDERBLOCK_H_ | 320 #endif // SKY_ENGINE_CORE_RENDERING_RENDERBLOCK_H_ |
OLD | NEW |