Prevent reading stale/invalid data when applying a <pattern>

RenderSVGResourcePattern::applyResource was checking the value of
PatternAttributes::patternUnits() before it had been set from the element,
meaning it could have been stale after having been updated, or plain wrong
since the default value is oBB.
Hoist the PatternAttribute setup out of buildPattern() to make sure
|m_attributes| is valid when read.
The |resourceMode| attribute passed to buildPattern() is removed because
it is unused.

BUG=415619

Review URL: https://codereview.chromium.org/579243004

git-svn-id: svn://svn.chromium.org/blink/trunk@182268 bbb929c8-8fbe-4397-9dbb-9b2b20218538
6 files changed
tree: 9d1aebcbb84481221818770c8d76d6153696bbbf
  1. third_party/