| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 RotateZTransformOperation, | 54 RotateZTransformOperation, |
| 55 Rotate3DTransformOperation, | 55 Rotate3DTransformOperation, |
| 56 ScaleZTransformOperation, | 56 ScaleZTransformOperation, |
| 57 Scale3DTransformOperation, | 57 Scale3DTransformOperation, |
| 58 PerspectiveTransformOperation, | 58 PerspectiveTransformOperation, |
| 59 Matrix3DTransformOperation | 59 Matrix3DTransformOperation |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 static PassRefPtrWillBeRawPtr<CSSTransformValue> create(TransformOperationTy
pe type) | 62 static PassRefPtrWillBeRawPtr<CSSTransformValue> create(TransformOperationTy
pe type) |
| 63 { | 63 { |
| 64 return adoptRefCountedWillBeRefCountedGarbageCollected(new CSSTransformV
alue(type)); | 64 return adoptRefWillBeRefCountedGarbageCollected(new CSSTransformValue(ty
pe)); |
| 65 } | 65 } |
| 66 | 66 |
| 67 String customCSSText() const; | 67 String customCSSText() const; |
| 68 bool equals(const CSSTransformValue& other) const { return m_type == other.m
_type && CSSValueList::equals(other); } | 68 bool equals(const CSSTransformValue& other) const { return m_type == other.m
_type && CSSValueList::equals(other); } |
| 69 | 69 |
| 70 TransformOperationType operationType() const { return m_type; } | 70 TransformOperationType operationType() const { return m_type; } |
| 71 | 71 |
| 72 PassRefPtrWillBeRawPtr<CSSTransformValue> cloneForCSSOM() const; | 72 PassRefPtrWillBeRawPtr<CSSTransformValue> cloneForCSSOM() const; |
| 73 | 73 |
| 74 void traceAfterDispatch(Visitor* visitor) { CSSValueList::traceAfterDispatch
(visitor); } | 74 void traceAfterDispatch(Visitor* visitor) { CSSValueList::traceAfterDispatch
(visitor); } |
| 75 | 75 |
| 76 private: | 76 private: |
| 77 CSSTransformValue(TransformOperationType); | 77 CSSTransformValue(TransformOperationType); |
| 78 CSSTransformValue(const CSSTransformValue& cloneFrom); | 78 CSSTransformValue(const CSSTransformValue& cloneFrom); |
| 79 | 79 |
| 80 TransformOperationType m_type; | 80 TransformOperationType m_type; |
| 81 }; | 81 }; |
| 82 | 82 |
| 83 DEFINE_CSS_VALUE_TYPE_CASTS(CSSTransformValue, isTransformValue()); | 83 DEFINE_CSS_VALUE_TYPE_CASTS(CSSTransformValue, isTransformValue()); |
| 84 | 84 |
| 85 } | 85 } |
| 86 | 86 |
| 87 #endif | 87 #endif |
| OLD | NEW |