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

Issue 2553653003: Make ifdefs consistent in WebKit/Source/core/layout/ . (Closed)

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

Description

Make ifdefs consistent in WebKit/Source/core/layout/ . This CL addresses a few problems with #ifdefs: 1) DCHECK requires the presence of variables used in it even if DCHECK_IS_ON() evaluates to 0. Therefore, if debug variable is defined only when DCHECK_IS_ON() is true, its usage must be guarded the same way. 2) If debug method in base class is defined only when DCHECK_IS_ON() is true, its descendants must be guarded with the same check. BUG=666660 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Committed: https://crrev.com/509b031245c26901d8536aff3c6f207469142101 Cr-Commit-Position: refs/heads/master@{#436725}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Update after review. #

Patch Set 3 : Update after review. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -16 lines) Patch
M third_party/WebKit/Source/core/layout/LayoutBox.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.h View 1 3 chunks +9 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.cpp View 1 2 3 chunks +9 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTableSection.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/SubtreeLayoutScope.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/SubtreeLayoutScope.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 18 (11 generated)
Alexander Alekseev
Please review.
4 years ago (2016-12-06 09:48:06 UTC) #3
mstensho (USE GERRIT)
https://codereview.chromium.org/2553653003/diff/1/third_party/WebKit/Source/core/layout/LayoutObject.cpp File third_party/WebKit/Source/core/layout/LayoutObject.cpp (right): https://codereview.chromium.org/2553653003/diff/1/third_party/WebKit/Source/core/layout/LayoutObject.cpp#newcode790 third_party/WebKit/Source/core/layout/LayoutObject.cpp:790: ASSERT(!object->isSetNeedsLayoutForbidden()); DCHECK. Looks like this would look prettier if ...
4 years ago (2016-12-06 09:58:46 UTC) #6
Alexander Alekseev
https://codereview.chromium.org/2553653003/diff/1/third_party/WebKit/Source/core/layout/LayoutObject.cpp File third_party/WebKit/Source/core/layout/LayoutObject.cpp (right): https://codereview.chromium.org/2553653003/diff/1/third_party/WebKit/Source/core/layout/LayoutObject.cpp#newcode790 third_party/WebKit/Source/core/layout/LayoutObject.cpp:790: ASSERT(!object->isSetNeedsLayoutForbidden()); On 2016/12/06 09:58:46, mstensho wrote: > DCHECK. > ...
4 years ago (2016-12-06 10:13:30 UTC) #7
mstensho (USE GERRIT)
lgtm
4 years ago (2016-12-06 10:24:59 UTC) #10
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/2553653003/40001
4 years ago (2016-12-06 21:02:32 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-12-06 21:15:06 UTC) #16
commit-bot: I haz the power
4 years ago (2016-12-06 21:19:10 UTC) #18
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/509b031245c26901d8536aff3c6f207469142101
Cr-Commit-Position: refs/heads/master@{#436725}

Powered by Google App Engine
This is Rietveld 408576698