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

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

Issue 2068053002: Rename Blink constants generated from IDL files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 static bool isAcceptableCSSStyleSheetParent(Node* parentNode) 72 static bool isAcceptableCSSStyleSheetParent(Node* parentNode)
73 { 73 {
74 // Only these nodes can be parents of StyleSheets, and they need to call 74 // Only these nodes can be parents of StyleSheets, and they need to call
75 // clearOwnerNode() when moved out of document. Note that destructor of 75 // clearOwnerNode() when moved out of document. Note that destructor of
76 // the nodes don't call clearOwnerNode() with Oilpan. 76 // the nodes don't call clearOwnerNode() with Oilpan.
77 return !parentNode 77 return !parentNode
78 || parentNode->isDocumentNode() 78 || parentNode->isDocumentNode()
79 || isHTMLLinkElement(*parentNode) 79 || isHTMLLinkElement(*parentNode)
80 || isHTMLStyleElement(*parentNode) 80 || isHTMLStyleElement(*parentNode)
81 || isSVGStyleElement(*parentNode) 81 || isSVGStyleElement(*parentNode)
82 || parentNode->getNodeType() == Node::PROCESSING_INSTRUCTION_NODE; 82 || parentNode->getNodeType() == Node::kProcessingInstructionNode;
83 } 83 }
84 #endif 84 #endif
85 85
86 CSSStyleSheet* CSSStyleSheet::create(StyleSheetContents* sheet, CSSImportRule* o wnerRule) 86 CSSStyleSheet* CSSStyleSheet::create(StyleSheetContents* sheet, CSSImportRule* o wnerRule)
87 { 87 {
88 return new CSSStyleSheet(sheet, ownerRule); 88 return new CSSStyleSheet(sheet, ownerRule);
89 } 89 }
90 90
91 CSSStyleSheet* CSSStyleSheet::create(StyleSheetContents* sheet, Node* ownerNode) 91 CSSStyleSheet* CSSStyleSheet::create(StyleSheetContents* sheet, Node* ownerNode)
92 { 92 {
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 visitor->trace(m_mediaQueries); 440 visitor->trace(m_mediaQueries);
441 visitor->trace(m_ownerNode); 441 visitor->trace(m_ownerNode);
442 visitor->trace(m_ownerRule); 442 visitor->trace(m_ownerRule);
443 visitor->trace(m_mediaCSSOMWrapper); 443 visitor->trace(m_mediaCSSOMWrapper);
444 visitor->trace(m_childRuleCSSOMWrappers); 444 visitor->trace(m_childRuleCSSOMWrappers);
445 visitor->trace(m_ruleListCSSOMWrapper); 445 visitor->trace(m_ruleListCSSOMWrapper);
446 StyleSheet::trace(visitor); 446 StyleSheet::trace(visitor);
447 } 447 }
448 448
449 } // namespace blink 449 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSStyleRule.h ('k') | third_party/WebKit/Source/core/css/CSSSupportsRule.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698