| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 #include "core/css/CSSTimingFunctionValue.h" | 55 #include "core/css/CSSTimingFunctionValue.h" |
| 56 #include "core/css/CSSURIValue.h" | 56 #include "core/css/CSSURIValue.h" |
| 57 #include "core/css/CSSUnicodeRangeValue.h" | 57 #include "core/css/CSSUnicodeRangeValue.h" |
| 58 #include "core/css/CSSUnsetValue.h" | 58 #include "core/css/CSSUnsetValue.h" |
| 59 #include "core/css/CSSValueList.h" | 59 #include "core/css/CSSValueList.h" |
| 60 #include "core/css/CSSValuePair.h" | 60 #include "core/css/CSSValuePair.h" |
| 61 #include "core/css/CSSVariableReferenceValue.h" | 61 #include "core/css/CSSVariableReferenceValue.h" |
| 62 | 62 |
| 63 namespace blink { | 63 namespace blink { |
| 64 | 64 |
| 65 struct SameSizeAsCSSValue : public RefCountedWillBeGarbageCollectedFinalized<Sam
eSizeAsCSSValue> { | 65 struct SameSizeAsCSSValue : public GarbageCollectedFinalized<SameSizeAsCSSValue>
{ |
| 66 uint32_t bitfields; | 66 uint32_t bitfields; |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 static_assert(sizeof(CSSValue) <= sizeof(SameSizeAsCSSValue), "CSSValue should s
tay small"); | 69 static_assert(sizeof(CSSValue) <= sizeof(SameSizeAsCSSValue), "CSSValue should s
tay small"); |
| 70 | 70 |
| 71 bool CSSValue::isImplicitInitialValue() const | 71 bool CSSValue::isImplicitInitialValue() const |
| 72 { | 72 { |
| 73 return m_classType == InitialClass && toCSSInitialValue(this)->isImplicit(); | 73 return m_classType == InitialClass && toCSSInitialValue(this)->isImplicit(); |
| 74 } | 74 } |
| 75 | 75 |
| (...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 623 toCSSVariableReferenceValue(this)->traceAfterDispatch(visitor); | 623 toCSSVariableReferenceValue(this)->traceAfterDispatch(visitor); |
| 624 return; | 624 return; |
| 625 case CustomPropertyDeclarationClass: | 625 case CustomPropertyDeclarationClass: |
| 626 toCSSCustomPropertyDeclaration(this)->traceAfterDispatch(visitor); | 626 toCSSCustomPropertyDeclaration(this)->traceAfterDispatch(visitor); |
| 627 return; | 627 return; |
| 628 } | 628 } |
| 629 ASSERT_NOT_REACHED(); | 629 ASSERT_NOT_REACHED(); |
| 630 } | 630 } |
| 631 | 631 |
| 632 } // namespace blink | 632 } // namespace blink |
| OLD | NEW |