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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes
tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct
ion) OVERRIDE; | 246 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes
tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct
ion) OVERRIDE; |
247 | 247 |
248 virtual void scrollbarsChanged(bool /*horizontalScrollbarChanged*/, bool /*v
erticalScrollbarChanged*/) { } | 248 virtual void scrollbarsChanged(bool /*horizontalScrollbarChanged*/, bool /*v
erticalScrollbarChanged*/) { } |
249 | 249 |
250 LayoutUnit availableLogicalWidthForContent() const { return max<LayoutUnit>(
0, logicalRightOffsetForContent() - logicalLeftOffsetForContent()); } | 250 LayoutUnit availableLogicalWidthForContent() const { return max<LayoutUnit>(
0, logicalRightOffsetForContent() - logicalLeftOffsetForContent()); } |
251 LayoutUnit logicalLeftOffsetForContent() const { return isHorizontalWritingM
ode() ? borderLeft() + paddingLeft() : borderTop() + paddingTop(); } | 251 LayoutUnit logicalLeftOffsetForContent() const { return isHorizontalWritingM
ode() ? borderLeft() + paddingLeft() : borderTop() + paddingTop(); } |
252 LayoutUnit logicalRightOffsetForContent() const { return logicalLeftOffsetFo
rContent() + availableLogicalWidth(); } | 252 LayoutUnit logicalRightOffsetForContent() const { return logicalLeftOffsetFo
rContent() + availableLogicalWidth(); } |
253 LayoutUnit startOffsetForContent() const { return style()->isLeftToRightDire
ction() ? logicalLeftOffsetForContent() : logicalWidth() - logicalRightOffsetFor
Content(); } | 253 LayoutUnit startOffsetForContent() const { return style()->isLeftToRightDire
ction() ? logicalLeftOffsetForContent() : logicalWidth() - logicalRightOffsetFor
Content(); } |
254 LayoutUnit endOffsetForContent() const { return !style()->isLeftToRightDirec
tion() ? logicalLeftOffsetForContent() : logicalWidth() - logicalRightOffsetForC
ontent(); } | 254 LayoutUnit endOffsetForContent() const { return !style()->isLeftToRightDirec
tion() ? logicalLeftOffsetForContent() : logicalWidth() - logicalRightOffsetForC
ontent(); } |
255 | 255 |
| 256 #if ENABLE(ASSERT) |
| 257 void checkPositionedObjectsNeedLayout(); |
| 258 #endif |
256 #ifndef NDEBUG | 259 #ifndef NDEBUG |
257 void checkPositionedObjectsNeedLayout(); | |
258 void showLineTreeAndMark(const InlineBox* = 0, const char* = 0, const Inline
Box* = 0, const char* = 0, const RenderObject* = 0) const; | 260 void showLineTreeAndMark(const InlineBox* = 0, const char* = 0, const Inline
Box* = 0, const char* = 0, const RenderObject* = 0) const; |
259 #endif | 261 #endif |
260 | 262 |
261 // inline-block elements paint all phases atomically. This function ensures
that. Certain other elements | 263 // inline-block elements paint all phases atomically. This function ensures
that. Certain other elements |
262 // (grid items, flex items) require this behavior as well, and this function
exists as a helper for them. | 264 // (grid items, flex items) require this behavior as well, and this function
exists as a helper for them. |
263 // It is expected that the caller will call this function independent of the
value of paintInfo.phase. | 265 // It is expected that the caller will call this function independent of the
value of paintInfo.phase. |
264 static void paintAsInlineBlock(RenderObject*, PaintInfo&, const LayoutPoint&
); | 266 static void paintAsInlineBlock(RenderObject*, PaintInfo&, const LayoutPoint&
); |
265 | 267 |
266 bool recalcChildOverflowAfterStyleChange(); | 268 bool recalcChildOverflowAfterStyleChange(); |
267 bool recalcOverflowAfterStyleChange(); | 269 bool recalcOverflowAfterStyleChange(); |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
539 // FIXME: This is temporary as we move code that accesses block flow | 541 // FIXME: This is temporary as we move code that accesses block flow |
540 // member variables out of RenderBlock and into RenderBlockFlow. | 542 // member variables out of RenderBlock and into RenderBlockFlow. |
541 friend class RenderBlockFlow; | 543 friend class RenderBlockFlow; |
542 }; | 544 }; |
543 | 545 |
544 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock()); | 546 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock()); |
545 | 547 |
546 } // namespace WebCore | 548 } // namespace WebCore |
547 | 549 |
548 #endif // RenderBlock_h | 550 #endif // RenderBlock_h |
OLD | NEW |