Ting-Yu Lin
d4db857fcf
Bug 1320014 Part 2 - Rename Corner to LogicalCorner, and move it to nsStyleCoord.h. r=mats
...
To avoid confusion with the mozilla::css::corner, rename ::Corner to
mozilla::LogicalCorner, and move it to nsStyleCoord.h. Also, append
LogicalCorner prefix to all the enum values to match the coding style.
It also fixed the build error preemptively in a later patch that removing
::css namespace from mozilla::css::corner.
MozReview-Commit-ID: BbRYFuT3v4W
--HG--
extra : rebase_source : b8891eaa475c803de9a2137cb5e9a5a4bde37b9f
2017-01-04 16:52:12 +08:00
Xidorn Quan
cd5b8893bf
Bug 1326167 - Hook ServoStyleSheet and ServoCSSRuleList into cycle collection. r=bz
...
MozReview-Commit-ID: 6n1rjB8aMqp
--HG--
extra : rebase_source : 8bab3247e2ef101c190881ec4d19a8bb543587e0
extra : source : 3e774461c2cf59f3835806c1e6441c0ef263aec4
2017-01-06 15:14:28 +11:00
Tomer Cohen
d0e2761f49
Bug 849404 RTL support for text/plain documents r=dbaron
...
The addition of unicode-plaintext to the pre element will make RTL text to appear from right to left. The html[dir] pre rule will make sure that this addition won't break the 'switch page direction' functionality.
MozReview-Commit-ID: 2JXJjqt2iuX
--HG--
extra : rebase_source : 98c85228ce50fa145bfaa77051532f69e92ba98d
2016-12-24 01:59:12 +02:00
Wes Kocher
0f254a30d6
Merge inbound to central, a=merge
...
MozReview-Commit-ID: 1ij6nLf8f8s
2017-01-05 17:30:35 -08:00
Hiroyuki Ikezoe
0e03cf5f82
Bug 1328535 - Remove range-checking assertion for aDilutionRatio, in color animation code. r=dholbert
...
Some cubic-bezier functions, e.g. cubic-bezier(0,-0.5,0,0), produce values out
of range of [0, 1].
MozReview-Commit-ID: 9ZTsTRTcUaI
--HG--
extra : rebase_source : 7edf0c4d2702a502a9c0422be83ce7229751e815
2017-01-05 09:05:57 +09:00
Phil Ringnalda
d105fd40fd
Merge m-c to autoland
2017-01-04 19:01:49 -08:00
Phil Ringnalda
c83d1d7ce9
Merge m-i to m-c, a=merge
...
MozReview-Commit-ID: 51FMtH1yTe6
2017-01-04 18:33:32 -08:00
Boris Zbarsky
e080ecc8e9
Bug 1298588 part 16. Remove StyleStructContext. r=bholley
2017-01-04 14:52:27 -05:00
Boris Zbarsky
e95482db38
Bug 1298588 part 15, gecko piece. Rip out the initial() methods on style structs in stylo. r=bholley
2017-01-04 14:52:27 -05:00
Boris Zbarsky
85a6ca2630
Bug 1298588 part 10, gecko piece. Pass through useful default styles to apply_declarations(). r=bholley
2017-01-04 14:52:27 -05:00
Boris Zbarsky
99d2e96def
Bug 1298588 part 9, gecko piece. Pass through useful default styles to cascade(). r=bholley
2017-01-04 14:52:27 -05:00
Boris Zbarsky
eebd58fd31
Bug 1298588 part 7, gecko piece. Stop using initial_values in general in Gecko glue code. r=bholley
2017-01-04 14:52:27 -05:00
Boris Zbarsky
bd53996269
Bug 1298588 part 6, gecko piece. Stop using initial_values when doing inheritance in Gecko glue code. r=bholley
2017-01-04 14:52:27 -05:00
Boris Zbarsky
9f8934b143
Bug 1298588 part 4, gecko piece. Recreate the default computed values for a document as needed. r=bholley
2017-01-04 14:52:27 -05:00
Boris Zbarsky
6104ba14f9
Bug 1298588 part 3, gecko piece. Add a default ComputedValues member to PerDocumentStyleData. r=bholley
2017-01-04 14:52:26 -05:00
Boris Zbarsky
a3a6e58c68
Bug 1298588 part 2, gecko piece. Pass through an nsPresContext to the PerDocumentStyleData constructor. r=bholley
2017-01-04 14:52:26 -05:00
Boris Zbarsky
d6ee8eb8a9
Bug 1298588 part 1. Make StyleStructContext work with a const nsPresContext. r=bholley
2017-01-04 14:52:26 -05:00
Xidorn Quan
97d13f46a3
Bug 1303241 part 2 - Make GetVisitedDependentColor use style structs directly. r=dbaron
...
I think there are three advantages of this change:
1. removes some dependencies from layout / painting code to pre-computed
value stuff in the style system;
2. makes it easier to audit usage of specific fields in style structs
(which is probably a side effect of the first one);
3. potentially improves performance since it doesn't go through the
unnecessary general logic in ExtractComputedValue.
Also, combined with the part before, we get a unified list for visited-
dependent properties so that we can ensure the assertion here and the
style difference calc code are consistent.
MozReview-Commit-ID: 5B9aN7CfRgI
--HG--
extra : rebase_source : ac80eaea2474b9ec4b47b1cc9a5bdd2e61f6ec4d
2016-12-31 00:57:37 +11:00
Xidorn Quan
801cd27579
Bug 1303241 part 1 - Move visited-dependent style fields into a list file. r=dbaron
...
MozReview-Commit-ID: K4kc8ByNGoT
--HG--
extra : rebase_source : 0225be937ea2706ec43f56211550b966859afc8c
2017-01-05 11:22:36 +11:00
Phil Ringnalda
c4d1ea9a14
Merge m-c to m-i
...
MozReview-Commit-ID: JYNBUrs2zC5
2017-01-03 18:46:43 -08:00
Phil Ringnalda
82ebc0c5ea
Merge m-i to m-c, a=merge
...
MozReview-Commit-ID: FEe5yZfka5J
2017-01-03 18:40:26 -08:00
Olli Pettay
0364dbc792
Bug 1326507, remove NS_IMPL_CYCLE_COLLECTION_TRAVERSE_SCRIPT_OBJECTS, r=mccr8
...
--HG--
extra : rebase_source : 3ae1207308de120b7299b13ecaa95dd1612b3459
2017-01-03 21:47:55 +02:00
Ray Lin
22a003ad67
Bug 1322512 - force <audio controls> to have horizontal writing-mode, so that its control bar is never an orthogonal flow. r=dholbert
...
MozReview-Commit-ID: 4hLOYrBtiGc
--HG--
extra : rebase_source : be6bf19989c458ca46f3172ffbec6c023e71c9bd
2016-12-23 15:21:46 +08:00
Tim Nguyen
d7db347638
Bug 1322938 - Basic implementation of HTMLDialogElement. r=smaug, masayuki
...
MozReview-Commit-ID: AU92mq2QZIc
2016-12-23 16:01:50 +01:00
Cameron McCormack
171e45e09c
Bug 1328223 - stylo: Ignore invalid URLs from @import rules. r=emilio
...
MozReview-Commit-ID: BTEPxCXiR9O
2017-01-03 18:35:15 +08:00
Timothy Nikkel
216c1f3917
Backed out changeset c2f49fba3f4d (part 3 of bug 1317562) for causing bug 1325910.
2017-01-02 16:49:29 -06:00
Cameron McCormack
3c057d1a75
Bug 1323717 - Re-enable 1290994-4.html. r=manishearth
...
MozReview-Commit-ID: 1LRTnuK0ulh
--HG--
extra : rebase_source : da27637bb01b0946c759e52bd3ea01560f959b55
2017-01-02 15:44:23 +08:00
Daniel Holbert
2c23d97ecd
Bug 1326574: Add some needed includes/forward-declarations in layout/style, to preemptively fix unified bustage. r=xidorn
...
MozReview-Commit-ID: 2vM3aiR87T3
--HG--
extra : rebase_source : 8bff626c7f283b67b5178bae06ab5606b24c0119
2016-12-31 16:10:45 -08:00
Xidorn Quan
c26fcf05e4
Bug 1326209 part 2 - Change background-color to use complex color. r=dholbert
...
MozReview-Commit-ID: 1n3TC3CVY7U
--HG--
extra : rebase_source : 6b402a2493f58d114a9898a4d556587fdc98a9ee
2016-12-30 02:03:29 +11:00
Jeremy Chen
213197e5e1
Bug 1328540 - trim trailing whitespaces. r=jeremychen
...
Trim trailing whitespaces for files that are touched in this bug:
gfxTextRun.h
gfxTextRun.cpp
nsTextFrame.cpp
nsCSSProps.cpp
MozReview-Commit-ID: FmiW2QiCoFv
--HG--
extra : rebase_source : cbc9ae8c3c4410d1fe79c027d4ccf11b45c8bd19
2017-01-04 23:55:16 +08:00
Jeremy Chen
f735dd2d2c
Bug 1328540 - convert NS_STYLE_HYPHENS_* to an enum class. r=xidorn
...
MozReview-Commit-ID: BwTzbA29Y3H
--HG--
extra : rebase_source : fc07d2c881a8ccc618fd1776d1e977c051b0032f
2017-01-04 23:55:16 +08:00
Wes Kocher
4d0f1280cb
Merge m-c to autoland, a=merge
...
MozReview-Commit-ID: LGnPwvWCKe4
2016-12-30 16:59:49 -08:00
Xidorn Quan
b93e776ac9
Bug 894245 part 2 - Reject unknown enum color in CSS parser. r=dholbert
...
MozReview-Commit-ID: 6jfNESnFde5
--HG--
extra : rebase_source : dbe0b7f1eb45a59ef4df67ba5f1d75da1892cb17
2016-12-30 14:52:10 +11:00
Daniel Holbert
b6f1645a45
Bug 1326457: Remove redundant check for eCSSKeyword_UNKNOWN at callsites to nsCSSProps::FindKeyword(). r=xidorn
...
nsCSSProps::FindKeyword() has always failed when passed eCSSKeyword_UNKNOWN,
but it didn't used to have a fast-path for this sentinel value -- it used to
walk the whole array before failing. So it used to make sense to have a
dedicated check for it at the callsites, to avoid an unnecessary array
traversal. But now, there's an early-return in FindKeyword() (or actually in
its helper, FindIndexOfKeyword()) which catches eCSSKeyword_UNKNOWN right away,
before it walks the array. So there's no benefit to having a dedicated check at
the callsites anymore.
MozReview-Commit-ID: FOX48YZMomd
--HG--
extra : rebase_source : 2309d5f3f15e3cad2e4ae5ebe14af1c6beb43ebc
2016-12-30 12:03:08 -08:00
Emilio Cobos Álvarez
f5651bd75d
Bug 1304792: Use borrowed types for ServoImportRule. r=Manishearth r=heycam
...
MozReview-Commit-ID: HKjsOaE2qAp
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2016-12-30 16:30:42 +01:00
Emilio Cobos Álvarez
a25a3083ce
Bug 1304792: stylo: Implement @import. r=heycam
...
MozReview-Commit-ID: Hw1V66JxIBD
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2016-12-30 16:30:41 +01:00
Emilio Cobos Álvarez
83aebb6253
Bug 1304792: Minimal Loader and CSSParser cleanup. r=heycam
...
MozReview-Commit-ID: DYOh8BtK7NT
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2016-12-30 16:30:41 +01:00
Boris Zbarsky
6d33c26700
Bug 1326163 part 2. Inherit a fieldset's border-radius down into its content wrapper box, so it doesn't leak out and mess up hit-testing in the corner areas when it has rounded borders. r=dbaron
2016-12-29 18:10:24 -08:00
Wes Kocher
2045ef4aab
Merge m-c to inbound, a=merge
...
MozReview-Commit-ID: ESXuJFW2Tgr
2016-12-29 12:08:05 -08:00
Xidorn Quan
a4755c4187
Bug 1326125 - Rename enum version of SetIntValue to SetEnumValue. r=heycam
...
MozReview-Commit-ID: EbXK827IRFP
--HG--
extra : rebase_source : 3ee8247c211aeff6fae35168f968f0c2d20bb3e1
2016-12-29 10:22:49 +11:00
Wes Kocher
2903c33754
Merge inbound to central, a=merge
...
MozReview-Commit-ID: 3AlcRAsPF0s
2016-12-28 16:08:44 -08:00
Cameron McCormack
27d8bc9321
Bug 1326015 - Run AssertTreeIsClean on all style roots. r=xidorn
...
MozReview-Commit-ID: 1GkRS05tda
--HG--
extra : rebase_source : 5bffe0cdab8b8e14044dc2f02af686e3a83368e8
2016-12-28 16:26:10 +08:00
Ryan VanderMeulen
afa6b83a60
Merge m-c to autoland. a=merge
2016-12-27 00:01:54 -05:00
Timothy Nikkel
81c310eff2
Bug 1317562. Make style images use async image notifications when requesting decoding. r=aosmond
2016-12-25 00:18:08 -06:00
Phil Ringnalda
b94a0cbd73
Merge m-i to m-c, a=merge
2016-12-24 16:51:17 -08:00
Wes Kocher
37e6ad7e9e
Backed out 7 changesets (bug 1322938) for test_lowDiskSpace.html failures on android a=backout
...
Backed out changeset 1de6bfc4c973 (bug 1322938)
Backed out changeset 45b81607acd2 (bug 1322938)
Backed out changeset 2f3c2e660d28 (bug 1322938)
Backed out changeset d93937b3f80e (bug 1322938)
Backed out changeset 91c8b6d99e35 (bug 1322938)
Backed out changeset b6bdaf0dd932 (bug 1322938)
Backed out changeset 4b6ed4bb4263 (bug 1322938)
2016-12-23 20:55:55 -08:00
Tim Nguyen
c2ebb6b528
Bug 1322938 - Basic implementation of HTMLDialogElement. r=smaug, masayuki
...
MozReview-Commit-ID: AU92mq2QZIc
2016-12-23 16:01:50 +01:00
Bobby Holley
38fbeaa270
Bug 1325728 - Simplify pseudo-element handling. r=heycam
2016-12-23 19:23:52 -08:00
Bobby Holley
3e1898e903
Bug 1325728 - Use Gecko's existing mechanism to coordinate flushing the Stylist. r=heycam
2016-12-23 19:23:50 -08:00
Hiroyuki Ikezoe
54503e5fd9
Bug 1311620 - Part 11: Implement shadow list addition. r=boris
...
MozReview-Commit-ID: DRShA4qUS8Q
--HG--
extra : rebase_source : 68f4aee6abff1ac11815b18e2aa15b9470111497
2016-12-24 20:05:34 +09:00