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

Side by Side Diff: third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp

Issue 2608163009: Remove ScriptController::updateDocument (Closed)
Patch Set: temp Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
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 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 10 matching lines...) Expand all
21 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 21 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
22 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */ 25 */
26 26
27 #include "core/frame/LocalDOMWindow.h" 27 #include "core/frame/LocalDOMWindow.h"
28 28
29 #include "bindings/core/v8/ScriptController.h" 29 #include "bindings/core/v8/ScriptController.h"
30 #include "bindings/core/v8/SourceLocation.h" 30 #include "bindings/core/v8/SourceLocation.h"
31 #include "bindings/core/v8/WindowProxy.h"
31 #include "core/css/CSSComputedStyleDeclaration.h" 32 #include "core/css/CSSComputedStyleDeclaration.h"
32 #include "core/css/CSSRuleList.h" 33 #include "core/css/CSSRuleList.h"
33 #include "core/css/DOMWindowCSS.h" 34 #include "core/css/DOMWindowCSS.h"
34 #include "core/css/MediaQueryList.h" 35 #include "core/css/MediaQueryList.h"
35 #include "core/css/MediaQueryMatcher.h" 36 #include "core/css/MediaQueryMatcher.h"
36 #include "core/css/StyleMedia.h" 37 #include "core/css/StyleMedia.h"
37 #include "core/css/resolver/StyleResolver.h" 38 #include "core/css/resolver/StyleResolver.h"
38 #include "core/dom/DOMImplementation.h" 39 #include "core/dom/DOMImplementation.h"
39 #include "core/dom/DocumentUserGestureToken.h" 40 #include "core/dom/DocumentUserGestureToken.h"
40 #include "core/dom/ExecutionContextTask.h" 41 #include "core/dom/ExecutionContextTask.h"
(...skipping 1529 matching lines...) Expand 10 before | Expand all | Expand 10 after
1570 1571
1571 LocalFrame* LocalDOMWindow::frame() const { 1572 LocalFrame* LocalDOMWindow::frame() const {
1572 // If the LocalDOMWindow still has a frame reference, that frame must point 1573 // If the LocalDOMWindow still has a frame reference, that frame must point
1573 // back to this LocalDOMWindow: otherwise, it's easy to get into a situation 1574 // back to this LocalDOMWindow: otherwise, it's easy to get into a situation
1574 // where script execution leaks between different LocalDOMWindows. 1575 // where script execution leaks between different LocalDOMWindows.
1575 SECURITY_DCHECK(!m_frame || m_frame->domWindow() == this); 1576 SECURITY_DCHECK(!m_frame || m_frame->domWindow() == this);
1576 return m_frame; 1577 return m_frame;
1577 } 1578 }
1578 1579
1579 } // namespace blink 1580 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp ('k') | third_party/WebKit/Source/core/loader/FrameLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698