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

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

Issue 2881673003: CSS Motion Path: Support parsing of ray(<angle>) paths (Closed)
Patch Set: DCHECK_EQ Created 3 years, 7 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 #include "core/css/CSSIdentifierValue.h" 47 #include "core/css/CSSIdentifierValue.h"
48 #include "core/css/CSSImageSetValue.h" 48 #include "core/css/CSSImageSetValue.h"
49 #include "core/css/CSSImageValue.h" 49 #include "core/css/CSSImageValue.h"
50 #include "core/css/CSSInheritedValue.h" 50 #include "core/css/CSSInheritedValue.h"
51 #include "core/css/CSSInitialValue.h" 51 #include "core/css/CSSInitialValue.h"
52 #include "core/css/CSSPaintValue.h" 52 #include "core/css/CSSPaintValue.h"
53 #include "core/css/CSSPathValue.h" 53 #include "core/css/CSSPathValue.h"
54 #include "core/css/CSSPendingSubstitutionValue.h" 54 #include "core/css/CSSPendingSubstitutionValue.h"
55 #include "core/css/CSSPrimitiveValue.h" 55 #include "core/css/CSSPrimitiveValue.h"
56 #include "core/css/CSSQuadValue.h" 56 #include "core/css/CSSQuadValue.h"
57 #include "core/css/CSSRayValue.h"
57 #include "core/css/CSSReflectValue.h" 58 #include "core/css/CSSReflectValue.h"
58 #include "core/css/CSSShadowValue.h" 59 #include "core/css/CSSShadowValue.h"
59 #include "core/css/CSSStringValue.h" 60 #include "core/css/CSSStringValue.h"
60 #include "core/css/CSSTimingFunctionValue.h" 61 #include "core/css/CSSTimingFunctionValue.h"
61 #include "core/css/CSSURIValue.h" 62 #include "core/css/CSSURIValue.h"
62 #include "core/css/CSSUnicodeRangeValue.h" 63 #include "core/css/CSSUnicodeRangeValue.h"
63 #include "core/css/CSSUnsetValue.h" 64 #include "core/css/CSSUnsetValue.h"
64 #include "core/css/CSSValueList.h" 65 #include "core/css/CSSValueList.h"
65 #include "core/css/CSSValuePair.h" 66 #include "core/css/CSSValuePair.h"
66 #include "core/css/CSSVariableReferenceValue.h" 67 #include "core/css/CSSVariableReferenceValue.h"
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 case kGridAutoRepeatClass: 196 case kGridAutoRepeatClass:
196 return CompareCSSValues<CSSGridAutoRepeatValue>(*this, other); 197 return CompareCSSValues<CSSGridAutoRepeatValue>(*this, other);
197 case kGridLineNamesClass: 198 case kGridLineNamesClass:
198 return CompareCSSValues<CSSGridLineNamesValue>(*this, other); 199 return CompareCSSValues<CSSGridLineNamesValue>(*this, other);
199 case kGridTemplateAreasClass: 200 case kGridTemplateAreasClass:
200 return CompareCSSValues<CSSGridTemplateAreasValue>(*this, other); 201 return CompareCSSValues<CSSGridTemplateAreasValue>(*this, other);
201 case kPathClass: 202 case kPathClass:
202 return CompareCSSValues<CSSPathValue>(*this, other); 203 return CompareCSSValues<CSSPathValue>(*this, other);
203 case kPrimitiveClass: 204 case kPrimitiveClass:
204 return CompareCSSValues<CSSPrimitiveValue>(*this, other); 205 return CompareCSSValues<CSSPrimitiveValue>(*this, other);
206 case kRayClass:
207 return CompareCSSValues<CSSRayValue>(*this, other);
205 case kIdentifierClass: 208 case kIdentifierClass:
206 return CompareCSSValues<CSSIdentifierValue>(*this, other); 209 return CompareCSSValues<CSSIdentifierValue>(*this, other);
207 case kQuadClass: 210 case kQuadClass:
208 return CompareCSSValues<CSSQuadValue>(*this, other); 211 return CompareCSSValues<CSSQuadValue>(*this, other);
209 case kReflectClass: 212 case kReflectClass:
210 return CompareCSSValues<CSSReflectValue>(*this, other); 213 return CompareCSSValues<CSSReflectValue>(*this, other);
211 case kShadowClass: 214 case kShadowClass:
212 return CompareCSSValues<CSSShadowValue>(*this, other); 215 return CompareCSSValues<CSSShadowValue>(*this, other);
213 case kStringClass: 216 case kStringClass:
214 return CompareCSSValues<CSSStringValue>(*this, other); 217 return CompareCSSValues<CSSStringValue>(*this, other);
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 case kGridAutoRepeatClass: 298 case kGridAutoRepeatClass:
296 return ToCSSGridAutoRepeatValue(this)->CustomCSSText(); 299 return ToCSSGridAutoRepeatValue(this)->CustomCSSText();
297 case kGridLineNamesClass: 300 case kGridLineNamesClass:
298 return ToCSSGridLineNamesValue(this)->CustomCSSText(); 301 return ToCSSGridLineNamesValue(this)->CustomCSSText();
299 case kGridTemplateAreasClass: 302 case kGridTemplateAreasClass:
300 return ToCSSGridTemplateAreasValue(this)->CustomCSSText(); 303 return ToCSSGridTemplateAreasValue(this)->CustomCSSText();
301 case kPathClass: 304 case kPathClass:
302 return ToCSSPathValue(this)->CustomCSSText(); 305 return ToCSSPathValue(this)->CustomCSSText();
303 case kPrimitiveClass: 306 case kPrimitiveClass:
304 return ToCSSPrimitiveValue(this)->CustomCSSText(); 307 return ToCSSPrimitiveValue(this)->CustomCSSText();
308 case kRayClass:
309 return ToCSSRayValue(this)->CustomCSSText();
305 case kIdentifierClass: 310 case kIdentifierClass:
306 return ToCSSIdentifierValue(this)->CustomCSSText(); 311 return ToCSSIdentifierValue(this)->CustomCSSText();
307 case kQuadClass: 312 case kQuadClass:
308 return ToCSSQuadValue(this)->CustomCSSText(); 313 return ToCSSQuadValue(this)->CustomCSSText();
309 case kReflectClass: 314 case kReflectClass:
310 return ToCSSReflectValue(this)->CustomCSSText(); 315 return ToCSSReflectValue(this)->CustomCSSText();
311 case kShadowClass: 316 case kShadowClass:
312 return ToCSSShadowValue(this)->CustomCSSText(); 317 return ToCSSShadowValue(this)->CustomCSSText();
313 case kStringClass: 318 case kStringClass:
314 return ToCSSStringValue(this)->CustomCSSText(); 319 return ToCSSStringValue(this)->CustomCSSText();
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 return; 425 return;
421 case kGridTemplateAreasClass: 426 case kGridTemplateAreasClass:
422 ToCSSGridTemplateAreasValue(this)->~CSSGridTemplateAreasValue(); 427 ToCSSGridTemplateAreasValue(this)->~CSSGridTemplateAreasValue();
423 return; 428 return;
424 case kPathClass: 429 case kPathClass:
425 ToCSSPathValue(this)->~CSSPathValue(); 430 ToCSSPathValue(this)->~CSSPathValue();
426 return; 431 return;
427 case kPrimitiveClass: 432 case kPrimitiveClass:
428 ToCSSPrimitiveValue(this)->~CSSPrimitiveValue(); 433 ToCSSPrimitiveValue(this)->~CSSPrimitiveValue();
429 return; 434 return;
435 case kRayClass:
436 ToCSSRayValue(this)->~CSSRayValue();
437 return;
430 case kIdentifierClass: 438 case kIdentifierClass:
431 ToCSSIdentifierValue(this)->~CSSIdentifierValue(); 439 ToCSSIdentifierValue(this)->~CSSIdentifierValue();
432 return; 440 return;
433 case kQuadClass: 441 case kQuadClass:
434 ToCSSQuadValue(this)->~CSSQuadValue(); 442 ToCSSQuadValue(this)->~CSSQuadValue();
435 return; 443 return;
436 case kReflectClass: 444 case kReflectClass:
437 ToCSSReflectValue(this)->~CSSReflectValue(); 445 ToCSSReflectValue(this)->~CSSReflectValue();
438 return; 446 return;
439 case kShadowClass: 447 case kShadowClass:
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
562 return; 570 return;
563 case kGridTemplateAreasClass: 571 case kGridTemplateAreasClass:
564 ToCSSGridTemplateAreasValue(this)->TraceAfterDispatch(visitor); 572 ToCSSGridTemplateAreasValue(this)->TraceAfterDispatch(visitor);
565 return; 573 return;
566 case kPathClass: 574 case kPathClass:
567 ToCSSPathValue(this)->TraceAfterDispatch(visitor); 575 ToCSSPathValue(this)->TraceAfterDispatch(visitor);
568 return; 576 return;
569 case kPrimitiveClass: 577 case kPrimitiveClass:
570 ToCSSPrimitiveValue(this)->TraceAfterDispatch(visitor); 578 ToCSSPrimitiveValue(this)->TraceAfterDispatch(visitor);
571 return; 579 return;
580 case kRayClass:
581 ToCSSRayValue(this)->TraceAfterDispatch(visitor);
582 return;
572 case kIdentifierClass: 583 case kIdentifierClass:
573 ToCSSIdentifierValue(this)->TraceAfterDispatch(visitor); 584 ToCSSIdentifierValue(this)->TraceAfterDispatch(visitor);
574 return; 585 return;
575 case kQuadClass: 586 case kQuadClass:
576 ToCSSQuadValue(this)->TraceAfterDispatch(visitor); 587 ToCSSQuadValue(this)->TraceAfterDispatch(visitor);
577 return; 588 return;
578 case kReflectClass: 589 case kReflectClass:
579 ToCSSReflectValue(this)->TraceAfterDispatch(visitor); 590 ToCSSReflectValue(this)->TraceAfterDispatch(visitor);
580 return; 591 return;
581 case kShadowClass: 592 case kShadowClass:
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
618 ToCSSCustomPropertyDeclaration(this)->TraceAfterDispatch(visitor); 629 ToCSSCustomPropertyDeclaration(this)->TraceAfterDispatch(visitor);
619 return; 630 return;
620 case kPendingSubstitutionValueClass: 631 case kPendingSubstitutionValueClass:
621 ToCSSPendingSubstitutionValue(this)->TraceAfterDispatch(visitor); 632 ToCSSPendingSubstitutionValue(this)->TraceAfterDispatch(visitor);
622 return; 633 return;
623 } 634 }
624 NOTREACHED(); 635 NOTREACHED();
625 } 636 }
626 637
627 } // namespace blink 638 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698