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 Apple Inc. All rights
reserved. | 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 class InlineFlowBox; | 52 class InlineFlowBox; |
53 class OverlapTestRequestClient; | 53 class OverlapTestRequestClient; |
54 class Path; | 54 class Path; |
55 class Position; | 55 class Position; |
56 class RenderBoxModelObject; | 56 class RenderBoxModelObject; |
57 class RenderInline; | 57 class RenderInline; |
58 class RenderBlock; | 58 class RenderBlock; |
59 class RenderFlowThread; | 59 class RenderFlowThread; |
60 class RenderGeometryMap; | 60 class RenderGeometryMap; |
61 class RenderLayer; | 61 class RenderLayer; |
| 62 class RenderNamedFlowThread; |
62 class RenderTable; | 63 class RenderTable; |
63 class RenderTheme; | 64 class RenderTheme; |
64 class TransformState; | 65 class TransformState; |
65 class VisiblePosition; | 66 class VisiblePosition; |
66 #if ENABLE(SVG) | 67 #if ENABLE(SVG) |
67 class RenderSVGResourceContainer; | 68 class RenderSVGResourceContainer; |
68 #endif | 69 #endif |
69 | 70 |
70 struct PaintInfo; | 71 struct PaintInfo; |
71 | 72 |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 // Scrolling is a RenderBox concept, however some code just cares about recu
rsively scrolling our enclosing ScrollableArea(s). | 220 // Scrolling is a RenderBox concept, however some code just cares about recu
rsively scrolling our enclosing ScrollableArea(s). |
220 bool scrollRectToVisible(const LayoutRect&, const ScrollAlignment& alignX =
ScrollAlignment::alignCenterIfNeeded, const ScrollAlignment& alignY = ScrollAlig
nment::alignCenterIfNeeded); | 221 bool scrollRectToVisible(const LayoutRect&, const ScrollAlignment& alignX =
ScrollAlignment::alignCenterIfNeeded, const ScrollAlignment& alignY = ScrollAlig
nment::alignCenterIfNeeded); |
221 | 222 |
222 // Convenience function for getting to the nearest enclosing box of a Render
Object. | 223 // Convenience function for getting to the nearest enclosing box of a Render
Object. |
223 RenderBox* enclosingBox() const; | 224 RenderBox* enclosingBox() const; |
224 RenderBoxModelObject* enclosingBoxModelObject() const; | 225 RenderBoxModelObject* enclosingBoxModelObject() const; |
225 | 226 |
226 // Function to return our enclosing flow thread if we are contained inside o
ne. | 227 // Function to return our enclosing flow thread if we are contained inside o
ne. |
227 RenderFlowThread* enclosingRenderFlowThread() const; | 228 RenderFlowThread* enclosingRenderFlowThread() const; |
228 | 229 |
| 230 RenderNamedFlowThread* enclosingRenderNamedFlowThread() const; |
| 231 |
229 virtual bool isEmpty() const { return firstChild() == 0; } | 232 virtual bool isEmpty() const { return firstChild() == 0; } |
230 | 233 |
231 #ifndef NDEBUG | 234 #ifndef NDEBUG |
232 void setHasAXObject(bool flag) { m_hasAXObject = flag; } | 235 void setHasAXObject(bool flag) { m_hasAXObject = flag; } |
233 bool hasAXObject() const { return m_hasAXObject; } | 236 bool hasAXObject() const { return m_hasAXObject; } |
234 bool isSetNeedsLayoutForbidden() const { return m_setNeedsLayoutForbidden; } | 237 bool isSetNeedsLayoutForbidden() const { return m_setNeedsLayoutForbidden; } |
235 void setNeedsLayoutIsForbidden(bool flag) { m_setNeedsLayoutForbidden = flag
; } | 238 void setNeedsLayoutIsForbidden(bool flag) { m_setNeedsLayoutForbidden = flag
; } |
236 #endif | 239 #endif |
237 | 240 |
238 // Obtains the nearest enclosing block (including this block) that contribut
es a first-line style to our inline | 241 // Obtains the nearest enclosing block (including this block) that contribut
es a first-line style to our inline |
(...skipping 689 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
928 void adjustRectForOutlineAndShadow(LayoutRect&) const; | 931 void adjustRectForOutlineAndShadow(LayoutRect&) const; |
929 | 932 |
930 void clearLayoutRootIfNeeded() const; | 933 void clearLayoutRootIfNeeded() const; |
931 virtual void willBeDestroyed(); | 934 virtual void willBeDestroyed(); |
932 void arenaDelete(RenderArena*, void* objectBase); | 935 void arenaDelete(RenderArena*, void* objectBase); |
933 | 936 |
934 virtual LayoutRect outlineBoundsForRepaint(RenderBoxModelObject* /*repaintCo
ntainer*/, LayoutPoint* /*cachedOffsetToRepaintContainer*/ = 0) const { return L
ayoutRect(); } | 937 virtual LayoutRect outlineBoundsForRepaint(RenderBoxModelObject* /*repaintCo
ntainer*/, LayoutPoint* /*cachedOffsetToRepaintContainer*/ = 0) const { return L
ayoutRect(); } |
935 | 938 |
936 virtual bool canBeReplacedWithInlineRunIn() const; | 939 virtual bool canBeReplacedWithInlineRunIn() const; |
937 | 940 |
| 941 virtual void insertedIntoTree(); |
| 942 |
938 private: | 943 private: |
939 RenderStyle* firstLineStyleSlowCase() const; | 944 RenderStyle* firstLineStyleSlowCase() const; |
940 StyleDifference adjustStyleDifference(StyleDifference, unsigned contextSensi
tiveProperties) const; | 945 StyleDifference adjustStyleDifference(StyleDifference, unsigned contextSensi
tiveProperties) const; |
941 | 946 |
942 Color selectionColor(int colorProperty) const; | 947 Color selectionColor(int colorProperty) const; |
943 | 948 |
944 #ifndef NDEBUG | 949 #ifndef NDEBUG |
945 void checkBlockPositionedObjectsNeedLayout(); | 950 void checkBlockPositionedObjectsNeedLayout(); |
946 #endif | 951 #endif |
947 | 952 |
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1230 // Outside the WebCore namespace for ease of invocation from gdb. | 1235 // Outside the WebCore namespace for ease of invocation from gdb. |
1231 void showTree(const WebCore::RenderObject*); | 1236 void showTree(const WebCore::RenderObject*); |
1232 void showLineTree(const WebCore::RenderObject*); | 1237 void showLineTree(const WebCore::RenderObject*); |
1233 void showRenderTree(const WebCore::RenderObject* object1); | 1238 void showRenderTree(const WebCore::RenderObject* object1); |
1234 // We don't make object2 an optional parameter so that showRenderTree | 1239 // We don't make object2 an optional parameter so that showRenderTree |
1235 // can be called from gdb easily. | 1240 // can be called from gdb easily. |
1236 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO
bject* object2); | 1241 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO
bject* object2); |
1237 #endif | 1242 #endif |
1238 | 1243 |
1239 #endif // RenderObject_h | 1244 #endif // RenderObject_h |
OLD | NEW |