Chromium Code Reviews
DescriptionDCHECK style is cacheable in ComputedStyle::CopyNonInheritedFromCached.
In ComputedStyle::CopyNonInheritedFromCached, we copy computed values
of non inherited properties from another ComputedStyle to the current
ComputedStyle. There are several DCHECKS in this function to make
sure that the style we're copying from is cacheable.
This patch replaces those DCHECKS with a single DCHECK on a new
function called MatchedPropertiesCache::IsStyleCacheable.
BUG=628043
Review-Url: https://codereview.chromium.org/2895283003
Cr-Commit-Position: refs/heads/master@{#475267}
Committed: https://chromium.googlesource.com/chromium/src/+/8cb8d28de8f2c439a50307ddc142c533c5b79e2c
Patch Set 1 #Patch Set 2 : Rebase #Patch Set 3 : Address comments #
Messages
Total messages: 28 (19 generated)
|
|||||||||||||||||||||||||||||||||||||