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

Side by Side Diff: sky/engine/core/frame/LocalDOMWindow.cpp

Issue 928393003: Remove the concept of document.documentElement (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « sky/engine/core/frame/LocalDOMWindow.h ('k') | sky/engine/core/frame/NewEventHandler.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) 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 #include "sky/engine/core/page/EventHandler.h" 62 #include "sky/engine/core/page/EventHandler.h"
63 #include "sky/engine/core/page/Page.h" 63 #include "sky/engine/core/page/Page.h"
64 #include "sky/engine/core/rendering/style/RenderStyle.h" 64 #include "sky/engine/core/rendering/style/RenderStyle.h"
65 #include "sky/engine/core/script/dart_controller.h" 65 #include "sky/engine/core/script/dart_controller.h"
66 #include "sky/engine/platform/EventDispatchForbiddenScope.h" 66 #include "sky/engine/platform/EventDispatchForbiddenScope.h"
67 #include "sky/engine/platform/PlatformScreen.h" 67 #include "sky/engine/platform/PlatformScreen.h"
68 #include "sky/engine/platform/geometry/FloatRect.h" 68 #include "sky/engine/platform/geometry/FloatRect.h"
69 #include "sky/engine/platform/weborigin/KURL.h" 69 #include "sky/engine/platform/weborigin/KURL.h"
70 #include "sky/engine/platform/weborigin/SecurityPolicy.h" 70 #include "sky/engine/platform/weborigin/SecurityPolicy.h"
71 #include "sky/engine/public/platform/Platform.h" 71 #include "sky/engine/public/platform/Platform.h"
72 #include "sky/engine/tonic/dart_gc_visitor.h"
72 #include "sky/engine/wtf/MainThread.h" 73 #include "sky/engine/wtf/MainThread.h"
73 #include "sky/engine/wtf/MathExtras.h" 74 #include "sky/engine/wtf/MathExtras.h"
74 #include "sky/engine/wtf/text/WTFString.h" 75 #include "sky/engine/wtf/text/WTFString.h"
75 76
76 using std::min; 77 using std::min;
77 using std::max; 78 using std::max;
78 79
79 namespace blink { 80 namespace blink {
80 81
81 static void disableSuddenTermination() 82 static void disableSuddenTermination()
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 ExecutionContext* LocalDOMWindow::executionContext() const 304 ExecutionContext* LocalDOMWindow::executionContext() const
304 { 305 {
305 return m_document.get(); 306 return m_document.get();
306 } 307 }
307 308
308 LocalDOMWindow* LocalDOMWindow::toDOMWindow() 309 LocalDOMWindow* LocalDOMWindow::toDOMWindow()
309 { 310 {
310 return this; 311 return this;
311 } 312 }
312 313
314 void LocalDOMWindow::AcceptDartGCVisitor(DartGCVisitor& visitor) const {
315 visitor.AddToSetForRoot(document(), dart_wrapper());
316 EventTarget::AcceptDartGCVisitor(visitor);
317 }
318
313 PassRefPtr<MediaQueryList> LocalDOMWindow::matchMedia(const String& media) 319 PassRefPtr<MediaQueryList> LocalDOMWindow::matchMedia(const String& media)
314 { 320 {
315 return document() ? document()->mediaQueryMatcher().matchMedia(media) : null ptr; 321 return document() ? document()->mediaQueryMatcher().matchMedia(media) : null ptr;
316 } 322 }
317 323
318 Page* LocalDOMWindow::page() 324 Page* LocalDOMWindow::page()
319 { 325 {
320 return frame() ? frame()->page() : 0; 326 return frame() ? frame()->page() : 0;
321 } 327 }
322 328
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
703 { 709 {
704 return static_cast<DOMWindowLifecycleNotifier&>(LifecycleContext<LocalDOMWin dow>::lifecycleNotifier()); 710 return static_cast<DOMWindowLifecycleNotifier&>(LifecycleContext<LocalDOMWin dow>::lifecycleNotifier());
705 } 711 }
706 712
707 PassOwnPtr<LifecycleNotifier<LocalDOMWindow> > LocalDOMWindow::createLifecycleNo tifier() 713 PassOwnPtr<LifecycleNotifier<LocalDOMWindow> > LocalDOMWindow::createLifecycleNo tifier()
708 { 714 {
709 return DOMWindowLifecycleNotifier::create(this); 715 return DOMWindowLifecycleNotifier::create(this);
710 } 716 }
711 717
712 } // namespace blink 718 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/frame/LocalDOMWindow.h ('k') | sky/engine/core/frame/NewEventHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698