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

Unified Diff: sky/engine/core/painting/Rect.cpp

Issue 1174253003: Make the stocks popup menu fade in (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | sky/engine/platform/graphics/GraphicsContext.cpp.rej » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/painting/Rect.cpp
diff --git a/sky/engine/core/painting/Rect.cpp b/sky/engine/core/painting/Rect.cpp
index ee0bb3cd26634b7f61298540aaafdca93e0079ce..84e8958ad3d2d8a300d9dc4755f372f57258d4af 100644
--- a/sky/engine/core/painting/Rect.cpp
+++ b/sky/engine/core/painting/Rect.cpp
@@ -22,6 +22,9 @@ Rect DartConverter<Rect>::FromArgumentsWithNullCheck(Dart_NativeArguments args,
Dart_Handle dart_rect = Dart_GetNativeArgument(args, index);
DCHECK(!LogIfError(dart_rect));
+ if (Dart_IsNull(dart_rect))
+ return result;
+
Dart_Handle value =
Dart_GetField(dart_rect, DOMDartState::Current()->value_handle());
if (Dart_IsNull(value))
« no previous file with comments | « no previous file | sky/engine/platform/graphics/GraphicsContext.cpp.rej » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698