gecko-dev/dom/interfaces/base
Daisuke Akatsuka 088af889f0 Bug 1210796 - Part 1a: Add GetUnanimatedComputedStyle into nsIDOMWindowUtils to use in animationinspector of devtools. r=birtles,heycam
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
2017-04-18 12:15:47 +09:00
..
domstubs.idl Bug 1256178 - Drop the moz prefix from the MozCSSKeyframeRule and MozCSSKeyframesRule interfaces; r=bzbarsky 2016-03-15 10:23:01 -04:00
moz.build Bug 1339232 - annotate more dom/* moz.build files with BUG_COMPONENT. r=overholt 2017-03-01 08:20:25 -05:00
nsIBrowser.idl Bug 1335281 - Use frame loader for same process browsers. r=mrbkap 2017-02-14 14:12:35 -06:00
nsIBrowserDOMWindow.idl Bug 1303196 - Part 7: Updates to apply correctly after noopener changes, r=smaug 2016-10-27 15:53:35 -04:00
nsIContentPermissionPrompt.idl Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug 2016-01-30 09:05:36 -08:00
nsIContentPrefService2.idl
nsIContentPrefService.idl Bug 1255576 - Propagate privacy status for removed content preferences to observers. r=adw 2016-04-04 15:25:58 -04:00
nsIContentProcess.idl Bug 1346288 - Block e10s-multi if e10sMultiBlockedByAddons is set. r=mrbkap 2017-03-30 18:44:20 +02:00
nsIContentURIGrouper.idl
nsIDOMChromeWindow.idl Bug 1303196 - Part 2: Connect the DocGroup and TabGroup objects to nsGlobalWindow and nsDocument, ensuring that Opener is set early enough that it is correct, r=smaug 2016-10-27 15:53:35 -04:00
nsIDOMClientRect.idl
nsIDOMClientRectList.idl
nsIDOMConstructor.idl
nsIDOMCrypto.idl
nsIDOMGlobalPropertyInitializer.idl Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug 2016-01-30 09:05:36 -08:00
nsIDOMHistory.idl
nsIDOMLocation.idl
nsIDOMModalContentWindow.idl
nsIDOMNavigator.idl Bug 1317591. Get rid of IsCallerChrome usage in Navigator. r=bkelly 2016-11-15 17:44:43 -05:00
nsIDOMScreen.idl Bug 1325016 part 1. Remove some unused nsIDOMScreen functions. r=bkelly 2016-12-22 11:05:54 -08:00
nsIDOMWindow.idl
nsIDOMWindowCollection.idl Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug 2016-01-30 09:05:36 -08:00
nsIDOMWindowUtils.idl Bug 1210796 - Part 1a: Add GetUnanimatedComputedStyle into nsIDOMWindowUtils to use in animationinspector of devtools. r=birtles,heycam 2017-04-18 12:15:47 +09:00
nsIFocusManager.idl Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug 2016-01-30 09:05:36 -08:00
nsIIdleObserver.idl
nsIQueryContentEventResult.idl Bug 1203871 - Part 4. Implement QUERY_TEXT_RECT_ARRAY to nsIDOMWindowUtils for unit test. r=masayuki,smaug 2016-06-23 10:42:00 +01:00
nsIRemoteBrowser.idl Bug 92737 - Part 3: Open multiple tabs when multiple items are dropped on remote content area. r=enndeakin 2015-11-11 07:35:12 +09:00
nsIServiceWorkerManager.idl Bug 1251238 - Part 3: Add timestamps to track when a service worker is installed/activated/redundant and when a service worker's registration is updated. r=bkelly 2017-04-06 15:26:08 +08:00
nsIStructuredCloneContainer.idl Bug 1250185 part 1. nsIStructuredCloneContainer.initFromBase64 doesn't need a JSContext argument. r=khuey 2016-02-23 15:02:32 -05:00
nsITabChild.idl Bug 92737 - Part 3: Open multiple tabs when multiple items are dropped on remote content area. r=enndeakin 2015-11-11 07:35:12 +09:00
nsITabParent.idl Bug 1337056 - Part 12: Send down permissions when calling createAboutBlankContentViewer, r=baku 2017-03-21 11:08:03 -04:00
nsITextInputProcessor.idl Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug 2016-01-30 09:05:36 -08:00
nsITextInputProcessorCallback.idl