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

824 Коммитов

Автор SHA1 Сообщение Дата
Xidorn Quan 1305bbb18d Bug 1332193 - Fix several properties to return NeutralChange hint. r=heycam
MozReview-Commit-ID: GDNRy6vqmL8

--HG--
extra : rebase_source : 8705d493d33f6593846bea93ccb0b39c269688dd
2017-01-19 19:13:02 +11:00
Ryan VanderMeulen 1e6f972917 Merge inbound to m-c. a=merge 2017-01-07 11:22:47 -05:00
cku 06b5fc97f9 Bug 1329091 - Keep mask style value to determine whether cached mask layer is corrupt. r=mstange
MozReview-Commit-ID: J2CFFi5pN7H

--HG--
extra : rebase_source : 44f6568e986bee87582558791d29dd7c0d63b29b
2017-01-06 17:53:30 +08: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
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 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 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
Cameron McCormack f27506cc5a Bug 1315155 - Part 2: Make nsStyleContentData use nsStyleImageRequest for images. r=xidorn
MozReview-Commit-ID: 80gQBdNrGq1
2016-10-21 08:14:56 +08:00
Cameron McCormack e50e656e7d Bug 1315155 - Part 1: Encapsulate nsStyleContentData. r=xidorn
MozReview-Commit-ID: LfEMxyM5meF
2016-10-20 10:22:46 +08:00
Xidorn Quan 262d2eb93a Bug 1063162 part 2 - Implement caret-color property. r=dholbert
MozReview-Commit-ID: DH7CX1d477R

--HG--
extra : rebase_source : 29c57f59a3073a05beed1c4160e2fd74d3e29617
2016-12-22 11:04:15 +11:00
Mats Palmgren 69e8c00577 Bug 1322191 part 1 - [css-display] Add style system support for display:flow-root. Enable it by default. r=dholbert 2016-12-23 19:11:03 +01:00
Timothy Nikkel 748db52939 Bug 1325297. Create a variant of imgIContainer::StartDecoding that returns if the current image frame is complete. r=aosmond
During painting we do some image decoding, but we want to send the image progress notifications from that decoding async. The CSS image renderer checks if the image is complete before painting it. So if the decoding we did during painting resulted in the images becoming complete there is no way to tell that during the same paint. Thus making that decoding a waste of time.

So we add a limited way of telling if the result of a StartDecoding call has resulting in an image that is ready to paint so we can get that result during the same paint.

I would have prefered to change StartDecoding to just return a bool but that would have made the bool an outparam, which would make every StartDecoding call uglier with extra code. Changing it to a notxpcom function would have fixed that, but I'm not sure if that is safe.
2016-12-23 01:07:45 -06:00
cku 286c728e90 Bug 1311270 - Part 3. Replace {bg|mask}-origin/{bg|mask}-clip constants by StyleGeometryBox.
MozReview-Commit-ID: DYokhDa9fFQ

--HG--
extra : rebase_source : a187c3f9519efb8b031913ce0dbf643c05232fa2
2016-11-22 15:30:01 +08:00
cku d44e01d03c Bug 1311270 - Part 2. Rename StyleClipPathGeometryBox to StyleGeometryBox and extend contained values.
MozReview-Commit-ID: 85zjcifAycX

--HG--
extra : rebase_source : 6c2a7c7913251c89888527d70b3b1fe27c475b4a
2016-11-22 14:49:43 +08:00
Andrew McCreight fccb0645ed Bug 1323042 - forbid MOZ_COUNT_{CTOR,DTOR} for nsISupports classes; r=froydnj 2016-12-12 09:27:58 -05:00
Nathan Froyd 826598caba Backout aba6c73511a2 (bug 1307961) for massive test bustage resulting in a CLOSED TREE; r=alltheorange 2016-12-12 08:45:46 -05:00
Andrew McCreight e31b5489da Bug 1307961 - require consistent bloatview reporting for nsISupports classes; r=froydnj 2016-12-12 07:58:33 -05:00
Emilio Cobos Álvarez 76df13c08a Bug 1322446: Use namespaces in stylo's bindings. r=heycam
Servo patch: https://github.com/servo/servo/pull/14472

MozReview-Commit-ID: 1YHF10pP19s

--HG--
extra : rebase_source : bfba38429376648ea44504cb23c42b74719021b6
2016-12-07 17:30:52 -10:00
Cameron McCormack f5bb6f2dfd Bug 1322185 - Rename some StyleDisplay enum values for consistency. r=xidorn
MozReview-Commit-ID: K27LmXKWNdk
2016-12-05 21:36:28 -10:00
Cameron McCormack 649802627c Comment typo fix; no bug. 2016-12-05 15:14:59 -10:00
Emilio Cobos Álvarez 8c271ab910 Bug 1322094: Fixes for Stylo's binding generation in master bindgen. r=heycam
MozReview-Commit-ID: FSp9XfwX3FJ

--HG--
extra : rebase_source : eb3c72021b80bef78c3b6da62d6c8d38e5fe455a
2016-12-05 03:39:24 +01:00
Xidorn Quan cd34f386cd Bug 1310404 part 1 - Convert SetImageRequest to CreateImageRequest. r=heycam
MozReview-Commit-ID: JEzRpSMJ6XY

--HG--
extra : rebase_source : 10f5a7580f3ef0ed866728683a88b8b45195140e
2016-12-01 13:40:00 +11:00
Jeremy Chen acdd7e353f Bug 1320239 - use nscoord instead of nsStyleCoord for outline-width. r=heycam
MozReview-Commit-ID: CaM12OvYeSW

--HG--
extra : rebase_source : 4147f2422257100bc43f988b9b5f667709fae8c4
2016-11-29 20:08:08 +08:00
Jeremy Chen 7e8439ba23 Bug 1320239 - use nscoord instead of nsStyleCoord for -webkit-text-stroke-width. r=heycam
MozReview-Commit-ID: 94fL7YgZqCl

--HG--
extra : rebase_source : ad651ab9270a9e19a21401b81745808cc7a8a74b
2016-11-29 20:08:08 +08:00
Thomas Wisniewski 390c3bda9a Bug 943918 - Part 1: style system support for tab-size:<length> and tab-size:<number>. r=heycam 2016-11-24 23:23:14 -05:00
Sebastian Hengst f6618cb892 Backed out changeset 8a6c538cf61a (bug 943918) for failing own test tab-size-length.html on at least Windows 8 x64 opt+debug and OS X debug. r=backout 2016-11-28 00:41:19 +01:00
Thomas Wisniewski ae1257b378 Bug 943918 - Part 1: style system support for tab-size:<length> and tab-size:<number>. r=heycam 2016-11-24 23:23:14 -05:00
Ting-Yu Lin 754b6c9659 Bug 1317588 Part 3 - Remove #define NS_SIDE_TOP/RIGHT/BOTTOM/LEFT. r=mats
This patch was written with the help of the following script. Also, manually
add mozilla qualifier to the enum values in nsStyleCoord.h, gfxRect.h, and
Types.h to make it build.

function rename() {
find .\
     -type f\
     ! -path "./obj*"\
     ! -path "./.git"\
     ! -path "./.hg"\
     \( -name "*.cpp" -or\
        -name "*.h" \)\
        -exec sed -i -e "s/$1/$2/g" "{}" \;
}

rename "NS_SIDE_TOP" "eSideTop"
rename "NS_SIDE_RIGHT" "eSideRight"
rename "NS_SIDE_BOTTOM" "eSideBottom"
rename "NS_SIDE_LEFT" "eSideLeft"

MozReview-Commit-ID: 9T0ORsqM6nP

--HG--
extra : rebase_source : 884ad96104c6e9cf6c8b3145d2d3a071ecccfe6a
2016-11-18 18:12:25 +08:00
Ting-Yu Lin c9cfd878cb Bug 1317588 Part 2 - Remove mozilla::css::Side typedef. r=mats
This patch is written with the help of the following script.

function rename() {
find .\
     -type f\
     ! -path "./obj*"\
     ! -path "./.git"\
     ! -path "./.hg"\
     \( -name "*.cpp" -or\
        -name "*.h" \)\
        -exec sed -i -e "s/$1/$2/g" "{}" \;
}

rename "css::Side" "Side"

MozReview-Commit-ID: DPV6vivpPUp

--HG--
extra : rebase_source : 9c4f66dc9d2b26c89a4517fba4ff9c5db413411b
2016-11-18 16:28:38 +08:00
Cameron McCormack 5bb56a7bb5 Bug 1310560 - Part 1: Make cursor use nsStyleImageRequest for url() value storage. r=xidorn
MozReview-Commit-ID: JU76TS3kxbz

--HG--
extra : rebase_source : 37f9538fca48c6bf90495bf44582c192977658e7
2016-11-21 14:34:11 +08:00
cku 690ab041c6 Bug 1234485 - Part 6. Implement nsStyleImageLayers::operator=. r=mstange
nsStyleImageLayers::operator= is required by the next patch.
MozReview-Commit-ID: CE1j2qW9TIY

--HG--
extra : rebase_source : ef2c5548e11f8d53824fe47400c79f6f90f1b1ed
2016-11-07 22:32:15 +08:00
Cameron McCormack 0eb23cdd2c Bug 1310463 - Part 1: Make list-style-image use nsStyleImageRequest for storage. r=xidorn
MozReview-Commit-ID: ENTo2HNbBpN
* * *
[mq]: x

MozReview-Commit-ID: 2SNJ4bXYpTH
2016-11-03 09:40:53 +08:00
Cameron McCormack 356666065d Bug 1288302 - Part 5.1: Merge Track and Lock flags so we don't set them together. r=xidorn
MozReview-Commit-ID: ASSWXvsczvc
2016-11-02 16:58:32 +08:00
Cameron McCormack 32c930ba08 Bug 1288302 - Part 5: Make nsStyleImage use nsStyleImageRequest. r=bholley
This makes background-image, mask-image and border-image settable
from Servo.

Since imgRequestProxy resolution in nsStyleImages can now happen later than
at computed value setting time, and that resolution can fail,
nsStyleImage::GetImageData() might now return null.  So all of the users of
nsStyleImage now null check its result.

MozReview-Commit-ID: FMRUrC3SfOs
2016-11-02 16:58:32 +08:00
Cameron McCormack 642cdb8e14 Bug 1288302 - Part 4: Perform final main thread work on style structs sourced from ServoComputedValues. r=xidorn
MozReview-Commit-ID: D6nQQ3yI4sx
2016-11-02 16:58:32 +08:00
Cameron McCormack 195dbb2d2a Bug 1288302 - Part 3: Add nsStyleImageRequest. r=xidorn,bholley
MozReview-Commit-ID: F763Dv0Nfzp
2016-11-02 16:58:31 +08:00
Cameron McCormack 2c0304b286 Bug 1288302 - Part 2: Pass ImageTracker to style struct image tracking methods instead of nsPresContext. r=xidorn
MozReview-Commit-ID: AsGfXliHLRf
2016-11-02 16:58:31 +08:00
Cameron McCormack 13f86cd932 Merge backout. 2016-11-01 08:43:23 +08:00
Cameron McCormack 02f1de5bbd Back out a0488e9c0024..5ebcedea1fa5 (bug 1288302 and bug 1310463) for Talos RSS regressions.
MozReview-Commit-ID: JB5uwDeO0We
2016-11-01 08:42:49 +08:00
Cameron McCormack 22201e4731 Backed out changeset 288d92c34790 (bug 1311921) for being an inadequate Talos regression fix.
MozReview-Commit-ID: DMQ4Hibdm6h
2016-11-01 08:33:26 +08:00
Cameron McCormack e17f336f65 Bug 1310463 - Part 1: Make list-style-image use nsStyleImageRequest for storage. r=xidorn
MozReview-Commit-ID: ENTo2HNbBpN
---
 layout/style/nsRuleNode.cpp    |  8 ++++----
 layout/style/nsStyleStruct.cpp | 15 +++++++++++++--
 layout/style/nsStyleStruct.h   | 18 ++++++------------
 3 files changed, 23 insertions(+), 18 deletions(-)
2016-10-20 08:53:45 +08:00
Cameron McCormack 74fdb2a2bf Bug 1288302 - Part 5: Make nsStyleImage use nsStyleImageRequest. r=bholley
This makes background-image, mask-image and border-image settable
from Servo.

Since imgRequestProxy resolution in nsStyleImages can now happen later than
at computed value setting time, and that resolution can fail,
nsStyleImage::GetImageData() might now return null.  So all of the users of
nsStyleImage now null check its result.

MozReview-Commit-ID: FMRUrC3SfOs
2016-10-20 08:36:25 +08:00
Cameron McCormack 2cd316fd59 Bug 1288302 - Part 4: Perform final main thread work on style structs sourced from ServoComputedValues. r=xidorn
MozReview-Commit-ID: D6nQQ3yI4sx
2016-10-20 08:36:23 +08:00
Cameron McCormack 2216900ad3 Bug 1288302 - Part 3: Add nsStyleImageRequest. r=xidorn,bholley
MozReview-Commit-ID: F763Dv0Nfzp
2016-10-20 08:36:21 +08:00
Cameron McCormack 0387dc2875 Bug 1288302 - Part 2: Pass ImageTracker to style struct image tracking methods instead of nsPresContext. r=xidorn
MozReview-Commit-ID: AsGfXliHLRf
2016-10-20 08:36:16 +08:00
Shing Lyu d2c96de863 Bug 1310117 - Implement Stylo CSS filter except url and drop-shadow. r=manishearth
MozReview-Commit-ID: HoF7KZdfuGe

--HG--
extra : rebase_source : 29f490a0e6055c538c1d5602bdc7f9c49088c88b
2016-10-17 14:16:16 +08:00
cku abdaa5d307 Bug 1309646 - Part 3. Use nsChangeHint_UpdateBackgroundPosition in position mask. r=mstange
MozReview-Commit-ID: CeLPAN8OdhF

--HG--
extra : rebase_source : cdd4808fe3b42a4cf6e610c8f106732744afe330
2016-10-13 18:35:35 +08:00