Skip to content
  • darin@apple.com's avatar
    WebCore: · 251dd172
    darin@apple.com authored
    2008-05-18  Darin Adler  <darin@apple.com>
    
            Reviewed by Sam.
    
            - fix <rdar://problem/5943569> crash due to stale ownerNode pointer
    
            Test: fast/dom/StyleSheet/ownerNode-lifetime.html
    
            * bindings/js/JSStyleSheetCustom.cpp:
            (WebCore::JSStyleSheet::mark): Added code to mark ownerNode. Includes a comment about how
            it would be even better to solve this in the DOM rather than just in the JavaScript binding.
    
            * css/StyleSheet.idl: Added CustomMarkFunction attribute.
    
    LayoutTests:
    
    2008-05-18  Darin Adler  <darin@apple.com>
    
            Reviewed by Sam.
    
            - test for <rdar://problem/5943569> crash due to stale ownerNode pointer
    
            * fast/dom/StyleSheet: Added.
            * fast/dom/StyleSheet/ownerNode-lifetime-expected.txt: Added.
            * fast/dom/StyleSheet/ownerNode-lifetime.html: Added.
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33567 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    251dd172