| OLD | NEW |
| 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 "core/layout/TracedLayoutObject.h" | 5 #include "core/layout/TracedLayoutObject.h" |
| 6 | 6 |
| 7 #include <inttypes.h> |
| 8 #include <memory> |
| 7 #include "core/layout/LayoutInline.h" | 9 #include "core/layout/LayoutInline.h" |
| 8 #include "core/layout/LayoutTableCell.h" | 10 #include "core/layout/LayoutTableCell.h" |
| 9 #include "core/layout/LayoutText.h" | 11 #include "core/layout/LayoutText.h" |
| 10 #include "core/layout/LayoutView.h" | 12 #include "core/layout/LayoutView.h" |
| 11 #include <inttypes.h> | |
| 12 #include <memory> | |
| 13 | 13 |
| 14 namespace blink { | 14 namespace blink { |
| 15 | 15 |
| 16 namespace { | 16 namespace { |
| 17 | 17 |
| 18 void DumpToTracedValue(const LayoutObject& object, | 18 void DumpToTracedValue(const LayoutObject& object, |
| 19 bool trace_geometry, | 19 bool trace_geometry, |
| 20 TracedValue* traced_value) { | 20 TracedValue* traced_value) { |
| 21 traced_value->SetString( | 21 traced_value->SetString( |
| 22 "address", | 22 "address", |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 } // namespace | 110 } // namespace |
| 111 | 111 |
| 112 std::unique_ptr<TracedValue> TracedLayoutObject::Create(const LayoutView& view, | 112 std::unique_ptr<TracedValue> TracedLayoutObject::Create(const LayoutView& view, |
| 113 bool trace_geometry) { | 113 bool trace_geometry) { |
| 114 std::unique_ptr<TracedValue> traced_value = TracedValue::Create(); | 114 std::unique_ptr<TracedValue> traced_value = TracedValue::Create(); |
| 115 DumpToTracedValue(view, trace_geometry, traced_value.get()); | 115 DumpToTracedValue(view, trace_geometry, traced_value.get()); |
| 116 return traced_value; | 116 return traced_value; |
| 117 } | 117 } |
| 118 | 118 |
| 119 } // namespace blink | 119 } // namespace blink |
| OLD | NEW |