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 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
469 } | 469 } |
470 bool HasEntirelyFixedBackground() const; | 470 bool HasEntirelyFixedBackground() const; |
471 | 471 |
472 // background-clip | 472 // background-clip |
473 EFillBox BackgroundClip() const { | 473 EFillBox BackgroundClip() const { |
474 return static_cast<EFillBox>(BackgroundInternal().Clip()); | 474 return static_cast<EFillBox>(BackgroundInternal().Clip()); |
475 } | 475 } |
476 | 476 |
477 // Border properties. | 477 // Border properties. |
478 // -webkit-border-image | 478 // -webkit-border-image |
479 static NinePieceImage InitialNinePieceImage() { return NinePieceImage(); } | 479 static NinePieceImage InitialNinePieceImage() { return NinePieceImage(); } |
shend
2017/05/18 06:21:08
You can remove this as well :)
nainar
2017/05/18 06:26:54
No I cant - the generated function is called Initi
nainar
2017/05/18 06:38:49
Fixed by removing the custom initial value on webk
| |
480 const NinePieceImage& BorderImage() const { return BorderImageInternal(); } | |
481 void SetBorderImage(const NinePieceImage& b) { SetBorderImageInternal(b); } | |
482 | 480 |
483 // border-image-slice | 481 // border-image-slice |
484 const LengthBox& BorderImageSlices() const { | 482 const LengthBox& BorderImageSlices() const { |
485 return BorderImage().ImageSlices(); | 483 return BorderImage().ImageSlices(); |
486 } | 484 } |
487 void SetBorderImageSlices(const LengthBox&); | 485 void SetBorderImageSlices(const LengthBox&); |
488 | 486 |
489 // border-image-source | 487 // border-image-source |
490 static StyleImage* InitialBorderImageSource() { return 0; } | 488 static StyleImage* InitialBorderImageSource() { return 0; } |
491 StyleImage* BorderImageSource() const { return BorderImage().GetImage(); } | 489 StyleImage* BorderImageSource() const { return BorderImage().GetImage(); } |
(...skipping 2520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3012 SetBorderBottomWidth(3); | 3010 SetBorderBottomWidth(3); |
3013 SetBorderBottomColorInternal(0); | 3011 SetBorderBottomColorInternal(0); |
3014 SetBorderBottomColorInternal(true); | 3012 SetBorderBottomColorInternal(true); |
3015 } | 3013 } |
3016 void ResetBorderLeft() { | 3014 void ResetBorderLeft() { |
3017 SetBorderLeftStyle(EBorderStyle::kNone); | 3015 SetBorderLeftStyle(EBorderStyle::kNone); |
3018 SetBorderLeftWidth(3); | 3016 SetBorderLeftWidth(3); |
3019 SetBorderLeftColorInternal(0); | 3017 SetBorderLeftColorInternal(0); |
3020 SetBorderLeftColorInternal(true); | 3018 SetBorderLeftColorInternal(true); |
3021 } | 3019 } |
3022 void ResetBorderImage() { SetBorderImageInternal(NinePieceImage()); } | |
3023 | 3020 |
3024 void SetBorderRadius(const LengthSize& s) { | 3021 void SetBorderRadius(const LengthSize& s) { |
3025 SetBorderTopLeftRadius(s); | 3022 SetBorderTopLeftRadius(s); |
3026 SetBorderTopRightRadius(s); | 3023 SetBorderTopRightRadius(s); |
3027 SetBorderBottomLeftRadius(s); | 3024 SetBorderBottomLeftRadius(s); |
3028 SetBorderBottomRightRadius(s); | 3025 SetBorderBottomRightRadius(s); |
3029 } | 3026 } |
3030 void SetBorderRadius(const IntSize& s) { | 3027 void SetBorderRadius(const IntSize& s) { |
3031 SetBorderRadius( | 3028 SetBorderRadius( |
3032 LengthSize(Length(s.Width(), kFixed), Length(s.Height(), kFixed))); | 3029 LengthSize(Length(s.Width(), kFixed), Length(s.Height(), kFixed))); |
(...skipping 788 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3821 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); | 3818 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); |
3822 } | 3819 } |
3823 | 3820 |
3824 inline bool ComputedStyle::HasPseudoElementStyle() const { | 3821 inline bool ComputedStyle::HasPseudoElementStyle() const { |
3825 return PseudoBitsInternal() & kElementPseudoIdMask; | 3822 return PseudoBitsInternal() & kElementPseudoIdMask; |
3826 } | 3823 } |
3827 | 3824 |
3828 } // namespace blink | 3825 } // namespace blink |
3829 | 3826 |
3830 #endif // ComputedStyle_h | 3827 #endif // ComputedStyle_h |
OLD | NEW |