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 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 ////////////////////////////////////////// | 294 ////////////////////////////////////////// |
295 private: | 295 private: |
296 #if ENABLE(ASSERT) | 296 #if ENABLE(ASSERT) |
297 bool isSetNeedsLayoutForbidden() const { return m_setNeedsLayoutForbidden; } | 297 bool isSetNeedsLayoutForbidden() const { return m_setNeedsLayoutForbidden; } |
298 void setNeedsLayoutIsForbidden(bool flag) { m_setNeedsLayoutForbidden = flag
; } | 298 void setNeedsLayoutIsForbidden(bool flag) { m_setNeedsLayoutForbidden = flag
; } |
299 #endif | 299 #endif |
300 | 300 |
301 void addAbsoluteRectForLayer(LayoutRect& result); | 301 void addAbsoluteRectForLayer(LayoutRect& result); |
302 bool requiresAnonymousTableWrappers(const RenderObject*) const; | 302 bool requiresAnonymousTableWrappers(const RenderObject*) const; |
303 | 303 |
| 304 // This renderer has column-span:all, but is it really a valid column spanne
r? |
| 305 bool isValidColumnSpanAll() const; |
| 306 |
304 // Gets pseudoStyle from Shadow host(in case of input elements) | 307 // Gets pseudoStyle from Shadow host(in case of input elements) |
305 // or from Parent element. | 308 // or from Parent element. |
306 PassRefPtr<RenderStyle> getUncachedPseudoStyleFromParentOrShadowHost() const
; | 309 PassRefPtr<RenderStyle> getUncachedPseudoStyleFromParentOrShadowHost() const
; |
307 | 310 |
308 bool skipInvalidationWhenLaidOutChildren() const; | 311 bool skipInvalidationWhenLaidOutChildren() const; |
309 | 312 |
310 public: | 313 public: |
311 #ifndef NDEBUG | 314 #ifndef NDEBUG |
312 void showTreeForThis() const; | 315 void showTreeForThis() const; |
313 void showRenderTreeForThis() const; | 316 void showRenderTreeForThis() const; |
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
628 void clearNode() { m_node = nullptr; } | 631 void clearNode() { m_node = nullptr; } |
629 | 632 |
630 // Returns the styled node that caused the generation of this renderer. | 633 // Returns the styled node that caused the generation of this renderer. |
631 // This is the same as node() except for renderers of :before and :after | 634 // This is the same as node() except for renderers of :before and :after |
632 // pseudo elements for which their parent node is returned. | 635 // pseudo elements for which their parent node is returned. |
633 Node* generatingNode() const { return isPseudoElement() ? node()->parentOrSh
adowHostNode() : node(); } | 636 Node* generatingNode() const { return isPseudoElement() ? node()->parentOrSh
adowHostNode() : node(); } |
634 | 637 |
635 Document& document() const { return m_node->document(); } | 638 Document& document() const { return m_node->document(); } |
636 LocalFrame* frame() const { return document().frame(); } | 639 LocalFrame* frame() const { return document().frame(); } |
637 | 640 |
| 641 bool isColumnSpanAll() const { return style()->columnSpan() == ColumnSpanAll
&& isValidColumnSpanAll(); } |
| 642 |
638 // Returns the object containing this one. Can be different from parent for
positioned elements. | 643 // Returns the object containing this one. Can be different from parent for
positioned elements. |
639 // If paintInvalidationContainer and paintInvalidationContainerSkipped are n
ot null, on return *paintInvalidationContainerSkipped | 644 // If paintInvalidationContainer and paintInvalidationContainerSkipped are n
ot null, on return *paintInvalidationContainerSkipped |
640 // is true if the renderer returned is an ancestor of paintInvalidationConta
iner. | 645 // is true if the renderer returned is an ancestor of paintInvalidationConta
iner. |
641 RenderObject* container(const RenderLayerModelObject* paintInvalidationConta
iner = 0, bool* paintInvalidationContainerSkipped = 0) const; | 646 RenderObject* container(const RenderLayerModelObject* paintInvalidationConta
iner = 0, bool* paintInvalidationContainerSkipped = 0) const; |
642 RenderBlock* containerForFixedPosition(const RenderLayerModelObject* paintIn
validationContainer = 0, bool* paintInvalidationContainerSkipped = 0) const; | 647 RenderBlock* containerForFixedPosition(const RenderLayerModelObject* paintIn
validationContainer = 0, bool* paintInvalidationContainerSkipped = 0) const; |
643 | 648 |
644 virtual RenderObject* hoverAncestor() const { return parent(); } | 649 virtual RenderObject* hoverAncestor() const { return parent(); } |
645 | 650 |
646 Element* offsetParent() const; | 651 Element* offsetParent() const; |
647 | 652 |
(...skipping 966 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1614 void showTree(const blink::RenderObject*); | 1619 void showTree(const blink::RenderObject*); |
1615 void showLineTree(const blink::RenderObject*); | 1620 void showLineTree(const blink::RenderObject*); |
1616 void showRenderTree(const blink::RenderObject* object1); | 1621 void showRenderTree(const blink::RenderObject* object1); |
1617 // We don't make object2 an optional parameter so that showRenderTree | 1622 // We don't make object2 an optional parameter so that showRenderTree |
1618 // can be called from gdb easily. | 1623 // can be called from gdb easily. |
1619 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec
t* object2); | 1624 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec
t* object2); |
1620 | 1625 |
1621 #endif | 1626 #endif |
1622 | 1627 |
1623 #endif // RenderObject_h | 1628 #endif // RenderObject_h |
OLD | NEW |