| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Andreas Kling (kling@webkit.org) | 2 * Copyright (C) 2011 Andreas Kling (kling@webkit.org) |
| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 #include "core/css/CSSTimingFunctionValue.h" | 58 #include "core/css/CSSTimingFunctionValue.h" |
| 59 #include "core/css/CSSURIValue.h" | 59 #include "core/css/CSSURIValue.h" |
| 60 #include "core/css/CSSUnicodeRangeValue.h" | 60 #include "core/css/CSSUnicodeRangeValue.h" |
| 61 #include "core/css/CSSUnsetValue.h" | 61 #include "core/css/CSSUnsetValue.h" |
| 62 #include "core/css/CSSValueList.h" | 62 #include "core/css/CSSValueList.h" |
| 63 #include "core/css/CSSValuePair.h" | 63 #include "core/css/CSSValuePair.h" |
| 64 #include "core/css/CSSVariableReferenceValue.h" | 64 #include "core/css/CSSVariableReferenceValue.h" |
| 65 | 65 |
| 66 namespace blink { | 66 namespace blink { |
| 67 | 67 |
| 68 struct SameSizeAsCSSValue : public RefCountedWillBeGarbageCollectedFinalized<Sam
eSizeAsCSSValue> { | 68 struct SameSizeAsCSSValue : public GarbageCollectedFinalized<SameSizeAsCSSValue>
{ |
| 69 uint32_t bitfields; | 69 uint32_t bitfields; |
| 70 }; | 70 }; |
| 71 | 71 |
| 72 static_assert(sizeof(CSSValue) <= sizeof(SameSizeAsCSSValue), "CSSValue should s
tay small"); | 72 static_assert(sizeof(CSSValue) <= sizeof(SameSizeAsCSSValue), "CSSValue should s
tay small"); |
| 73 | 73 |
| 74 bool CSSValue::isImplicitInitialValue() const | 74 bool CSSValue::isImplicitInitialValue() const |
| 75 { | 75 { |
| 76 return m_classType == InitialClass && toCSSInitialValue(this)->isImplicit(); | 76 return m_classType == InitialClass && toCSSInitialValue(this)->isImplicit(); |
| 77 } | 77 } |
| 78 | 78 |
| (...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 665 toCSSVariableReferenceValue(this)->traceAfterDispatch(visitor); | 665 toCSSVariableReferenceValue(this)->traceAfterDispatch(visitor); |
| 666 return; | 666 return; |
| 667 case CustomPropertyDeclarationClass: | 667 case CustomPropertyDeclarationClass: |
| 668 toCSSCustomPropertyDeclaration(this)->traceAfterDispatch(visitor); | 668 toCSSCustomPropertyDeclaration(this)->traceAfterDispatch(visitor); |
| 669 return; | 669 return; |
| 670 } | 670 } |
| 671 ASSERT_NOT_REACHED(); | 671 ASSERT_NOT_REACHED(); |
| 672 } | 672 } |
| 673 | 673 |
| 674 } // namespace blink | 674 } // namespace blink |
| OLD | NEW |