| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |