Граф коммитов

8 Коммитов

Автор SHA1 Сообщение Дата
Emilio Cobos Álvarez aa934dea20 Bug 1465107: Remove isStyledByServo. r=xidorn
MozReview-Commit-ID: 8HWBH9kWyxV
2018-05-30 10:04:18 +02:00
Hiroyuki Ikezoe 0476fc2aa7 Bug 1442861 - Clear mNeedStyleFlush flag after ProcessPendingRestyles(). r=emilio
mNeedStyleFlush is also set by animation restyle request.  So it's possible
that the flag is set again in PostRestyleForThrottledAnimations() or in
sequential tasks for updating animations after the flag is cleared at the top
DoFlushPendingNotifications().

MozReview-Commit-ID: KPSS6cJb4HX

--HG--
extra : rebase_source : 31d839f12b654d52b352cd50e19bc1953c46b7c2
2018-03-06 06:34:02 +09:00
Hiroyuki Ikezoe 1646278bfe Bug 1418867 - getUnanimatedComputedStyle throws an exception for non-existent pseudo element. r=birtles
This is a prerequisite change for passing pseudo element to
Servo_StyleSet_GetBaseComputedValuesForElement which will be done in the next
commit.

MozReview-Commit-ID: HEGF2wjBGEP

--HG--
extra : rebase_source : 58d5991f3e4559c4215292ee8c48f79b38acb54a
2017-11-22 09:57:31 +09:00
Hiroyuki Ikezoe b95b10c42e Bug 1419221 - Introduce a new argument for getUnanimatedComputedStyle to be able to flush pending styles. r=birtles
Even with this patch, in Gecko getUnanimatedComputedStyle flushes pendings
styles somehow.  Also in Stylo the function flushes pending styles if the
target element hasn't yet styled or Servo style data has cleared for some
reasons (e.g. the element is in display:none subtree).

MozReview-Commit-ID: HCizzM0JnFz

--HG--
extra : rebase_source : 81f130f35794d6ddcf6b7e7f70566d521ea63d31
2017-11-21 18:03:17 +09:00
Hiroyuki Ikezoe 255ae7a75c Bug 1419221 - Generate target pseudo element before calling getUnanimatedComputedStyle for the pseudo element. r=birtles
Before this patch, 'content: ""' was applied to the ::before element after
calling getUnanimatedComputedStyle() with '::before' argument so the function
was called for inexistent pseudo element.
Gecko generates ::before and ::after element even if the content property for
the element is none (bug 1387931), so Gecko is not affected by this patch at
all.  Whereas Stylo has returned the parent style as the pseudo style for the
inexistent pseudo, it will be fixed by bug 1418867 and a test case will be
added in that bug since SimpleTest does not have todo for doesThrow().

MozReview-Commit-ID: 7uJcCrtu9ke

--HG--
extra : rebase_source : 96f3d1428323e8a7d96b0dee3e7256360251e555
2017-11-21 13:51:53 +09:00
Hiroyuki Ikezoe 41c3c98b63 Bug 1419221 - Create element for the target of getUnanimatedComputedStyle(). r=birtles
Before this patch, we had been only testing the null element case.

MozReview-Commit-ID: DYB8DtGBIwC

--HG--
extra : rebase_source : c0b8774f795c64b6d525820e6737ed3beed2dda0
2017-11-21 13:51:53 +09:00
Hiroyuki Ikezoe 0f0a5e0807 Bug 1387910 - Set content property other than neither 'normal' nor 'none' to generate pseudo element properly. r=boris
MozReview-Commit-ID: AAGCZOXFMOk

--HG--
extra : rebase_source : ceff586cd85d9662bcfd235d884c2db90a1ddec8
2017-08-07 11:35:36 +09:00
Daisuke Akatsuka 7074d51c3c Bug 1357993: Set dom.animations-api.core.enabled preference. r=hiro
We need 'dom.animations-api.core.enabled' preference to test animation.
In this patch, set the preference before DOMWindowUtils test with animation.

MozReview-Commit-ID: 9lz0hWvyo83

--HG--
extra : rebase_source : 1972bab70063a354efb57115b8ffed9e1bb41623
2017-04-24 16:53:59 +09:00