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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLContentElement.cpp

Issue 1731583003: blink: Rename enums and functions to not collide with chromium style. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: get-names-2: . 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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 } 81 }
82 m_shouldParseSelect = true; 82 m_shouldParseSelect = true;
83 m_select = value; 83 m_select = value;
84 } else { 84 } else {
85 InsertionPoint::parseAttribute(name, oldValue, value); 85 InsertionPoint::parseAttribute(name, oldValue, value);
86 } 86 }
87 } 87 }
88 88
89 static inline bool includesDisallowedPseudoClass(const CSSSelector& selector) 89 static inline bool includesDisallowedPseudoClass(const CSSSelector& selector)
90 { 90 {
91 if (selector.pseudoType() == CSSSelector::PseudoNot) { 91 if (selector.getPseudoType() == CSSSelector::PseudoNot) {
92 const CSSSelector* subSelector = selector.selectorList()->first(); 92 const CSSSelector* subSelector = selector.selectorList()->first();
93 return subSelector->match() == CSSSelector::PseudoClass; 93 return subSelector->match() == CSSSelector::PseudoClass;
94 } 94 }
95 return selector.match() == CSSSelector::PseudoClass; 95 return selector.match() == CSSSelector::PseudoClass;
96 } 96 }
97 97
98 bool HTMLContentElement::validateSelect() const 98 bool HTMLContentElement::validateSelect() const
99 { 99 {
100 ASSERT(!m_shouldParseSelect); 100 ASSERT(!m_shouldParseSelect);
101 101
(...skipping 25 matching lines...) Expand all
127 SelectorChecker::SelectorCheckingContext context(&element, SelectorChecker:: VisitedMatchDisabled); 127 SelectorChecker::SelectorCheckingContext context(&element, SelectorChecker:: VisitedMatchDisabled);
128 for (const CSSSelector* selector = selectorList().first(); selector; selecto r = CSSSelectorList::next(*selector)) { 128 for (const CSSSelector* selector = selectorList().first(); selector; selecto r = CSSSelectorList::next(*selector)) {
129 context.selector = selector; 129 context.selector = selector;
130 if (checker.match(context)) 130 if (checker.match(context))
131 return true; 131 return true;
132 } 132 }
133 return false; 133 return false;
134 } 134 }
135 135
136 } // namespace blink 136 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698