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 647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
658 void setHasReflection(bool hasReflection) { m_bitfields.setHasReflection(has
Reflection); } | 658 void setHasReflection(bool hasReflection) { m_bitfields.setHasReflection(has
Reflection); } |
659 | 659 |
660 void scheduleRelayout(); | 660 void scheduleRelayout(); |
661 | 661 |
662 void updateFillImages(const FillLayer*, const FillLayer*); | 662 void updateFillImages(const FillLayer*, const FillLayer*); |
663 void updateImage(StyleImage*, StyleImage*); | 663 void updateImage(StyleImage*, StyleImage*); |
664 void updateShapeImage(const ShapeValue*, const ShapeValue*); | 664 void updateShapeImage(const ShapeValue*, const ShapeValue*); |
665 | 665 |
666 virtual void paint(PaintInfo&, const LayoutPoint&); | 666 virtual void paint(PaintInfo&, const LayoutPoint&); |
667 | 667 |
668 // Recursive function that computes the size and position of this object and
all its descendants. | 668 // Subclasses must reimplement this method to compute the size and position |
669 virtual void layout(); | 669 // of this object and all its descendants. |
| 670 virtual void layout() = 0; |
670 virtual void didLayout(ResourceLoadPriorityOptimizer&); | 671 virtual void didLayout(ResourceLoadPriorityOptimizer&); |
671 virtual void didScroll(ResourceLoadPriorityOptimizer&); | 672 virtual void didScroll(ResourceLoadPriorityOptimizer&); |
672 | 673 |
673 /* This function performs a layout only if one is needed. */ | 674 /* This function performs a layout only if one is needed. */ |
674 void layoutIfNeeded() { if (needsLayout()) layout(); } | 675 void layoutIfNeeded() { if (needsLayout()) layout(); } |
675 | 676 |
676 void forceLayout(); | 677 void forceLayout(); |
677 void forceChildLayout(); | 678 void forceChildLayout(); |
678 | 679 |
679 // True if we can abort layout, leaving a partially laid out tree. | 680 // True if we can abort layout, leaving a partially laid out tree. |
(...skipping 742 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1422 void showTree(const WebCore::RenderObject*); | 1423 void showTree(const WebCore::RenderObject*); |
1423 void showLineTree(const WebCore::RenderObject*); | 1424 void showLineTree(const WebCore::RenderObject*); |
1424 void showRenderTree(const WebCore::RenderObject* object1); | 1425 void showRenderTree(const WebCore::RenderObject* object1); |
1425 // We don't make object2 an optional parameter so that showRenderTree | 1426 // We don't make object2 an optional parameter so that showRenderTree |
1426 // can be called from gdb easily. | 1427 // can be called from gdb easily. |
1427 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO
bject* object2); | 1428 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO
bject* object2); |
1428 | 1429 |
1429 #endif | 1430 #endif |
1430 | 1431 |
1431 #endif // RenderObject_h | 1432 #endif // RenderObject_h |
OLD | NEW |