Description[Line Layout API] Add nullptr constructors to all LineLayoutItem descendants
This came up in another CL ( https://codereview.chromium.org/1433253003/ )
where we needed to nullify a private LineLayoutText object and couldn't do
the obvious m_lineLayoutText=nullptr solution. This CL will let anyone do
the obvious thing and have it work properly, without casting or separate
methods.
BUG=499321
Committed: https://crrev.com/f85fc03a7ec41b34073d25044dc3495b266724a0
Cr-Commit-Position: refs/heads/master@{#360971}
Patch Set 1 #
Total comments: 1
Patch Set 2 : add explicit to all new constructors #Messages
Total messages: 9 (2 generated)
|