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

Issue 738443003: Have ProcessingInstruction's XSLT event listener keep a weak backreference (Closed)

Created:
6 years ago by sof
Modified:
6 years ago
CC:
blink-reviews, blink-reviews-dom_chromium.org, dglazkov+blink, sof, eae+blinkwatch, rwlbuis
Project:
blink
Visibility:
Public.

Description

Have ProcessingInstruction's XSLT event listener keep a weak backreference To avoid an unnecessary strong-reference cycle between ProcessingInstruction and its owned "XSLT event listener", have the latter keep an effectively-weak reference. ProcessingInstruction is responsible to detach itself and clear that weak reference when it is finalized. R=haraken BUG=367689 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=185858

Patch Set 1 #

Total comments: 4

Patch Set 2 : Rename ProcessingInstruction local interface class #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -10 lines) Patch
M Source/core/dom/ProcessingInstruction.h View 1 2 chunks +21 lines, -4 lines 0 comments Download
M Source/core/dom/ProcessingInstruction.cpp View 1 1 chunk +17 lines, -0 lines 0 comments Download
M Source/core/xml/DocumentXSLT.cpp View 1 4 chunks +28 lines, -6 lines 0 comments Download

Messages

Total messages: 7 (2 generated)
sof
Please take a look. The Persistent<> back reference from this EventListener makes most XSL(T) tests ...
6 years ago (2014-11-23 17:58:03 UTC) #2
haraken
Thanks for the fix, LGTM. https://codereview.chromium.org/738443003/diff/1/Source/core/dom/ProcessingInstruction.cpp File Source/core/dom/ProcessingInstruction.cpp (right): https://codereview.chromium.org/738443003/diff/1/Source/core/dom/ProcessingInstruction.cpp#newcode70 Source/core/dom/ProcessingInstruction.cpp:70: if (m_listenerForXSLT) We can ...
6 years ago (2014-11-24 01:17:01 UTC) #3
sof
Many thanks for the quick review. https://codereview.chromium.org/738443003/diff/1/Source/core/dom/ProcessingInstruction.cpp File Source/core/dom/ProcessingInstruction.cpp (right): https://codereview.chromium.org/738443003/diff/1/Source/core/dom/ProcessingInstruction.cpp#newcode70 Source/core/dom/ProcessingInstruction.cpp:70: if (m_listenerForXSLT) On ...
6 years ago (2014-11-24 06:15:39 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/738443003/20001
6 years ago (2014-11-24 06:16:06 UTC) #6
commit-bot: I haz the power
6 years ago (2014-11-24 07:28:07 UTC) #7
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=185858

Powered by Google App Engine
This is Rietveld 408576698