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

Issue 2770123003: Replace ASSERT with DCHECK in core/layout/ excluding subdirs (Closed)

Created:
3 years, 9 months ago by mrunal
Modified:
3 years, 8 months ago
Reviewers:
tkent, eae
CC:
blink-reviews, blink-reviews-layout_chromium.org, blink-reviews-style_chromium.org, chromium-reviews, eae+blinkwatch, eric.carlson_apple.com, feature-media-reviews_chromium.org, jchaffraix+rendering, jfernandez, leviw+renderwatch, mac-reviews_chromium.org, mlamouri+watch-blink_chromium.org, pdr+renderingwatchlist_chromium.org, Manuel Rego, Srirama, svillar, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Replace ASSERT with DCHECK in core/layout/ excluding subdirs BUG=697685 Review-Url: https://codereview.chromium.org/2770123003 Cr-Commit-Position: refs/heads/master@{#461948} Committed: https://chromium.googlesource.com/chromium/src/+/e2fa2002398888f73a3f1848a34340b37168b31a

Patch Set 1 #

Patch Set 2 : Fix mac build #

Patch Set 3 : Fix ChromeOS build #

Patch Set 4 : Fix incorrect DCHECK_op which caused some layout test failures #

Patch Set 5 : Fix ChromeOS build #

Patch Set 6 : Check if DCHECK is ON in TextAutosizer #

Total comments: 30

Patch Set 7 : Split some DCHECKs and add DCHECK_ops wherever possible #

Unified diffs Side-by-side diffs Delta from patch set Stats (+766 lines, -715 lines) Patch
M third_party/WebKit/Source/core/layout/BidiRunForLine.cpp View 3 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ColumnBalancer.cpp View 6 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/layout/CounterNode.cpp View 1 8 chunks +15 lines, -15 lines 0 comments Download
M third_party/WebKit/Source/core/layout/DepthOrderedLayoutObjectList.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/FloatingObjects.h View 1 1 chunk +9 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/layout/FloatingObjects.cpp View 1 2 3 4 5 6 9 chunks +22 lines, -21 lines 0 comments Download
M third_party/WebKit/Source/core/layout/HitTestRequest.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/HitTestResult.cpp View 4 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ImageQualityController.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutAnalyzer.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBlock.h View 1 3 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBlock.cpp View 1 2 3 4 5 6 22 chunks +36 lines, -33 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp View 1 2 3 4 5 34 chunks +47 lines, -47 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp View 1 2 3 24 chunks +32 lines, -30 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBox.h View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBox.cpp View 1 2 3 4 5 38 chunks +58 lines, -56 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp View 1 9 chunks +13 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutButton.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutCounter.cpp View 11 chunks +11 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutDeprecatedFlexibleBox.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutEmbeddedObject.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutFileUploadControl.cpp View 4 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutFlowThread.cpp View 4 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutFrameSet.h View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutFrameSet.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutGeometryMap.cpp View 1 2 3 4 9 chunks +22 lines, -16 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutGeometryMapStep.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutGrid.cpp View 1 10 chunks +14 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutIFrame.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutImage.cpp View 3 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutImageResource.cpp View 3 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutImageResourceStyleImage.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutInline.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutInline.cpp View 12 chunks +14 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutListBox.cpp View 2 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutListItem.cpp View 1 8 chunks +10 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutListMarker.cpp View 1 4 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutMedia.h View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutMedia.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutMenuList.cpp View 4 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutMultiColumnFlowThread.cpp View 1 32 chunks +46 lines, -46 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutMultiColumnSet.cpp View 1 2 3 4 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutMultiColumnSpannerPlaceholder.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.cpp View 1 2 3 4 5 25 chunks +39 lines, -37 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObjectChildList.cpp View 1 2 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObjectInlines.h View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObjectTest.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutPagedFlowThread.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutPart.cpp View 4 chunks +5 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutQuote.cpp View 1 2 3 4 5 6 4 chunks +15 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutReplaced.cpp View 1 6 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutRuby.cpp View 1 5 chunks +7 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutRubyBase.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutRubyRun.cpp View 6 chunks +10 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutScrollbarPart.h View 1 chunk +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutScrollbarPart.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutSearchField.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutSlider.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutSliderContainer.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTable.h View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTable.cpp View 1 2 3 4 18 chunks +26 lines, -22 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTableCell.h View 1 2 3 4 chunks +8 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTableCell.cpp View 6 chunks +11 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTableCol.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTableRow.h View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTableRow.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTableSection.cpp View 1 2 3 4 20 chunks +35 lines, -29 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutText.cpp View 1 2 3 25 chunks +35 lines, -35 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTextCombine.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTextControl.cpp View 4 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTextControlMultiLine.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTextFragment.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTheme.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutThemeMac.mm View 1 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutThemeTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutView.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutView.cpp View 1 2 3 5 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ListMarkerText.cpp View 1 13 chunks +21 lines, -15 lines 0 comments Download
M third_party/WebKit/Source/core/layout/MultiColumnFragmentainerGroup.cpp View 3 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/layout/PaintContainmentTest.cpp View 3 chunks +7 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ScrollAnchorTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/SubtreeLayoutScope.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/TableLayoutAlgorithmAuto.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/TableLayoutAlgorithmFixed.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/TextAutosizer.cpp View 1 2 3 4 5 20 chunks +33 lines, -26 lines 0 comments Download
M third_party/WebKit/Source/core/layout/TextRunConstructor.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/ViewFragmentationContext.cpp View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 23 (17 generated)
mrunal
eae/tkent can you PTAL? Thanks.
3 years, 8 months ago (2017-04-04 00:09:20 UTC) #7
tkent
https://codereview.chromium.org/2770123003/diff/100001/third_party/WebKit/Source/core/layout/BidiRunForLine.cpp File third_party/WebKit/Source/core/layout/BidiRunForLine.cpp (right): https://codereview.chromium.org/2770123003/diff/100001/third_party/WebKit/Source/core/layout/BidiRunForLine.cpp#newcode113 third_party/WebKit/Source/core/layout/BidiRunForLine.cpp:113: DCHECK(topResolver.position() != endOfLine); Use DCHECK_NE if it doesn't cause ...
3 years, 8 months ago (2017-04-04 01:36:17 UTC) #10
mrunal
PTAL. https://codereview.chromium.org/2770123003/diff/100001/third_party/WebKit/Source/core/layout/BidiRunForLine.cpp File third_party/WebKit/Source/core/layout/BidiRunForLine.cpp (right): https://codereview.chromium.org/2770123003/diff/100001/third_party/WebKit/Source/core/layout/BidiRunForLine.cpp#newcode113 third_party/WebKit/Source/core/layout/BidiRunForLine.cpp:113: DCHECK(topResolver.position() != endOfLine); On 2017/04/04 01:36:16, tkent wrote: ...
3 years, 8 months ago (2017-04-05 00:39:14 UTC) #13
tkent
lgtm
3 years, 8 months ago (2017-04-05 02:30:36 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/2770123003/120001
3 years, 8 months ago (2017-04-05 02:31:19 UTC) #20
commit-bot: I haz the power
3 years, 8 months ago (2017-04-05 02:41:05 UTC) #23
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/e2fa2002398888f73a3f1848a343...

Powered by Google App Engine
This is Rietveld 408576698