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

Side by Side Diff: Source/core/css/CSSSelector.h

Issue 662243003: Use ::-internal-media-controls* instead of ::-webkit-media-controls* (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: introduce PseudoInternalCustomElement Created 6 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « LayoutTests/media/media-controls.js ('k') | Source/core/css/CSSSelector.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999-2003 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999-2003 Lars Knoll (knoll@kde.org)
3 * 1999 Waldo Bastian (bastian@kde.org) 3 * 1999 Waldo Bastian (bastian@kde.org)
4 * Copyright (C) 2004, 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights reserved. 4 * Copyright (C) 2004, 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 PseudoNoButton, 198 PseudoNoButton,
199 PseudoSelection, 199 PseudoSelection,
200 PseudoLeftPage, 200 PseudoLeftPage,
201 PseudoRightPage, 201 PseudoRightPage,
202 PseudoFirstPage, 202 PseudoFirstPage,
203 PseudoFullScreen, 203 PseudoFullScreen,
204 PseudoFullScreenDocument, 204 PseudoFullScreenDocument,
205 PseudoFullScreenAncestor, 205 PseudoFullScreenAncestor,
206 PseudoInRange, 206 PseudoInRange,
207 PseudoOutOfRange, 207 PseudoOutOfRange,
208 PseudoInternalCustomElement,
208 PseudoUserAgentCustomElement, 209 PseudoUserAgentCustomElement,
209 PseudoWebKitCustomElement, 210 PseudoWebKitCustomElement,
210 PseudoCue, 211 PseudoCue,
211 PseudoFutureCue, 212 PseudoFutureCue,
212 PseudoPastCue, 213 PseudoPastCue,
213 PseudoUnresolved, 214 PseudoUnresolved,
214 PseudoContent, 215 PseudoContent,
215 PseudoHost, 216 PseudoHost,
216 PseudoHostContext, 217 PseudoHostContext,
217 PseudoShadow, 218 PseudoShadow,
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 399
399 inline bool CSSSelector::matchesPseudoElement() const 400 inline bool CSSSelector::matchesPseudoElement() const
400 { 401 {
401 if (m_pseudoType == PseudoUnknown) 402 if (m_pseudoType == PseudoUnknown)
402 extractPseudoType(); 403 extractPseudoType();
403 return m_match == PseudoElement; 404 return m_match == PseudoElement;
404 } 405 }
405 406
406 inline bool CSSSelector::isCustomPseudoElement() const 407 inline bool CSSSelector::isCustomPseudoElement() const
407 { 408 {
408 return m_match == PseudoElement && (m_pseudoType == PseudoUserAgentCustomEle ment || m_pseudoType == PseudoWebKitCustomElement); 409 return m_match == PseudoElement && (m_pseudoType == PseudoInternalCustomElem ent || m_pseudoType == PseudoUserAgentCustomElement || m_pseudoType == PseudoWeb KitCustomElement);
409 } 410 }
410 411
411 inline bool CSSSelector::isHostPseudoClass() const 412 inline bool CSSSelector::isHostPseudoClass() const
412 { 413 {
413 return m_match == PseudoClass && (m_pseudoType == PseudoHost || m_pseudoType == PseudoHostContext); 414 return m_match == PseudoClass && (m_pseudoType == PseudoHost || m_pseudoType == PseudoHostContext);
414 } 415 }
415 416
416 inline bool CSSSelector::isSiblingSelector() const 417 inline bool CSSSelector::isSiblingSelector() const
417 { 418 {
418 PseudoType type = pseudoType(); 419 PseudoType type = pseudoType();
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 if (m_hasRareData) 549 if (m_hasRareData)
549 return m_data.m_rareData->m_value; 550 return m_data.m_rareData->m_value;
550 // AtomicString is really just a StringImpl* so the cast below is safe. 551 // AtomicString is really just a StringImpl* so the cast below is safe.
551 // FIXME: Perhaps call sites could be changed to accept StringImpl? 552 // FIXME: Perhaps call sites could be changed to accept StringImpl?
552 return *reinterpret_cast<const AtomicString*>(&m_data.m_value); 553 return *reinterpret_cast<const AtomicString*>(&m_data.m_value);
553 } 554 }
554 555
555 } // namespace blink 556 } // namespace blink
556 557
557 #endif // CSSSelector_h 558 #endif // CSSSelector_h
OLDNEW
« no previous file with comments | « LayoutTests/media/media-controls.js ('k') | Source/core/css/CSSSelector.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698