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

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

Issue 196983005: Replace big code block to build CSS pseudo name table with a loop. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Cleaned up after review. Created 6 years, 9 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 | 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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 PseudoWebKitCustomElement, 214 PseudoWebKitCustomElement,
215 PseudoCue, 215 PseudoCue,
216 PseudoFutureCue, 216 PseudoFutureCue,
217 PseudoPastCue, 217 PseudoPastCue,
218 PseudoDistributed, 218 PseudoDistributed,
219 PseudoUnresolved, 219 PseudoUnresolved,
220 PseudoHost, 220 PseudoHost,
221 PseudoAncestor 221 PseudoAncestor
222 }; 222 };
223 223
224 enum OptionalPseudoTypeRequirements {
225 // 0 is used to mean "no requirements".
226 RequiresShadowDOM = 1
227 };
228
224 enum MarginBoxType { 229 enum MarginBoxType {
225 TopLeftCornerMarginBox, 230 TopLeftCornerMarginBox,
226 TopLeftMarginBox, 231 TopLeftMarginBox,
227 TopCenterMarginBox, 232 TopCenterMarginBox,
228 TopRightMarginBox, 233 TopRightMarginBox,
229 TopRightCornerMarginBox, 234 TopRightCornerMarginBox,
230 BottomLeftCornerMarginBox, 235 BottomLeftCornerMarginBox,
231 BottomLeftMarginBox, 236 BottomLeftMarginBox,
232 BottomCenterMarginBox, 237 BottomCenterMarginBox,
233 BottomRightMarginBox, 238 BottomRightMarginBox,
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
509 if (m_hasRareData) 514 if (m_hasRareData)
510 return m_data.m_rareData->m_value; 515 return m_data.m_rareData->m_value;
511 // AtomicString is really just a StringImpl* so the cast below is safe. 516 // AtomicString is really just a StringImpl* so the cast below is safe.
512 // FIXME: Perhaps call sites could be changed to accept StringImpl? 517 // FIXME: Perhaps call sites could be changed to accept StringImpl?
513 return *reinterpret_cast<const AtomicString*>(&m_data.m_value); 518 return *reinterpret_cast<const AtomicString*>(&m_data.m_value);
514 } 519 }
515 520
516 } // namespace WebCore 521 } // namespace WebCore
517 522
518 #endif // CSSSelector_h 523 #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