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

Issue 16879016: Use toElement instead of static_cast<Element*> and static_cast<const Element*> (Closed)

Created:
7 years, 6 months ago by yoshinori.sano
Modified:
7 years, 6 months ago
Reviewers:
tkent, abarth-chromium
CC:
blink-reviews, dglazkov+blink, eae+blinkwatch, adamk+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Use toElement instead of static_cast<Element*> and static_cast<const Element*> toElement is already used in many places, however, there are still exist static_cast<Element*> and static_cast<const Element*>. This CL replaces these static_cast with toElement. BUG=none TEST=none; no behavior changes. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=152922

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -10 lines) Patch
M Source/core/dom/Node.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/editing/ApplyStyleCommand.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/editing/CompositeEditCommand.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/editing/FrameSelection.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/editing/ReplaceSelectionCommand.cpp View 1 1 chunk +1 line, -2 lines 0 comments Download
M Source/core/editing/htmlediting.cpp View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
yoshinori.sano
Could you review this patch? Thanks in advance. https://codereview.chromium.org/16879016/diff/1/Source/core/editing/ReplaceSelectionCommand.cpp File Source/core/editing/ReplaceSelectionCommand.cpp (right): https://codereview.chromium.org/16879016/diff/1/Source/core/editing/ReplaceSelectionCommand.cpp#newcode101 Source/core/editing/ReplaceSelectionCommand.cpp:101: return ...
7 years, 6 months ago (2013-06-22 01:07:55 UTC) #1
abarth-chromium
lgtm https://codereview.chromium.org/16879016/diff/1/Source/core/editing/ReplaceSelectionCommand.cpp File Source/core/editing/ReplaceSelectionCommand.cpp (right): https://codereview.chromium.org/16879016/diff/1/Source/core/editing/ReplaceSelectionCommand.cpp#newcode101 Source/core/editing/ReplaceSelectionCommand.cpp:101: return node && node->hasTagName(brTag) && toElement(node)->getAttribute(classAttr) == interchangeNewlineClassString; ...
7 years, 6 months ago (2013-06-22 06:45:02 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoshinori.sano@gmail.com/16879016/1
7 years, 6 months ago (2013-06-22 06:45:09 UTC) #3
commit-bot: I haz the power
Failed to apply patch for Source/core/dom/Element.h: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 6 months ago (2013-06-22 06:45:11 UTC) #4
yoshinori.sano
On 2013/06/22 06:45:02, abarth wrote: > lgtm > > https://codereview.chromium.org/16879016/diff/1/Source/core/editing/ReplaceSelectionCommand.cpp > File Source/core/editing/ReplaceSelectionCommand.cpp (right): > ...
7 years, 6 months ago (2013-06-22 08:06:05 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoshinori.sano@gmail.com/16879016/5001
7 years, 6 months ago (2013-06-22 08:07:06 UTC) #6
yoshinori.sano
NOTE: static_cast<Element*> in core/dom/Element.h had been replaced with toElement before the Patch Set 1: https://chromiumcodereview.appspot.com/17094020
7 years, 6 months ago (2013-06-22 08:13:43 UTC) #7
commit-bot: I haz the power
7 years, 6 months ago (2013-06-22 09:27:47 UTC) #8
Message was sent while issue was closed.
Change committed as 152922

Powered by Google App Engine
This is Rietveld 408576698