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

Side by Side Diff: sky/engine/core/css/CSSSelector.h

Issue 836383004: Remove all attribute selectors that are not Set or Exact. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: ojan comment. Created 5 years, 11 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
« no previous file with comments | « no previous file | sky/engine/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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 /* how the attribute value has to match.... Default is Exact */ 103 /* how the attribute value has to match.... Default is Exact */
104 enum Match { 104 enum Match {
105 Unknown = 0, 105 Unknown = 0,
106 Tag, // Example: div 106 Tag, // Example: div
107 Id, // Example: #id 107 Id, // Example: #id
108 Class, // example: .class 108 Class, // example: .class
109 PseudoClass, // Example: :focus 109 PseudoClass, // Example: :focus
110 PseudoElement, // Example: ::first-line 110 PseudoElement, // Example: ::first-line
111 Exact, // Example: E[foo="bar"] 111 Exact, // Example: E[foo="bar"]
112 Set, // Example: E[foo] 112 Set, // Example: E[foo]
113 Hyphen, // Example: E[foo|="bar"]
114 List, // Example: E[foo~="bar"]
115 Contain, // css3: E[foo*="bar"]
116 Begin, // css3: E[foo^="bar"]
117 End, // css3: E[foo$="bar"]
118 FirstAttributeSelectorMatch = Exact, 113 FirstAttributeSelectorMatch = Exact,
119 }; 114 };
120 115
121 enum PseudoType { 116 enum PseudoType {
122 PseudoNotParsed = 0, 117 PseudoNotParsed = 0,
123 PseudoUnknown, 118 PseudoUnknown,
124 PseudoHover, 119 PseudoHover,
125 PseudoFocus, 120 PseudoFocus,
126 PseudoActive, 121 PseudoActive,
127 PseudoLang, 122 PseudoLang,
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 if (m_hasRareData) 341 if (m_hasRareData)
347 return m_data.m_rareData->m_value; 342 return m_data.m_rareData->m_value;
348 // AtomicString is really just a StringImpl* so the cast below is safe. 343 // AtomicString is really just a StringImpl* so the cast below is safe.
349 // FIXME: Perhaps call sites could be changed to accept StringImpl? 344 // FIXME: Perhaps call sites could be changed to accept StringImpl?
350 return *reinterpret_cast<const AtomicString*>(&m_data.m_value); 345 return *reinterpret_cast<const AtomicString*>(&m_data.m_value);
351 } 346 }
352 347
353 } // namespace blink 348 } // namespace blink
354 349
355 #endif // SKY_ENGINE_CORE_CSS_CSSSELECTOR_H_ 350 #endif // SKY_ENGINE_CORE_CSS_CSSSELECTOR_H_
OLDNEW
« no previous file with comments | « no previous file | sky/engine/core/css/CSSSelector.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698