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

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

Issue 1958073002: Introduce :-internal-shadow-host-has-appearance pseudo class, and apply it to METER element. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove null host check Created 4 years, 7 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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) 3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com)
4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) 4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com)
5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All r ights reserved. 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All r ights reserved.
6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> 6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org>
7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> 7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org>
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. 9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved.
10 * Copyright (C) Research In Motion Limited 2011. All rights reserved. 10 * Copyright (C) Research In Motion Limited 2011. All rights reserved.
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 case CSSSelector::Class: 137 case CSSSelector::Class:
138 className = selector->value(); 138 className = selector->value();
139 break; 139 break;
140 case CSSSelector::Tag: 140 case CSSSelector::Tag:
141 if (selector->tagQName().localName() != starAtom) 141 if (selector->tagQName().localName() != starAtom)
142 tagName = selector->tagQName().localName(); 142 tagName = selector->tagQName().localName();
143 break; 143 break;
144 default: 144 default:
145 break; 145 break;
146 } 146 }
147 if (selector->getPseudoType() == CSSSelector::PseudoWebKitCustomElement) 147 if (selector->getPseudoType() == CSSSelector::PseudoWebKitCustomElement || s elector->getPseudoType() == CSSSelector::PseudoBlinkInternalElement)
148 customPseudoElementName = selector->value(); 148 customPseudoElementName = selector->value();
149 } 149 }
150 150
151 bool RuleSet::findBestRuleSetAndAdd(const CSSSelector& component, RuleData& rule Data) 151 bool RuleSet::findBestRuleSetAndAdd(const CSSSelector& component, RuleData& rule Data)
152 { 152 {
153 AtomicString id; 153 AtomicString id;
154 AtomicString className; 154 AtomicString className;
155 AtomicString customPseudoElementName; 155 AtomicString customPseudoElementName;
156 AtomicString tagName; 156 AtomicString tagName;
157 157
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 394
395 #ifndef NDEBUG 395 #ifndef NDEBUG
396 void RuleSet::show() const 396 void RuleSet::show() const
397 { 397 {
398 for (const auto& rule: m_allRules) 398 for (const auto& rule: m_allRules)
399 rule.selector().show(); 399 rule.selector().show();
400 } 400 }
401 #endif 401 #endif
402 402
403 } // namespace blink 403 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/RuleFeature.cpp ('k') | third_party/WebKit/Source/core/css/SelectorChecker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698