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

Side by Side Diff: Source/core/layout/TracedLayoutObject.h

Issue 1305043007: Don't trace LayoutObject geometry prior to running layout. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef TracedLayoutObject_h 5 #ifndef TracedLayoutObject_h
6 #define TracedLayoutObject_h 6 #define TracedLayoutObject_h
7 7
8 #include "platform/EventTracer.h" 8 #include "platform/EventTracer.h"
9 #include "platform/geometry/LayoutRect.h" 9 #include "platform/geometry/LayoutRect.h"
10 #include "wtf/Vector.h" 10 #include "wtf/Vector.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class JSONObject; 14 class JSONObject;
15 class LayoutObject; 15 class LayoutObject;
16 class LayoutView; 16 class LayoutView;
17 17
18 class TracedLayoutObject : public TraceEvent::ConvertableToTraceFormat { 18 class TracedLayoutObject : public TraceEvent::ConvertableToTraceFormat {
19 WTF_MAKE_NONCOPYABLE(TracedLayoutObject); 19 WTF_MAKE_NONCOPYABLE(TracedLayoutObject);
20 public: 20 public:
21 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> create(const LayoutV iew&); 21 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> create(const LayoutV iew&, bool traceGeometry = true);
22 22
23 String asTraceFormat() const override; 23 String asTraceFormat() const override;
24 24
25 private: 25 private:
26 explicit TracedLayoutObject(const LayoutObject&); 26 explicit TracedLayoutObject(const LayoutObject&, bool traceGeometry, bool tr aceGeometry);
27 27
28 PassRefPtr<JSONObject> toJSON() const; 28 PassRefPtr<JSONObject> toJSON() const;
29 29
30 unsigned long m_address; 30 unsigned long m_address;
31 bool m_isAnonymous; 31 bool m_isAnonymous;
32 bool m_isPositioned; 32 bool m_isPositioned;
33 bool m_isRelPositioned; 33 bool m_isRelPositioned;
34 bool m_isStickyPositioned; 34 bool m_isStickyPositioned;
35 bool m_isFloating; 35 bool m_isFloating;
36 bool m_selfNeeds; 36 bool m_selfNeeds;
(...skipping 10 matching lines...) Expand all
47 unsigned m_row; 47 unsigned m_row;
48 unsigned m_col; 48 unsigned m_col;
49 unsigned m_rowSpan; 49 unsigned m_rowSpan;
50 unsigned m_colSpan; 50 unsigned m_colSpan;
51 Vector<RefPtr<TracedLayoutObject>> m_children; 51 Vector<RefPtr<TracedLayoutObject>> m_children;
52 }; 52 };
53 53
54 } // namespace blink 54 } // namespace blink
55 55
56 #endif // TracedLayoutObject_h 56 #endif // TracedLayoutObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698