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

Issue 24253004: Cleanup: Start using toFoo methods as part of newly adopted coding guideline. (Closed)

Created:
7 years, 3 months ago by r.kasibhatla
Modified:
7 years, 3 months ago
CC:
blink-reviews, eae+blinkwatch, apavlov+blink_chromium.org, adamk+blink_chromium.org, pdr, aandrey+blink_chromium.org, caseq+blink_chromium.org, aboxhall, yurys+blink_chromium.org, dglazkov+blink, jchaffraix+rendering, devtools-reviews_chromium.org, loislo+blink_chromium.org, lushnikov+blink_chromium.org, eustas+blink_chromium.org, paulirish+reviews_chromium.org, darktears, alph+blink_chromium.org, leviw+renderwatch, vsevik+blink_chromium.org, pfeldman+blink_chromium.org, dmazzoni, f(malita), Stephen Chennney
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Cleanup: Start using toFoo methods as part of newly adopted coding guideline. As part of newly adopted coding guidelines, static_cast<Classname*> is discouraged and toFoo calling is encouraged. To enforce the new guideline, a patch (https://codereview.chromium.org/23654034/) on path to landing, which would raise presubmit error if it finds use of static_cast<Classname*> in the patch. This patch replaces static_cast<Classname*> in present codebase with toFoo(), at all places for which toFoo() is already defined. R=tkent, inferno, abarth BUG=None TEST=None; no behavior change; No regressions with layout tests, webkit_unit_tests, content_unittests Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=158094

Patch Set 1 #

Patch Set 2 : Rebaselined to resolve merge conflict. #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -58 lines) Patch
M Source/core/accessibility/AXObjectCache.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/accessibility/AccessibilityARIAGridCell.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/accessibility/AccessibilityARIAGridRow.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/accessibility/AccessibilityImageMapLink.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/accessibility/AccessibilityMenuList.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M Source/core/accessibility/AccessibilityRenderObject.cpp View 6 chunks +7 lines, -7 lines 0 comments Download
M Source/core/accessibility/AccessibilityTableHeaderContainer.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/StyleInvalidationAnalysis.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/StyleRule.h View 1 chunk +8 lines, -0 lines 0 comments Download
M Source/core/css/StyleRule.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/css/StyleSheetContents.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/resolver/StyleBuilderCustom.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/Attr.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/DocumentMarkerController.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/Position.cpp View 4 chunks +4 lines, -4 lines 0 comments Download
M Source/core/dom/TouchEvent.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLInputElement.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLMeterElement.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/html/HTMLProgressElement.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/html/shadow/SpinButtonElement.h View 1 2 1 chunk +14 lines, -0 lines 0 comments Download
M Source/core/inspector/InspectorCSSAgent.cpp View 1 4 chunks +4 lines, -4 lines 0 comments Download
M Source/core/rendering/HitTestResult.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/RenderMenuList.cpp View 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/RenderTheme.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M Source/core/rendering/svg/RenderSVGInlineText.cpp View 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/svg/SVGTextQuery.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/svg/SVGFontFaceElement.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/web/WebAXObject.cpp View 6 chunks +6 lines, -6 lines 0 comments Download
M Source/web/WebPluginContainerImpl.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M Source/web/tests/ScrollingCoordinatorChromiumTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/web/tests/WebFrameTest.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/web/tests/WebViewTest.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 15 (0 generated)
r.kasibhatla
PTAL.
7 years, 3 months ago (2013-09-19 14:00:53 UTC) #1
inferno
lgtm
7 years, 3 months ago (2013-09-19 14:25:59 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/r.kasibhatla@samsung.com/24253004/1
7 years, 3 months ago (2013-09-19 19:58:57 UTC) #3
commit-bot: I haz the power
Failed to apply patch for Source/core/dom/Attr.cpp: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 3 months ago (2013-09-19 19:59:12 UTC) #4
r.kasibhatla
Rebaselined to tot. Can anybody rubber stamp it.
7 years, 3 months ago (2013-09-19 20:46:29 UTC) #5
inferno
lgtm
7 years, 3 months ago (2013-09-19 20:48:20 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/r.kasibhatla@samsung.com/24253004/5001
7 years, 3 months ago (2013-09-19 20:48:30 UTC) #7
r.kasibhatla
Need lgtm from Source/web OWNERS - abarth/tkent?
7 years, 3 months ago (2013-09-19 21:02:29 UTC) #8
commit-bot: I haz the power
Retried try job too often on blink_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=blink_presubmit&number=7233
7 years, 3 months ago (2013-09-19 21:02:51 UTC) #9
tkent
lgtm
7 years, 3 months ago (2013-09-19 21:03:54 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/r.kasibhatla@samsung.com/24253004/5001
7 years, 3 months ago (2013-09-19 21:04:02 UTC) #11
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 3 months ago (2013-09-19 21:48:53 UTC) #12
r.kasibhatla
PTAL. Just overlooked the earlier patch for Debug builds. Sorry about it. My bad. :(
7 years, 3 months ago (2013-09-20 07:15:09 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/r.kasibhatla@samsung.com/24253004/30001
7 years, 3 months ago (2013-09-20 07:34:47 UTC) #14
commit-bot: I haz the power
7 years, 3 months ago (2013-09-20 09:05:38 UTC) #15
Message was sent while issue was closed.
Change committed as 158094

Powered by Google App Engine
This is Rietveld 408576698