The current code does this (for example):
- (AutomationPoint *)origin
return (AutomationPoint *)[super objectForKey:@"origin"];
However, at runtime the class of self is going to be RWIProtocolJSONObject *, not AutomationPoint *, so any subsequent calls to AutomationPoint properties on the return value will fail as the selectors will not be recognized.
Instead of doing a C-style pointer cast, we need to create a new AutomationPoint object that's backed by the InspectorObject retrieved from the parent object by key. This requires a new initWithXXX initializer for each object protocol type.
Created attachment 273819 [details]
This patch modifies the inspector protocol generator. Please ensure that you have rebaselined any generator test results (i.e., by running `Tools/Scripts/run-inspector-generator-tests --reset-results`)
Created attachment 273821 [details]
Comment on attachment 273821 [details]
Comment on attachment 273819 [details]
Clearing flags on attachment: 273819
Committed r198077: <http://trac.webkit.org/changeset/198077>
All reviewed patches have been landed. Closing bug.