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 | 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All |
6 * rights reserved. | 6 * rights reserved. |
7 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 7 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
(...skipping 3449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3460 bool HasAppearance() const { return Appearance() != kNoControlPart; } | 3460 bool HasAppearance() const { return Appearance() != kNoControlPart; } |
3461 | 3461 |
3462 // Other utility functions. | 3462 // Other utility functions. |
3463 bool IsStyleAvailable() const; | 3463 bool IsStyleAvailable() const; |
3464 bool IsSharable() const; | 3464 bool IsSharable() const; |
3465 | 3465 |
3466 bool RequireTransformOrigin(ApplyTransformOrigin apply_origin, | 3466 bool RequireTransformOrigin(ApplyTransformOrigin apply_origin, |
3467 ApplyMotionPath) const; | 3467 ApplyMotionPath) const; |
3468 | 3468 |
3469 private: | 3469 private: |
3470 void SetVisitedLinkColor(const Color&); | |
3471 void SetVisitedLinkBackgroundColor(const StyleColor& v) { | 3470 void SetVisitedLinkBackgroundColor(const StyleColor& v) { |
3472 SET_VAR(rare_non_inherited_data_, visited_link_background_color_, v); | 3471 SET_VAR(rare_non_inherited_data_, visited_link_background_color_, v); |
3473 } | 3472 } |
3474 void SetVisitedLinkBorderLeftColor(const StyleColor& v) { | 3473 void SetVisitedLinkBorderLeftColor(const StyleColor& v) { |
3475 SET_VAR(rare_non_inherited_data_, visited_link_border_left_color_, v); | 3474 SET_VAR(rare_non_inherited_data_, visited_link_border_left_color_, v); |
3476 } | 3475 } |
3477 void SetVisitedLinkBorderRightColor(const StyleColor& v) { | 3476 void SetVisitedLinkBorderRightColor(const StyleColor& v) { |
3478 SET_VAR(rare_non_inherited_data_, visited_link_border_right_color_, v); | 3477 SET_VAR(rare_non_inherited_data_, visited_link_border_right_color_, v); |
3479 } | 3478 } |
3480 void SetVisitedLinkBorderBottomColor(const StyleColor& v) { | 3479 void SetVisitedLinkBorderBottomColor(const StyleColor& v) { |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3617 ? StyleColor::CurrentColor() | 3616 ? StyleColor::CurrentColor() |
3618 : StyleColor(rare_inherited_data_->text_stroke_color_); | 3617 : StyleColor(rare_inherited_data_->text_stroke_color_); |
3619 } | 3618 } |
3620 StyleAutoColor VisitedLinkCaretColor() const { | 3619 StyleAutoColor VisitedLinkCaretColor() const { |
3621 if (rare_inherited_data_->visited_link_caret_color_is_current_color_) | 3620 if (rare_inherited_data_->visited_link_caret_color_is_current_color_) |
3622 return StyleAutoColor::CurrentColor(); | 3621 return StyleAutoColor::CurrentColor(); |
3623 if (rare_inherited_data_->visited_link_caret_color_is_auto_) | 3622 if (rare_inherited_data_->visited_link_caret_color_is_auto_) |
3624 return StyleAutoColor::AutoColor(); | 3623 return StyleAutoColor::AutoColor(); |
3625 return StyleAutoColor(rare_inherited_data_->visited_link_caret_color_); | 3624 return StyleAutoColor(rare_inherited_data_->visited_link_caret_color_); |
3626 } | 3625 } |
3627 Color VisitedLinkColor() const; | |
3628 StyleColor VisitedLinkBackgroundColor() const { | 3626 StyleColor VisitedLinkBackgroundColor() const { |
3629 return rare_non_inherited_data_->visited_link_background_color_; | 3627 return rare_non_inherited_data_->visited_link_background_color_; |
3630 } | 3628 } |
3631 StyleColor VisitedLinkBorderLeftColor() const { | 3629 StyleColor VisitedLinkBorderLeftColor() const { |
3632 return rare_non_inherited_data_->visited_link_border_left_color_; | 3630 return rare_non_inherited_data_->visited_link_border_left_color_; |
3633 } | 3631 } |
3634 StyleColor VisitedLinkBorderRightColor() const { | 3632 StyleColor VisitedLinkBorderRightColor() const { |
3635 return rare_non_inherited_data_->visited_link_border_right_color_; | 3633 return rare_non_inherited_data_->visited_link_border_right_color_; |
3636 } | 3634 } |
3637 StyleColor VisitedLinkBorderBottomColor() const { | 3635 StyleColor VisitedLinkBorderBottomColor() const { |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3802 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); | 3800 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); |
3803 } | 3801 } |
3804 | 3802 |
3805 inline bool ComputedStyle::HasPseudoElementStyle() const { | 3803 inline bool ComputedStyle::HasPseudoElementStyle() const { |
3806 return PseudoBitsInternal() & kElementPseudoIdMask; | 3804 return PseudoBitsInternal() & kElementPseudoIdMask; |
3807 } | 3805 } |
3808 | 3806 |
3809 } // namespace blink | 3807 } // namespace blink |
3810 | 3808 |
3811 #endif // ComputedStyle_h | 3809 #endif // ComputedStyle_h |
OLD | NEW |