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

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

Issue 1407543003: Preliminary paint property walk implementation for SPv2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 25 matching lines...) Expand all
36 #include "core/inspector/InspectorTraceEvents.h" 36 #include "core/inspector/InspectorTraceEvents.h"
37 #include "core/layout/HitTestRequest.h" 37 #include "core/layout/HitTestRequest.h"
38 #include "core/layout/LayoutObjectChildList.h" 38 #include "core/layout/LayoutObjectChildList.h"
39 #include "core/layout/PaintInvalidationState.h" 39 #include "core/layout/PaintInvalidationState.h"
40 #include "core/layout/ScrollAlignment.h" 40 #include "core/layout/ScrollAlignment.h"
41 #include "core/layout/SubtreeLayoutScope.h" 41 #include "core/layout/SubtreeLayoutScope.h"
42 #include "core/layout/api/HitTestAction.h" 42 #include "core/layout/api/HitTestAction.h"
43 #include "core/layout/api/SelectionState.h" 43 #include "core/layout/api/SelectionState.h"
44 #include "core/layout/compositing/CompositingState.h" 44 #include "core/layout/compositing/CompositingState.h"
45 #include "core/layout/compositing/CompositingTriggers.h" 45 #include "core/layout/compositing/CompositingTriggers.h"
46 #include "core/paint/ObjectPaintProperties.h"
46 #include "core/style/ComputedStyle.h" 47 #include "core/style/ComputedStyle.h"
47 #include "core/style/StyleInheritedData.h" 48 #include "core/style/StyleInheritedData.h"
48 #include "platform/geometry/FloatQuad.h" 49 #include "platform/geometry/FloatQuad.h"
49 #include "platform/geometry/LayoutRect.h" 50 #include "platform/geometry/LayoutRect.h"
50 #include "platform/graphics/CompositingReasons.h" 51 #include "platform/graphics/CompositingReasons.h"
51 #include "platform/graphics/PaintInvalidationReason.h" 52 #include "platform/graphics/PaintInvalidationReason.h"
52 #include "platform/graphics/paint/DisplayItemClient.h" 53 #include "platform/graphics/paint/DisplayItemClient.h"
53 #include "platform/transforms/TransformationMatrix.h" 54 #include "platform/transforms/TransformationMatrix.h"
54 55
55 namespace blink { 56 namespace blink {
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 // because only boxes implementing the full box model have a need for them. 173 // because only boxes implementing the full box model have a need for them.
173 // Because LayoutBlockFlow's intrinsic widths rely on the underlying text 174 // Because LayoutBlockFlow's intrinsic widths rely on the underlying text
174 // content, LayoutBlockFlow may call LayoutText::computePreferredLogicalWidths. 175 // content, LayoutBlockFlow may call LayoutText::computePreferredLogicalWidths.
175 // 176 //
176 // The 2 widths are computed lazily during layout when the getters are called. 177 // The 2 widths are computed lazily during layout when the getters are called.
177 // The computation is done by calling computePreferredLogicalWidths() behind the 178 // The computation is done by calling computePreferredLogicalWidths() behind the
178 // scene. The boolean used to control the lazy recomputation is 179 // scene. The boolean used to control the lazy recomputation is
179 // preferredLogicalWidthsDirty. 180 // preferredLogicalWidthsDirty.
180 // 181 //
181 // See the individual getters below for more details about what each width is. 182 // See the individual getters below for more details about what each width is.
182 class CORE_EXPORT LayoutObject : public ImageResourceClient { 183 class CORE_EXPORT LayoutObject : public ImageResourceClient, public ObjectPaintP roperties::Owner {
chrishtr 2015/10/14 17:30:28 We went to great lengths to avoid inheriting from
trchen 2015/10/14 22:51:13 This guy has no virtual functions, it is more like
183 friend class LayoutObjectChildList; 184 friend class LayoutObjectChildList;
184 WTF_MAKE_NONCOPYABLE(LayoutObject); 185 WTF_MAKE_NONCOPYABLE(LayoutObject);
185 public: 186 public:
186 // Anonymous objects should pass the document as their node, and they will t hen automatically be 187 // Anonymous objects should pass the document as their node, and they will t hen automatically be
187 // marked as anonymous in the constructor. 188 // marked as anonymous in the constructor.
188 explicit LayoutObject(Node*); 189 explicit LayoutObject(Node*);
189 ~LayoutObject() override; 190 ~LayoutObject() override;
190 191
191 // Returns the name of the layout object. 192 // Returns the name of the layout object.
192 virtual const char* name() const = 0; 193 virtual const char* name() const = 0;
(...skipping 1813 matching lines...) Expand 10 before | Expand all | Expand 10 after
2006 void showTree(const blink::LayoutObject*); 2007 void showTree(const blink::LayoutObject*);
2007 void showLineTree(const blink::LayoutObject*); 2008 void showLineTree(const blink::LayoutObject*);
2008 void showLayoutTree(const blink::LayoutObject* object1); 2009 void showLayoutTree(const blink::LayoutObject* object1);
2009 // We don't make object2 an optional parameter so that showLayoutTree 2010 // We don't make object2 an optional parameter so that showLayoutTree
2010 // can be called from gdb easily. 2011 // can be called from gdb easily.
2011 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2); 2012 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2);
2012 2013
2013 #endif 2014 #endif
2014 2015
2015 #endif // LayoutObject_h 2016 #endif // LayoutObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698