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

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

Issue 23189010: Rename the Custom Elements runtime feature to "CustomElements". (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/dom/Document.idl » ('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 * 2001 Andreas Schlapbach (schlpbch@iam.unibe.ch) 4 * 2001 Andreas Schlapbach (schlpbch@iam.unibe.ch)
5 * 2001-2003 Dirk Mueller (mueller@kde.org) 5 * 2001-2003 Dirk Mueller (mueller@kde.org)
6 * Copyright (C) 2002, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv ed. 6 * Copyright (C) 2002, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv ed.
7 * Copyright (C) 2008 David Smith (catfish.man@gmail.com) 7 * Copyright (C) 2008 David Smith (catfish.man@gmail.com)
8 * Copyright (C) 2010 Google Inc. All rights reserved. 8 * Copyright (C) 2010 Google Inc. All rights reserved.
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 nameToPseudoType->set(seamlessDocument.impl(), CSSSelector::PseudoSeamle ssDocument); 424 nameToPseudoType->set(seamlessDocument.impl(), CSSSelector::PseudoSeamle ssDocument);
425 nameToPseudoType->set(distributed.impl(), CSSSelector::PseudoDistributed ); 425 nameToPseudoType->set(distributed.impl(), CSSSelector::PseudoDistributed );
426 nameToPseudoType->set(inRange.impl(), CSSSelector::PseudoInRange); 426 nameToPseudoType->set(inRange.impl(), CSSSelector::PseudoInRange);
427 nameToPseudoType->set(outOfRange.impl(), CSSSelector::PseudoOutOfRange); 427 nameToPseudoType->set(outOfRange.impl(), CSSSelector::PseudoOutOfRange);
428 if (RuntimeEnabledFeatures::shadowDOMEnabled()) { 428 if (RuntimeEnabledFeatures::shadowDOMEnabled()) {
429 nameToPseudoType->set(part.impl(), CSSSelector::PseudoPart); 429 nameToPseudoType->set(part.impl(), CSSSelector::PseudoPart);
430 nameToPseudoType->set(host.impl(), CSSSelector::PseudoHost); 430 nameToPseudoType->set(host.impl(), CSSSelector::PseudoHost);
431 nameToPseudoType->set(hostWithParams.impl(), CSSSelector::PseudoHost ); 431 nameToPseudoType->set(hostWithParams.impl(), CSSSelector::PseudoHost );
432 nameToPseudoType->set(content.impl(), CSSSelector::PseudoContent); 432 nameToPseudoType->set(content.impl(), CSSSelector::PseudoContent);
433 } 433 }
434 if (RuntimeEnabledFeatures::customDOMElementsEnabled()) 434 if (RuntimeEnabledFeatures::customElementsEnabled())
435 nameToPseudoType->set(unresolved.impl(), CSSSelector::PseudoUnresolv ed); 435 nameToPseudoType->set(unresolved.impl(), CSSSelector::PseudoUnresolv ed);
436 } 436 }
437 return nameToPseudoType; 437 return nameToPseudoType;
438 } 438 }
439 439
440 CSSSelector::PseudoType CSSSelector::parsePseudoType(const AtomicString& name) 440 CSSSelector::PseudoType CSSSelector::parsePseudoType(const AtomicString& name)
441 { 441 {
442 if (name.isNull()) 442 if (name.isNull())
443 return PseudoUnknown; 443 return PseudoUnknown;
444 HashMap<StringImpl*, CSSSelector::PseudoType>* nameToPseudoType = nameToPseu doTypeMap(); 444 HashMap<StringImpl*, CSSSelector::PseudoType>* nameToPseudoType = nameToPseu doTypeMap();
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after
922 return false; 922 return false;
923 return (count - m_b) % m_a == 0; 923 return (count - m_b) % m_a == 0;
924 } else { 924 } else {
925 if (count > m_b) 925 if (count > m_b)
926 return false; 926 return false;
927 return (m_b - count) % (-m_a) == 0; 927 return (m_b - count) % (-m_a) == 0;
928 } 928 }
929 } 929 }
930 930
931 } // namespace WebCore 931 } // namespace WebCore
OLDNEW
« no previous file with comments | « no previous file | Source/core/dom/Document.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698