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

Issue 148673002: Use more const references in MarkupAccumulator and its subclasses (Closed)

Created:
6 years, 11 months ago by Inactive
Modified:
6 years, 10 months ago
Reviewers:
adamk
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Use more const references in MarkupAccumulator and its subclasses Use more const references in MarkupAccumulator and its subclasses. This makes the code look safer. R=adamk Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=166059

Patch Set 1 #

Total comments: 5

Patch Set 2 : Remove const_casts and add null check #

Patch Set 3 : Bring back the ASSERT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+212 lines, -208 lines) Patch
M Source/core/editing/HTMLInterchange.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/editing/HTMLInterchange.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/editing/MarkupAccumulator.h View 1 2 chunks +20 lines, -20 lines 0 comments Download
M Source/core/editing/MarkupAccumulator.cpp View 1 15 chunks +73 lines, -73 lines 0 comments Download
M Source/core/editing/markup.cpp View 1 14 chunks +49 lines, -48 lines 0 comments Download
M Source/core/page/PageSerializer.h View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/page/PageSerializer.cpp View 1 2 12 chunks +65 lines, -62 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Inactive
6 years, 11 months ago (2014-01-28 01:59:30 UTC) #1
adamk
https://codereview.chromium.org/148673002/diff/1/Source/core/editing/markup.cpp File Source/core/editing/markup.cpp (right): https://codereview.chromium.org/148673002/diff/1/Source/core/editing/markup.cpp#newcode231 Source/core/editing/markup.cpp:231: const bool useRenderedText = !enclosingNodeWithTag(firstPositionInNode(const_cast<Text*>(&text)), selectTag); This and the ...
6 years, 10 months ago (2014-01-28 22:12:34 UTC) #2
Inactive
https://codereview.chromium.org/148673002/diff/1/Source/core/editing/markup.cpp File Source/core/editing/markup.cpp (right): https://codereview.chromium.org/148673002/diff/1/Source/core/editing/markup.cpp#newcode231 Source/core/editing/markup.cpp:231: const bool useRenderedText = !enclosingNodeWithTag(firstPositionInNode(const_cast<Text*>(&text)), selectTag); On 2014/01/28 22:12:35, ...
6 years, 10 months ago (2014-01-29 17:13:21 UTC) #3
Inactive
Second iteration is up. No more const casting and I transformed the ASSERT into a ...
6 years, 10 months ago (2014-01-29 17:15:41 UTC) #4
adamk
lgtm once you've done a bit more to the ownerDocument stuff (I don't feel strongly, ...
6 years, 10 months ago (2014-01-29 17:26:25 UTC) #5
Inactive
On 2014/01/29 17:26:25, adamk wrote: > lgtm once you've done a bit more to the ...
6 years, 10 months ago (2014-01-29 17:50:47 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/148673002/40001
6 years, 10 months ago (2014-01-29 17:51:02 UTC) #7
commit-bot: I haz the power
Change committed as 166059
6 years, 10 months ago (2014-01-29 23:32:19 UTC) #8
commit-bot: I haz the power
6 years, 10 months ago (2014-01-29 23:36:52 UTC) #9
Message was sent while issue was closed.
CQ bit was unchecked on CL. Ignoring.

Powered by Google App Engine
This is Rietveld 408576698