Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutObject.h

Issue 1728313003: Split ImageResourceClient into ResourceClient and ImageResourceObserver [2/2] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit refine. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 215
216 // Returns the name of the layout object. 216 // Returns the name of the layout object.
217 virtual const char* name() const = 0; 217 virtual const char* name() const = 0;
218 218
219 // Returns the decorated name used by run-layout-tests. The name contains th e name of the object 219 // Returns the decorated name used by run-layout-tests. The name contains th e name of the object
220 // along with extra information about the layout object state (e.g. position ing). 220 // along with extra information about the layout object state (e.g. position ing).
221 String decoratedName() const; 221 String decoratedName() const;
222 222
223 // DisplayItemClient methods. 223 // DisplayItemClient methods.
224 LayoutRect visualRect() const override; 224 LayoutRect visualRect() const override;
225 String debugName() const override; 225 String debugName() const final;
226 226
227 LayoutObject* parent() const { return m_parent; } 227 LayoutObject* parent() const { return m_parent; }
228 bool isDescendantOf(const LayoutObject*) const; 228 bool isDescendantOf(const LayoutObject*) const;
229 229
230 LayoutObject* previousSibling() const { return m_previous; } 230 LayoutObject* previousSibling() const { return m_previous; }
231 LayoutObject* nextSibling() const { return m_next; } 231 LayoutObject* nextSibling() const { return m_next; }
232 232
233 LayoutObject* slowFirstChild() const 233 LayoutObject* slowFirstChild() const
234 { 234 {
235 if (const LayoutObjectChildList* children = virtualChildren()) 235 if (const LayoutObjectChildList* children = virtualChildren())
(...skipping 959 matching lines...) Expand 10 before | Expand all | Expand 10 after
1195 virtual bool isCombineText() const { return false; } 1195 virtual bool isCombineText() const { return false; }
1196 1196
1197 virtual int caretMinOffset() const; 1197 virtual int caretMinOffset() const;
1198 virtual int caretMaxOffset() const; 1198 virtual int caretMaxOffset() const;
1199 1199
1200 virtual int previousOffset(int current) const; 1200 virtual int previousOffset(int current) const;
1201 virtual int previousOffsetForBackwardDeletion(int current) const; 1201 virtual int previousOffsetForBackwardDeletion(int current) const;
1202 virtual int nextOffset(int current) const; 1202 virtual int nextOffset(int current) const;
1203 1203
1204 // ImageResourceObserver override. 1204 // ImageResourceObserver override.
1205 void imageChanged(ImageResource*, const IntRect* = nullptr) final; 1205 void imageChanged(bool isNotifyingFinish, ImageResource*, const IntRect* = n ullptr) final;
1206 bool willRenderImage() final; 1206 bool willRenderImage() final;
1207 bool getImageAnimationPolicy(ImageAnimationPolicy&) final; 1207 bool getImageAnimationPolicy(ImageAnimationPolicy&) final;
1208 1208
1209 // Sub-classes that have an associated image need to override this function 1209 // Sub-classes that have an associated image need to override this function
1210 // to get notified of any image change. 1210 // to get notified of any image change.
1211 virtual void imageChanged(WrappedImagePtr, const IntRect* = nullptr) { } 1211 virtual void imageChanged(bool isNotifyingFinish, WrappedImagePtr, const Int Rect* = nullptr) { }
1212 1212
1213 void selectionStartEnd(int& spos, int& epos) const; 1213 void selectionStartEnd(int& spos, int& epos) const;
1214 1214
1215 void remove() 1215 void remove()
1216 { 1216 {
1217 if (parent()) 1217 if (parent())
1218 parent()->removeChild(this); 1218 parent()->removeChild(this);
1219 } 1219 }
1220 1220
1221 bool visibleToHitTestRequest(const HitTestRequest& request) const { return s tyle()->visibility() == VISIBLE && (request.ignorePointerEventsNone() || style() ->pointerEvents() != PE_NONE) && !isInert(); } 1221 bool visibleToHitTestRequest(const HitTestRequest& request) const { return s tyle()->visibility() == VISIBLE && (request.ignorePointerEventsNone() || style() ->pointerEvents() != PE_NONE) && !isInert(); }
(...skipping 920 matching lines...) Expand 10 before | Expand all | Expand 10 after
2142 void showTree(const blink::LayoutObject*); 2142 void showTree(const blink::LayoutObject*);
2143 void showLineTree(const blink::LayoutObject*); 2143 void showLineTree(const blink::LayoutObject*);
2144 void showLayoutTree(const blink::LayoutObject* object1); 2144 void showLayoutTree(const blink::LayoutObject* object1);
2145 // We don't make object2 an optional parameter so that showLayoutTree 2145 // We don't make object2 an optional parameter so that showLayoutTree
2146 // can be called from gdb easily. 2146 // can be called from gdb easily.
2147 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2); 2147 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2);
2148 2148
2149 #endif 2149 #endif
2150 2150
2151 #endif // LayoutObject_h 2151 #endif // LayoutObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698