| 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 1002 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1013 return kDoNotRespectImageOrientation; | 1013 return kDoNotRespectImageOrientation; |
| 1014 } | 1014 } |
| 1015 RespectImageOrientationEnum RespectImageOrientation() const { | 1015 RespectImageOrientationEnum RespectImageOrientation() const { |
| 1016 return static_cast<RespectImageOrientationEnum>( | 1016 return static_cast<RespectImageOrientationEnum>( |
| 1017 RespectImageOrientationInternal()); | 1017 RespectImageOrientationInternal()); |
| 1018 } | 1018 } |
| 1019 void SetRespectImageOrientation(RespectImageOrientationEnum v) { | 1019 void SetRespectImageOrientation(RespectImageOrientationEnum v) { |
| 1020 SetRespectImageOrientationInternal(v); | 1020 SetRespectImageOrientationInternal(v); |
| 1021 } | 1021 } |
| 1022 | 1022 |
| 1023 // isolation | |
| 1024 static EIsolation InitialIsolation() { return EIsolation::kAuto; } | |
| 1025 EIsolation Isolation() const { | |
| 1026 return static_cast<EIsolation>(rare_non_inherited_data_->isolation_); | |
| 1027 } | |
| 1028 void SetIsolation(EIsolation v) { | |
| 1029 rare_non_inherited_data_.Access()->isolation_ = static_cast<unsigned>(v); | |
| 1030 } | |
| 1031 | |
| 1032 // -webkit-margin-before-collapse (aka -webkit-margin-top-collapse) | 1023 // -webkit-margin-before-collapse (aka -webkit-margin-top-collapse) |
| 1033 static EMarginCollapse InitialMarginBeforeCollapse() { | 1024 static EMarginCollapse InitialMarginBeforeCollapse() { |
| 1034 return kMarginCollapseCollapse; | 1025 return kMarginCollapseCollapse; |
| 1035 } | 1026 } |
| 1036 EMarginCollapse MarginAfterCollapse() const { | 1027 EMarginCollapse MarginAfterCollapse() const { |
| 1037 return static_cast<EMarginCollapse>( | 1028 return static_cast<EMarginCollapse>( |
| 1038 rare_non_inherited_data_->margin_after_collapse_); | 1029 rare_non_inherited_data_->margin_after_collapse_); |
| 1039 } | 1030 } |
| 1040 void SetMarginBeforeCollapse(EMarginCollapse c) { | 1031 void SetMarginBeforeCollapse(EMarginCollapse c) { |
| 1041 SET_VAR(rare_non_inherited_data_, margin_before_collapse_, c); | 1032 SET_VAR(rare_non_inherited_data_, margin_before_collapse_, c); |
| (...skipping 2532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3574 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); | 3565 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); |
| 3575 } | 3566 } |
| 3576 | 3567 |
| 3577 inline bool ComputedStyle::HasPseudoElementStyle() const { | 3568 inline bool ComputedStyle::HasPseudoElementStyle() const { |
| 3578 return PseudoBitsInternal() & kElementPseudoIdMask; | 3569 return PseudoBitsInternal() & kElementPseudoIdMask; |
| 3579 } | 3570 } |
| 3580 | 3571 |
| 3581 } // namespace blink | 3572 } // namespace blink |
| 3582 | 3573 |
| 3583 #endif // ComputedStyle_h | 3574 #endif // ComputedStyle_h |
| OLD | NEW |