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

Issue 2804943002: Avoid duplicate functions/code in core/editing: endTag (Closed)

Created:
3 years, 8 months ago by Daniel Bratell
Modified:
3 years, 8 months ago
Reviewers:
yosin_UTC9
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Avoid duplicate functions/code in core/editing: endTag While experimenting with unity builds I encountered a few duplicate symbols and functions in core/editing. This patch renames, moves and unifies them. elementCannotHaveEndTag is a utility function used in serializers and since it is used in multiple places, and MarkupFormatter is not a good place for it, let us put it in EditingUtilities. BUG=708949 R=yosin@chromium.org Review-Url: https://codereview.chromium.org/2804943002 Cr-Commit-Position: refs/heads/master@{#462994} Committed: https://chromium.googlesource.com/chromium/src/+/a7159abf14936edb1b8782dc06253c1ff91b9000

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -14 lines) Patch
M third_party/WebKit/Source/core/editing/EditingUtilities.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/EditingUtilities.cpp View 1 chunk +7 lines, -0 lines 1 comment Download
M third_party/WebKit/Source/core/editing/serializers/MarkupAccumulator.cpp View 2 chunks +1 line, -7 lines 0 comments Download
M third_party/WebKit/Source/core/editing/serializers/MarkupFormatter.cpp View 2 chunks +1 line, -7 lines 0 comments Download

Messages

Total messages: 13 (5 generated)
Daniel Bratell
Please take a look.
3 years, 8 months ago (2017-04-06 07:44:07 UTC) #2
yosin_UTC9
lgtm Could you file a http://crbug.com with type=Task to consolidate series of patches and add ...
3 years, 8 months ago (2017-04-06 08:30:54 UTC) #3
yosin_UTC9
On 2017/04/06 at 08:30:54, yosin_UTC9 wrote: > lgtm > > Could you file a http://crbug.com ...
3 years, 8 months ago (2017-04-06 08:48:24 UTC) #4
Daniel Bratell
On 2017/04/06 08:48:24, yosin_UTC9 wrote: > On 2017/04/06 at 08:30:54, yosin_UTC9 wrote: > > lgtm ...
3 years, 8 months ago (2017-04-06 09:25:50 UTC) #6
yosin_UTC9
On 2017/04/06 at 09:25:50, bratell wrote: > On 2017/04/06 08:48:24, yosin_UTC9 wrote: > > On ...
3 years, 8 months ago (2017-04-06 09:34:31 UTC) #7
Peter Kasting
https://codereview.chromium.org/2804943002/diff/1/third_party/WebKit/Source/core/editing/EditingUtilities.cpp File third_party/WebKit/Source/core/editing/EditingUtilities.cpp (right): https://codereview.chromium.org/2804943002/diff/1/third_party/WebKit/Source/core/editing/EditingUtilities.cpp#newcode1841 third_party/WebKit/Source/core/editing/EditingUtilities.cpp:1841: return !toHTMLElement(node).shouldSerializeEndTag(); Drive-by: Possibly clearer: return node.isHTMLElement() && !toHTMLElement(node).shouldSerializeEndTag();
3 years, 8 months ago (2017-04-06 10:03:35 UTC) #8
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/2804943002/1
3 years, 8 months ago (2017-04-07 19:17:14 UTC) #10
commit-bot: I haz the power
3 years, 8 months ago (2017-04-07 20:42:57 UTC) #13
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/a7159abf14936edb1b8782dc0625...

Powered by Google App Engine
This is Rietveld 408576698