| 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 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 419 return BackgroundInternal().HasFixedImage(); | 419 return BackgroundInternal().HasFixedImage(); |
| 420 } | 420 } |
| 421 bool HasEntirelyFixedBackground() const; | 421 bool HasEntirelyFixedBackground() const; |
| 422 | 422 |
| 423 // background-clip | 423 // background-clip |
| 424 EFillBox BackgroundClip() const { | 424 EFillBox BackgroundClip() const { |
| 425 return static_cast<EFillBox>(BackgroundInternal().Clip()); | 425 return static_cast<EFillBox>(BackgroundInternal().Clip()); |
| 426 } | 426 } |
| 427 | 427 |
| 428 // Border properties. | 428 // Border properties. |
| 429 // -webkit-border-image | |
| 430 static NinePieceImage InitialNinePieceImage() { return NinePieceImage(); } | |
| 431 const NinePieceImage& BorderImage() const { return BorderImageInternal(); } | |
| 432 void SetBorderImage(const NinePieceImage& b) { SetBorderImageInternal(b); } | |
| 433 | |
| 434 // border-image-slice | 429 // border-image-slice |
| 435 const LengthBox& BorderImageSlices() const { | 430 const LengthBox& BorderImageSlices() const { |
| 436 return BorderImage().ImageSlices(); | 431 return BorderImage().ImageSlices(); |
| 437 } | 432 } |
| 438 void SetBorderImageSlices(const LengthBox&); | 433 void SetBorderImageSlices(const LengthBox&); |
| 439 | 434 |
| 440 // border-image-source | 435 // border-image-source |
| 441 static StyleImage* InitialBorderImageSource() { return 0; } | 436 static StyleImage* InitialBorderImageSource() { return 0; } |
| 442 StyleImage* BorderImageSource() const { return BorderImage().GetImage(); } | 437 StyleImage* BorderImageSource() const { return BorderImage().GetImage(); } |
| 443 void SetBorderImageSource(StyleImage*); | 438 void SetBorderImageSource(StyleImage*); |
| (...skipping 2521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2965 SetBorderBottomWidth(3); | 2960 SetBorderBottomWidth(3); |
| 2966 SetBorderBottomColorInternal(0); | 2961 SetBorderBottomColorInternal(0); |
| 2967 SetBorderBottomColorInternal(true); | 2962 SetBorderBottomColorInternal(true); |
| 2968 } | 2963 } |
| 2969 void ResetBorderLeft() { | 2964 void ResetBorderLeft() { |
| 2970 SetBorderLeftStyle(EBorderStyle::kNone); | 2965 SetBorderLeftStyle(EBorderStyle::kNone); |
| 2971 SetBorderLeftWidth(3); | 2966 SetBorderLeftWidth(3); |
| 2972 SetBorderLeftColorInternal(0); | 2967 SetBorderLeftColorInternal(0); |
| 2973 SetBorderLeftColorInternal(true); | 2968 SetBorderLeftColorInternal(true); |
| 2974 } | 2969 } |
| 2975 void ResetBorderImage() { SetBorderImageInternal(NinePieceImage()); } | |
| 2976 | 2970 |
| 2977 void SetBorderRadius(const LengthSize& s) { | 2971 void SetBorderRadius(const LengthSize& s) { |
| 2978 SetBorderTopLeftRadius(s); | 2972 SetBorderTopLeftRadius(s); |
| 2979 SetBorderTopRightRadius(s); | 2973 SetBorderTopRightRadius(s); |
| 2980 SetBorderBottomLeftRadius(s); | 2974 SetBorderBottomLeftRadius(s); |
| 2981 SetBorderBottomRightRadius(s); | 2975 SetBorderBottomRightRadius(s); |
| 2982 } | 2976 } |
| 2983 void SetBorderRadius(const IntSize& s) { | 2977 void SetBorderRadius(const IntSize& s) { |
| 2984 SetBorderRadius( | 2978 SetBorderRadius( |
| 2985 LengthSize(Length(s.Width(), kFixed), Length(s.Height(), kFixed))); | 2979 LengthSize(Length(s.Width(), kFixed), Length(s.Height(), kFixed))); |
| (...skipping 786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3772 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); | 3766 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); |
| 3773 } | 3767 } |
| 3774 | 3768 |
| 3775 inline bool ComputedStyle::HasPseudoElementStyle() const { | 3769 inline bool ComputedStyle::HasPseudoElementStyle() const { |
| 3776 return PseudoBitsInternal() & kElementPseudoIdMask; | 3770 return PseudoBitsInternal() & kElementPseudoIdMask; |
| 3777 } | 3771 } |
| 3778 | 3772 |
| 3779 } // namespace blink | 3773 } // namespace blink |
| 3780 | 3774 |
| 3781 #endif // ComputedStyle_h | 3775 #endif // ComputedStyle_h |
| OLD | NEW |