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

Issue 2738863002: Replace ASSERT with DCHECK in core/svg/ (Closed)

Created:
3 years, 9 months ago by mrunal
Modified:
3 years, 9 months ago
Reviewers:
tkent, fs
CC:
darktears, blink-reviews, blink-reviews-animation_chromium.org, chromium-reviews, krit, Eric Willigers, fmalita+watch_chromium.org, fs, gyuyoung2, kouhei+svg_chromium.org, pdr+svgwatchlist_chromium.org, rjwright, rwlbuis, Stephen Chennney, shans
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Replace ASSERT with DCHECK in core/svg/ BUG=697687 Review-Url: https://codereview.chromium.org/2738863002 Cr-Commit-Position: refs/heads/master@{#456946} Committed: https://chromium.googlesource.com/chromium/src/+/24cf3269c241270f97890a977a3989577b2c4d31

Patch Set 1 #

Patch Set 2 : Fix the build #

Patch Set 3 : Convert to unsigned int to satisfy build bots #

Patch Set 4 : Convert more DCHECKs to use unsigned to satisfy trybots #

Patch Set 5 : Rebase patch with latest from master #

Total comments: 5

Patch Set 6 : static_cast<unsigned>(1) > 1u #

Total comments: 18

Patch Set 7 : Split DCHECKS wherever possible #

Unified diffs Side-by-side diffs Delta from patch set Stats (+244 lines, -232 lines) Patch
M third_party/WebKit/Source/core/svg/SVGAngle.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGAnimateMotionElement.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGAnimatedColor.cpp View 4 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGAnimationElement.cpp View 1 2 3 4 5 9 chunks +20 lines, -20 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGBoolean.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/SVGCircleElement.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/SVGDiscardElement.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/SVGDocumentExtensions.cpp View 1 2 3 4 5 chunks +10 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGElement.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/SVGElement.cpp View 1 2 3 4 14 chunks +21 lines, -19 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGElementRareData.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGEllipseElement.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/SVGEnumeration.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/SVGEnumeration.cpp View 1 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGFEBlendElement.cpp View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/SVGFEColorMatrixElement.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/SVGFEComponentTransferElement.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/SVGFECompositeElement.cpp View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/SVGFEConvolveMatrixElement.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/SVGFEDiffuseLightingElement.cpp View 3 chunks +7 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGFEDisplacementMapElement.cpp View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/SVGFEDropShadowElement.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGFEFloodElement.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGFEGaussianBlurElement.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/SVGFEMergeElement.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/SVGFEOffsetElement.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/SVGFESpecularLightingElement.cpp View 3 chunks +7 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGFETileElement.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/SVGGeometryElement.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGInteger.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/SVGIntegerOptionalInteger.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/SVGLength.cpp View 1 4 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGLengthContext.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/SVGLengthList.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGLengthTearOff.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/SVGMPathElement.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/SVGMarkerElement.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/SVGMatrixTearOff.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/SVGNumber.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/SVGNumberOptionalNumber.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/SVGParsingError.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/SVGParsingError.cpp View 1 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGPath.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGPathBlender.cpp View 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGPathByteStreamBuilder.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/SVGPathByteStreamSource.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/SVGPathByteStreamSource.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/SVGPathParser.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/SVGPathQuery.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/SVGPathStringBuilder.cpp View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGPathStringSource.cpp View 1 4 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGPolyElement.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/SVGPreserveAspectRatio.cpp View 1 2 3 4 2 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGRect.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/SVGRectElement.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/SVGSVGElement.cpp View 6 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGStaticStringList.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/SVGString.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/SVGTests.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/SVGTextContentElement.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGTransform.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/SVGTransformDistance.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGTransformList.cpp View 1 2 3 4 5 6 chunks +8 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGURIReference.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/SVGUseElement.cpp View 1 2 3 4 5 6 16 chunks +25 lines, -22 lines 0 comments Download
M third_party/WebKit/Source/core/svg/animation/SMILTimeContainer.cpp View 1 2 3 4 6 chunks +13 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/core/svg/animation/SVGSMILElement.cpp View 1 2 3 4 8 chunks +11 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp View 1 3 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/svg/graphics/filters/SVGFilterBuilder.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/graphics/filters/SVGFilterBuilder.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/svg/properties/SVGAnimatedProperty.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/svg/properties/SVGListPropertyHelper.h View 1 7 chunks +9 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/svg/properties/SVGProperty.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/properties/SVGPropertyTearOff.h View 2 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 31 (20 generated)
mrunal
fs, can you PTAL?
3 years, 9 months ago (2017-03-14 21:34:04 UTC) #12
fs
LGTM w/ nits https://codereview.chromium.org/2738863002/diff/80001/third_party/WebKit/Source/core/svg/SVGAnimationElement.cpp File third_party/WebKit/Source/core/svg/SVGAnimationElement.cpp (right): https://codereview.chromium.org/2738863002/diff/80001/third_party/WebKit/Source/core/svg/SVGAnimationElement.cpp#newcode333 third_party/WebKit/Source/core/svg/SVGAnimationElement.cpp:333: DCHECK_GE(valuesCount, static_cast<unsigned>(1)); Nit: 1u https://codereview.chromium.org/2738863002/diff/80001/third_party/WebKit/Source/core/svg/SVGAnimationElement.cpp#newcode400 third_party/WebKit/Source/core/svg/SVGAnimationElement.cpp:400: ...
3 years, 9 months ago (2017-03-14 21:50:23 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/2738863002/100001
3 years, 9 months ago (2017-03-14 22:15:36 UTC) #16
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/2738863002/100001
3 years, 9 months ago (2017-03-14 22:32:05 UTC) #19
tkent
https://codereview.chromium.org/2738863002/diff/100001/third_party/WebKit/Source/core/svg/SVGFEBlendElement.cpp File third_party/WebKit/Source/core/svg/SVGFEBlendElement.cpp (right): https://codereview.chromium.org/2738863002/diff/100001/third_party/WebKit/Source/core/svg/SVGFEBlendElement.cpp#newcode155 third_party/WebKit/Source/core/svg/SVGFEBlendElement.cpp:155: DCHECK(input1 && input2); Split it to two DCHECKs. DCHECK(input1); ...
3 years, 9 months ago (2017-03-14 22:33:14 UTC) #20
mrunal
Sorry tkent, I jumped the gun on committing the patch. I have made suggested changes ...
3 years, 9 months ago (2017-03-14 23:52:14 UTC) #22
tkent
On 2017/03/14 at 23:52:14, mrunal.kapade wrote: > I have made suggested changes but some encounter ...
3 years, 9 months ago (2017-03-14 23:54:36 UTC) #23
mrunal
On 2017/03/14 23:54:36, tkent wrote: > On 2017/03/14 at 23:52:14, mrunal.kapade wrote: > > I ...
3 years, 9 months ago (2017-03-15 00:11:01 UTC) #24
tkent
lgtm
3 years, 9 months ago (2017-03-15 00:16:21 UTC) #25
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/2738863002/120001
3 years, 9 months ago (2017-03-15 00:23:56 UTC) #28
commit-bot: I haz the power
3 years, 9 months ago (2017-03-15 02:06:01 UTC) #31
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/24cf3269c241270f97890a977a39...

Powered by Google App Engine
This is Rietveld 408576698