DescriptionOne instead of three resolverChanged replacing source in inspector.
resolverChanged() was called three times when replacing the stylesheet
text from the inspector. Two mutation scopes and an explicit call at
the end.
Kept one of the mutation scopes. Two shouldn't be necessary, and I have
confirmed that the crash tests for which this was justified earlier
don't crash when removing one of the scopes.
Moved the stylesheet modifications into CSSStyleSheet::setText().
Also moved clearing of the CSSOM wrappers before the mutation scope
declaration as the mutation scope constructor would unnecessarily
re-attach wrappers which would then be cleared right after.
R=esprehn@chromium.org,pfeldman@chromium.org
BUG=591599
Committed: https://crrev.com/5958ca8683dd9478a780d516205355a36c48c5aa
Cr-Commit-Position: refs/heads/master@{#378978}
Patch Set 1 #
Messages
Total messages: 14 (6 generated)
|