| OLD | NEW |
| 1 /* | 1 /* |
| 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) | 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) |
| 3 * Copyright (C) 2004, 2006, 2007, 2012 Apple Inc. All rights reserved. | 3 * Copyright (C) 2004, 2006, 2007, 2012 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 // Only these nodes can be parents of StyleSheets, and they need to call | 78 // Only these nodes can be parents of StyleSheets, and they need to call |
| 79 // clearOwnerNode() when moved out of document. | 79 // clearOwnerNode() when moved out of document. |
| 80 // Destruction of the style sheet counts as being "moved out of the | 80 // Destruction of the style sheet counts as being "moved out of the |
| 81 // document", but only in the non-oilpan version of blink. I.e. don't call | 81 // document", but only in the non-oilpan version of blink. I.e. don't call |
| 82 // clearOwnerNode() in the owner's destructor in oilpan. | 82 // clearOwnerNode() in the owner's destructor in oilpan. |
| 83 return !parentNode | 83 return !parentNode |
| 84 || parentNode->isDocumentNode() | 84 || parentNode->isDocumentNode() |
| 85 || isHTMLLinkElement(*parentNode) | 85 || isHTMLLinkElement(*parentNode) |
| 86 || isHTMLStyleElement(*parentNode) | 86 || isHTMLStyleElement(*parentNode) |
| 87 || isSVGStyleElement(*parentNode) | 87 || isSVGStyleElement(*parentNode) |
| 88 || parentNode->nodeType() == Node::PROCESSING_INSTRUCTION_NODE; | 88 || parentNode->getNodeType() == Node::PROCESSING_INSTRUCTION_NODE; |
| 89 } | 89 } |
| 90 #endif | 90 #endif |
| 91 | 91 |
| 92 PassRefPtrWillBeRawPtr<CSSStyleSheet> CSSStyleSheet::create(PassRefPtrWillBeRawP
tr<StyleSheetContents> sheet, CSSImportRule* ownerRule) | 92 PassRefPtrWillBeRawPtr<CSSStyleSheet> CSSStyleSheet::create(PassRefPtrWillBeRawP
tr<StyleSheetContents> sheet, CSSImportRule* ownerRule) |
| 93 { | 93 { |
| 94 return adoptRefWillBeNoop(new CSSStyleSheet(sheet, ownerRule)); | 94 return adoptRefWillBeNoop(new CSSStyleSheet(sheet, ownerRule)); |
| 95 } | 95 } |
| 96 | 96 |
| 97 PassRefPtrWillBeRawPtr<CSSStyleSheet> CSSStyleSheet::create(PassRefPtrWillBeRawP
tr<StyleSheetContents> sheet, Node* ownerNode) | 97 PassRefPtrWillBeRawPtr<CSSStyleSheet> CSSStyleSheet::create(PassRefPtrWillBeRawP
tr<StyleSheetContents> sheet, Node* ownerNode) |
| 98 { | 98 { |
| (...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 450 visitor->trace(m_mediaQueries); | 450 visitor->trace(m_mediaQueries); |
| 451 visitor->trace(m_ownerNode); | 451 visitor->trace(m_ownerNode); |
| 452 visitor->trace(m_ownerRule); | 452 visitor->trace(m_ownerRule); |
| 453 visitor->trace(m_mediaCSSOMWrapper); | 453 visitor->trace(m_mediaCSSOMWrapper); |
| 454 visitor->trace(m_childRuleCSSOMWrappers); | 454 visitor->trace(m_childRuleCSSOMWrappers); |
| 455 visitor->trace(m_ruleListCSSOMWrapper); | 455 visitor->trace(m_ruleListCSSOMWrapper); |
| 456 StyleSheet::trace(visitor); | 456 StyleSheet::trace(visitor); |
| 457 } | 457 } |
| 458 | 458 |
| 459 } // namespace blink | 459 } // namespace blink |
| OLD | NEW |