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 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
525 | 525 |
526 bool isOutOfFlowPositioned() const { return m_bitfields.isOutOfFlowPositione
d(); } // absolute or fixed positioning | 526 bool isOutOfFlowPositioned() const { return m_bitfields.isOutOfFlowPositione
d(); } // absolute or fixed positioning |
527 bool isInFlowPositioned() const { return m_bitfields.isRelPositioned() || m_
bitfields.isStickyPositioned(); } // relative or sticky positioning | 527 bool isInFlowPositioned() const { return m_bitfields.isRelPositioned() || m_
bitfields.isStickyPositioned(); } // relative or sticky positioning |
528 bool isRelPositioned() const { return m_bitfields.isRelPositioned(); } // re
lative positioning | 528 bool isRelPositioned() const { return m_bitfields.isRelPositioned(); } // re
lative positioning |
529 bool isStickyPositioned() const { return m_bitfields.isStickyPositioned(); } | 529 bool isStickyPositioned() const { return m_bitfields.isStickyPositioned(); } |
530 bool isPositioned() const { return m_bitfields.isPositioned(); } | 530 bool isPositioned() const { return m_bitfields.isPositioned(); } |
531 | 531 |
532 bool isText() const { return m_bitfields.isText(); } | 532 bool isText() const { return m_bitfields.isText(); } |
533 bool isBox() const { return m_bitfields.isBox(); } | 533 bool isBox() const { return m_bitfields.isBox(); } |
534 bool isInline() const { return m_bitfields.isInline(); } // inline object | 534 bool isInline() const { return m_bitfields.isInline(); } // inline object |
535 bool isRunIn() const { return style()->display() == RUN_IN; } // run-in obje
ct | |
536 bool isDragging() const { return m_bitfields.isDragging(); } | 535 bool isDragging() const { return m_bitfields.isDragging(); } |
537 bool isReplaced() const { return m_bitfields.isReplaced(); } // a "replaced"
element (see CSS) | 536 bool isReplaced() const { return m_bitfields.isReplaced(); } // a "replaced"
element (see CSS) |
538 bool isHorizontalWritingMode() const { return m_bitfields.horizontalWritingM
ode(); } | 537 bool isHorizontalWritingMode() const { return m_bitfields.horizontalWritingM
ode(); } |
539 | 538 |
540 bool hasLayer() const { return m_bitfields.hasLayer(); } | 539 bool hasLayer() const { return m_bitfields.hasLayer(); } |
541 | 540 |
542 enum BoxDecorationState { | 541 enum BoxDecorationState { |
543 NoBoxDecorations, | 542 NoBoxDecorations, |
544 HasBoxDecorationsAndBackgroundObscurationStatusInvalid, | 543 HasBoxDecorationsAndBackgroundObscurationStatusInvalid, |
545 HasBoxDecorationsAndBackgroundIsKnownToBeObscured, | 544 HasBoxDecorationsAndBackgroundIsKnownToBeObscured, |
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1017 void addPDFURLRect(GraphicsContext*, const LayoutRect&); | 1016 void addPDFURLRect(GraphicsContext*, const LayoutRect&); |
1018 | 1017 |
1019 virtual LayoutRect viewRect() const; | 1018 virtual LayoutRect viewRect() const; |
1020 | 1019 |
1021 void adjustRectForOutlineAndShadow(LayoutRect&) const; | 1020 void adjustRectForOutlineAndShadow(LayoutRect&) const; |
1022 | 1021 |
1023 void clearLayoutRootIfNeeded() const; | 1022 void clearLayoutRootIfNeeded() const; |
1024 virtual void willBeDestroyed(); | 1023 virtual void willBeDestroyed(); |
1025 void postDestroy(); | 1024 void postDestroy(); |
1026 | 1025 |
1027 virtual bool canBeReplacedWithInlineRunIn() const; | |
1028 | |
1029 virtual void insertedIntoTree(); | 1026 virtual void insertedIntoTree(); |
1030 virtual void willBeRemovedFromTree(); | 1027 virtual void willBeRemovedFromTree(); |
1031 | 1028 |
1032 void setDocumentForAnonymous(Document* document) { ASSERT(isAnonymous()); m_
node = document; } | 1029 void setDocumentForAnonymous(Document* document) { ASSERT(isAnonymous()); m_
node = document; } |
1033 | 1030 |
1034 // Add hit-test rects for the render tree rooted at this node to the provide
d collection on a | 1031 // Add hit-test rects for the render tree rooted at this node to the provide
d collection on a |
1035 // per-RenderLayer basis. | 1032 // per-RenderLayer basis. |
1036 // currentLayer must be the enclosing layer, and layerOffset is the current
offset within | 1033 // currentLayer must be the enclosing layer, and layerOffset is the current
offset within |
1037 // this layer. Subclass implementations will add any offset for this rendere
r within it's | 1034 // this layer. Subclass implementations will add any offset for this rendere
r within it's |
1038 // container, so callers should provide only the offset of the container wit
hin it's layer. | 1035 // container, so callers should provide only the offset of the container wit
hin it's layer. |
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1393 void showTree(const WebCore::RenderObject*); | 1390 void showTree(const WebCore::RenderObject*); |
1394 void showLineTree(const WebCore::RenderObject*); | 1391 void showLineTree(const WebCore::RenderObject*); |
1395 void showRenderTree(const WebCore::RenderObject* object1); | 1392 void showRenderTree(const WebCore::RenderObject* object1); |
1396 // We don't make object2 an optional parameter so that showRenderTree | 1393 // We don't make object2 an optional parameter so that showRenderTree |
1397 // can be called from gdb easily. | 1394 // can be called from gdb easily. |
1398 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO
bject* object2); | 1395 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO
bject* object2); |
1399 | 1396 |
1400 #endif | 1397 #endif |
1401 | 1398 |
1402 #endif // RenderObject_h | 1399 #endif // RenderObject_h |
OLD | NEW |