Skip to content

Commit

Permalink
Fix the stub for layerActionForKey: to let CA continue the search (#1441
Browse files Browse the repository at this point in the history
)

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

* Kick CI
  • Loading branch information
Adlai-Holler committed Apr 4, 2019
1 parent d970dc3 commit bf466e8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Source/ASDisplayNode.mm
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,10 @@ BOOL ASDisplayNodeNeedsSpecialPropertiesHandling(BOOL isSynchronous, BOOL isLaye
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.
Expand Down

0 comments on commit bf466e8

Please sign in to comment.