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

Side by Side Diff: third_party/WebKit/Source/core/style/ComputedStyle.h

Issue 1765933003: style: Rename the PseudoId enum values to CamelCase and prefix them. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: enum-clash-PseudoId: none Created 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved. 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved.
6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) 6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 noninherited_flags.overflowY = initialOverflowY(); 328 noninherited_flags.overflowY = initialOverflowY();
329 noninherited_flags.verticalAlign = initialVerticalAlign(); 329 noninherited_flags.verticalAlign = initialVerticalAlign();
330 noninherited_flags.clear = initialClear(); 330 noninherited_flags.clear = initialClear();
331 noninherited_flags.position = initialPosition(); 331 noninherited_flags.position = initialPosition();
332 noninherited_flags.floating = initialFloating(); 332 noninherited_flags.floating = initialFloating();
333 noninherited_flags.tableLayout = initialTableLayout(); 333 noninherited_flags.tableLayout = initialTableLayout();
334 noninherited_flags.unicodeBidi = initialUnicodeBidi(); 334 noninherited_flags.unicodeBidi = initialUnicodeBidi();
335 noninherited_flags.breakBefore = initialBreakBefore(); 335 noninherited_flags.breakBefore = initialBreakBefore();
336 noninherited_flags.breakAfter = initialBreakAfter(); 336 noninherited_flags.breakAfter = initialBreakAfter();
337 noninherited_flags.breakInside = initialBreakInside(); 337 noninherited_flags.breakInside = initialBreakInside();
338 noninherited_flags.styleType = NOPSEUDO; 338 noninherited_flags.styleType = PseudoIdNone;
339 noninherited_flags.pseudoBits = 0; 339 noninherited_flags.pseudoBits = 0;
340 noninherited_flags.explicitInheritance = false; 340 noninherited_flags.explicitInheritance = false;
341 noninherited_flags.variableReference = false; 341 noninherited_flags.variableReference = false;
342 noninherited_flags.unique = false; 342 noninherited_flags.unique = false;
343 noninherited_flags.emptyState = false; 343 noninherited_flags.emptyState = false;
344 noninherited_flags.hasViewportUnits = false; 344 noninherited_flags.hasViewportUnits = false;
345 noninherited_flags.affectedByFocus = false; 345 noninherited_flags.affectedByFocus = false;
346 noninherited_flags.affectedByHover = false; 346 noninherited_flags.affectedByHover = false;
347 noninherited_flags.affectedByActive = false; 347 noninherited_flags.affectedByActive = false;
348 noninherited_flags.affectedByDrag = false; 348 noninherited_flags.affectedByDrag = false;
(...skipping 1655 matching lines...) Expand 10 before | Expand all | Expand 10 after
2004 { 2004 {
2005 if (compareEqual(rareInheritedData->m_textOrientation, textOrientation)) 2005 if (compareEqual(rareInheritedData->m_textOrientation, textOrientation))
2006 return false; 2006 return false;
2007 2007
2008 rareInheritedData.access()->m_textOrientation = textOrientation; 2008 rareInheritedData.access()->m_textOrientation = textOrientation;
2009 return true; 2009 return true;
2010 } 2010 }
2011 2011
2012 inline bool ComputedStyle::hasAnyPublicPseudoStyles() const 2012 inline bool ComputedStyle::hasAnyPublicPseudoStyles() const
2013 { 2013 {
2014 return PUBLIC_PSEUDOID_MASK & noninherited_flags.pseudoBits; 2014 return PublicPseudoIdMask & noninherited_flags.pseudoBits;
2015 } 2015 }
2016 2016
2017 inline bool ComputedStyle::hasPseudoStyle(PseudoId pseudo) const 2017 inline bool ComputedStyle::hasPseudoStyle(PseudoId pseudo) const
2018 { 2018 {
2019 ASSERT(pseudo > NOPSEUDO); 2019 ASSERT(pseudo > PseudoIdNone);
2020 ASSERT(pseudo < FIRST_INTERNAL_PSEUDOID); 2020 ASSERT(pseudo < FirstInternalPseudoId);
2021 return (1 << (pseudo - 1)) & noninherited_flags.pseudoBits; 2021 return (1 << (pseudo - 1)) & noninherited_flags.pseudoBits;
2022 } 2022 }
2023 2023
2024 inline void ComputedStyle::setHasPseudoStyle(PseudoId pseudo) 2024 inline void ComputedStyle::setHasPseudoStyle(PseudoId pseudo)
2025 { 2025 {
2026 ASSERT(pseudo > NOPSEUDO); 2026 ASSERT(pseudo > PseudoIdNone);
2027 ASSERT(pseudo < FIRST_INTERNAL_PSEUDOID); 2027 ASSERT(pseudo < FirstInternalPseudoId);
2028 noninherited_flags.pseudoBits |= 1 << (pseudo - 1); 2028 noninherited_flags.pseudoBits |= 1 << (pseudo - 1);
2029 } 2029 }
2030 2030
2031 inline bool ComputedStyle::hasPseudoElementStyle() const 2031 inline bool ComputedStyle::hasPseudoElementStyle() const
2032 { 2032 {
2033 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK; 2033 return noninherited_flags.pseudoBits & ElementPseudoIdMask;
2034 } 2034 }
2035 2035
2036 } // namespace blink 2036 } // namespace blink
2037 2037
2038 #endif // ComputedStyle_h 2038 #endif // ComputedStyle_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/TextPainter.cpp ('k') | third_party/WebKit/Source/core/style/ComputedStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698