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

Issue 2763643003: Add operator<< to StyleDifference for debug logging. (Closed)

Created:
3 years, 9 months ago by wkorman
Modified:
3 years, 9 months ago
CC:
blink-reviews, blink-reviews-style_chromium.org, chromium-reviews, suzyh_UTC10 (ex-contributor)
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add operator<< to StyleDifference for debug logging. Similar to http://crrev.com/2732643004. I wanted this while debugging animation related style changes and thought it would be potentially useful for others ongoing. BUG=695125 Review-Url: https://codereview.chromium.org/2763643003 Cr-Commit-Position: refs/heads/master@{#459595} Committed: https://chromium.googlesource.com/chromium/src/+/15eb85b8cb9d52cb79dc37dff7d2cfcd2400e778

Patch Set 1 #

Total comments: 2

Patch Set 2 : Use ref param. #

Total comments: 1

Patch Set 3 : Sync to head. #

Patch Set 4 : Sync to head. #

Patch Set 5 : Add CORE_EXPORT. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+167 lines, -0 lines) Patch
M third_party/WebKit/Source/core/BUILD.gn View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/style/BUILD.gn View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/style/StyleDifference.h View 1 2 3 4 4 chunks +9 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/style/StyleDifference.cpp View 1 2 1 chunk +88 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/style/StyleDifferenceTest.cpp View 1 2 1 chunk +68 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (18 generated)
wkorman
I explored using a mix of FOR_EACH pattern and what we do for DisplayItem::Type (see ...
3 years, 9 months ago (2017-03-20 21:09:06 UTC) #2
Xianzhu
lgtm https://codereview.chromium.org/2763643003/diff/1/third_party/WebKit/Source/core/style/StyleDifference.h File third_party/WebKit/Source/core/style/StyleDifference.h (right): https://codereview.chromium.org/2763643003/diff/1/third_party/WebKit/Source/core/style/StyleDifference.h#newcode162 third_party/WebKit/Source/core/style/StyleDifference.h:162: CORE_EXPORT std::ostream& operator<<(std::ostream&, const StyleDifference); Nit: either 'const ...
3 years, 9 months ago (2017-03-20 21:14:12 UTC) #3
wkorman
https://codereview.chromium.org/2763643003/diff/1/third_party/WebKit/Source/core/style/StyleDifference.h File third_party/WebKit/Source/core/style/StyleDifference.h (right): https://codereview.chromium.org/2763643003/diff/1/third_party/WebKit/Source/core/style/StyleDifference.h#newcode162 third_party/WebKit/Source/core/style/StyleDifference.h:162: CORE_EXPORT std::ostream& operator<<(std::ostream&, const StyleDifference); On 2017/03/20 21:14:11, Xianzhu ...
3 years, 9 months ago (2017-03-20 23:04:29 UTC) #4
suzyh_UTC10 (ex-contributor)
Redirecting as requested: -suzyh +shend
3 years, 9 months ago (2017-03-20 23:33:21 UTC) #7
shend
Rerouting to alancutter for OWNERS.
3 years, 9 months ago (2017-03-20 23:47:29 UTC) #10
alancutter (OOO until 2018)
lgtm https://codereview.chromium.org/2763643003/diff/20001/third_party/WebKit/Source/core/style/StyleDifference.h File third_party/WebKit/Source/core/style/StyleDifference.h (right): https://codereview.chromium.org/2763643003/diff/20001/third_party/WebKit/Source/core/style/StyleDifference.h#newcode8 third_party/WebKit/Source/core/style/StyleDifference.h:8: #include <iosfwd> TIL iosfwd, neat.
3 years, 9 months ago (2017-03-20 23:57:32 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2763643003/40001
3 years, 9 months ago (2017-03-22 23:06:52 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/412725)
3 years, 9 months ago (2017-03-23 00:07:27 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2763643003/60001
3 years, 9 months ago (2017-03-24 19:28:51 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/374544)
3 years, 9 months ago (2017-03-24 20:36:03 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2763643003/80001
3 years, 9 months ago (2017-03-24 21:44:12 UTC) #27
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://chromium.googlesource.com/chromium/src/+/15eb85b8cb9d52cb79dc37dff7d2cfcd2400e778
3 years, 9 months ago (2017-03-24 23:26:02 UTC) #30
hayato
3 years, 9 months ago (2017-03-27 04:53:56 UTC) #31
Message was sent while issue was closed.
A revert of this CL (patchset #5 id:80001) has been created in
https://codereview.chromium.org/2777803002/ by hayato@chromium.org.

The reason for reverting is: Consistent failure: webkit_unit_tests failing on
chromium.webkit/WebKit Android (Nexus4)

WebKit Android (Nexus4) [50 since first detection]
https://uberchromegw.corp.google.com/i/chromium.webkit/builders/WebKit%20Andr...:


The first failure:
-

https://uberchromegw.corp.google.com/i/chromium.webkit/builders/WebKit%20Andr...

Test output:
https://luci-logdog.appspot.com/v/?s=chromium%2Fbb%2Fchromium.webkit%2FWebKit...

C  169.736s Main  [FAIL] StyleDifferenceTest.StreamOutputAllFieldsMutated:
C  169.736s Main  [ RUN      ] StyleDifferenceTest.StreamOutputAllFieldsMutated
C  169.736s Main 
../../third_party/WebKit/Source/core/style/StyleDifferenceTest.cpp:40: Failure
C  169.736s Main  Value of: stringStream.str()
C  169.736s Main    Actual: "StyleDifference{layoutType=PositionedMovement,
paintInvalidationType=PaintInvalidationObject, recomputeOverflow=1,
visualRectUpdate=1,
propertySpecificDifferences=TransformChanged|ScrollAnchorDisablingPropertyChanged}"
C  169.736s Main  Expected: "StyleDifference{layoutType=PositionedMovement, "
"paintInvalidationType=PaintInvalidationObject, recomputeOverflow=1, "
"visualRectUpdate=1, " "propertySpecificDifferences=TransformChanged|"
"ScrollAnchorDisablingPropertyChanged|TransformChanged|"
"ScrollAnchorDisablingPropertyChanged}"
C  169.736s Main  Which is: "StyleDifference{layoutType=PositionedMovement,
paintInvalidationType=PaintInvalidationObject, recomputeOverflow=1,
visualRectUpdate=1,
propertySpecificDifferences=TransformChanged|ScrollAnchorDisablingPropertyChanged|TransformChanged|ScrollAnchorDisablingPropertyChanged}"
.

Powered by Google App Engine
This is Rietveld 408576698