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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 LayoutUnit logicalLeftOffsetForContent() const { return isHorizontalWritingM
ode() ? borderLeft() + paddingLeft() : borderTop() + paddingTop(); } | 252 LayoutUnit logicalLeftOffsetForContent() const { return isHorizontalWritingM
ode() ? borderLeft() + paddingLeft() : borderTop() + paddingTop(); } |
253 LayoutUnit logicalRightOffsetForContent() const { return logicalLeftOffsetFo
rContent() + availableLogicalWidth(); } | 253 LayoutUnit logicalRightOffsetForContent() const { return logicalLeftOffsetFo
rContent() + availableLogicalWidth(); } |
254 LayoutUnit startOffsetForContent() const { return style()->isLeftToRightDire
ction() ? logicalLeftOffsetForContent() : logicalWidth() - logicalRightOffsetFor
Content(); } | 254 LayoutUnit startOffsetForContent() const { return style()->isLeftToRightDire
ction() ? logicalLeftOffsetForContent() : logicalWidth() - logicalRightOffsetFor
Content(); } |
255 LayoutUnit endOffsetForContent() const { return !style()->isLeftToRightDirec
tion() ? logicalLeftOffsetForContent() : logicalWidth() - logicalRightOffsetForC
ontent(); } | 255 LayoutUnit endOffsetForContent() const { return !style()->isLeftToRightDirec
tion() ? logicalLeftOffsetForContent() : logicalWidth() - logicalRightOffsetForC
ontent(); } |
256 | 256 |
257 #ifndef NDEBUG | 257 #ifndef NDEBUG |
258 void checkPositionedObjectsNeedLayout(); | 258 void checkPositionedObjectsNeedLayout(); |
259 void showLineTreeAndMark(const InlineBox* = 0, const char* = 0, const Inline
Box* = 0, const char* = 0, const RenderObject* = 0) const; | 259 void showLineTreeAndMark(const InlineBox* = 0, const char* = 0, const Inline
Box* = 0, const char* = 0, const RenderObject* = 0) const; |
260 #endif | 260 #endif |
261 | 261 |
262 LayoutSize logicalOffsetFromShapeAncestorContainer(const RenderBlock* contai
ner) const; | |
263 | |
264 // inline-block elements paint all phases atomically. This function ensures
that. Certain other elements | 262 // inline-block elements paint all phases atomically. This function ensures
that. Certain other elements |
265 // (grid items, flex items) require this behavior as well, and this function
exists as a helper for them. | 263 // (grid items, flex items) require this behavior as well, and this function
exists as a helper for them. |
266 // It is expected that the caller will call this function independent of the
value of paintInfo.phase. | 264 // It is expected that the caller will call this function independent of the
value of paintInfo.phase. |
267 static void paintAsInlineBlock(RenderObject*, PaintInfo&, const LayoutPoint&
); | 265 static void paintAsInlineBlock(RenderObject*, PaintInfo&, const LayoutPoint&
); |
268 protected: | 266 protected: |
269 virtual void willBeDestroyed() OVERRIDE; | 267 virtual void willBeDestroyed() OVERRIDE; |
270 | 268 |
271 void dirtyForLayoutFromPercentageHeightDescendants(SubtreeLayoutScope&); | 269 void dirtyForLayoutFromPercentageHeightDescendants(SubtreeLayoutScope&); |
272 | 270 |
273 virtual void layout() OVERRIDE; | 271 virtual void layout() OVERRIDE; |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
546 // FIXME: This is temporary as we move code that accesses block flow | 544 // FIXME: This is temporary as we move code that accesses block flow |
547 // member variables out of RenderBlock and into RenderBlockFlow. | 545 // member variables out of RenderBlock and into RenderBlockFlow. |
548 friend class RenderBlockFlow; | 546 friend class RenderBlockFlow; |
549 }; | 547 }; |
550 | 548 |
551 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock()); | 549 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock()); |
552 | 550 |
553 } // namespace WebCore | 551 } // namespace WebCore |
554 | 552 |
555 #endif // RenderBlock_h | 553 #endif // RenderBlock_h |
OLD | NEW |