| 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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 | 220 |
| 221 // Returns the name of the layout object. | 221 // Returns the name of the layout object. |
| 222 virtual const char* name() const = 0; | 222 virtual const char* name() const = 0; |
| 223 | 223 |
| 224 // Returns the decorated name used by run-layout-tests. The name contains th
e name of the object | 224 // Returns the decorated name used by run-layout-tests. The name contains th
e name of the object |
| 225 // along with extra information about the layout object state (e.g. position
ing). | 225 // along with extra information about the layout object state (e.g. position
ing). |
| 226 String decoratedName() const; | 226 String decoratedName() const; |
| 227 | 227 |
| 228 // DisplayItemClient methods. | 228 // DisplayItemClient methods. |
| 229 LayoutRect visualRect() const override; | 229 LayoutRect visualRect() const override; |
| 230 String debugName() const override; | 230 String debugName() const final; |
| 231 | 231 |
| 232 LayoutObject* parent() const { return m_parent; } | 232 LayoutObject* parent() const { return m_parent; } |
| 233 bool isDescendantOf(const LayoutObject*) const; | 233 bool isDescendantOf(const LayoutObject*) const; |
| 234 | 234 |
| 235 LayoutObject* previousSibling() const { return m_previous; } | 235 LayoutObject* previousSibling() const { return m_previous; } |
| 236 LayoutObject* nextSibling() const { return m_next; } | 236 LayoutObject* nextSibling() const { return m_next; } |
| 237 | 237 |
| 238 LayoutObject* slowFirstChild() const | 238 LayoutObject* slowFirstChild() const |
| 239 { | 239 { |
| 240 if (const LayoutObjectChildList* children = virtualChildren()) | 240 if (const LayoutObjectChildList* children = virtualChildren()) |
| (...skipping 965 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1206 virtual bool isCombineText() const { return false; } | 1206 virtual bool isCombineText() const { return false; } |
| 1207 | 1207 |
| 1208 virtual int caretMinOffset() const; | 1208 virtual int caretMinOffset() const; |
| 1209 virtual int caretMaxOffset() const; | 1209 virtual int caretMaxOffset() const; |
| 1210 | 1210 |
| 1211 virtual int previousOffset(int current) const; | 1211 virtual int previousOffset(int current) const; |
| 1212 virtual int previousOffsetForBackwardDeletion(int current) const; | 1212 virtual int previousOffsetForBackwardDeletion(int current) const; |
| 1213 virtual int nextOffset(int current) const; | 1213 virtual int nextOffset(int current) const; |
| 1214 | 1214 |
| 1215 // ImageResourceObserver override. | 1215 // ImageResourceObserver override. |
| 1216 void imageChanged(ImageResource*, const IntRect* = nullptr) final; | 1216 void imageChanged(bool isNotifyingFinish, ImageResource*, const IntRect* = n
ullptr) final; |
| 1217 bool willRenderImage() final; | 1217 bool willRenderImage() final; |
| 1218 bool getImageAnimationPolicy(ImageAnimationPolicy&) final; | 1218 bool getImageAnimationPolicy(ImageAnimationPolicy&) final; |
| 1219 | 1219 |
| 1220 // Sub-classes that have an associated image need to override this function | 1220 // Sub-classes that have an associated image need to override this function |
| 1221 // to get notified of any image change. | 1221 // to get notified of any image change. |
| 1222 virtual void imageChanged(WrappedImagePtr, const IntRect* = nullptr) { } | 1222 virtual void imageChanged(bool isNotifyingFinish, WrappedImagePtr, const Int
Rect* = nullptr) { } |
| 1223 | 1223 |
| 1224 void selectionStartEnd(int& spos, int& epos) const; | 1224 void selectionStartEnd(int& spos, int& epos) const; |
| 1225 | 1225 |
| 1226 void remove() | 1226 void remove() |
| 1227 { | 1227 { |
| 1228 if (parent()) | 1228 if (parent()) |
| 1229 parent()->removeChild(this); | 1229 parent()->removeChild(this); |
| 1230 } | 1230 } |
| 1231 | 1231 |
| 1232 bool visibleToHitTestRequest(const HitTestRequest& request) const { return s
tyle()->visibility() == VISIBLE && (request.ignorePointerEventsNone() || style()
->pointerEvents() != PE_NONE) && !isInert(); } | 1232 bool visibleToHitTestRequest(const HitTestRequest& request) const { return s
tyle()->visibility() == VISIBLE && (request.ignorePointerEventsNone() || style()
->pointerEvents() != PE_NONE) && !isInert(); } |
| (...skipping 922 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2155 void showTree(const blink::LayoutObject*); | 2155 void showTree(const blink::LayoutObject*); |
| 2156 void showLineTree(const blink::LayoutObject*); | 2156 void showLineTree(const blink::LayoutObject*); |
| 2157 void showLayoutTree(const blink::LayoutObject* object1); | 2157 void showLayoutTree(const blink::LayoutObject* object1); |
| 2158 // We don't make object2 an optional parameter so that showLayoutTree | 2158 // We don't make object2 an optional parameter so that showLayoutTree |
| 2159 // can be called from gdb easily. | 2159 // can be called from gdb easily. |
| 2160 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec
t* object2); | 2160 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec
t* object2); |
| 2161 | 2161 |
| 2162 #endif | 2162 #endif |
| 2163 | 2163 |
| 2164 #endif // LayoutObject_h | 2164 #endif // LayoutObject_h |
| OLD | NEW |