OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) |
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) | 3 * (C) 2000 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) | 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) |
6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r
ights reserved. | 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r
ights reserved. |
7 * Copyright (C) 2009 Google Inc. All rights reserved. | 7 * Copyright (C) 2009 Google Inc. All rights reserved. |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 class AffineTransform; | 55 class AffineTransform; |
56 class Cursor; | 56 class Cursor; |
57 class DisplayItemList; | 57 class DisplayItemList; |
58 class Document; | 58 class Document; |
59 class HitTestLocation; | 59 class HitTestLocation; |
60 class HitTestResult; | 60 class HitTestResult; |
61 class InlineBox; | 61 class InlineBox; |
62 class Position; | 62 class Position; |
63 class PositionWithAffinity; | 63 class PositionWithAffinity; |
64 class PseudoStyleRequest; | 64 class PseudoStyleRequest; |
65 class RenderBoxModelObject; | 65 class LayoutBoxModelObject; |
66 class RenderBlock; | 66 class RenderBlock; |
67 class LayoutFlowThread; | 67 class LayoutFlowThread; |
68 class LayoutGeometryMap; | 68 class LayoutGeometryMap; |
69 class Layer; | 69 class Layer; |
70 class LayoutLayerModelObject; | 70 class LayoutLayerModelObject; |
71 class LayoutMultiColumnSpannerPlaceholder; | 71 class LayoutMultiColumnSpannerPlaceholder; |
72 class RenderView; | 72 class RenderView; |
73 class TransformState; | 73 class TransformState; |
74 | 74 |
75 struct PaintInfo; | 75 struct PaintInfo; |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 void addLayers(Layer* parentLayer); | 182 void addLayers(Layer* parentLayer); |
183 void removeLayers(Layer* parentLayer); | 183 void removeLayers(Layer* parentLayer); |
184 void moveLayers(Layer* oldParent, Layer* newParent); | 184 void moveLayers(Layer* oldParent, Layer* newParent); |
185 Layer* findNextLayer(Layer* parentLayer, LayoutObject* startPoint, bool chec
kParent = true); | 185 Layer* findNextLayer(Layer* parentLayer, LayoutObject* startPoint, bool chec
kParent = true); |
186 | 186 |
187 // Scrolling is a RenderBox concept, however some code just cares about recu
rsively scrolling our enclosing ScrollableArea(s). | 187 // Scrolling is a RenderBox concept, however some code just cares about recu
rsively scrolling our enclosing ScrollableArea(s). |
188 bool scrollRectToVisible(const LayoutRect&, const ScrollAlignment& alignX =
ScrollAlignment::alignCenterIfNeeded, const ScrollAlignment& alignY = ScrollAlig
nment::alignCenterIfNeeded); | 188 bool scrollRectToVisible(const LayoutRect&, const ScrollAlignment& alignX =
ScrollAlignment::alignCenterIfNeeded, const ScrollAlignment& alignY = ScrollAlig
nment::alignCenterIfNeeded); |
189 | 189 |
190 // Convenience function for getting to the nearest enclosing box of a Layout
Object. | 190 // Convenience function for getting to the nearest enclosing box of a Layout
Object. |
191 RenderBox* enclosingBox() const; | 191 RenderBox* enclosingBox() const; |
192 RenderBoxModelObject* enclosingBoxModelObject() const; | 192 LayoutBoxModelObject* enclosingBoxModelObject() const; |
193 | 193 |
194 RenderBox* enclosingScrollableBox() const; | 194 RenderBox* enclosingScrollableBox() const; |
195 | 195 |
196 // Function to return our enclosing flow thread if we are contained inside o
ne. This | 196 // Function to return our enclosing flow thread if we are contained inside o
ne. This |
197 // function follows the containing block chain. | 197 // function follows the containing block chain. |
198 LayoutFlowThread* flowThreadContainingBlock() const | 198 LayoutFlowThread* flowThreadContainingBlock() const |
199 { | 199 { |
200 if (flowThreadState() == NotInsideFlowThread) | 200 if (flowThreadState() == NotInsideFlowThread) |
201 return 0; | 201 return 0; |
202 return locateFlowThreadContainingBlock(); | 202 return locateFlowThreadContainingBlock(); |
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
509 // RenderBlock having a BLOCK or BOX display. Other classes such as Rend
erTextFragment | 509 // RenderBlock having a BLOCK or BOX display. Other classes such as Rend
erTextFragment |
510 // are not RenderBlocks and will return false. See https://bugs.webkit.o
rg/show_bug.cgi?id=56709. | 510 // are not RenderBlocks and will return false. See https://bugs.webkit.o
rg/show_bug.cgi?id=56709. |
511 return isAnonymous() && (style()->display() == BLOCK || style()->display
() == BOX) && style()->styleType() == NOPSEUDO && isRenderBlock() && !isListMark
er() && !isLayoutFlowThread() && !isLayoutMultiColumnSet() | 511 return isAnonymous() && (style()->display() == BLOCK || style()->display
() == BOX) && style()->styleType() == NOPSEUDO && isRenderBlock() && !isListMark
er() && !isLayoutFlowThread() && !isLayoutMultiColumnSet() |
512 && !isRenderFullScreen() | 512 && !isRenderFullScreen() |
513 && !isRenderFullScreenPlaceholder(); | 513 && !isRenderFullScreenPlaceholder(); |
514 } | 514 } |
515 bool isAnonymousColumnsBlock() const { return style()->specifiesColumns() &&
isAnonymousBlock(); } | 515 bool isAnonymousColumnsBlock() const { return style()->specifiesColumns() &&
isAnonymousBlock(); } |
516 bool isAnonymousColumnSpanBlock() const { return style()->columnSpan() && is
AnonymousBlock(); } | 516 bool isAnonymousColumnSpanBlock() const { return style()->columnSpan() && is
AnonymousBlock(); } |
517 bool isElementContinuation() const { return node() && node()->renderer() !=
this; } | 517 bool isElementContinuation() const { return node() && node()->renderer() !=
this; } |
518 bool isInlineElementContinuation() const { return isElementContinuation() &&
isInline(); } | 518 bool isInlineElementContinuation() const { return isElementContinuation() &&
isInline(); } |
519 virtual RenderBoxModelObject* virtualContinuation() const { return 0; } | 519 virtual LayoutBoxModelObject* virtualContinuation() const { return 0; } |
520 | 520 |
521 bool isFloating() const { return m_bitfields.floating(); } | 521 bool isFloating() const { return m_bitfields.floating(); } |
522 | 522 |
523 bool isOutOfFlowPositioned() const { return m_bitfields.isOutOfFlowPositione
d(); } // absolute or fixed positioning | 523 bool isOutOfFlowPositioned() const { return m_bitfields.isOutOfFlowPositione
d(); } // absolute or fixed positioning |
524 bool isRelPositioned() const { return m_bitfields.isRelPositioned(); } // re
lative positioning | 524 bool isRelPositioned() const { return m_bitfields.isRelPositioned(); } // re
lative positioning |
525 bool isPositioned() const { return m_bitfields.isPositioned(); } | 525 bool isPositioned() const { return m_bitfields.isPositioned(); } |
526 | 526 |
527 bool isText() const { return m_bitfields.isText(); } | 527 bool isText() const { return m_bitfields.isText(); } |
528 bool isBox() const { return m_bitfields.isBox(); } | 528 bool isBox() const { return m_bitfields.isBox(); } |
529 bool isInline() const { return m_bitfields.isInline(); } // inline object | 529 bool isInline() const { return m_bitfields.isInline(); } // inline object |
(...skipping 1102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1632 void showTree(const blink::LayoutObject*); | 1632 void showTree(const blink::LayoutObject*); |
1633 void showLineTree(const blink::LayoutObject*); | 1633 void showLineTree(const blink::LayoutObject*); |
1634 void showRenderTree(const blink::LayoutObject* object1); | 1634 void showRenderTree(const blink::LayoutObject* object1); |
1635 // We don't make object2 an optional parameter so that showRenderTree | 1635 // We don't make object2 an optional parameter so that showRenderTree |
1636 // can be called from gdb easily. | 1636 // can be called from gdb easily. |
1637 void showRenderTree(const blink::LayoutObject* object1, const blink::LayoutObjec
t* object2); | 1637 void showRenderTree(const blink::LayoutObject* object1, const blink::LayoutObjec
t* object2); |
1638 | 1638 |
1639 #endif | 1639 #endif |
1640 | 1640 |
1641 #endif // LayoutObject_h | 1641 #endif // LayoutObject_h |
OLD | NEW |