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

Side by Side Diff: third_party/WebKit/Source/core/layout/TracedLayoutObject.cpp

Issue 1422773008: Fixing remaining VC++ 2015 64-bit build breaks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removing unneeded include Created 5 years 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 // 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 #include "config.h" 5 #include "config.h"
6 #include "core/layout/TracedLayoutObject.h" 6 #include "core/layout/TracedLayoutObject.h"
7 7
8 #include "core/layout/LayoutInline.h" 8 #include "core/layout/LayoutInline.h"
9 #include "core/layout/LayoutTableCell.h" 9 #include "core/layout/LayoutTableCell.h"
10 #include "core/layout/LayoutText.h" 10 #include "core/layout/LayoutText.h"
11 #include "core/layout/LayoutView.h" 11 #include "core/layout/LayoutView.h"
12 #include "platform/JSONValues.h" 12 #include "platform/JSONValues.h"
13 13
14 namespace blink { 14 namespace blink {
15 15
16 PassRefPtr<TraceEvent::ConvertableToTraceFormat> TracedLayoutObject::create(cons t LayoutView& view, bool traceGeometry) 16 PassRefPtr<TraceEvent::ConvertableToTraceFormat> TracedLayoutObject::create(cons t LayoutView& view, bool traceGeometry)
17 { 17 {
18 return adoptRef(new TracedLayoutObject(view, traceGeometry)); 18 return adoptRef(new TracedLayoutObject(view, traceGeometry));
19 } 19 }
20 20
21 String TracedLayoutObject::asTraceFormat() const 21 String TracedLayoutObject::asTraceFormat() const
22 { 22 {
23 StringBuilder builder; 23 StringBuilder builder;
24 RefPtr<JSONObject> json(toJSON()); 24 RefPtr<JSONObject> json(toJSON());
25 json->writeJSON(&builder); 25 json->writeJSON(&builder);
26 return builder.toString(); 26 return builder.toString();
27 } 27 }
28 28
29 TracedLayoutObject::TracedLayoutObject(const LayoutObject& object, bool traceGeo metry) 29 TracedLayoutObject::TracedLayoutObject(const LayoutObject& object, bool traceGeo metry)
30 : m_address((unsigned long) &object) 30 : m_address(reinterpret_cast<uintptr_t>(&object))
31 , m_isAnonymous(object.isAnonymous()) 31 , m_isAnonymous(object.isAnonymous())
32 , m_isPositioned(object.isOutOfFlowPositioned()) 32 , m_isPositioned(object.isOutOfFlowPositioned())
33 , m_isRelPositioned(object.isRelPositioned()) 33 , m_isRelPositioned(object.isRelPositioned())
34 , m_isStickyPositioned(object.isStickyPositioned()) 34 , m_isStickyPositioned(object.isStickyPositioned())
35 , m_isFloating(object.isFloating()) 35 , m_isFloating(object.isFloating())
36 , m_selfNeeds(object.selfNeedsLayout()) 36 , m_selfNeeds(object.selfNeedsLayout())
37 , m_positionedMovement(object.needsPositionedMovementLayout()) 37 , m_positionedMovement(object.needsPositionedMovementLayout())
38 , m_childNeeds(object.normalChildNeedsLayout()) 38 , m_childNeeds(object.normalChildNeedsLayout())
39 , m_posChildNeeds(object.posChildNeedsLayout()) 39 , m_posChildNeeds(object.posChildNeedsLayout())
40 , m_isTableCell(object.isTableCell()) 40 , m_isTableCell(object.isTableCell())
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 RefPtr<JSONArray> children(JSONArray::create()); 136 RefPtr<JSONArray> children(JSONArray::create());
137 for (const auto& child : m_children) { 137 for (const auto& child : m_children) {
138 children->pushObject(child->toJSON()); 138 children->pushObject(child->toJSON());
139 } 139 }
140 json->setArray("children", children); 140 json->setArray("children", children);
141 } 141 }
142 return json.release(); 142 return json.release();
143 } 143 }
144 144
145 } // namespace blink 145 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/TracedLayoutObject.h ('k') | third_party/WebKit/Source/platform/TraceEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698