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

Side by Side Diff: third_party/WebKit/Source/core/animation/BasicShapePropertyFunctions.h

Issue 2109333002: Replace ASSERT_NOT_REACHED with NOTREACHED (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef BasicShapePropertyFunctions_h 5 #ifndef BasicShapePropertyFunctions_h
6 #define BasicShapePropertyFunctions_h 6 #define BasicShapePropertyFunctions_h
7 7
8 #include "core/CSSPropertyNames.h" 8 #include "core/CSSPropertyNames.h"
9 #include "core/style/BasicShapes.h" 9 #include "core/style/BasicShapes.h"
10 #include "core/style/ComputedStyle.h" 10 #include "core/style/ComputedStyle.h"
(...skipping 22 matching lines...) Expand all
33 if (style.shapeOutside()->cssBox() != BoxMissing) 33 if (style.shapeOutside()->cssBox() != BoxMissing)
34 return nullptr; 34 return nullptr;
35 return style.shapeOutside()->shape(); 35 return style.shapeOutside()->shape();
36 case CSSPropertyWebkitClipPath: 36 case CSSPropertyWebkitClipPath:
37 if (!style.clipPath()) 37 if (!style.clipPath())
38 return nullptr; 38 return nullptr;
39 if (style.clipPath()->type() != ClipPathOperation::SHAPE) 39 if (style.clipPath()->type() != ClipPathOperation::SHAPE)
40 return nullptr; 40 return nullptr;
41 return toShapeClipPathOperation(style.clipPath())->basicShape(); 41 return toShapeClipPathOperation(style.clipPath())->basicShape();
42 default: 42 default:
43 ASSERT_NOT_REACHED(); 43 NOTREACHED();
44 return nullptr; 44 return nullptr;
45 } 45 }
46 } 46 }
47 47
48 static void setBasicShape(CSSPropertyID property, ComputedStyle& style, Pass RefPtr<BasicShape> shape) 48 static void setBasicShape(CSSPropertyID property, ComputedStyle& style, Pass RefPtr<BasicShape> shape)
49 { 49 {
50 switch (property) { 50 switch (property) {
51 case CSSPropertyShapeOutside: 51 case CSSPropertyShapeOutside:
52 style.setShapeOutside(ShapeValue::createShapeValue(shape, BoxMissing )); 52 style.setShapeOutside(ShapeValue::createShapeValue(shape, BoxMissing ));
53 break; 53 break;
54 case CSSPropertyWebkitClipPath: 54 case CSSPropertyWebkitClipPath:
55 style.setClipPath(ShapeClipPathOperation::create(shape)); 55 style.setClipPath(ShapeClipPathOperation::create(shape));
56 break; 56 break;
57 default: 57 default:
58 ASSERT_NOT_REACHED(); 58 NOTREACHED();
59 } 59 }
60 } 60 }
61 }; 61 };
62 62
63 } // namespace blink 63 } // namespace blink
64 64
65 #endif // BasicShapePropertyFunctions_h 65 #endif // BasicShapePropertyFunctions_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698