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

Side by Side Diff: Source/bindings/v8/custom/V8WindowCustom.cpp

Issue 115693002: Remove several calls to Page::mainFrame (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/css/MediaQueryEvaluator.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009, 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 #include "bindings/v8/V8GCForContextDispose.h" 46 #include "bindings/v8/V8GCForContextDispose.h"
47 #include "bindings/v8/V8HiddenPropertyName.h" 47 #include "bindings/v8/V8HiddenPropertyName.h"
48 #include "bindings/v8/V8Utilities.h" 48 #include "bindings/v8/V8Utilities.h"
49 #include "core/dom/ExceptionCode.h" 49 #include "core/dom/ExceptionCode.h"
50 #include "core/dom/MessagePort.h" 50 #include "core/dom/MessagePort.h"
51 #include "core/html/HTMLCollection.h" 51 #include "core/html/HTMLCollection.h"
52 #include "core/html/HTMLDocument.h" 52 #include "core/html/HTMLDocument.h"
53 #include "core/inspector/ScriptCallStack.h" 53 #include "core/inspector/ScriptCallStack.h"
54 #include "core/loader/FrameLoadRequest.h" 54 #include "core/loader/FrameLoadRequest.h"
55 #include "core/loader/FrameLoader.h" 55 #include "core/loader/FrameLoader.h"
56 #include "core/page/Chrome.h"
57 #include "core/frame/ContentSecurityPolicy.h" 56 #include "core/frame/ContentSecurityPolicy.h"
58 #include "core/frame/DOMTimer.h" 57 #include "core/frame/DOMTimer.h"
59 #include "core/frame/DOMWindow.h" 58 #include "core/frame/DOMWindow.h"
60 #include "core/frame/DOMWindowTimers.h" 59 #include "core/frame/DOMWindowTimers.h"
61 #include "core/frame/Frame.h" 60 #include "core/frame/Frame.h"
62 #include "core/frame/FrameView.h" 61 #include "core/frame/FrameView.h"
63 #include "core/page/Page.h"
64 #include "core/frame/Settings.h" 62 #include "core/frame/Settings.h"
65 #include "core/page/WindowFeatures.h"
66 #include "core/storage/Storage.h" 63 #include "core/storage/Storage.h"
67 #include "platform/PlatformScreen.h" 64 #include "platform/PlatformScreen.h"
68 #include "platform/graphics/media/MediaPlayer.h" 65 #include "platform/graphics/media/MediaPlayer.h"
69 #include "wtf/ArrayBuffer.h" 66 #include "wtf/ArrayBuffer.h"
70 #include "wtf/Assertions.h" 67 #include "wtf/Assertions.h"
71 #include "wtf/OwnPtr.h" 68 #include "wtf/OwnPtr.h"
72 69
73 namespace WebCore { 70 namespace WebCore {
74 71
75 // FIXME: There is a lot of duplication with SetTimeoutOrInterval() in V8WorkerG lobalScopeCustom.cpp. 72 // FIXME: There is a lot of duplication with SetTimeoutOrInterval() in V8WorkerG lobalScopeCustom.cpp.
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
563 v8::Handle<v8::Context> context = frame->script().currentWorldContext(); 560 v8::Handle<v8::Context> context = frame->script().currentWorldContext();
564 if (context.IsEmpty()) 561 if (context.IsEmpty())
565 return v8Undefined(); 562 return v8Undefined();
566 563
567 v8::Handle<v8::Object> global = context->Global(); 564 v8::Handle<v8::Object> global = context->Global();
568 ASSERT(!global.IsEmpty()); 565 ASSERT(!global.IsEmpty());
569 return global; 566 return global;
570 } 567 }
571 568
572 } // namespace WebCore 569 } // namespace WebCore
OLDNEW
« no previous file with comments | « no previous file | Source/core/css/MediaQueryEvaluator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698