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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutGeometryMap.cpp

Issue 2905733003: Remove WTFLogAlways() usages from core/layout/
Patch Set: Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/LayoutGeometryMap.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutGeometryMap.cpp b/third_party/WebKit/Source/core/layout/LayoutGeometryMap.cpp
index bc3df43e016333d71bec27f783beba12ff583776..181c52409ef348b0b25db380574d9783f775a46a 100644
--- a/third_party/WebKit/Source/core/layout/LayoutGeometryMap.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutGeometryMap.cpp
@@ -30,14 +30,6 @@
#include "platform/geometry/TransformState.h"
#include "platform/wtf/AutoReset.h"
-#define LAYOUT_GEOMETRY_MAP_LOGGING 0
fs 2017/06/14 20:14:19 "...as the code is unmaintainable." I'm not sure
mrunal 2017/06/19 22:10:57 The unmaintainable bit is below where LAYOUT_GEOME
fs 2017/06/20 08:24:35 Yes, sure, but that is pretty much the burden of h
-
-#if LAYOUT_GEOMETRY_MAP_LOGGING
-#define LAYOUT_GEOMETRY_MAP_LOG(...) WTFLogAlways(__VA_ARGS__)
tkent 2017/06/14 23:41:39 Such conditional log macros is usually replaced wi
-#else
-#define LAYOUT_GEOMETRY_MAP_LOG(...) ((void)0)
-#endif
-
namespace blink {
LayoutGeometryMap::LayoutGeometryMap(MapCoordinatesFlags flags)
@@ -239,11 +231,6 @@ void LayoutGeometryMap::PushMappingsToAncestor(
ancestor_layer->GetLayoutObject())
: false;
- LAYOUT_GEOMETRY_MAP_LOG(
- "LayoutGeometryMap::pushMappingsToAncestor from layer %p to layer %p, "
- "canConvertInLayerTree=%d\n",
- layer, ancestorLayer, canConvertInLayerTree);
-
if (can_convert_in_layer_tree) {
LayoutPoint layer_offset;
layer->ConvertToLayerCoords(ancestor_layer, layer_offset);
@@ -271,10 +258,6 @@ void LayoutGeometryMap::Push(const LayoutObject* layout_object,
const LayoutSize& offset_from_container,
GeometryInfoFlags flags,
LayoutSize offset_for_fixed_position) {
- LAYOUT_GEOMETRY_MAP_LOG("LayoutGeometryMap::push %p %d,%d isNonUniform=%d\n",
- layoutObject, offsetFromContainer.width().toInt(),
mrunal 2017/06/19 22:10:57 @fs, For example there is no definition for offset
- offsetFromContainer.height().toInt(), isNonUniform);
-
DCHECK_NE(insertion_position_, kNotFound);
DCHECK(!layout_object->IsLayoutView() || !insertion_position_ ||
map_coordinates_flags_ & kTraverseDocumentBoundaries);

Powered by Google App Engine
This is Rietveld 408576698