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

Side by Side Diff: third_party/WebKit/Source/core/dom/StyleSheetCandidate.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 * 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 if (!isEnabledViaScript() && !title.isEmpty() && title != currentPreferrable Name) 95 if (!isEnabledViaScript() && !title.isEmpty() && title != currentPreferrable Name)
96 return false; 96 return false;
97 if (isAlternate() && title.isEmpty()) 97 if (isAlternate() && title.isEmpty())
98 return false; 98 return false;
99 99
100 return true; 100 return true;
101 } 101 }
102 102
103 StyleSheetCandidate::Type StyleSheetCandidate::typeOf(Node& node) 103 StyleSheetCandidate::Type StyleSheetCandidate::typeOf(Node& node)
104 { 104 {
105 if (node.getNodeType() == Node::PROCESSING_INSTRUCTION_NODE) 105 if (node.getNodeType() == Node::kProcessingInstructionNode)
106 return Pi; 106 return Pi;
107 107
108 if (node.isHTMLElement()) { 108 if (node.isHTMLElement()) {
109 if (isHTMLLinkElement(node)) 109 if (isHTMLLinkElement(node))
110 return HTMLLink; 110 return HTMLLink;
111 if (isHTMLStyleElement(node)) 111 if (isHTMLStyleElement(node))
112 return HTMLStyle; 112 return HTMLStyle;
113 113
114 ASSERT_NOT_REACHED(); 114 ASSERT_NOT_REACHED();
115 return HTMLStyle; 115 return HTMLStyle;
(...skipping 17 matching lines...) Expand all
133 return toSVGStyleElement(node()).sheet(); 133 return toSVGStyleElement(node()).sheet();
134 case Pi: 134 case Pi:
135 return toProcessingInstruction(node()).sheet(); 135 return toProcessingInstruction(node()).sheet();
136 } 136 }
137 137
138 ASSERT_NOT_REACHED(); 138 ASSERT_NOT_REACHED();
139 return 0; 139 return 0;
140 } 140 }
141 141
142 } // namespace blink 142 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Range.cpp ('k') | third_party/WebKit/Source/core/dom/Text.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698