Fix the stub for layerActionForKey: to let CA continue the search (#1441)

* Fix the stub for layerActionForKey: to let CA continue the search

* Kick CI
This commit is contained in:
Adlai Holler
2019-04-03 17:46:26 -07:00
committed by GitHub
parent d970dc3548
commit bf466e83f2
+4 -1
View File
@@ -106,7 +106,10 @@ _ASPendingState *ASDisplayNodeGetPendingState(ASDisplayNode *node)
void StubImplementationWithNoArgs(id receiver, SEL _cmd) {}
void StubImplementationWithSizeRange(id receiver, SEL _cmd, ASSizeRange sr) {}
void StubImplementationWithTwoInterfaceStates(id receiver, SEL _cmd, ASInterfaceState s0, ASInterfaceState s1) {}
id StubLayerActionImplementation(id receiver, SEL _cmd, NSString *key) { return (id)kCFNull; }
/// Returning nil here won't trigger unwanted default actions, because we override
/// +defaultActionForKey: to return kCFNull.
id StubLayerActionImplementation(id receiver, SEL _cmd, NSString *key) { return nil; }
/**
* Returns ASDisplayNodeFlags for the given class/instance. instance MAY BE NIL.