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

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

Issue 646853007: Remove fallback matching ::cue* pseudo-element selectors (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix inspector dependency 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 | « no previous file | 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 PseudoUserAgentCustomElement,
209 PseudoWebKitCustomElement, 208 PseudoWebKitCustomElement,
210 PseudoCue, 209 PseudoCue,
211 PseudoFutureCue, 210 PseudoFutureCue,
212 PseudoPastCue, 211 PseudoPastCue,
213 PseudoUnresolved, 212 PseudoUnresolved,
214 PseudoContent, 213 PseudoContent,
215 PseudoHost, 214 PseudoHost,
216 PseudoHostContext, 215 PseudoHostContext,
217 PseudoShadow, 216 PseudoShadow,
218 PseudoSpatialNavigationFocus, 217 PseudoSpatialNavigationFocus,
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 397
399 inline bool CSSSelector::matchesPseudoElement() const 398 inline bool CSSSelector::matchesPseudoElement() const
400 { 399 {
401 if (m_pseudoType == PseudoUnknown) 400 if (m_pseudoType == PseudoUnknown)
402 extractPseudoType(); 401 extractPseudoType();
403 return m_match == PseudoElement; 402 return m_match == PseudoElement;
404 } 403 }
405 404
406 inline bool CSSSelector::isCustomPseudoElement() const 405 inline bool CSSSelector::isCustomPseudoElement() const
407 { 406 {
408 return m_match == PseudoElement && (m_pseudoType == PseudoUserAgentCustomEle ment || m_pseudoType == PseudoWebKitCustomElement); 407 return m_match == PseudoElement && m_pseudoType == PseudoWebKitCustomElement ;
409 } 408 }
410 409
411 inline bool CSSSelector::isHostPseudoClass() const 410 inline bool CSSSelector::isHostPseudoClass() const
412 { 411 {
413 return m_match == PseudoClass && (m_pseudoType == PseudoHost || m_pseudoType == PseudoHostContext); 412 return m_match == PseudoClass && (m_pseudoType == PseudoHost || m_pseudoType == PseudoHostContext);
414 } 413 }
415 414
416 inline bool CSSSelector::isSiblingSelector() const 415 inline bool CSSSelector::isSiblingSelector() const
417 { 416 {
418 PseudoType type = pseudoType(); 417 PseudoType type = pseudoType();
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 if (m_hasRareData) 547 if (m_hasRareData)
549 return m_data.m_rareData->m_value; 548 return m_data.m_rareData->m_value;
550 // AtomicString is really just a StringImpl* so the cast below is safe. 549 // AtomicString is really just a StringImpl* so the cast below is safe.
551 // FIXME: Perhaps call sites could be changed to accept StringImpl? 550 // FIXME: Perhaps call sites could be changed to accept StringImpl?
552 return *reinterpret_cast<const AtomicString*>(&m_data.m_value); 551 return *reinterpret_cast<const AtomicString*>(&m_data.m_value);
553 } 552 }
554 553
555 } // namespace blink 554 } // namespace blink
556 555
557 #endif // CSSSelector_h 556 #endif // CSSSelector_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/css/CSSSelector.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698