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

Issue 19045003: Element's insertAdjacent API should lazy attach (Closed)

Created:
7 years, 5 months ago by esprehn
Modified:
7 years, 5 months ago
Reviewers:
eseidel, ojan
CC:
blink-reviews, dglazkov+blink, eae+blinkwatch, adamk+blink_chromium.org
Visibility:
Public.

Description

Element's insertAdjacent API should lazy attach insertAdjacentElement, insertAdjacentText and insertAdjacentHTML should all lazyAttach just like appendChild() would have. I also removed some redundant ASSERT_WITH_SECURITY_IMPLICATIONS that aren't needed since we use toElement() right below them which contains the same assert. R=ojan@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=154094

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -10 lines) Patch
M Source/core/html/HTMLElement.cpp View 4 chunks +6 lines, -10 lines 1 comment Download

Messages

Total messages: 9 (0 generated)
esprehn
7 years, 5 months ago (2013-07-12 04:09:09 UTC) #1
ojan
https://codereview.chromium.org/19045003/diff/1/Source/core/html/HTMLElement.cpp File Source/core/html/HTMLElement.cpp (left): https://codereview.chromium.org/19045003/diff/1/Source/core/html/HTMLElement.cpp#oldcode540 Source/core/html/HTMLElement.cpp:540: ASSERT_WITH_SECURITY_IMPLICATION(!returnValue || returnValue->isElementNode()); What's wrong with these asserts?
7 years, 5 months ago (2013-07-12 05:12:43 UTC) #2
esprehn
On 2013/07/12 05:12:43, ojan wrote: > https://codereview.chromium.org/19045003/diff/1/Source/core/html/HTMLElement.cpp > File Source/core/html/HTMLElement.cpp (left): > > https://codereview.chromium.org/19045003/diff/1/Source/core/html/HTMLElement.cpp#oldcode540 > ...
7 years, 5 months ago (2013-07-12 05:56:42 UTC) #3
ojan
> You don't need them, the toElement() call below those lines has that inside it. ...
7 years, 5 months ago (2013-07-12 06:15:28 UTC) #4
ojan
lgtm
7 years, 5 months ago (2013-07-12 06:15:34 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/esprehn@chromium.org/19045003/1
7 years, 5 months ago (2013-07-12 06:21:21 UTC) #6
commit-bot: I haz the power
Retried try job too often on linux_layout_rel for step(s) webkit_python_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_layout_rel&number=16431
7 years, 5 months ago (2013-07-12 06:46:45 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/esprehn@chromium.org/19045003/1
7 years, 5 months ago (2013-07-12 07:26:47 UTC) #8
esprehn
7 years, 5 months ago (2013-07-12 07:37:16 UTC) #9
Message was sent while issue was closed.
Committed patchset #1 manually as r154094 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698