Skip to content
  • mhahnenberg@apple.com's avatar
    De-virtualize JSGlobalObject::allowsAccessFrom · b895f407
    mhahnenberg@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=71969
    
    Reviewed by Darin Adler.
    
    Source/JavaScriptCore: 
    
    * runtime/JSGlobalObject.h: Removed allowsAccessFrom from JSGlobalObject since it is exclusive to 
    JSDOMWindowBase and WebScriptObject.
    
    Source/WebCore: 
    
    No new tests.
    
    Since allowsAccessFrom is only used by WebScriptObject, we know that we'll always have a 
    JSDOMWindowBase, so we can simply have allowsAccessFrom to live in JSDOMWindowBase rather 
    than JSGlobalObject.
    
    * bindings/js/JSDOMWindowBase.h: De-virtualized allowsAccessFrom.
    * bindings/objc/WebScriptObject.mm:
    (-[WebScriptObject _isSafeScript]): Added a cast from a JSGlobalObject to a JSDOMWindowBase in 
    order to call the allowsAccessFrom method.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@99993 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    b895f407