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

Side by Side Diff: third_party/WebKit/Source/core/dom/StyleSheetCandidate.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 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Neither the name of Google Inc. nor the names of its 10 * * Neither the name of Google Inc. nor the names of its
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 if (!isEnabledViaScript() && !title.isEmpty() && title != currentPreferrable Name) 101 if (!isEnabledViaScript() && !title.isEmpty() && title != currentPreferrable Name)
102 return false; 102 return false;
103 if (isAlternate() && title.isEmpty()) 103 if (isAlternate() && title.isEmpty())
104 return false; 104 return false;
105 105
106 return true; 106 return true;
107 } 107 }
108 108
109 StyleSheetCandidate::Type StyleSheetCandidate::typeOf(Node& node) 109 StyleSheetCandidate::Type StyleSheetCandidate::typeOf(Node& node)
110 { 110 {
111 if (node.nodeType() == Node::PROCESSING_INSTRUCTION_NODE) 111 if (node.getNodeType() == Node::PROCESSING_INSTRUCTION_NODE)
112 return Pi; 112 return Pi;
113 113
114 if (node.isHTMLElement()) { 114 if (node.isHTMLElement()) {
115 if (isHTMLLinkElement(node)) 115 if (isHTMLLinkElement(node))
116 return HTMLLink; 116 return HTMLLink;
117 if (isHTMLStyleElement(node)) 117 if (isHTMLStyleElement(node))
118 return HTMLStyle; 118 return HTMLStyle;
119 119
120 ASSERT_NOT_REACHED(); 120 ASSERT_NOT_REACHED();
121 return HTMLStyle; 121 return HTMLStyle;
(...skipping 17 matching lines...) Expand all
139 return toSVGStyleElement(node()).sheet(); 139 return toSVGStyleElement(node()).sheet();
140 case Pi: 140 case Pi:
141 return toProcessingInstruction(node()).sheet(); 141 return toProcessingInstruction(node()).sheet();
142 } 142 }
143 143
144 ASSERT_NOT_REACHED(); 144 ASSERT_NOT_REACHED();
145 return 0; 145 return 0;
146 } 146 }
147 147
148 } // namespace blink 148 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698