| OLD | NEW |
| 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 | 4 * Copyright (C) 2004, 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights |
| 5 * reserved. | 5 * reserved. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 kPseudoNthLastChild, | 152 kPseudoNthLastChild, |
| 153 kPseudoNthLastOfType, | 153 kPseudoNthLastOfType, |
| 154 kPseudoLink, | 154 kPseudoLink, |
| 155 kPseudoVisited, | 155 kPseudoVisited, |
| 156 kPseudoAny, | 156 kPseudoAny, |
| 157 kPseudoAnyLink, | 157 kPseudoAnyLink, |
| 158 kPseudoAutofill, | 158 kPseudoAutofill, |
| 159 kPseudoHover, | 159 kPseudoHover, |
| 160 kPseudoDrag, | 160 kPseudoDrag, |
| 161 kPseudoFocus, | 161 kPseudoFocus, |
| 162 kPseudoFocusWithin, |
| 162 kPseudoActive, | 163 kPseudoActive, |
| 163 kPseudoChecked, | 164 kPseudoChecked, |
| 164 kPseudoEnabled, | 165 kPseudoEnabled, |
| 165 kPseudoFullPageMedia, | 166 kPseudoFullPageMedia, |
| 166 kPseudoDefault, | 167 kPseudoDefault, |
| 167 kPseudoDisabled, | 168 kPseudoDisabled, |
| 168 kPseudoOptional, | 169 kPseudoOptional, |
| 169 kPseudoPlaceholderShown, | 170 kPseudoPlaceholderShown, |
| 170 kPseudoRequired, | 171 kPseudoRequired, |
| 171 kPseudoReadOnly, | 172 kPseudoReadOnly, |
| (...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 524 DCHECK_NE(match_, static_cast<unsigned>(kTag)); | 525 DCHECK_NE(match_, static_cast<unsigned>(kTag)); |
| 525 if (has_rare_data_) | 526 if (has_rare_data_) |
| 526 return data_.rare_data_->serializing_value_; | 527 return data_.rare_data_->serializing_value_; |
| 527 // AtomicString is really just a StringImpl* so the cast below is safe. | 528 // AtomicString is really just a StringImpl* so the cast below is safe. |
| 528 // FIXME: Perhaps call sites could be changed to accept StringImpl? | 529 // FIXME: Perhaps call sites could be changed to accept StringImpl? |
| 529 return *reinterpret_cast<const AtomicString*>(&data_.value_); | 530 return *reinterpret_cast<const AtomicString*>(&data_.value_); |
| 530 } | 531 } |
| 531 | 532 |
| 532 inline bool CSSSelector::IsUserActionPseudoClass() const { | 533 inline bool CSSSelector::IsUserActionPseudoClass() const { |
| 533 return pseudo_type_ == kPseudoHover || pseudo_type_ == kPseudoActive || | 534 return pseudo_type_ == kPseudoHover || pseudo_type_ == kPseudoActive || |
| 534 pseudo_type_ == kPseudoFocus || pseudo_type_ == kPseudoDrag; | 535 pseudo_type_ == kPseudoFocus || pseudo_type_ == kPseudoDrag || |
| 536 pseudo_type_ == kPseudoFocusWithin; |
| 535 } | 537 } |
| 536 | 538 |
| 537 inline bool CSSSelector::IsIdClassOrAttributeSelector() const { | 539 inline bool CSSSelector::IsIdClassOrAttributeSelector() const { |
| 538 return IsAttributeSelector() || Match() == CSSSelector::kId || | 540 return IsAttributeSelector() || Match() == CSSSelector::kId || |
| 539 Match() == CSSSelector::kClass; | 541 Match() == CSSSelector::kClass; |
| 540 } | 542 } |
| 541 | 543 |
| 542 } // namespace blink | 544 } // namespace blink |
| 543 | 545 |
| 544 #endif // CSSSelector_h | 546 #endif // CSSSelector_h |
| OLD | NEW |