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

Side by Side Diff: Source/core/frame/DOMWindow.cpp

Issue 33013004: Have Document::mediaQueryMatcher() / Document::selectorQueryCache() return references (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 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 | « Source/core/dom/Node.cpp ('k') | no next file » | 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 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 return m_document.get(); 418 return m_document.get();
419 } 419 }
420 420
421 DOMWindow* DOMWindow::toDOMWindow() 421 DOMWindow* DOMWindow::toDOMWindow()
422 { 422 {
423 return this; 423 return this;
424 } 424 }
425 425
426 PassRefPtr<MediaQueryList> DOMWindow::matchMedia(const String& media) 426 PassRefPtr<MediaQueryList> DOMWindow::matchMedia(const String& media)
427 { 427 {
428 return document() ? document()->mediaQueryMatcher()->matchMedia(media) : 0; 428 return document() ? document()->mediaQueryMatcher().matchMedia(media) : 0;
429 } 429 }
430 430
431 Page* DOMWindow::page() 431 Page* DOMWindow::page()
432 { 432 {
433 return frame() ? frame()->page() : 0; 433 return frame() ? frame()->page() : 0;
434 } 434 }
435 435
436 void DOMWindow::frameDestroyed() 436 void DOMWindow::frameDestroyed()
437 { 437 {
438 FrameDestructionObserver::frameDestroyed(); 438 FrameDestructionObserver::frameDestroyed();
(...skipping 1328 matching lines...) Expand 10 before | Expand all | Expand 10 after
1767 return static_cast<DOMWindowLifecycleNotifier*>(LifecycleContext::lifecycleN otifier()); 1767 return static_cast<DOMWindowLifecycleNotifier*>(LifecycleContext::lifecycleN otifier());
1768 } 1768 }
1769 1769
1770 PassOwnPtr<LifecycleNotifier> DOMWindow::createLifecycleNotifier() 1770 PassOwnPtr<LifecycleNotifier> DOMWindow::createLifecycleNotifier()
1771 { 1771 {
1772 return DOMWindowLifecycleNotifier::create(this); 1772 return DOMWindowLifecycleNotifier::create(this);
1773 } 1773 }
1774 1774
1775 1775
1776 } // namespace WebCore 1776 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/dom/Node.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698