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 2892 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2903 bool HasBorderImageOutsets() const { | 2903 bool HasBorderImageOutsets() const { |
2904 return BorderImage().HasImage() && BorderImage().Outset().NonZero(); | 2904 return BorderImage().HasImage() && BorderImage().Outset().NonZero(); |
2905 } | 2905 } |
2906 LayoutRectOutsets BorderImageOutsets() const { | 2906 LayoutRectOutsets BorderImageOutsets() const { |
2907 return ImageOutsets(BorderImage()); | 2907 return ImageOutsets(BorderImage()); |
2908 } | 2908 } |
2909 bool BorderImageSlicesFill() const { return Border().GetImage().Fill(); } | 2909 bool BorderImageSlicesFill() const { return Border().GetImage().Fill(); } |
2910 | 2910 |
2911 void SetBorderImageSlicesFill(bool); | 2911 void SetBorderImageSlicesFill(bool); |
2912 const BorderData& Border() const { return surround_data_->border_; } | 2912 const BorderData& Border() const { return surround_data_->border_; } |
2913 const BorderValue BorderLeft() const { | 2913 BorderValue BorderLeft() const { |
2914 return BorderValue(surround_data_->border_.Left(), BorderLeftColor(), | 2914 return BorderValue(surround_data_->border_.Left(), BorderLeftColor(), |
2915 BorderLeftWidth()); | 2915 BorderLeftWidth()); |
2916 } | 2916 } |
2917 const BorderValue BorderRight() const { | 2917 BorderValue BorderRight() const { |
2918 return BorderValue(surround_data_->border_.Right(), BorderRightColor(), | 2918 return BorderValue(surround_data_->border_.Right(), BorderRightColor(), |
2919 BorderRightWidth()); | 2919 BorderRightWidth()); |
2920 } | 2920 } |
2921 const BorderValue BorderTop() const { | 2921 BorderValue BorderTop() const { |
2922 return BorderValue(surround_data_->border_.Top(), BorderTopColor(), | 2922 return BorderValue(surround_data_->border_.Top(), BorderTopColor(), |
2923 BorderTopWidth()); | 2923 BorderTopWidth()); |
2924 } | 2924 } |
2925 const BorderValue BorderBottom() const { | 2925 BorderValue BorderBottom() const { |
2926 return BorderValue(surround_data_->border_.Bottom(), BorderBottomColor(), | 2926 return BorderValue(surround_data_->border_.Bottom(), BorderBottomColor(), |
2927 BorderBottomWidth()); | 2927 BorderBottomWidth()); |
2928 } | 2928 } |
2929 bool BorderSizeEquals(const ComputedStyle& o) const { | 2929 bool BorderSizeEquals(const ComputedStyle& o) const { |
2930 return BorderWidthEquals(BorderLeftWidth(), o.BorderLeftWidth()) && | 2930 return BorderWidthEquals(BorderLeftWidth(), o.BorderLeftWidth()) && |
2931 BorderWidthEquals(BorderTopWidth(), o.BorderTopWidth()) && | 2931 BorderWidthEquals(BorderTopWidth(), o.BorderTopWidth()) && |
2932 BorderWidthEquals(BorderRightWidth(), o.BorderRightWidth()) && | 2932 BorderWidthEquals(BorderRightWidth(), o.BorderRightWidth()) && |
2933 BorderWidthEquals(BorderBottomWidth(), o.BorderBottomWidth()); | 2933 BorderWidthEquals(BorderBottomWidth(), o.BorderBottomWidth()); |
2934 } | 2934 } |
2935 const BorderValue BorderBefore() const; | 2935 BorderValue BorderBefore() const; |
2936 const BorderValue BorderAfter() const; | 2936 BorderValue BorderAfter() const; |
2937 const BorderValue BorderStart() const; | 2937 BorderValue BorderStart() const; |
2938 const BorderValue BorderEnd() const; | 2938 BorderValue BorderEnd() const; |
2939 float BorderAfterWidth() const; | 2939 float BorderAfterWidth() const; |
2940 float BorderBeforeWidth() const; | 2940 float BorderBeforeWidth() const; |
2941 float BorderEndWidth() const; | 2941 float BorderEndWidth() const; |
2942 float BorderStartWidth() const; | 2942 float BorderStartWidth() const; |
2943 float BorderOverWidth() const; | 2943 float BorderOverWidth() const; |
2944 float BorderUnderWidth() const; | 2944 float BorderUnderWidth() const; |
2945 | 2945 |
2946 bool HasBorderFill() const { return Border().HasBorderFill(); } | 2946 bool HasBorderFill() const { return Border().HasBorderFill(); } |
2947 bool HasBorder() const { | 2947 bool HasBorder() const { |
2948 return Border().HasBorder() || BorderLeftWidth() || BorderRightWidth() || | 2948 return Border().HasBorder() || BorderLeftWidth() || BorderRightWidth() || |
(...skipping 870 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3819 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); | 3819 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); |
3820 } | 3820 } |
3821 | 3821 |
3822 inline bool ComputedStyle::HasPseudoElementStyle() const { | 3822 inline bool ComputedStyle::HasPseudoElementStyle() const { |
3823 return PseudoBitsInternal() & kElementPseudoIdMask; | 3823 return PseudoBitsInternal() & kElementPseudoIdMask; |
3824 } | 3824 } |
3825 | 3825 |
3826 } // namespace blink | 3826 } // namespace blink |
3827 | 3827 |
3828 #endif // ComputedStyle_h | 3828 #endif // ComputedStyle_h |
OLD | NEW |