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 1260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1271 } | 1271 } |
1272 | 1272 |
1273 PassRefPtr<CSSStyleDeclaration> DOMWindow::getComputedStyle(Element* elt, const
String& pseudoElt) const | 1273 PassRefPtr<CSSStyleDeclaration> DOMWindow::getComputedStyle(Element* elt, const
String& pseudoElt) const |
1274 { | 1274 { |
1275 if (!elt) | 1275 if (!elt) |
1276 return nullptr; | 1276 return nullptr; |
1277 | 1277 |
1278 return CSSComputedStyleDeclaration::create(elt, false, pseudoElt); | 1278 return CSSComputedStyleDeclaration::create(elt, false, pseudoElt); |
1279 } | 1279 } |
1280 | 1280 |
1281 PassRefPtr<CSSRuleList> DOMWindow::getMatchedCSSRules(Element* element, const St
ring& pseudoElement) const | 1281 PassRefPtrWillBeRawPtr<CSSRuleList> DOMWindow::getMatchedCSSRules(Element* eleme
nt, const String& pseudoElement) const |
1282 { | 1282 { |
1283 UseCounter::count(document(), UseCounter::GetMatchedCSSRules); | 1283 UseCounter::count(document(), UseCounter::GetMatchedCSSRules); |
1284 if (!element) | 1284 if (!element) |
1285 return nullptr; | 1285 return nullptr; |
1286 | 1286 |
1287 if (!isCurrentlyDisplayedInFrame()) | 1287 if (!isCurrentlyDisplayedInFrame()) |
1288 return nullptr; | 1288 return nullptr; |
1289 | 1289 |
1290 unsigned colonStart = pseudoElement[0] == ':' ? (pseudoElement[1] == ':' ? 2
: 1) : 0; | 1290 unsigned colonStart = pseudoElement[0] == ':' ? (pseudoElement[1] == ':' ? 2
: 1) : 0; |
1291 CSSSelector::PseudoType pseudoType = CSSSelector::parsePseudoType(AtomicStri
ng(pseudoElement.substring(colonStart))); | 1291 CSSSelector::PseudoType pseudoType = CSSSelector::parsePseudoType(AtomicStri
ng(pseudoElement.substring(colonStart))); |
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1814 return static_cast<DOMWindowLifecycleNotifier&>(LifecycleContext<DOMWindow>:
:lifecycleNotifier()); | 1814 return static_cast<DOMWindowLifecycleNotifier&>(LifecycleContext<DOMWindow>:
:lifecycleNotifier()); |
1815 } | 1815 } |
1816 | 1816 |
1817 PassOwnPtr<LifecycleNotifier<DOMWindow> > DOMWindow::createLifecycleNotifier() | 1817 PassOwnPtr<LifecycleNotifier<DOMWindow> > DOMWindow::createLifecycleNotifier() |
1818 { | 1818 { |
1819 return DOMWindowLifecycleNotifier::create(this); | 1819 return DOMWindowLifecycleNotifier::create(this); |
1820 } | 1820 } |
1821 | 1821 |
1822 | 1822 |
1823 } // namespace WebCore | 1823 } // namespace WebCore |
OLD | NEW |