| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "SnapCoordinator.h" | 5 #include "SnapCoordinator.h" |
| 6 | 6 |
| 7 #include "core/dom/Element.h" | 7 #include "core/dom/Element.h" |
| 8 #include "core/dom/Node.h" | 8 #include "core/dom/Node.h" |
| 9 #include "core/dom/NodeComputedStyle.h" | 9 #include "core/dom/NodeComputedStyle.h" |
| 10 #include "core/layout/LayoutBlock.h" | 10 #include "core/layout/LayoutBlock.h" |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 #ifndef NDEBUG | 150 #ifndef NDEBUG |
| 151 | 151 |
| 152 void SnapCoordinator::showSnapAreaMap() | 152 void SnapCoordinator::showSnapAreaMap() |
| 153 { | 153 { |
| 154 for (auto& container : m_snapContainers) | 154 for (auto& container : m_snapContainers) |
| 155 showSnapAreasFor(container); | 155 showSnapAreasFor(container); |
| 156 } | 156 } |
| 157 | 157 |
| 158 void SnapCoordinator::showSnapAreasFor(const LayoutBox* container) | 158 void SnapCoordinator::showSnapAreasFor(const LayoutBox* container) |
| 159 { | 159 { |
| 160 const char* prefix = " "; | 160 LOG(INFO) << *container->node(); |
| 161 container->node()->showNode(); | |
| 162 if (SnapAreaSet* snapAreas = container->snapAreas()) { | 161 if (SnapAreaSet* snapAreas = container->snapAreas()) { |
| 163 for (auto& snapArea : *snapAreas) { | 162 for (auto& snapArea : *snapAreas) { |
| 164 snapArea->node()->showNode(prefix); | 163 LOG(INFO) << " " << *snapArea->node(); |
| 165 } | 164 } |
| 166 } | 165 } |
| 167 } | 166 } |
| 168 | 167 |
| 169 #endif | 168 #endif |
| 170 | 169 |
| 171 } // namespace blink | 170 } // namespace blink |
| OLD | NEW |