| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "sky/engine/config.h" | |
| 6 #include "sky/engine/core/inspector/InspectorNodeIds.h" | 5 #include "sky/engine/core/inspector/InspectorNodeIds.h" |
| 7 | 6 |
| 8 #include "sky/engine/core/dom/WeakNodeMap.h" | 7 #include "sky/engine/core/dom/WeakNodeMap.h" |
| 9 #include "sky/engine/platform/heap/Handle.h" | 8 #include "sky/engine/platform/heap/Handle.h" |
| 10 | 9 |
| 11 namespace blink { | 10 namespace blink { |
| 12 | 11 |
| 13 static WeakNodeMap& nodeIds() | 12 static WeakNodeMap& nodeIds() |
| 14 { | 13 { |
| 15 DEFINE_STATIC_LOCAL(WeakNodeMap, self, ()); | 14 DEFINE_STATIC_LOCAL(WeakNodeMap, self, ()); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 27 } | 26 } |
| 28 return result; | 27 return result; |
| 29 } | 28 } |
| 30 | 29 |
| 31 Node* InspectorNodeIds::nodeForId(int id) | 30 Node* InspectorNodeIds::nodeForId(int id) |
| 32 { | 31 { |
| 33 return nodeIds().node(id); | 32 return nodeIds().node(id); |
| 34 } | 33 } |
| 35 | 34 |
| 36 } | 35 } |
| OLD | NEW |