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/LayoutAnalyzer.h" | 5 #include "core/layout/LayoutAnalyzer.h" |
6 | 6 |
| 7 #include <memory> |
7 #include "core/frame/FrameView.h" | 8 #include "core/frame/FrameView.h" |
8 #include "core/layout/LayoutBlock.h" | 9 #include "core/layout/LayoutBlock.h" |
9 #include "core/layout/LayoutObject.h" | 10 #include "core/layout/LayoutObject.h" |
10 #include "core/layout/LayoutText.h" | 11 #include "core/layout/LayoutText.h" |
11 #include "platform/instrumentation/tracing/TracedValue.h" | 12 #include "platform/instrumentation/tracing/TracedValue.h" |
12 #include <memory> | |
13 | 13 |
14 namespace blink { | 14 namespace blink { |
15 | 15 |
16 LayoutAnalyzer::Scope::Scope(const LayoutObject& o) | 16 LayoutAnalyzer::Scope::Scope(const LayoutObject& o) |
17 : m_layoutObject(o), m_analyzer(o.frameView()->layoutAnalyzer()) { | 17 : m_layoutObject(o), m_analyzer(o.frameView()->layoutAnalyzer()) { |
18 if (m_analyzer) | 18 if (m_analyzer) |
19 m_analyzer->push(o); | 19 m_analyzer->push(o); |
20 } | 20 } |
21 | 21 |
22 LayoutAnalyzer::Scope::~Scope() { | 22 LayoutAnalyzer::Scope::~Scope() { |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 return "CharactersInLayoutObjectsThatAreTextAndCanUseTheSimpleFontCodePat" | 150 return "CharactersInLayoutObjectsThatAreTextAndCanUseTheSimpleFontCodePat" |
151 "h"; | 151 "h"; |
152 case TotalLayoutObjectsThatWereLaidOut: | 152 case TotalLayoutObjectsThatWereLaidOut: |
153 return "TotalLayoutObjectsThatWereLaidOut"; | 153 return "TotalLayoutObjectsThatWereLaidOut"; |
154 } | 154 } |
155 ASSERT_NOT_REACHED(); | 155 ASSERT_NOT_REACHED(); |
156 return ""; | 156 return ""; |
157 } | 157 } |
158 | 158 |
159 } // namespace blink | 159 } // namespace blink |
OLD | NEW |