| 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 579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 590 } | 590 } |
| 591 } | 591 } |
| 592 | 592 |
| 593 // box-shadow (aka -webkit-box-shadow) | 593 // box-shadow (aka -webkit-box-shadow) |
| 594 static ShadowList* InitialBoxShadow() { return 0; } | 594 static ShadowList* InitialBoxShadow() { return 0; } |
| 595 ShadowList* BoxShadow() const { | 595 ShadowList* BoxShadow() const { |
| 596 return rare_non_inherited_data_->box_shadow_.Get(); | 596 return rare_non_inherited_data_->box_shadow_.Get(); |
| 597 } | 597 } |
| 598 void SetBoxShadow(PassRefPtr<ShadowList>); | 598 void SetBoxShadow(PassRefPtr<ShadowList>); |
| 599 | 599 |
| 600 // box-sizing (aka -webkit-box-sizing) | |
| 601 static EBoxSizing InitialBoxSizing() { return EBoxSizing::kContentBox; } | |
| 602 EBoxSizing BoxSizing() const { | |
| 603 return static_cast<EBoxSizing>(box_data_->box_sizing_); | |
| 604 } | |
| 605 void SetBoxSizing(EBoxSizing s) { | |
| 606 SET_VAR(box_data_, box_sizing_, static_cast<unsigned>(s)); | |
| 607 } | |
| 608 | |
| 609 // clip | 600 // clip |
| 610 static LengthBox InitialClip() { return LengthBox(); } | 601 static LengthBox InitialClip() { return LengthBox(); } |
| 611 const LengthBox& Clip() const { return visual_data_->clip_; } | 602 const LengthBox& Clip() const { return visual_data_->clip_; } |
| 612 void SetClip(const LengthBox& box) { | 603 void SetClip(const LengthBox& box) { |
| 613 SET_VAR(visual_data_, has_auto_clip_, false); | 604 SET_VAR(visual_data_, has_auto_clip_, false); |
| 614 SET_VAR(visual_data_, clip_, box); | 605 SET_VAR(visual_data_, clip_, box); |
| 615 } | 606 } |
| 616 bool HasAutoClip() const { return visual_data_->has_auto_clip_; } | 607 bool HasAutoClip() const { return visual_data_->has_auto_clip_; } |
| 617 void SetHasAutoClip() { | 608 void SetHasAutoClip() { |
| 618 SET_VAR(visual_data_, has_auto_clip_, true); | 609 SET_VAR(visual_data_, has_auto_clip_, true); |
| (...skipping 3115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3734 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); | 3725 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); |
| 3735 } | 3726 } |
| 3736 | 3727 |
| 3737 inline bool ComputedStyle::HasPseudoElementStyle() const { | 3728 inline bool ComputedStyle::HasPseudoElementStyle() const { |
| 3738 return PseudoBitsInternal() & kElementPseudoIdMask; | 3729 return PseudoBitsInternal() & kElementPseudoIdMask; |
| 3739 } | 3730 } |
| 3740 | 3731 |
| 3741 } // namespace blink | 3732 } // namespace blink |
| 3742 | 3733 |
| 3743 #endif // ComputedStyle_h | 3734 #endif // ComputedStyle_h |
| OLD | NEW |