Emilio Cobos Álvarez
8d181f4ca3
Bug 1472443: Make StyleContentType an enum class. r=xidorn
...
Most of it is automated by:
%s/eStyleContentType_/StyleContentType::/g
%s/nsStyleContentType/StyleContentType/g
But I removed some parentheses by hand.
Differential Revision: https://phabricator.services.mozilla.com/D1900
MozReview-Commit-ID: 3IcirjIYX5p
2018-06-30 17:13:07 +02:00
Cameron McCormack
fa0a153832
Bug 1471499 - Part 3: Replace remaining "see nsStyleConsts.h" comments with more useful references. r=xidorn
...
MozReview-Commit-ID: kO8uT9JZgK
2018-06-27 16:45:56 +10:00
Cameron McCormack
46bd8318f2
Bug 1471499 - Part 2: Remove "see nsStyleConsts.h" comments for style struct members that are enum classes. r=xidorn
...
MozReview-Commit-ID: ISkGZ7FU8xR
2018-06-27 15:51:33 +10:00
Cameron McCormack
a0a170fff5
Bug 1471499 - Part 1: Remove [reset] and [inherited] comments on style struct members. r=xidorn
...
MozReview-Commit-ID: 9dL51J2KqPS
2018-06-27 15:44:58 +10:00
Morgan Rae Reschenberg
c617913aa3
Bug 1471267 - Update some baseline-querying utility functions to bail on frames that have 'contain:size'. r=dholbert
...
MozReview-Commit-ID: Bk2P73tlRqG
2018-06-26 15:34:15 -07:00
Chris Peterson
f7ceeaf5cf
Bug 1469769 - Part 6: Replace non-failing NS_NOTREACHED with MOZ_ASSERT_UNREACHABLE. r=froydnj
...
This patch is an automatic replacement of s/NS_NOTREACHED/MOZ_ASSERT_UNREACHABLE/. Reindenting long lines and whitespace fixups follow in patch 6b.
MozReview-Commit-ID: 5UQVHElSpCr
2018-06-17 22:43:11 -07:00
Dan Glastonbury
ff951cc67d
Bug 1467621 - P1: nsCSSShadowItem - Change nscolor to StyleComplexColor. r=xidorn
...
MozReview-Commit-ID: moE2CI7fT8
2018-06-19 14:18:33 +10:00
Yusuf Sermet
1362aae68c
Bug 1465936 - Ignore contain:paint for elements without a principal box, internal table elements except table-cell, internal ruby elements, and non-atomic inlines. r=dholbert
...
MozReview-Commit-ID: Lt8z3BEWnQy
2018-06-14 10:22:38 -07:00
Andi-Bogdan Postelnicu
3d1fef09a0
Bug 1453795 - Layout/Style - Initialize member fields in classes/ structures. r=heycam
2018-06-14 12:54:03 +03:00
Dan Glastonbury
9361f5f784
Bug 1467379 - P1: nsStyleGradientStop - Change nscolor to StyleComplexColor. r=xidorn
...
MozReview-Commit-ID: D9KQcv9uQ4S
2018-06-07 15:55:26 +10:00
Dorel Luca
cb5fb214b7
Backed out changeset a2e4bbd59dc7 (bug 1465936) for Web Platform test failures on css/css-contain/contain-paint-005.html
2018-06-12 11:59:32 +03:00
Yusuf Sermet
a1a4102132
Bug 1465936 - Ignore contain:paint for elements without a principal box, internal table elements except table-cell, internal ruby elements, and non-atomic inlines. r=dholbert
...
MozReview-Commit-ID: 3Y4clUkIe9O
2018-06-05 15:32:40 -07:00
Dan Glastonbury
b032a76a35
Bug 1465307 - P2: Fix nsStyleBorder::mBorderColor for GCC. r=xidorn
...
GCC doesn't like StyleComplexColor with constructor in an anonymous
struct in an anonymous union. Replace the use of a union to access
`mBorder[..]Color` fields as an array with an accessor methods.
MozReview-Commit-ID: 1Wulh1qKYCZ
2018-06-05 11:24:12 +10:00
Dan Glastonbury
cbeb62b354
Bug 1465307 - P1: Extend StyleComplexColor to support additive blending. r=hiro,xidorn
...
Refactored StyleComplexColor to support "complex" blending between
background (numeric) color and foreground color (currentColor).
Made explicit the distinction between numeric, currentColor and a
complex blend in Gecko and Stylo.
This is to support SMIL animation, for example, of the form:
<animate from="rgb(10,20,30)" by="currentColor" ... />
MozReview-Commit-ID: IUAK8P07gtm
2018-05-23 15:23:26 +10:00
Emilio Cobos Álvarez
6f88b52e32
Bug 1419695: Remove some unused style struct setters. r=xidorn
...
MozReview-Commit-ID: Lx9yLjb8ddB
2018-06-04 15:55:54 +02:00
Dan Glastonbury
e803ad5869
Bug 1457353 - P1: Change nscolor to StyleComplexColor. r=xidorn
...
Change mStopColor, mFloodColor, and mLightingColor in nsStyleSVGReset.
MozReview-Commit-ID: KMRMtHk1jNK
2018-04-27 12:07:20 +10:00
Ciure Andrei
2a622f34bc
Merge inbound to mozilla-central. a=merge
2018-05-29 00:53:52 +03:00
Emilio Cobos Álvarez
cd6e13da0c
Bug 1464060: Remove some unused templating and arguments. r=xidorn
...
Also don't rely on 'using namespace mozilla' in the cpp files that include
nsStyleStructInlines.h.
MozReview-Commit-ID: DLZiMpSzIFn
2018-05-28 10:40:00 +02:00
Emilio Cobos Álvarez
6ad8f2be40
Bug 1463386: Remove dead nsStyleImageRequest constructor. r=heycam
...
MozReview-Commit-ID: 3mF3PPQbS5O
2018-05-22 13:02:55 +02:00
Matt Woodrow
135bfc272b
Bug 1462412 - Correctly ignore the perspective property for frames that aren't transformable. r=dbaron
2018-05-23 10:41:19 +12:00
Xidorn Quan
1be43ecdd9
Bug 1460456 part 3 - Add scrollbar-{face,track}-color properties. r=heycam
...
MozReview-Commit-ID: ImNfHHfzRdM
2018-05-10 10:40:17 +10:00
Xidorn Quan
b755665128
Bug 1461933 - Remove ServoBindings.h from ComputedStyleInline.h. r=emilio
...
For doing this, ServoComputedData is split into separate files, so that
files don't need to include ServoBindings.h just for accessing style
structs from ComputedStyles.
MozReview-Commit-ID: DPAd7PUUCl9
2018-05-16 15:35:59 +10:00
Xidorn Quan
5f9e9f4daa
Bug 1461940 - Rename two GetImageRequest() methods to ImageRequest(). r=emilio
...
MozReview-Commit-ID: 3eA86IOSLta
2018-05-16 22:28:50 +10:00
Kristen Wright
4c40873f14
Bug 1459367 - Convert NS_STYLE_IMAGELAYER_ATTACHMENT_* to enum class. r=manishearth
...
Converted NS_STYLE_IMAGELAYER_ATTATCHMENT_* vals to enum class, StyleImageLayerAttachment.
2018-05-08 15:05:33 -07:00
Dan Glastonbury
39f56c63ae
Bug 1457810: Move CalcComplexColor to StyleComplexColor. r=xidorn
...
Move from nsStyleColor::CalcComplexColor to StyleComplexColor::CalcColor.
MozReview-Commit-ID: FkYovvPZLc8
2018-05-09 17:03:02 +10:00
Brad Werth
eaf578995a
Bug 1265342 Part 1: Add shape-margin to style system (Gecko bindings). r=xidorn
...
MozReview-Commit-ID: 3G0ZpWDrumg
2018-02-07 17:27:04 -08:00
Narcis Beleuzu
87b92a12ca
Backed out 20 changesets (bug 1265342) for mochitest-plain-headless failures on layout/style/test/test_first_letter_restrictions.html. CLOSED TREE
...
Backed out changeset 6c80ec2d0398 (bug 1265342)
Backed out changeset 62d571916086 (bug 1265342)
Backed out changeset fd247f38f8a7 (bug 1265342)
Backed out changeset 83aee3dafe4b (bug 1265342)
Backed out changeset 9b200122014e (bug 1265342)
Backed out changeset a90aa063b2fd (bug 1265342)
Backed out changeset 0791ff3d9194 (bug 1265342)
Backed out changeset 7109288f10b3 (bug 1265342)
Backed out changeset 048cce2fb99f (bug 1265342)
Backed out changeset c8e3dbc6c729 (bug 1265342)
Backed out changeset 09da0968333a (bug 1265342)
Backed out changeset d16f7ff85677 (bug 1265342)
Backed out changeset 53eb7f14463d (bug 1265342)
Backed out changeset 64fc631ef122 (bug 1265342)
Backed out changeset 332382c708e1 (bug 1265342)
Backed out changeset a8695981eec0 (bug 1265342)
Backed out changeset ce473fa5f1f4 (bug 1265342)
Backed out changeset 5ee470e75a53 (bug 1265342)
Backed out changeset 802aa95a52d9 (bug 1265342)
Backed out changeset 5da0c34c9600 (bug 1265342)
2018-04-24 22:31:15 +03:00
Brad Werth
752d6a172e
Bug 1265342 Part 1: Add shape-margin to style system (Gecko bindings). r=xidorn
...
MozReview-Commit-ID: 3G0ZpWDrumg
2018-02-07 17:27:04 -08:00
Mats Palmgren
9b444b6c41
Bug 1398482 part 2 - [css-grid][css-flexbox][css-multicol] Add 'row-gap' and 'gap' properties; make 'grid-[column|row]-gap' and 'grid-gap' alias the respective unprefixed properties (Gecko part). r=dholbert
2018-04-24 01:52:51 +02:00
Sebastian Hengst
d91e9954eb
Backed out 4 changesets (bug 525063) on request from Andi. a=backout
...
Backed out changeset 516c4fb1e4b8 (bug 525063)
Backed out changeset 6ff8aaef2866 (bug 525063)
Backed out changeset bf13e4103150 (bug 525063)
Backed out changeset d7d2f08e051c (bug 525063)
2018-04-13 16:01:28 +03:00
Emilio Cobos Álvarez
68d6dc5d8d
Bug 1452627: Fix nsStyleContentAttr stuff. r=bholley
...
MozReview-Commit-ID: 4hi75VQcmkN
2018-04-13 01:32:35 +02:00
Cameron McCormack
2b2a573d3a
Bug 1375536 - Remove nsStyleVariables. r=emilio,xidorn
...
MozReview-Commit-ID: BqyhXc4W4Aq
2018-04-10 15:11:12 +10:00
Tristan Bourvon
6095241db8
Bug 525063 - Initialize uninitialized class attributes in m-c. r=ehsan
2018-04-10 21:11:02 +02:00
Bobby Holley
2fd8051265
Bug 1451421 - Stop using Gecko namespace ids in servo. r=xidorn
...
MozReview-Commit-ID: 2532dHCGPXW
2018-04-06 15:30:58 -07:00
Ting-Yu Lin
53f9fd2dce
Bug 1404222 Part 3: Block onload when shape-outside images are requested for a frame, and keep it blocked until the frame is removed, the image fails to load, or reflow is complete. r=dbaron,dholbert
...
When we finish decoding an image frame, we need to trigger reflow for the
frame containing a float with shape-outside: <image>, and delay the firing
of the document's onload event until that reflow is complete.
2018-01-25 14:56:43 +08:00
Ryan VanderMeulen
93ffd60378
Backed out 11 changesets (bug 1404222) for static analysis failures on a CLOSED TREE.
...
Backed out changeset a6a99136300c (bug 1404222)
Backed out changeset 7183b8104399 (bug 1404222)
Backed out changeset a1e4294c1c59 (bug 1404222)
Backed out changeset b79d6e8318db (bug 1404222)
Backed out changeset 0450620fdabd (bug 1404222)
Backed out changeset 026c74a92d04 (bug 1404222)
Backed out changeset 50ac4167f702 (bug 1404222)
Backed out changeset 59038f2db68a (bug 1404222)
Backed out changeset f6b9096da915 (bug 1404222)
Backed out changeset 4e0baffdd79b (bug 1404222)
Backed out changeset 57eeb849ab88 (bug 1404222)
2018-04-02 17:57:27 -04:00
Ting-Yu Lin
e4c387c16b
Bug 1404222 Part 3: Block onload when shape-outside images are requested for a frame, and keep it blocked until the frame is removed or reflow is complete. r=dbaron,dholbert
...
When we finish decoding an image frame, we need to trigger reflow for the
frame containing a float with shape-outside: <image>, and delay the firing
of the document's onload event until that reflow is complete.
2018-01-25 14:56:43 +08:00
Mats Palmgren
9214eecbed
Bug 1398537 part 2 - [css-multicol] Implement percentages for 'column-gap' (Gecko part). r=dholbert
2018-04-02 01:56:19 +02:00
Xidorn Quan
7141e919dd
Bug 1449400 part 1 - Move NS_STYLE_* constants from nsStyleStruct.h to ComputedStyle.h. r=emilio
...
Since ComputedStyle is where they are actually used. This would also
allow us to avoid including nsStyleStruct.h from ComputedStyle.h after
some header file changes in later patches.
MozReview-Commit-ID: 8aBuNO9CRN0
2018-03-29 22:15:46 +11:00
Xidorn Quan
1ce57ccbed
Bug 1448535 part 2 - Remove arena-related code from style structs. r=emilio
...
MozReview-Commit-ID: LlmauyL3goU
2018-03-29 03:45:18 +11:00
Jonathan Watt
baf9ffb02b
Bug 1448714 - Fix up comments referring to 'style context' after the rename of nsStyleContext. r=emilio
2018-03-23 13:49:21 +00:00
Xidorn Quan
37798b3e63
Bug 1448726 - Remove NS_RULE_NODE_* constants. r=emilio
...
MozReview-Commit-ID: 1DWhfpBT58w
2018-03-26 16:20:24 +11:00
Emilio Cobos Álvarez
1d4859a89a
Bug 1447483: Merge nsStyleContext and ServoStyleContext, rename to ComputedStyle. r=jwatt on a CLOSED TREE
...
MozReview-Commit-ID: JPopq0LudD
2018-03-22 20:06:24 +01:00
Emilio Cobos Álvarez
97286b35c8
Back out changeset b683bb3f22a1 (Bug 1447483) for not landing with all the files. r=me on a CLOSED TREE
...
This reverts commit 1808914126bb9f9e4a82d2c3d7ac961885fe7d62.
MozReview-Commit-ID: 5skESBseEvo
2018-03-22 20:05:22 +01:00
Emilio Cobos Álvarez
1f5d8de5cc
Bug 1447483: Merge nsStyleContext and ServoStyleContext, rename to ComputedStyle. r=jwatt
...
MozReview-Commit-ID: JPopq0LudD
2018-03-22 19:48:42 +01:00
Emilio Cobos Álvarez
b1a35fbef7
Bug 1447358: Unifdef the old style system code. r=jwatt
...
Summary:
This has been automatically generated using:
http://dotat.at/prog/unifdef/
And:
find $OBJDIR -type f -name '*.h' |
while read FILE; do
echo "$FILE"
unifdef -m -DMOZ_STYLO -UMOZ_OLD_STYLE "$FILE";
done
find $OBJDIR -type f -name '*.cpp' |
while read FILE; do
echo "$FILE"
unifdef -m -DMOZ_STYLO -UMOZ_OLD_STYLE "$FILE";
done
MozReview-Commit-ID: I4NdKqbMXzJ
Reviewers: jwatt
Bug #: 1447358
Differential Revision: https://phabricator.services.mozilla.com/D779
2018-03-21 10:20:34 +01:00
Hiroyuki Ikezoe
b74ec58ba9
Bug 1437272 - Split nsTimingFunction into an independent header file. r=birtles
...
So that we don't need to include nsStyleStruct.h in gfx any more.
MozReview-Commit-ID: 6nOaAbssLCz
2018-03-08 18:22:45 +09:00
Mike Conley
da3f1e9386
Bug 1434376 - Introduce ChromeOnly window.promiseDocumentFlushed to detect when refresh driver ticks have completed. r=bz
...
This is particularly useful for knowing when it's safe to query for style and
layout information for a window without causing a synchronous style or layout
flush.
Note that promiseDocumentFlushed was chosen over promiseDidRefresh or promiseRefreshed
to avoid potential confusion with the actual network-level refresh of browsers or
documents.
MozReview-Commit-ID: Am3G9yvSgdN
2018-02-11 20:14:49 -05:00
Andreea Pavel
f77494f37a
Backed out 3 changesets (bug 1434376)for failing browser chrome at browser/base/content/test/performance/browser_urlbar_search_reflows.js on a CLOSED TREE
...
Backed out changeset b636251b75ab (bug 1434376)
Backed out changeset fccbba9cb959 (bug 1434376)
Backed out changeset b5128504011c (bug 1434376)
2018-02-25 12:44:28 +02:00
Mike Conley
6e072d9d0f
Bug 1434376 - Introduce ChromeOnly window.promiseDocumentFlushed to detect when refresh driver ticks have completed. r=bz
...
This is particularly useful for knowing when it's safe to query for style and
layout information for a window without causing a synchronous style or layout
flush.
Note that promiseDocumentFlushed was chosen over promiseDidRefresh or promiseRefreshed
to avoid potential confusion with the actual network-level refresh of browsers or
documents.
MozReview-Commit-ID: Am3G9yvSgdN
2018-02-11 20:14:49 -05:00