Commit Graph

10454 Commits

Author SHA1 Message Date
Carsten "Tomcat" Book
ffe70d35b2 Merge mozilla-central to mozilla-inbound 2017-02-09 11:38:08 +01:00
Cameron McCormack
ce8648a50f Bug 1337658 - Do less copying when dispatching FontFaceLoadingEvents. r=bz
MozReview-Commit-ID: 8z1Tof8lL4g

--HG--
extra : rebase_source : 9c7abd85f94b481c15d1f30c1773a2eebbe9ec9f
2017-02-07 22:53:00 +08:00
Tim Huang
756cf900c9 Bug 1336802 - Part 2: Updating the whole code base to make sure nsILoadInfo get null check. r=smaug
--HG--
extra : rebase_source : 22149fd540fd02119afe9fe5c9a815d01cf959c1
2017-02-07 11:49:34 +08:00
Bobby Holley
6fac28059f Bug 1333183 - Prime the root element cache before the servo traversal. r=emilio 2017-02-08 17:04:47 -08:00
Bobby Holley
347e3d646b Bug 1335303 - Add a virtual method to avoid QI to nsIMozBrowserFrame. r=smaug 2017-02-08 17:04:47 -08:00
Bobby Holley
37398f991c Bug 1335317 - Avoid calling StyleEffects() during the parallel traversal. r=heycam 2017-02-08 17:04:46 -08:00
Bobby Holley
8a7297e161 Bug 1335308 - Proxy mSpecifiedTransform releases that occur during the servo traversal to the main thread. r=heycam 2017-02-08 17:04:46 -08:00
Bobby Holley
02e0614b63 Bug 1335308 - Assert against destroying images and counters in generated content off-main-thread. r=emilio
We'll need to deal with this at some point, but let's just forbid it for now
to appease the static analysis.
2017-02-08 17:04:46 -08:00
Bobby Holley
662e462136 Bug 1335308 - Assert against releasing refcounted nsCSSValue members off-main-thread. r=heycam 2017-02-08 17:04:45 -08:00
Bobby Holley
0e51a14782 Bug 1335308 - Assert against non-length units in Gecko_CSSValue_SetAbsoluteLength. r=emilio 2017-02-08 17:04:45 -08:00
Bobby Holley
b5140be91a Bug 1335308 - Assert main thread in Gecko_LoadStyleSheet. r=emilio 2017-02-08 17:04:45 -08:00
Bobby Holley
f5bde33979 Bug 1335319 - Add a global flag indicating that we're in the servo traversal. r=bz 2017-02-08 17:04:44 -08:00
Boris Chiou
8372c2c7f8 Bug 1335942 - Part 6: Implement GetScaleValue for RawServoAnimationValue. r=hiro,manishearth
MozReview-Commit-ID: GnaS44gWmm2

--HG--
extra : rebase_source : 58ee6837c730fd7e54b75e52e48b3f77c8cb805a
2017-02-06 17:54:49 +08:00
Boris Chiou
93878e807e Bug 1335942 - Part 5: Add AnimationValue::GetScaleValue(). r=hiro
Move the common part of GetScaleValue into nsStyleTransformMatrix, and add a
new method, GetScaleValue, on AnimationValue, which can get the scale value from
StyleAnimationValue or RawServoAnimationValue.

MozReview-Commit-ID: 4spi1LkZrWP

--HG--
extra : rebase_source : 81e352edb85c9abb16fb0ef2780ff27c4f264709
2017-02-06 16:32:21 +08:00
Boris Chiou
03d760be1b Bug 1335942 - Part 4: Support transform in SetAnimatable. r=hiro,manishearth
MozReview-Commit-ID: 97aTuUNa1RT

--HG--
extra : rebase_source : 7af2a826bafad0e93b9101a6bd01231311154e23
2017-02-08 11:36:41 +08:00
Boris Chiou
4fdebcb4a3 Bug 1335942 - Part 3: Use AnimationValue as the argument in layers::SetAnimatable. r=hiro,manishearth
MozReview-Commit-ID: 4XnLL6I291q

--HG--
extra : rebase_source : 1edb2bbe678f6ecb900945d8cacb776c138fa834
2017-02-08 11:31:15 +08:00
Boris Chiou
155c2acd50 Bug 1335942 - Part 2: Use mozilla::AnimationValue in AnimationPropertySegment. r=hiro,manishearth
MozReview-Commit-ID: L6U1A223jsa

--HG--
extra : rebase_source : 26d8ec4386443d6526fed2f4926c6e4519e6bbd0
2017-02-04 13:57:08 +08:00
Boris Chiou
13d39b9757 Bug 1335942 - Part 1: Introduce mozilla::AnimationValue. r=hiro,manishearth
Currently, we have StyleAnimationValue for Gecko and
RawServoAnimationValue for Servo, and use this struct to wrap them to
avoid the duplicated code.

MozReview-Commit-ID: ATDBSCOX2C5

--HG--
extra : rebase_source : 85991ef5e23a445ae6302264508d1c06a46c0e29
2017-02-08 11:00:36 +08:00
Xidorn Quan
35f2f9ad03 Bug 1337637 - Release rule when deleting from ServoCSSRuleList. r=heycam
MozReview-Commit-ID: CrVNCTEJ7l6

--HG--
extra : rebase_source : 69473337c5b7833486c3b7d0f3bfe452d950a2ba
2017-02-08 14:19:08 +11:00
Cameron McCormack
caa1468d26 Bug 1334876 - Go through the event loop to dispatch FontFaceSet events. r=bz
MozReview-Commit-ID: 5L9JEtJoaxF
2017-02-07 18:49:28 +08:00
Xidorn Quan
13522a9c3b Bug 1328512 followup 2 - Update expectation of style system tests for stylo. DONTBUILD
MozReview-Commit-ID: 1n2zN1tY79p

--HG--
extra : source : 3f4cfb7fa96300a8abbac0fa64380753fcd78106
2017-02-07 16:45:52 +11:00
Cameron McCormack
ba8e011576 Backed out changeset c5d678ebcbcd (bug 1334876) for test failures.
MozReview-Commit-ID: 7lAhjbEiSsd
2017-02-07 11:58:28 +08:00
Cameron McCormack
2a1b706896 Bug 1334876 - Go through the event loop to dispatch FontFaceSet events. r=bz
MozReview-Commit-ID: BX2I7tb25YM
2017-02-07 10:29:27 +08:00
Wes Kocher
848c29538a Merge inbound to central, a=merge
MozReview-Commit-ID: 2yQjOIMCCiO
2017-02-06 17:45:21 -08:00
Tom Tung
e185f7bc4c Bug 1220936 - Flush console report to innerWindowID by using nsIDocument and nsILoadGroup. r=bkelly. 2017-02-06 09:19:34 +08:00
L. David Baron
e22752b858 Bug 1209697 followup - Add comment to explain change that might not be clear given existing comments here and in nsChangeHint.h. 2017-02-05 10:26:09 -05:00
Phil Ringnalda
cde93160c2 Merge m-i to m-c, a=merge 2017-02-04 17:05:50 -08:00
Daniel Holbert
d8d1de0c33 Bug 1336223 followup: Use forward-decl rather than #include to provide mozilla::StyleSheet, in PreloadedStyleSheet.h. (no review)
MozReview-Commit-ID: B7CzULCByvr
2017-02-03 14:00:05 -08:00
Emilio Cobos Álvarez
51e9294d5f Bug 1335987: stylo: Don't use the change hint to decide whether to recreate style contexts. r=bholley
MozReview-Commit-ID: 11Yyq8UE3LP
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-02-03 22:03:34 +01:00
Carsten "Tomcat" Book
e95ecef88f merge mozilla-inbound to mozilla-central a=merge 2017-02-03 13:25:24 +01:00
Hiroyuki Ikezoe
fd06930679 Bug 1332657 - Part 5: Adjust crashtest expectations for transform animations. r=heycam
Actually 1328535-1.html does not have transform animations, it has been passed
without these patches.

MozReview-Commit-ID: C0RcxbjiPVY
2017-02-03 14:41:29 +09:00
Hiroyuki Ikezoe
287d10e9c5 Bug 1332657 - Part 2: Implement clone_transform. r=heycam,manishearth
The implementation of clone_transform is an adaptation of set_transform.

MozReview-Commit-ID: ESE1ha0x666
2017-02-03 14:41:29 +09:00
Hiroyuki Ikezoe
c219cb14f4 Bug 1332657 - Part 1: Use more proper function to set nsCSSValue. r=heycam
MozReview-Commit-ID: 94o9qXXUyXN
2017-02-03 14:41:28 +09:00
Wes Kocher
2dcccc4332 Merge inbound to central, a=merge
MozReview-Commit-ID: 9bhCPrArK3P
2017-02-02 16:39:24 -08:00
Bobby Holley
c35f772b59 Bug 1335863 - Inline common case parent access. r=emilio 2017-02-02 11:24:43 -08:00
Bobby Holley
bd672b2ad1 Bug 1335863 - Inline Gecko_IsHTMLElementInHTMLDocument. r=emilio 2017-02-02 11:24:37 -08:00
Wes Kocher
ad037c851d Merge m-c to autoland, a=merge
MozReview-Commit-ID: 8vGne2PAweU
2017-02-02 16:45:43 -08:00
Daniel Holbert
38f8eb48f1 Bug 1336223 part 3: Add a missing #include to nsComputedDOMStyle.cpp. r=xidorn
MozReview-Commit-ID: ERFagYJrxeA

--HG--
extra : rebase_source : 93cdd1f05529471a1fcc7b34edb029bf7ac55b89
2017-02-02 15:18:38 -08:00
Daniel Holbert
f2faca025d Bug 1336223 part 2: Add some missing #includes & namespaces to nsMediaList.cpp. r=xidorn
MozReview-Commit-ID: AKOSOtH0NiD

--HG--
extra : rebase_source : 31eeaf1bfb7a0ce8906234ca44e424c72465b353
2017-02-02 15:18:37 -08:00
Daniel Holbert
9992dc8e16 Bug 1336223 part 1: Add some missing #includes to PreloadedStyleSheet.cpp and .h. r=xidorn
MozReview-Commit-ID: 1YKRjJiSUiI

--HG--
extra : rebase_source : 3991ff8ace9f466a07e1dba8aaf49b596458f97a
2017-02-02 15:18:36 -08:00
Xidorn Quan
9a46e4e6e0 Bug 1333675 - Remove prefixed values for unicode-bidi. r=dholbert
MozReview-Commit-ID: B1TNnDPHel2

--HG--
extra : rebase_source : 6219c71c7910bb7c18bc311c454b74c2a1454428
2017-02-08 15:25:17 +11:00
Manish Goregaokar
e4852035e0 Bug 1334330 - Part 11: stylo: Use ServoUtils abstraction for GenericSpecifiedValues to remove virtual dispatch overhead in nostylo mode; r=bz,emilio
MozReview-Commit-ID: 8yGWs2uOjES

--HG--
extra : rebase_source : 2fed3ab11c243a3b045116abd04dbb9e939c5dc2
2017-01-26 16:51:01 -08:00
Manish Goregaokar
156cbb9222 Bug 1334330 - Part 7: stylo: Use GenericSpecifiedValue abstraction for <font>; r=bz,emilio
MozReview-Commit-ID: E2FwWTF2MVI

--HG--
extra : rebase_source : 1650a23b29c43b8abc5516514a584feb381f55da
2017-01-26 16:51:01 -08:00
Manish Goregaokar
7a9ea12241 Bug 1334330 - Part 6: stylo: Use GenericSpecifiedValue abstraction for table elements; r=emilio
MozReview-Commit-ID: 6wo4iw4zEWP

--HG--
extra : rebase_source : d5980fcfd00fa75f198565dbd75cf7ccc48b0364
2017-01-26 16:51:01 -08:00
Manish Goregaokar
fbe60a8ba6 Bug 1334330 - Part 2: stylo: Use GenericSpecifiedValue abstraction in nsGenericHTMLElement; r=bz,emilio
MozReview-Commit-ID: 7Njz7pUkgft

--HG--
extra : rebase_source : a0356df72c349c294b5b7e4cef804b994fb6b383
2017-01-26 16:51:01 -08:00
Manish Goregaokar
48bc1c741c Bug 1334330 - Part 1: stylo: Abstractify nsMappedAttributes to work on arbitrary containers of specified value data; r=bz,emilio
MozReview-Commit-ID: BSM4TC9RKot

--HG--
extra : rebase_source : 5f2c5d998b9e2bc10a2c9ce8d0b3ce90817a0d39
2017-01-26 13:39:13 -08:00
Manish Goregaokar
5b55368eda Bug 1330041 - Basic handling framework for presentation attributes in Stylo, with handling for font-size and color; r=bz,emilio
This introduces a basic framework for servo's style system to be able
to query the style of presentation attributes which it can then insert
into the cascade. It uses that framework to implement the size and
color attributes on <font>.

There are a number of improvements that can be done on top of this:

 - Implement all other properties
 - Abstractify the ruledata parameter of the mappers using templates or virtual dispatch so that it can be a Servo decl block instead
 - Implement aforementiond abstraction over Servo decl blocks (this obsoletes the code in the first item above, so it might just be better to skip that and directly do this)
 - Replace uses of nsHTMLStyleSheet with an abstract base class containing common elements between Servo and Gecko

I'd prefer for these to be done in separate steps.

MozReview-Commit-ID: GO60qfeZOfl

--HG--
extra : rebase_source : 516d369a8627e413983361aaf85ccb7132b0a06c
2017-01-19 15:56:53 -08:00
Cameron McCormack
2000e89fcc Bug 1323715 - stylo: Re-enable tests depending on CSS.supports(). r=xidorn
MozReview-Commit-ID: KazD2l0tFuy
2017-02-01 12:03:03 +08:00
Cameron McCormack
41bbd156cf Bug 1314045 - stylo: Downgrade "Bad loading table" assertion since it occurs frequently. r=me
MozReview-Commit-ID: Hdt37MzhdsZ
2017-01-31 15:10:45 +08:00
Sebastian Hengst
2664cfc0a9 Backed out changeset 0d069e7395e9 (bug 1314045) for Windows build bustage: warning at Loader.cpp(1885). r=backout on a CLOSED TREE 2017-01-31 18:17:09 +01:00