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

Side by Side Diff: third_party/WebKit/Source/core/page/scrolling/SnapCoordinator.cpp

Issue 2292843002: Remove WTFLogAlways() usages from core/{dom,editing}/. (Closed)
Patch Set: Created 4 years, 3 months 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
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObject.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObject.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698