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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 | 104 |
105 typedef WTF::HashMap<const RenderLayer*, Vector<LayoutRect> > LayerHitTestRects; | 105 typedef WTF::HashMap<const RenderLayer*, Vector<LayoutRect> > LayerHitTestRects; |
106 | 106 |
107 #ifndef NDEBUG | 107 #ifndef NDEBUG |
108 const int showTreeCharacterOffset = 39; | 108 const int showTreeCharacterOffset = 39; |
109 #endif | 109 #endif |
110 | 110 |
111 // Base class for all rendering tree objects. | 111 // Base class for all rendering tree objects. |
112 class RenderObject : public ImageResourceClient { | 112 class RenderObject : public ImageResourceClient { |
113 friend class RenderBlock; | 113 friend class RenderBlock; |
114 friend class RenderBlockFlow; | |
115 friend class RenderObjectChildList; | 114 friend class RenderObjectChildList; |
116 WTF_MAKE_NONCOPYABLE(RenderObject); | 115 WTF_MAKE_NONCOPYABLE(RenderObject); |
117 public: | 116 public: |
118 // Anonymous objects should pass the document as their node, and they will t
hen automatically be | 117 // Anonymous objects should pass the document as their node, and they will t
hen automatically be |
119 // marked as anonymous in the constructor. | 118 // marked as anonymous in the constructor. |
120 explicit RenderObject(Node*); | 119 explicit RenderObject(Node*); |
121 virtual ~RenderObject(); | 120 virtual ~RenderObject(); |
122 | 121 |
123 virtual const char* renderName() const = 0; | 122 virtual const char* renderName() const = 0; |
124 | 123 |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 void* operator new(size_t); | 252 void* operator new(size_t); |
254 void operator delete(void*); | 253 void operator delete(void*); |
255 #endif | 254 #endif |
256 | 255 |
257 public: | 256 public: |
258 virtual bool isBoxModelObject() const { return false; } | 257 virtual bool isBoxModelObject() const { return false; } |
259 virtual bool isCanvas() const { return false; } | 258 virtual bool isCanvas() const { return false; } |
260 virtual bool isImage() const { return false; } | 259 virtual bool isImage() const { return false; } |
261 virtual bool isInlineBlock() const { return false; } | 260 virtual bool isInlineBlock() const { return false; } |
262 virtual bool isRenderBlock() const { return false; } | 261 virtual bool isRenderBlock() const { return false; } |
263 virtual bool isRenderBlockFlow() const { return false; } | |
264 virtual bool isRenderCustomLayout() const { return false; } | 262 virtual bool isRenderCustomLayout() const { return false; } |
265 virtual bool isRenderParagraph() const { return false; } | 263 virtual bool isRenderParagraph() const { return false; } |
266 virtual bool isRenderImage() const { return false; } | 264 virtual bool isRenderImage() const { return false; } |
267 virtual bool isRenderInline() const { return false; } | 265 virtual bool isRenderInline() const { return false; } |
268 virtual bool isRenderView() const { return false; } | 266 virtual bool isRenderView() const { return false; } |
269 | 267 |
270 bool everHadLayout() const { return m_bitfields.everHadLayout(); } | 268 bool everHadLayout() const { return m_bitfields.everHadLayout(); } |
271 | 269 |
272 bool alwaysCreateLineBoxesForRenderInline() const | 270 bool alwaysCreateLineBoxesForRenderInline() const |
273 { | 271 { |
(...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
889 void showTree(const blink::RenderObject*); | 887 void showTree(const blink::RenderObject*); |
890 void showLineTree(const blink::RenderObject*); | 888 void showLineTree(const blink::RenderObject*); |
891 void showRenderTree(const blink::RenderObject* object1); | 889 void showRenderTree(const blink::RenderObject* object1); |
892 // We don't make object2 an optional parameter so that showRenderTree | 890 // We don't make object2 an optional parameter so that showRenderTree |
893 // can be called from gdb easily. | 891 // can be called from gdb easily. |
894 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec
t* object2); | 892 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec
t* object2); |
895 | 893 |
896 #endif | 894 #endif |
897 | 895 |
898 #endif // SKY_ENGINE_CORE_RENDERING_RENDEROBJECT_H_ | 896 #endif // SKY_ENGINE_CORE_RENDERING_RENDEROBJECT_H_ |
OLD | NEW |