DescriptionDon't try to set the empty string as the preferred set.
Noticed during debugging that we did an extra MarkDocumentDirty() for
active stylesheet update trying to change the preferred set from empty
string to empty string in a document where no sheets had a title
attribute.
Guard the call sites which didn't check for emptiness and add a DCHECK
in the SetPreferredStylesheetSetNameIfNotSet implementation.
Review-Url: https://codereview.chromium.org/2879223002
Cr-Commit-Position: refs/heads/master@{#472039}
Committed: https://chromium.googlesource.com/chromium/src/+/55085162c036ab80c4392d24cca15c28d7456848
Patch Set 1 #
Messages
Total messages: 12 (8 generated)
|