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 1153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1164 const LengthPoint& OffsetPosition() const { | 1164 const LengthPoint& OffsetPosition() const { |
1165 return rare_non_inherited_data_->transform_->motion_.position_; | 1165 return rare_non_inherited_data_->transform_->motion_.position_; |
1166 } | 1166 } |
1167 void SetOffsetPosition(const LengthPoint& offset_position) { | 1167 void SetOffsetPosition(const LengthPoint& offset_position) { |
1168 SET_NESTED_VAR(rare_non_inherited_data_, transform_, motion_.position_, | 1168 SET_NESTED_VAR(rare_non_inherited_data_, transform_, motion_.position_, |
1169 offset_position); | 1169 offset_position); |
1170 } | 1170 } |
1171 | 1171 |
1172 // offset-rotate | 1172 // offset-rotate |
1173 static StyleOffsetRotation InitialOffsetRotate() { | 1173 static StyleOffsetRotation InitialOffsetRotate() { |
1174 return InitialOffsetRotation(); | |
1175 } | |
1176 const StyleOffsetRotation& OffsetRotate() const { return OffsetRotation(); } | |
1177 void SetOffsetRotate(const StyleOffsetRotation& offset_rotate) { | |
1178 SetOffsetRotation(offset_rotate); | |
1179 } | |
1180 | |
1181 // offset-rotation | |
1182 static StyleOffsetRotation InitialOffsetRotation() { | |
1183 return StyleOffsetRotation(0, kOffsetRotationAuto); | 1174 return StyleOffsetRotation(0, kOffsetRotationAuto); |
1184 } | 1175 } |
1185 const StyleOffsetRotation& OffsetRotation() const { | 1176 const StyleOffsetRotation& OffsetRotate() const { |
1186 return rare_non_inherited_data_->transform_->motion_.rotation_; | 1177 return rare_non_inherited_data_->transform_->motion_.rotation_; |
1187 } | 1178 } |
1188 void SetOffsetRotation(const StyleOffsetRotation& offset_rotation) { | 1179 void SetOffsetRotate(const StyleOffsetRotation& offset_rotate) { |
1189 SET_NESTED_VAR(rare_non_inherited_data_, transform_, motion_.rotation_, | 1180 SET_NESTED_VAR(rare_non_inherited_data_, transform_, motion_.rotation_, |
1190 offset_rotation); | 1181 offset_rotate); |
1191 } | 1182 } |
1192 | 1183 |
1193 // opacity (aka -webkit-opacity) | 1184 // opacity (aka -webkit-opacity) |
1194 static float InitialOpacity() { return 1.0f; } | 1185 static float InitialOpacity() { return 1.0f; } |
1195 float Opacity() const { return rare_non_inherited_data_->opacity; } | 1186 float Opacity() const { return rare_non_inherited_data_->opacity; } |
1196 void SetOpacity(float f) { | 1187 void SetOpacity(float f) { |
1197 float v = clampTo<float>(f, 0, 1); | 1188 float v = clampTo<float>(f, 0, 1); |
1198 SET_VAR(rare_non_inherited_data_, opacity, v); | 1189 SET_VAR(rare_non_inherited_data_, opacity, v); |
1199 } | 1190 } |
1200 | 1191 |
(...skipping 2494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3695 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); | 3686 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); |
3696 } | 3687 } |
3697 | 3688 |
3698 inline bool ComputedStyle::HasPseudoElementStyle() const { | 3689 inline bool ComputedStyle::HasPseudoElementStyle() const { |
3699 return PseudoBitsInternal() & kElementPseudoIdMask; | 3690 return PseudoBitsInternal() & kElementPseudoIdMask; |
3700 } | 3691 } |
3701 | 3692 |
3702 } // namespace blink | 3693 } // namespace blink |
3703 | 3694 |
3704 #endif // ComputedStyle_h | 3695 #endif // ComputedStyle_h |
OLD | NEW |