Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(216)

Side by Side Diff: third_party/WebKit/Source/core/css/CSSValue.cpp

Issue 2616703004: Remove CSSInitialValue::createLegacyImplicit() (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSValue.h ('k') | third_party/WebKit/Source/core/css/CSSValuePool.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698