| OLD | NEW | 
|    1 /* |    1 /* | 
|    2  * Copyright (C) 2008, 2009 Google Inc. All rights reserved. |    2  * Copyright (C) 2008, 2009 Google Inc. All rights reserved. | 
|    3  * Copyright (C) 2009 Apple Inc. All rights reserved. |    3  * Copyright (C) 2009 Apple Inc. All rights reserved. | 
|    4  * |    4  * | 
|    5  * Redistribution and use in source and binary forms, with or without |    5  * Redistribution and use in source and binary forms, with or without | 
|    6  * modification, are permitted provided that the following conditions are |    6  * modification, are permitted provided that the following conditions are | 
|    7  * met: |    7  * met: | 
|    8  * |    8  * | 
|    9  *     * Redistributions of source code must retain the above copyright |    9  *     * Redistributions of source code must retain the above copyright | 
|   10  * notice, this list of conditions and the following disclaimer. |   10  * notice, this list of conditions and the following disclaimer. | 
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  256             m_isolatedWorlds.set(world->worldId(), isolatedWorldShell.release())
     ; |  256             m_isolatedWorlds.set(world->worldId(), isolatedWorldShell.release())
     ; | 
|  257         } |  257         } | 
|  258     } |  258     } | 
|  259     if (!shell->isContextInitialized() && shell->initializeIfNeeded()) |  259     if (!shell->isContextInitialized() && shell->initializeIfNeeded()) | 
|  260         m_frame->loader().dispatchDidClearWindowObjectInWorld(world); |  260         m_frame->loader().dispatchDidClearWindowObjectInWorld(world); | 
|  261     return shell; |  261     return shell; | 
|  262 } |  262 } | 
|  263  |  263  | 
|  264 bool ScriptController::shouldBypassMainWorldContentSecurityPolicy() |  264 bool ScriptController::shouldBypassMainWorldContentSecurityPolicy() | 
|  265 { |  265 { | 
|  266     if (DOMWrapperWorld* world = isolatedWorldForEnteredContext(m_isolate)) |  266     DOMWrapperWorld* world = DOMWrapperWorld::current(m_isolate); | 
 |  267     if (world && world->isIsolatedWorld()) | 
|  267         return world->isolatedWorldHasContentSecurityPolicy(); |  268         return world->isolatedWorldHasContentSecurityPolicy(); | 
|  268     return false; |  269     return false; | 
|  269 } |  270 } | 
|  270  |  271  | 
|  271 TextPosition ScriptController::eventHandlerPosition() const |  272 TextPosition ScriptController::eventHandlerPosition() const | 
|  272 { |  273 { | 
|  273     ScriptableDocumentParser* parser = m_frame->document()->scriptableDocumentPa
     rser(); |  274     ScriptableDocumentParser* parser = m_frame->document()->scriptableDocumentPa
     rser(); | 
|  274     if (parser) |  275     if (parser) | 
|  275         return parser->textPosition(); |  276         return parser->textPosition(); | 
|  276     return TextPosition::minimumPosition(); |  277     return TextPosition::minimumPosition(); | 
| (...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  668         v8Results = evaluateHandleScope.Escape(resultArray); |  669         v8Results = evaluateHandleScope.Escape(resultArray); | 
|  669     } |  670     } | 
|  670  |  671  | 
|  671     if (results && !v8Results.IsEmpty()) { |  672     if (results && !v8Results.IsEmpty()) { | 
|  672         for (size_t i = 0; i < v8Results->Length(); ++i) |  673         for (size_t i = 0; i < v8Results->Length(); ++i) | 
|  673             results->append(ScriptValue(v8Results->Get(i), m_isolate)); |  674             results->append(ScriptValue(v8Results->Get(i), m_isolate)); | 
|  674     } |  675     } | 
|  675 } |  676 } | 
|  676  |  677  | 
|  677 } // namespace WebCore |  678 } // namespace WebCore | 
| OLD | NEW |