зеркало из https://github.com/mozilla/gecko-dev.git
088af889f0
In this patch, we implement nsIDOMWindowUtils::GetUnanimatedComputedStyle which returns computed value of given CSS property without animation rule. This method is used from the DevTools animation inspector to fill in keyframe values when the property value is null (indicating that the underlying/base value is being used). In order to implement this, we extend nsComputedDOMStyle constructor to fetch the computed style minus animation style (i.e. the base style). This is somewhat complicated by the fact that for discrete animation. StyleAnimationValue::ExtractComputedValue may return ‘unset’, ‘initial’ or ‘inherit’. For example, if the author uses the 'unset' 'initial' or 'inherit' keyword for a discrete property (e.g. 'align-content’), ExtractComputedValue returns the keywords as-is. Furthermore, if the user does not set any specific keyword, ExtractComputedValue returns ‘unset’. We use this new nsComputedDOMStyle mechanism to resolve these keywords into a valid keyword for computed style in the same way as other properties (e.g. ‘opacity’). MozReview-Commit-ID: HffJ9SCDf2k --HG-- extra : rebase_source : 64df3850b862dada5f8e0767d47dc478d454ba31 |
||
---|---|---|
.. | ||
base | ||
canvas | ||
core | ||
css | ||
events | ||
geolocation | ||
html | ||
json | ||
notification | ||
offline | ||
push | ||
range | ||
security | ||
settings | ||
sidebar | ||
smil | ||
storage | ||
stylesheets | ||
svg | ||
traversal | ||
xbl | ||
xpath | ||
xul |