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 17 matching lines...) Expand all Loading... |
28 | 28 |
29 #include "sky/engine/core/dom/Document.h" | 29 #include "sky/engine/core/dom/Document.h" |
30 #include "sky/engine/core/dom/DocumentLifecycle.h" | 30 #include "sky/engine/core/dom/DocumentLifecycle.h" |
31 #include "sky/engine/core/dom/Element.h" | 31 #include "sky/engine/core/dom/Element.h" |
32 #include "sky/engine/core/editing/TextAffinity.h" | 32 #include "sky/engine/core/editing/TextAffinity.h" |
33 #include "sky/engine/core/fetch/ImageResourceClient.h" | 33 #include "sky/engine/core/fetch/ImageResourceClient.h" |
34 #include "sky/engine/core/html/HTMLElement.h" | 34 #include "sky/engine/core/html/HTMLElement.h" |
35 #include "sky/engine/core/rendering/HitTestRequest.h" | 35 #include "sky/engine/core/rendering/HitTestRequest.h" |
36 #include "sky/engine/core/rendering/PaintPhase.h" | 36 #include "sky/engine/core/rendering/PaintPhase.h" |
37 #include "sky/engine/core/rendering/RenderObjectChildList.h" | 37 #include "sky/engine/core/rendering/RenderObjectChildList.h" |
38 #include "sky/engine/core/rendering/ScrollAlignment.h" | |
39 #include "sky/engine/core/rendering/SubtreeLayoutScope.h" | 38 #include "sky/engine/core/rendering/SubtreeLayoutScope.h" |
40 #include "sky/engine/core/rendering/style/RenderStyle.h" | 39 #include "sky/engine/core/rendering/style/RenderStyle.h" |
41 #include "sky/engine/core/rendering/style/StyleInheritedData.h" | 40 #include "sky/engine/core/rendering/style/StyleInheritedData.h" |
42 #include "sky/engine/platform/geometry/FloatQuad.h" | 41 #include "sky/engine/platform/geometry/FloatQuad.h" |
43 #include "sky/engine/platform/geometry/LayoutRect.h" | 42 #include "sky/engine/platform/geometry/LayoutRect.h" |
44 #include "sky/engine/platform/transforms/TransformationMatrix.h" | 43 #include "sky/engine/platform/transforms/TransformationMatrix.h" |
45 | 44 |
46 namespace blink { | 45 namespace blink { |
47 | 46 |
48 class AffineTransform; | 47 class AffineTransform; |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 | 172 |
174 // The following six functions are used when the render tree hierarchy chang
es to make sure layers get | 173 // The following six functions are used when the render tree hierarchy chang
es to make sure layers get |
175 // properly added and removed. Since containership can be implemented by an
y subclass, and since a hierarchy | 174 // properly added and removed. Since containership can be implemented by an
y subclass, and since a hierarchy |
176 // can contain a mixture of boxes and other object types, these functions ne
ed to be in the base class. | 175 // can contain a mixture of boxes and other object types, these functions ne
ed to be in the base class. |
177 RenderLayer* enclosingLayer() const; | 176 RenderLayer* enclosingLayer() const; |
178 void addLayers(RenderLayer* parentLayer); | 177 void addLayers(RenderLayer* parentLayer); |
179 void removeLayers(RenderLayer* parentLayer); | 178 void removeLayers(RenderLayer* parentLayer); |
180 void moveLayers(RenderLayer* oldParent, RenderLayer* newParent); | 179 void moveLayers(RenderLayer* oldParent, RenderLayer* newParent); |
181 RenderLayer* findNextLayer(RenderLayer* parentLayer, RenderObject* startPoin
t, bool checkParent = true); | 180 RenderLayer* findNextLayer(RenderLayer* parentLayer, RenderObject* startPoin
t, bool checkParent = true); |
182 | 181 |
183 // Scrolling is a RenderBox concept, however some code just cares about recu
rsively scrolling our enclosing ScrollableArea(s). | |
184 bool scrollRectToVisible(const LayoutRect&, const ScrollAlignment& alignX =
ScrollAlignment::alignCenterIfNeeded, const ScrollAlignment& alignY = ScrollAlig
nment::alignCenterIfNeeded); | |
185 | |
186 // Convenience function for getting to the nearest enclosing box of a Render
Object. | 182 // Convenience function for getting to the nearest enclosing box of a Render
Object. |
187 RenderBox* enclosingBox() const; | 183 RenderBox* enclosingBox() const; |
188 RenderBoxModelObject* enclosingBoxModelObject() const; | 184 RenderBoxModelObject* enclosingBoxModelObject() const; |
189 | 185 |
190 RenderBox* enclosingScrollableBox() const; | |
191 | |
192 #if ENABLE(ASSERT) | 186 #if ENABLE(ASSERT) |
193 // Helper class forbidding calls to setNeedsLayout() during its lifetime. | 187 // Helper class forbidding calls to setNeedsLayout() during its lifetime. |
194 class SetLayoutNeededForbiddenScope { | 188 class SetLayoutNeededForbiddenScope { |
195 public: | 189 public: |
196 explicit SetLayoutNeededForbiddenScope(RenderObject&); | 190 explicit SetLayoutNeededForbiddenScope(RenderObject&); |
197 ~SetLayoutNeededForbiddenScope(); | 191 ~SetLayoutNeededForbiddenScope(); |
198 private: | 192 private: |
199 RenderObject& m_renderObject; | 193 RenderObject& m_renderObject; |
200 bool m_preexistingForbidden; | 194 bool m_preexistingForbidden; |
201 }; | 195 }; |
(...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
927 void showTree(const blink::RenderObject*); | 921 void showTree(const blink::RenderObject*); |
928 void showLineTree(const blink::RenderObject*); | 922 void showLineTree(const blink::RenderObject*); |
929 void showRenderTree(const blink::RenderObject* object1); | 923 void showRenderTree(const blink::RenderObject* object1); |
930 // We don't make object2 an optional parameter so that showRenderTree | 924 // We don't make object2 an optional parameter so that showRenderTree |
931 // can be called from gdb easily. | 925 // can be called from gdb easily. |
932 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec
t* object2); | 926 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec
t* object2); |
933 | 927 |
934 #endif | 928 #endif |
935 | 929 |
936 #endif // SKY_ENGINE_CORE_RENDERING_RENDEROBJECT_H_ | 930 #endif // SKY_ENGINE_CORE_RENDERING_RENDEROBJECT_H_ |
OLD | NEW |