OLD | NEW |
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 1273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1284 return m_document.get(); | 1284 return m_document.get(); |
1285 } | 1285 } |
1286 | 1286 |
1287 StyleMedia& DOMWindow::styleMedia() const | 1287 StyleMedia& DOMWindow::styleMedia() const |
1288 { | 1288 { |
1289 if (!m_media) | 1289 if (!m_media) |
1290 m_media = StyleMedia::create(m_frame); | 1290 m_media = StyleMedia::create(m_frame); |
1291 return *m_media; | 1291 return *m_media; |
1292 } | 1292 } |
1293 | 1293 |
1294 PassRefPtr<CSSStyleDeclaration> DOMWindow::getComputedStyle(Element* elt, const
String& pseudoElt) const | 1294 PassRefPtrWillBeRawPtr<CSSStyleDeclaration> DOMWindow::getComputedStyle(Element*
elt, const String& pseudoElt) const |
1295 { | 1295 { |
1296 if (!elt) | 1296 if (!elt) |
1297 return nullptr; | 1297 return nullptr; |
1298 | 1298 |
1299 return CSSComputedStyleDeclaration::create(elt, false, pseudoElt); | 1299 return CSSComputedStyleDeclaration::create(elt, false, pseudoElt); |
1300 } | 1300 } |
1301 | 1301 |
1302 PassRefPtrWillBeRawPtr<CSSRuleList> DOMWindow::getMatchedCSSRules(Element* eleme
nt, const String& pseudoElement) const | 1302 PassRefPtrWillBeRawPtr<CSSRuleList> DOMWindow::getMatchedCSSRules(Element* eleme
nt, const String& pseudoElement) const |
1303 { | 1303 { |
1304 UseCounter::count(document(), UseCounter::GetMatchedCSSRules); | 1304 UseCounter::count(document(), UseCounter::GetMatchedCSSRules); |
(...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1861 return static_cast<DOMWindowLifecycleNotifier&>(LifecycleContext<DOMWindow>:
:lifecycleNotifier()); | 1861 return static_cast<DOMWindowLifecycleNotifier&>(LifecycleContext<DOMWindow>:
:lifecycleNotifier()); |
1862 } | 1862 } |
1863 | 1863 |
1864 PassOwnPtr<LifecycleNotifier<DOMWindow> > DOMWindow::createLifecycleNotifier() | 1864 PassOwnPtr<LifecycleNotifier<DOMWindow> > DOMWindow::createLifecycleNotifier() |
1865 { | 1865 { |
1866 return DOMWindowLifecycleNotifier::create(this); | 1866 return DOMWindowLifecycleNotifier::create(this); |
1867 } | 1867 } |
1868 | 1868 |
1869 | 1869 |
1870 } // namespace WebCore | 1870 } // namespace WebCore |
OLD | NEW |