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

Side by Side Diff: third_party/WebKit/Source/core/css/CSSStyleSheet.cpp

Issue 1738613002: Rename enums/functions that collide in chromium style in core/dom/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@get-names-3
Patch Set: get-names-4: Created 4 years, 9 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
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/StyleRuleImport.cpp » ('j') | third_party/WebKit/Source/core/dom/Node.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698