| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 #include "core/css/CSSPrimitiveValue.h" | 48 #include "core/css/CSSPrimitiveValue.h" |
| 49 #include "core/css/CSSQuadValue.h" | 49 #include "core/css/CSSQuadValue.h" |
| 50 #include "core/css/CSSReflectValue.h" | 50 #include "core/css/CSSReflectValue.h" |
| 51 #include "core/css/CSSSVGDocumentValue.h" | 51 #include "core/css/CSSSVGDocumentValue.h" |
| 52 #include "core/css/CSSShadowValue.h" | 52 #include "core/css/CSSShadowValue.h" |
| 53 #include "core/css/CSSTimingFunctionValue.h" | 53 #include "core/css/CSSTimingFunctionValue.h" |
| 54 #include "core/css/CSSUnicodeRangeValue.h" | 54 #include "core/css/CSSUnicodeRangeValue.h" |
| 55 #include "core/css/CSSUnsetValue.h" | 55 #include "core/css/CSSUnsetValue.h" |
| 56 #include "core/css/CSSValueList.h" | 56 #include "core/css/CSSValueList.h" |
| 57 #include "core/css/CSSValuePair.h" | 57 #include "core/css/CSSValuePair.h" |
| 58 #include "wtf/SizeAssertions.h" |
| 58 | 59 |
| 59 namespace blink { | 60 namespace blink { |
| 60 | 61 |
| 61 struct SameSizeAsCSSValue : public RefCountedWillBeGarbageCollectedFinalized<Sam
eSizeAsCSSValue> { | 62 ASSERT_SIZE(CSSValue, 8, 8); |
| 62 uint32_t bitfields; | |
| 63 }; | |
| 64 | |
| 65 static_assert(sizeof(CSSValue) <= sizeof(SameSizeAsCSSValue), "CSSValue should s
tay small"); | |
| 66 | 63 |
| 67 bool CSSValue::isImplicitInitialValue() const | 64 bool CSSValue::isImplicitInitialValue() const |
| 68 { | 65 { |
| 69 return m_classType == InitialClass && toCSSInitialValue(this)->isImplicit(); | 66 return m_classType == InitialClass && toCSSInitialValue(this)->isImplicit(); |
| 70 } | 67 } |
| 71 | 68 |
| 72 bool CSSValue::hasFailedOrCanceledSubresources() const | 69 bool CSSValue::hasFailedOrCanceledSubresources() const |
| 73 { | 70 { |
| 74 if (isValueList()) | 71 if (isValueList()) |
| 75 return toCSSValueList(this)->hasFailedOrCanceledSubresources(); | 72 return toCSSValueList(this)->hasFailedOrCanceledSubresources(); |
| (...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 515 toCSSSVGDocumentValue(this)->traceAfterDispatch(visitor); | 512 toCSSSVGDocumentValue(this)->traceAfterDispatch(visitor); |
| 516 return; | 513 return; |
| 517 case CSSContentDistributionClass: | 514 case CSSContentDistributionClass: |
| 518 toCSSContentDistributionValue(this)->traceAfterDispatch(visitor); | 515 toCSSContentDistributionValue(this)->traceAfterDispatch(visitor); |
| 519 return; | 516 return; |
| 520 } | 517 } |
| 521 ASSERT_NOT_REACHED(); | 518 ASSERT_NOT_REACHED(); |
| 522 } | 519 } |
| 523 | 520 |
| 524 } | 521 } |
| OLD | NEW |