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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 LayoutUnit marginAfterForChild(const LayoutBoxModelObject& child) const { re
turn child.marginAfter(style()); } | 214 LayoutUnit marginAfterForChild(const LayoutBoxModelObject& child) const { re
turn child.marginAfter(style()); } |
215 LayoutUnit marginStartForChild(const LayoutBoxModelObject& child) const { re
turn child.marginStart(style()); } | 215 LayoutUnit marginStartForChild(const LayoutBoxModelObject& child) const { re
turn child.marginStart(style()); } |
216 LayoutUnit marginEndForChild(const LayoutBoxModelObject& child) const { retu
rn child.marginEnd(style()); } | 216 LayoutUnit marginEndForChild(const LayoutBoxModelObject& child) const { retu
rn child.marginEnd(style()); } |
217 void setMarginStartForChild(LayoutBox& child, LayoutUnit value) const { chil
d.setMarginStart(value, style()); } | 217 void setMarginStartForChild(LayoutBox& child, LayoutUnit value) const { chil
d.setMarginStart(value, style()); } |
218 void setMarginEndForChild(LayoutBox& child, LayoutUnit value) const { child.
setMarginEnd(value, style()); } | 218 void setMarginEndForChild(LayoutBox& child, LayoutUnit value) const { child.
setMarginEnd(value, style()); } |
219 void setMarginBeforeForChild(LayoutBox& child, LayoutUnit value) const { chi
ld.setMarginBefore(value, style()); } | 219 void setMarginBeforeForChild(LayoutBox& child, LayoutUnit value) const { chi
ld.setMarginBefore(value, style()); } |
220 void setMarginAfterForChild(LayoutBox& child, LayoutUnit value) const { chil
d.setMarginAfter(value, style()); } | 220 void setMarginAfterForChild(LayoutBox& child, LayoutUnit value) const { chil
d.setMarginAfter(value, style()); } |
221 LayoutUnit collapsedMarginBeforeForChild(const LayoutBox& child) const; | 221 LayoutUnit collapsedMarginBeforeForChild(const LayoutBox& child) const; |
222 LayoutUnit collapsedMarginAfterForChild(const LayoutBox& child) const; | 222 LayoutUnit collapsedMarginAfterForChild(const LayoutBox& child) const; |
223 | 223 |
224 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes
tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct
ion) override; | 224 virtual bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInCo
ntainer, const LayoutPoint& accumulatedOffset, HitTestAction) override; |
225 | 225 |
226 virtual void scrollbarsChanged(bool /*horizontalScrollbarChanged*/, bool /*v
erticalScrollbarChanged*/) { } | 226 virtual void scrollbarsChanged(bool /*horizontalScrollbarChanged*/, bool /*v
erticalScrollbarChanged*/) { } |
227 | 227 |
228 LayoutUnit availableLogicalWidthForContent() const { return max<LayoutUnit>(
0, logicalRightOffsetForContent() - logicalLeftOffsetForContent()); } | 228 LayoutUnit availableLogicalWidthForContent() const { return max<LayoutUnit>(
0, logicalRightOffsetForContent() - logicalLeftOffsetForContent()); } |
229 LayoutUnit logicalLeftOffsetForContent() const { return isHorizontalWritingM
ode() ? borderLeft() + paddingLeft() : borderTop() + paddingTop(); } | 229 LayoutUnit logicalLeftOffsetForContent() const { return isHorizontalWritingM
ode() ? borderLeft() + paddingLeft() : borderTop() + paddingTop(); } |
230 LayoutUnit logicalRightOffsetForContent() const { return logicalLeftOffsetFo
rContent() + availableLogicalWidth(); } | 230 LayoutUnit logicalRightOffsetForContent() const { return logicalLeftOffsetFo
rContent() + availableLogicalWidth(); } |
231 LayoutUnit startOffsetForContent() const { return style()->isLeftToRightDire
ction() ? logicalLeftOffsetForContent() : logicalWidth() - logicalRightOffsetFor
Content(); } | 231 LayoutUnit startOffsetForContent() const { return style()->isLeftToRightDire
ction() ? logicalLeftOffsetForContent() : logicalWidth() - logicalRightOffsetFor
Content(); } |
232 LayoutUnit endOffsetForContent() const { return !style()->isLeftToRightDirec
tion() ? logicalLeftOffsetForContent() : logicalWidth() - logicalRightOffsetForC
ontent(); } | 232 LayoutUnit endOffsetForContent() const { return !style()->isLeftToRightDirec
tion() ? logicalLeftOffsetForContent() : logicalWidth() - logicalRightOffsetForC
ontent(); } |
233 | 233 |
234 virtual LayoutUnit logicalLeftSelectionOffset(const LayoutBlock* rootBlock,
LayoutUnit position) const; | 234 virtual LayoutUnit logicalLeftSelectionOffset(const LayoutBlock* rootBlock,
LayoutUnit position) const; |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
355 | 355 |
356 void insertIntoTrackedRendererMaps(LayoutBox* descendant, TrackedDescendants
Map*&, TrackedContainerMap*&); | 356 void insertIntoTrackedRendererMaps(LayoutBox* descendant, TrackedDescendants
Map*&, TrackedContainerMap*&); |
357 static void removeFromTrackedRendererMaps(LayoutBox* descendant, TrackedDesc
endantsMap*&, TrackedContainerMap*&); | 357 static void removeFromTrackedRendererMaps(LayoutBox* descendant, TrackedDesc
endantsMap*&, TrackedContainerMap*&); |
358 | 358 |
359 Node* nodeForHitTest() const; | 359 Node* nodeForHitTest() const; |
360 | 360 |
361 bool tryLayoutDoingPositionedMovementOnly(); | 361 bool tryLayoutDoingPositionedMovementOnly(); |
362 | 362 |
363 virtual bool avoidsFloats() const override { return true; } | 363 virtual bool avoidsFloats() const override { return true; } |
364 | 364 |
365 bool hitTestColumns(const HitTestRequest&, HitTestResult&, const HitTestLoca
tion& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction); | 365 bool hitTestColumns(HitTestResult&, const HitTestLocation& locationInContain
er, const LayoutPoint& accumulatedOffset, HitTestAction); |
366 bool hitTestContents(const HitTestRequest&, HitTestResult&, const HitTestLoc
ation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction)
; | 366 bool hitTestContents(HitTestResult&, const HitTestLocation& locationInContai
ner, const LayoutPoint& accumulatedOffset, HitTestAction); |
367 // FIXME-BLOCKFLOW: Remove virtualizaion when all callers have moved to Layo
utBlockFlow | 367 // FIXME-BLOCKFLOW: Remove virtualizaion when all callers have moved to Layo
utBlockFlow |
368 virtual bool hitTestFloats(const HitTestRequest&, HitTestResult&, const HitT
estLocation&, const LayoutPoint&) { return false; } | 368 virtual bool hitTestFloats(HitTestResult&, const HitTestLocation&, const Lay
outPoint&) { return false; } |
369 | 369 |
370 virtual bool isPointInOverflowControl(HitTestResult&, const LayoutPoint& loc
ationInContainer, const LayoutPoint& accumulatedOffset); | 370 virtual bool isPointInOverflowControl(HitTestResult&, const LayoutPoint& loc
ationInContainer, const LayoutPoint& accumulatedOffset); |
371 | 371 |
372 void computeBlockPreferredLogicalWidths(LayoutUnit& minLogicalWidth, LayoutU
nit& maxLogicalWidth) const; | 372 void computeBlockPreferredLogicalWidths(LayoutUnit& minLogicalWidth, LayoutU
nit& maxLogicalWidth) const; |
373 | 373 |
374 // Obtains the nearest enclosing block (including this block) that contribut
es a first-line style to our inline | 374 // Obtains the nearest enclosing block (including this block) that contribut
es a first-line style to our inline |
375 // children. | 375 // children. |
376 virtual LayoutBlock* firstLineBlock() const override; | 376 virtual LayoutBlock* firstLineBlock() const override; |
377 | 377 |
378 virtual LayoutRect rectWithOutlineForPaintInvalidation(const LayoutBoxModelO
bject* paintInvalidationContainer, LayoutUnit outlineWidth, const PaintInvalidat
ionState* = 0) const override final; | 378 virtual LayoutRect rectWithOutlineForPaintInvalidation(const LayoutBoxModelO
bject* paintInvalidationContainer, LayoutUnit outlineWidth, const PaintInvalidat
ionState* = 0) const override final; |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
478 // FIXME: This is temporary as we move code that accesses block flow | 478 // FIXME: This is temporary as we move code that accesses block flow |
479 // member variables out of LayoutBlock and into LayoutBlockFlow. | 479 // member variables out of LayoutBlock and into LayoutBlockFlow. |
480 friend class LayoutBlockFlow; | 480 friend class LayoutBlockFlow; |
481 }; | 481 }; |
482 | 482 |
483 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlock, isLayoutBlock()); | 483 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlock, isLayoutBlock()); |
484 | 484 |
485 } // namespace blink | 485 } // namespace blink |
486 | 486 |
487 #endif // LayoutBlock_h | 487 #endif // LayoutBlock_h |
OLD | NEW |