| 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 1320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1331 CSSSelector::PseudoType pseudoType = CSSSelector::parsePseudoType(AtomicStri
ng(pseudoElement.substring(colonStart))); | 1331 CSSSelector::PseudoType pseudoType = CSSSelector::parsePseudoType(AtomicStri
ng(pseudoElement.substring(colonStart))); |
| 1332 if (pseudoType == CSSSelector::PseudoUnknown && !pseudoElement.isEmpty()) | 1332 if (pseudoType == CSSSelector::PseudoUnknown && !pseudoElement.isEmpty()) |
| 1333 return 0; | 1333 return 0; |
| 1334 | 1334 |
| 1335 unsigned rulesToInclude = StyleResolver::AuthorCSSRules; | 1335 unsigned rulesToInclude = StyleResolver::AuthorCSSRules; |
| 1336 if (!authorOnly) | 1336 if (!authorOnly) |
| 1337 rulesToInclude |= StyleResolver::UAAndUserCSSRules; | 1337 rulesToInclude |= StyleResolver::UAAndUserCSSRules; |
| 1338 | 1338 |
| 1339 PseudoId pseudoId = CSSSelector::pseudoId(pseudoType); | 1339 PseudoId pseudoId = CSSSelector::pseudoId(pseudoType); |
| 1340 | 1340 |
| 1341 return m_frame->document()->styleResolver()->pseudoCSSRulesForElement(elemen
t, pseudoId, rulesToInclude); | 1341 StyleResolver* styleResolver = m_frame->document()->styleResolver(); |
| 1342 appendPendingStyleSheetsIfNeeded(styleResolver); |
| 1343 return styleResolver->pseudoCSSRulesForElement(element, pseudoId, rulesToInc
lude); |
| 1342 } | 1344 } |
| 1343 | 1345 |
| 1344 PassRefPtr<DOMPoint> DOMWindow::webkitConvertPointFromNodeToPage(Node* node, con
st DOMPoint* p) const | 1346 PassRefPtr<DOMPoint> DOMWindow::webkitConvertPointFromNodeToPage(Node* node, con
st DOMPoint* p) const |
| 1345 { | 1347 { |
| 1346 if (!node || !p) | 1348 if (!node || !p) |
| 1347 return 0; | 1349 return 0; |
| 1348 | 1350 |
| 1349 if (!document()) | 1351 if (!document()) |
| 1350 return 0; | 1352 return 0; |
| 1351 | 1353 |
| (...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1867 return static_cast<DOMWindowLifecycleNotifier&>(LifecycleContext::lifecycleN
otifier()); | 1869 return static_cast<DOMWindowLifecycleNotifier&>(LifecycleContext::lifecycleN
otifier()); |
| 1868 } | 1870 } |
| 1869 | 1871 |
| 1870 PassOwnPtr<LifecycleNotifier<DOMWindow> > DOMWindow::createLifecycleNotifier() | 1872 PassOwnPtr<LifecycleNotifier<DOMWindow> > DOMWindow::createLifecycleNotifier() |
| 1871 { | 1873 { |
| 1872 return DOMWindowLifecycleNotifier::create(this); | 1874 return DOMWindowLifecycleNotifier::create(this); |
| 1873 } | 1875 } |
| 1874 | 1876 |
| 1875 | 1877 |
| 1876 } // namespace WebCore | 1878 } // namespace WebCore |
| OLD | NEW |