| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 return CSSPrimitiveValue::create(value, zoom); | 90 return CSSPrimitiveValue::create(value, zoom); |
| 91 case DeviceWidth: | 91 case DeviceWidth: |
| 92 case DeviceHeight: | 92 case DeviceHeight: |
| 93 case MaxSizeNone: | 93 case MaxSizeNone: |
| 94 NOTREACHED(); | 94 NOTREACHED(); |
| 95 break; | 95 break; |
| 96 } | 96 } |
| 97 return nullptr; | 97 return nullptr; |
| 98 } | 98 } |
| 99 | 99 |
| 100 bool CSSValue::isImplicitInitialValue() const { | |
| 101 return m_classType == InitialClass && toCSSInitialValue(this)->isImplicit(); | |
| 102 } | |
| 103 | |
| 104 bool CSSValue::hasFailedOrCanceledSubresources() const { | 100 bool CSSValue::hasFailedOrCanceledSubresources() const { |
| 105 if (isValueList()) | 101 if (isValueList()) |
| 106 return toCSSValueList(this)->hasFailedOrCanceledSubresources(); | 102 return toCSSValueList(this)->hasFailedOrCanceledSubresources(); |
| 107 if (getClassType() == FontFaceSrcClass) | 103 if (getClassType() == FontFaceSrcClass) |
| 108 return toCSSFontFaceSrcValue(this)->hasFailedOrCanceledSubresources(); | 104 return toCSSFontFaceSrcValue(this)->hasFailedOrCanceledSubresources(); |
| 109 if (getClassType() == ImageClass) | 105 if (getClassType() == ImageClass) |
| 110 return toCSSImageValue(this)->hasFailedOrCanceledSubresources(); | 106 return toCSSImageValue(this)->hasFailedOrCanceledSubresources(); |
| 111 if (getClassType() == CrossfadeClass) | 107 if (getClassType() == CrossfadeClass) |
| 112 return toCSSCrossfadeValue(this)->hasFailedOrCanceledSubresources(); | 108 return toCSSCrossfadeValue(this)->hasFailedOrCanceledSubresources(); |
| 113 if (getClassType() == ImageSetClass) | 109 if (getClassType() == ImageSetClass) |
| (...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 578 toCSSCustomPropertyDeclaration(this)->traceAfterDispatch(visitor); | 574 toCSSCustomPropertyDeclaration(this)->traceAfterDispatch(visitor); |
| 579 return; | 575 return; |
| 580 case PendingSubstitutionValueClass: | 576 case PendingSubstitutionValueClass: |
| 581 toCSSPendingSubstitutionValue(this)->traceAfterDispatch(visitor); | 577 toCSSPendingSubstitutionValue(this)->traceAfterDispatch(visitor); |
| 582 return; | 578 return; |
| 583 } | 579 } |
| 584 ASSERT_NOT_REACHED(); | 580 ASSERT_NOT_REACHED(); |
| 585 } | 581 } |
| 586 | 582 |
| 587 } // namespace blink | 583 } // namespace blink |
| OLD | NEW |