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

Issue 2905733003: Remove WTFLogAlways() usages from core/layout/

Created:
3 years, 7 months ago by mrunal
Modified:
3 years, 3 months ago
CC:
blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove WTFLogAlways() usages from core/layout/ In LayoutObject.cpp replace with LOG(INFO) instead. In LayoutGeomteryMap.cpp remove the conditional #define LAYOUT_GEOMETRY_MAP_LOGGING altogether as the code is unmaintainable. BUG=638849

Patch Set 1 #

Total comments: 22
Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -23 lines) Patch
M third_party/WebKit/Source/core/layout/LayoutGeometryMap.cpp View 3 chunks +0 lines, -17 lines 5 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.cpp View 3 chunks +7 lines, -6 lines 17 comments Download

Messages

Total messages: 15 (7 generated)
mrunal
tkent/fs, can you PTAL?
3 years, 6 months ago (2017-06-14 19:01:28 UTC) #7
fs
https://codereview.chromium.org/2905733003/diff/1/third_party/WebKit/Source/core/layout/LayoutGeometryMap.cpp File third_party/WebKit/Source/core/layout/LayoutGeometryMap.cpp (left): https://codereview.chromium.org/2905733003/diff/1/third_party/WebKit/Source/core/layout/LayoutGeometryMap.cpp#oldcode33 third_party/WebKit/Source/core/layout/LayoutGeometryMap.cpp:33: #define LAYOUT_GEOMETRY_MAP_LOGGING 0 "...as the code is unmaintainable." I'm ...
3 years, 6 months ago (2017-06-14 20:14:20 UTC) #8
tkent
Please refer to Node.cpp. It has very similar tree-aware debug logging code. https://codereview.chromium.org/2905733003/diff/1/third_party/WebKit/Source/core/layout/LayoutGeometryMap.cpp File third_party/WebKit/Source/core/layout/LayoutGeometryMap.cpp ...
3 years, 6 months ago (2017-06-14 23:41:40 UTC) #9
mrunal
https://codereview.chromium.org/2905733003/diff/1/third_party/WebKit/Source/core/layout/LayoutGeometryMap.cpp File third_party/WebKit/Source/core/layout/LayoutGeometryMap.cpp (left): https://codereview.chromium.org/2905733003/diff/1/third_party/WebKit/Source/core/layout/LayoutGeometryMap.cpp#oldcode33 third_party/WebKit/Source/core/layout/LayoutGeometryMap.cpp:33: #define LAYOUT_GEOMETRY_MAP_LOGGING 0 On 2017/06/14 20:14:19, fs wrote: > ...
3 years, 6 months ago (2017-06-19 22:10:57 UTC) #10
tkent
https://codereview.chromium.org/2905733003/diff/1/third_party/WebKit/Source/core/layout/LayoutObject.cpp File third_party/WebKit/Source/core/layout/LayoutObject.cpp (right): https://codereview.chromium.org/2905733003/diff/1/third_party/WebKit/Source/core/layout/LayoutObject.cpp#newcode1358 third_party/WebKit/Source/core/layout/LayoutObject.cpp:1358: LOG(INFO) << "\n" On 2017/06/19 at 22:10:57, mrunal wrote: ...
3 years, 6 months ago (2017-06-20 02:36:24 UTC) #11
fs
https://codereview.chromium.org/2905733003/diff/1/third_party/WebKit/Source/core/layout/LayoutGeometryMap.cpp File third_party/WebKit/Source/core/layout/LayoutGeometryMap.cpp (left): https://codereview.chromium.org/2905733003/diff/1/third_party/WebKit/Source/core/layout/LayoutGeometryMap.cpp#oldcode33 third_party/WebKit/Source/core/layout/LayoutGeometryMap.cpp:33: #define LAYOUT_GEOMETRY_MAP_LOGGING 0 On 2017/06/19 at 22:10:57, mrunal wrote: ...
3 years, 6 months ago (2017-06-20 08:24:35 UTC) #12
mstensho (USE GERRIT)
https://codereview.chromium.org/2905733003/diff/1/third_party/WebKit/Source/core/layout/LayoutObject.cpp File third_party/WebKit/Source/core/layout/LayoutObject.cpp (right): https://codereview.chromium.org/2905733003/diff/1/third_party/WebKit/Source/core/layout/LayoutObject.cpp#newcode1362 third_party/WebKit/Source/core/layout/LayoutObject.cpp:1362: LOG(INFO) << "\n" << string_builder.ToString().Utf8().data(); Changing from WTFLogAlways() to ...
3 years, 6 months ago (2017-06-20 08:49:40 UTC) #14
gyuyoung
3 years, 3 months ago (2017-09-04 03:09:54 UTC) #15
On 2017/06/20 08:49:40, mstensho (USE GERRIT) wrote:
>
https://codereview.chromium.org/2905733003/diff/1/third_party/WebKit/Source/c...
> File third_party/WebKit/Source/core/layout/LayoutObject.cpp (right):
> 
>
https://codereview.chromium.org/2905733003/diff/1/third_party/WebKit/Source/c...
> third_party/WebKit/Source/core/layout/LayoutObject.cpp:1362: LOG(INFO) << "\n"
> << string_builder.ToString().Utf8().data();
> Changing from WTFLogAlways() to LOG() introduces a lot of noise! For example,
I
> often dump the layout tree from gdb, by calling showLayoutTree().
> 
> <!DOCTYPE html>
> <div>Hello world</div>
> 
> Used to look like this:
> *LayoutView 0x26c7bd004010             	#document
>   LayoutBlockFlow 0x26c7bd010010       	HTML
>     LayoutBlockFlow 0x26c7bd010138     	BODY
>       LayoutBlockFlow 0x26c7bd010260   	DIV
>         LayoutText 0x26c7bd01c0d8      	#text "Hello world"
> 
> Now it looks like this:
> [26238:26267:0620/104440.297233:4051463759306:INFO:LayoutObject.cpp(1359)] 
> *LayoutView 0x2ffe3a804010             	#document
> [26238:26267:0620/104440.297341:4051463759411:INFO:LayoutObject.cpp(1359)] 
>   LayoutBlockFlow 0x2ffe3a810010       	HTML
> [26238:26267:0620/104440.297401:4051463759470:INFO:LayoutObject.cpp(1359)] 
>     LayoutBlockFlow 0x2ffe3a810138     	BODY
> [26238:26267:0620/104440.297456:4051463759524:INFO:LayoutObject.cpp(1359)] 
>       LayoutBlockFlow 0x2ffe3a8104b0   	DIV
> [26238:26267:0620/104440.297508:4051463759577:INFO:LayoutObject.cpp(1359)] 
>         LayoutText 0x2ffe3a81c588      	#text "Hello world"
> 
> I.e. unreadable. I don't like this at all! Can we get rid of the noise
somehow?

@mrunal, any update on it ?

Powered by Google App Engine
This is Rietveld 408576698