[Webkit-unassigned] [Bug 49694] New: Add some comments about XSLStyleSheet owner node

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Nov 17 15:45:25 PST 2010


https://bugs.webkit.org/show_bug.cgi?id=49694

           Summary: Add some comments about XSLStyleSheet owner node
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: XML
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: ap at webkit.org


XSLStyleSheets come in two varieties - one is created by <?xml-stylesheet?> processing instruction, and another by XSLTProcessor. These are extremely different in how they handle stylesheet and owner node lifetime.

- ProcessingInstruction ones are exposed to JavaScript, so stylesheet lifetime is unpredictable.
- ProcessingInstruction clears out backpointer in its destructor.
- XSLTProcessor exposes nothing to JavaScript, and carefully manages lifetime issues without a need for arbitrary nodes' destructors to clear out references to those nodes.

This is difficult to figure out by looking at existing code.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list