Jeremy Chen
a5541e04c1
Bug 1375332 - stylo: move minimum font size applying into the default constructor of nsStyleFont. r=emilio
...
In Stylo, we read font related user prefs to set the default font size only
if we set 'font-size' property. However, users are allowed to set their
preferred minimum font size through the user prefs, even without using
'font-size' property.
Gecko used to do this in nsRuleNode::SetDefaultOnRoot, which calles the
default constructor of nsStyleFont and does the minimum font size applying
right after. Moving the minimum font size applying into the default
constructor of nsStyleFont shoud be no harm to Gecko, but makes Stylo
share the same code path and behave the same.
MozReview-Commit-ID: BDcJX92o0uR
--HG--
extra : rebase_source : 88d9c73d0eb793ffe8a5dc424361f21f6acd078b
2017-08-23 18:14:03 +08:00
Nathan Froyd
4524b05ac2
Bug 1387218 - label StyleImageRequestCleanupTask; r=billm
2017-08-22 20:52:22 -04:00
Xidorn Quan
8beb861597
Bug 1388241 - Assert that all style structs are under 504 bytes. r=bz
...
MozReview-Commit-ID: BiXdV0caLHV
--HG--
extra : rebase_source : 739fc67c80d1ffcf0ab1e480bb6b2ad565f67375
2017-08-09 11:47:02 +10:00
Xidorn Quan
b97e3aed9b
Bug 1388255 - Make nsStylePosition::mGridTemplate{Columns,Rows} a UniquePtr. r=canaltinova,dholbert
...
MozReview-Commit-ID: 8SOE6sAavCX
--HG--
extra : rebase_source : 666c95221e059da9b1a729eea3584e2060968582
2017-08-09 11:30:25 +10:00
Emilio Cobos Álvarez
049aad7027
Bug 1384542: Get rid of GetParentAllowServo in implementation of CSS 'justify-items' property. r=dholbert,heycam
...
MozReview-Commit-ID: 4qydjqSoVXs
2017-07-31 14:32:51 +02:00
Wes Kocher
ad35031103
Merge m-c to inbound, a=merge
...
MozReview-Commit-ID: LhiAcCiFBus
2017-07-26 18:33:18 -07:00
cku
321461fb26
Bug 1301245 - Part 2. Do not resolve a style image if the given url has a fragment. r=heycam
...
MozReview-Commit-ID: 18LFjlWZBLl
--HG--
extra : rebase_source : afbba14c09f937340bd506859cbcc829100f9e8d
2017-07-26 11:21:30 +08:00
Bevis Tseng
a7505864a8
Bug 1378930 - Part 2: Remove the aName parameter from SchedulerGroup/DocGroup/DispatcherTrait. r=billm
...
--HG--
extra : rebase_source : 11319e568a51d16754a6a9990f76c35c86c2bda7
2017-07-26 16:13:35 +08:00
Brad Werth
cda3222945
Bug 1359834 Part 3: Force changes to shape-outside to trigger reflow and overflow recalculation. r=dholbert
...
MozReview-Commit-ID: 7EgYZIu7aZ9
--HG--
extra : rebase_source : ab56ff5a7c6be8972e6a3a8fd4afc84c0fe390c8
2017-07-14 17:26:30 -07:00
Brad Werth
dce3ff515e
Bug 1359834 Part 2: Define a new nsChangeHint_ReflowHintsForFloatAreaChange hint and use it for float changes. r=dholbert
...
MozReview-Commit-ID: 692GBiRUTab
--HG--
extra : rebase_source : 4b3413bb0468037ab5eb25101b7c2a54cdc63d9e
2017-07-14 17:20:35 -07:00
Brad Werth
5e7b4d5092
Bug 1359834 Part 1: Change nsStyleDisplay::CalcDifference to early exit when hinting nsChangeHint_ReconstructFrame. r=dholbert
...
If we'll be reconstructing frames for the subtree in question, then we'll also
be reflowing and repainting that whole subtree. So all of this function's
other changehints become unnecessary and redundant.
MozReview-Commit-ID: 7R9lARBU7vZ
--HG--
extra : rebase_source : 69904e5920b01c54ffee2698518448bed800994a
2017-07-14 17:16:47 -07:00
Andrea Marchesini
50f9ea47a3
Bug 1350958 - Finish labeling ProxyReleaseEvent, r=billm
2017-07-14 08:49:22 +02:00
Bill McCloskey
f115503a0b
Bug 1372405
- Provide names for all runnables in the tree (r=froydnj)
...
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-26 14:19:58 -07:00
Carsten "Tomcat" Book
8a1350b5a6
Backed out changeset 4f6302a98ae4 (bug 1372405
)
...
--HG--
extra : rebase_source : 41632f3158e88e692809731394a683d065a73dfb
2017-06-21 13:59:26 +02:00
Bill McCloskey
6b3e84ed5f
Bug 1372405
- Provide names for all runnables in the tree (r=froydnj)
...
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-20 21:44:11 -07:00
Carsten "Tomcat" Book
ea1b86680c
Backed out changeset 9846de3bd954 (bug 1372405
)
...
--HG--
extra : rebase_source : 5d4a48e8ec394c329994689d938d2a6e9b2752b0
2017-06-20 08:27:02 +02:00
Bill McCloskey
4592152411
Bug 1372405
- Provide names for all runnables in the tree (r=froydnj)
...
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-19 22:25:47 -07:00
Bevis Tseng
d1637b9c5a
Bug 1372453 - Part 2: Name the caller of ProxyReleaseEvent. r=billm
...
MozReview-Commit-ID: LYhSWnZkq0i
2017-06-14 09:27:17 +08:00
Markus Stange
579f0e24a9
Bug 1370034 - Add CSS properties -moz-window-transform and -moz-window-transform-origin, style system parts (excluding stylo). r=dbaron
...
MozReview-Commit-ID: BlLMswF0bKO
--HG--
extra : rebase_source : c064a2774f352ca2a3b0139e8a8f657c3a4ea1d8
extra : source : 6bd03efee80afb048db2e51777a8e5ff6db80dc4
2017-06-19 01:44:22 -04:00
Markus Stange
ccaf464b9e
Bug 1370034 - Add -moz-window-opacity property, style system parts (excluding stylo). r=dbaron
...
MozReview-Commit-ID: J2SPMzh0I9C
--HG--
extra : rebase_source : b8c5f267f99fb7bab560af82a386cd3f3a9af5f3
2017-06-18 21:04:40 -04:00
Cameron McCormack
1849ea4995
Backout bug 1291457 and bug 1370034 for bustage.
2017-06-19 13:55:15 +08:00
Markus Stange
f3b2407d70
Bug 1370034 - Add CSS properties -moz-window-transform and -moz-window-transform-origin, style system parts (excluding stylo). r=dbaron
...
MozReview-Commit-ID: BlLMswF0bKO
--HG--
extra : rebase_source : 170e4db9ad8b285f7575e39109517cb6acef8733
extra : source : 6bd03efee80afb048db2e51777a8e5ff6db80dc4
2017-06-19 00:21:16 -04:00
Markus Stange
9ec017c7c6
Bug 1370034 - Add -moz-window-opacity property, style system parts (excluding stylo). r=dbaron
...
MozReview-Commit-ID: J2SPMzh0I9C
--HG--
extra : rebase_source : b8c5f267f99fb7bab560af82a386cd3f3a9af5f3
2017-06-18 21:04:40 -04:00
Xidorn Quan
8213987f36
Bug 1372488 - Make counter style 'disc' not overridable. r=dbaron
...
MozReview-Commit-ID: 11ZpZtRQSUF
--HG--
extra : rebase_source : 25f95280f530d786ec8dbc30a5f5228e96000d99
2017-06-13 16:00:37 +10:00
Xidorn Quan
45ebf973e4
Bug 1372549 part 2 - Avoid return reframe / reflow for list-style-{type,position} if display is not list-item. r=heycam
...
MozReview-Commit-ID: LugfFRIu3MS
--HG--
extra : rebase_source : 897c2c77de513a59164d428e348a27cf284f792d
2017-06-13 20:49:33 +10:00
Jeff Hajewski
12f7c1e837
Bug 1369448 - Change NS_STYLE_WHITESPACE macro definitions to enum class; r=manishearth
...
MozReview-Commit-ID: HUXYWXk8eiI
2017-06-01 15:37:22 -07:00
Xidorn Quan
118e3a973d
Bug 1363596 part 1 - Merge nsCOMPtr<nsIAtom> into CounterStylePtr. r=heycam
...
MozReview-Commit-ID: D2fdlrC3yop
--HG--
extra : source : f8256885e1be8bc2523d705b10fe1796c64c4ccd
2017-05-27 23:33:25 +10:00
Daniel Holbert
a84ae4bec1
Bug 1367568 part 1: Create reusable macros that represent our change hints for tweaks to CSS width or height (ISize/BSize). r=bz
...
This patch doesn't affect behavior at all; it's simply moving code (and
moving/extending some associated code comments).
MozReview-Commit-ID: JiX53R9e9GW
--HG--
extra : rebase_source : 96fca2c0ca59cc5bbfc48cf81abe5515bb62f372
2017-05-25 17:46:03 -04:00
Xidorn Quan
918f0728dc
Bug 1366735 part 3 - Remove SetCounterStyleDirty. r=heycam
...
When the counter style in the style struct changes, CalcDifference
would return ReconstructFrame, which should cause corresponding use
node to be reconstructed. That means a use node with retired counter
style should always be destroyed in the next flush, so it makes no
sense to reset them anymore.
However, we would still need to mark counter lists dirty because
otherwise their content may not get update when there are changes to
counter styles which are still valid.
MozReview-Commit-ID: FnBPx81StzG
--HG--
extra : rebase_source : 2adf7b64484746a5f416b7902df2ac718a3fdeab
2017-05-23 10:08:50 +10:00
Xidorn Quan
46dd59904a
Bug 1366735 part 2 - Use the new struct in stylo. r=heycam
...
MozReview-Commit-ID: trgd0lKLP1
--HG--
extra : rebase_source : 8216769c7ee2a323d2af2080dd97cac3489af82d
2017-05-23 00:32:05 +10:00
Xidorn Quan
1dd9b6bad1
Bug 1366735 part 1 - Change counter functions to use struct rather than nsCSSValue::Array. r=heycam
...
MozReview-Commit-ID: 4FiOxCOsjtD
--HG--
extra : rebase_source : 0a2ef777045603fe591ba3a74259699a2339cede
2017-05-22 22:51:20 +10:00
Mats Palmgren
297b9d70e1
Bug 1365614
part 3 - Backout bug 1333482 part 1-9. Removes support for [-webkit-]appearance for now b/c web compat issues. r=bz
...
MozReview-Commit-ID: IbwWM0FL6HF
--HG--
extra : source : bbb688fe1ba3f5201a190c6e25b693ef7272ea2d
2017-05-21 17:15:00 +08:00
Mats Palmgren
f7e4384ac8
Bug 1365614
part 2 - Backout bug 1357655. Removes support for [-webkit-]appearance for now b/c web compat issues. r=bz
...
MozReview-Commit-ID: Ig0RVKSQw4r
--HG--
extra : source : e528713f882cfc92f4c7acaf41e00dd302105ed0
2017-05-18 11:09:00 +08:00
Carsten "Tomcat" Book
2565b104f7
Backed out changeset e528713f882c (bug 1365614
)
2017-05-22 15:45:34 +02:00
Carsten "Tomcat" Book
00d4ea331d
Backed out changeset bbb688fe1ba3 (bug 1365614
)
2017-05-22 15:45:31 +02:00
Mats Palmgren
e706869580
Bug 1365614
part 3 - Backout bug 1333482 part 1-9. Removes support for [-webkit-]appearance for now b/c web compat issues. r=bz
2017-05-21 17:15:00 +08:00
Mats Palmgren
a928a1b1f6
Bug 1365614
part 2 - Backout bug 1357655. Removes support for [-webkit-]appearance for now b/c web compat issues. r=bz
2017-05-18 11:09:00 +08:00
Neil Deakin
f36da07def
Bug 1364115 - Allow -moz-stack-sizing to work in a single direction only. r=dbaron,manishearth
...
MozReview-Commit-ID: Kl7YQpfolTC
--HG--
rename : layout/reftests/bugs/346189-1-ref.xul => layout/reftests/xul/stack-sizing-1-ref.xul
rename : layout/reftests/bugs/346189-1.xul => layout/reftests/xul/stack-sizing-1.xul
extra : rebase_source : e536212980c832c04423871e0fa9dfc09f8a5994
extra : source : a65814deeb7a7f64189d3a9388ac295c6f5b4958
2017-05-15 12:33:46 +01:00
cku
5e40c4609b
Bug 1310885 - Part 11. (gecko) Clean up unused things. r=heycam
...
MozReview-Commit-ID: CxHbNyVNSz8
--HG--
extra : rebase_source : c9b3600e31023d79736f4df871ed741c37b1647f
extra : intermediate-source : d650a2abb555fb2bed3d832bc8f007ec7909c99e
extra : source : 33e2a248ed4da28bba3b0e4b745e3d894c68ed4d
2017-04-28 19:47:04 +08:00
Xidorn Quan
3fc45ef29b
Bug 1328319 part 6 - Make it possible to delay resolving counter style. r=heycam
...
MozReview-Commit-ID: 5rlGBf9Asu4
--HG--
extra : rebase_source : d2e154714c9dd636ff8dd1e1b40342bf2b19a222
2017-05-15 14:22:10 +10:00
Sebastian Hengst
484d2b7f51
merge mozilla-inbound to mozilla-central. r=merge a=merge
...
MozReview-Commit-ID: Jduo3F6TzgF
2017-05-14 18:04:29 +02:00
Daniel Holbert
396f88abfc
Bug 1364338: Force a repaint when CSS 'outline-width' or 'outline-offset' change. r=heycam
...
Previously, when these properties changed, we'd only send change hints to
recompute overflow areas & trigger DLBI. If the outline was always outside of
the element's border box, this old strategy was generally OK, because the
outline tweak would cause a change to the overflow areas' size, and that would
invalidate the changed area via DLBI & trigger a repaint.
However, for outlines that are *inside* of the element (via negative
'outline-offset'), these change hints were not sufficient, because tweaks to
the outline width & offset will NOT affect the size of the element's overflow
areas and will not trigger any DLBI invalidation.
So in order to correctly handle these changes, we really need to request a
repaint of the affected element, since some piece of the element may need to be
repainted even if it's not changing in size.
MozReview-Commit-ID: J4KGUHrJ09U
--HG--
extra : rebase_source : 677950d5aebdf7e90120b8fe7bb937344da42d7d
2017-05-12 18:42:10 -07:00
cku
8aa957ea26
Bug 1310885 - Part 5. (gecko) Always release ImageValue on the main thread.
...
We will actually hit the assertion in the destructor of
StyleImageRequestCleanupTask after the change above:
MOZ_ASSERT(mImageValue->mRequests.Count() == 0 || NS_IsMainThread()
"If mImageValue has any mRequests, we need to run on main "
"thread to release ImageValues!");
From Part 6 to Part 9, we do put a request immediately after the creation of an
ImageValue, so even if a nsStyleImageReqeust is not resolved, we still need to
destruct mImageValue on the main thread.
MozReview-Commit-ID: F812iySXbh6
--HG--
extra : source : 74377e39719599633806c5ecd728e4015c7603d0
2017-05-08 15:08:46 +08:00
cku
4877f8d094
Bug 1310885 - Part 3. (gecko) Create a new API to receive cached ImageValue from stylo.
...
This patch implement several things:
1. Implement a new constructor for nsStyleImageRequest to receive an existing
ImageValue from the caller.
2. Implement Gecko_ImageValue_Create to allow stylo to create a gecko::ImageValue
object.
3. Implement Gecko_SetXXXXImageValue to allow stylo to pass a created ImageValue
back to gecko.
MozReview-Commit-ID: 1SbW5w8FSV2
--HG--
extra : source : 63777ecf4c7138a0ce5847753a41efcbfc8e2b20
extra : intermediate-source : dced488c119da7e3ae27c903c0dcc76593d8a06d
2017-05-02 16:20:01 +08:00
Daniel Holbert
ad52211150
Bug 1344398 part 2: React to some CSS 'overflow' changes on body/html by simply calling UpdateViewportScrollbarStylesOverride() instead of reframing. r=bz,tnikkel
...
MozReview-Commit-ID: Lpr9aNv9hAB
--HG--
extra : rebase_source : c8cccf8e6495ab1d57f9680c07b3e43a488e8691
2017-05-10 13:53:27 -07:00
Wes Kocher
8f6058b583
Backed out 3 changesets (bug 1344398) for assertion failures at Element.cpp a=backout
...
Backed out changeset d0e5a5ba01b5 (bug 1344398)
Backed out changeset d70f9de401d1 (bug 1344398)
Backed out changeset 647d0bb3714d (bug 1344398)
MozReview-Commit-ID: DTVWf28NcNb
2017-05-10 17:43:50 -07:00
Daniel Holbert
b216b7b0e8
Bug 1344398 part 2: React to some CSS 'overflow' changes on body/html by simply calling UpdateViewportScrollbarStylesOverride() instead of reframing. r=bz,tnikkel
...
MozReview-Commit-ID: Lpr9aNv9hAB
--HG--
extra : rebase_source : c8cccf8e6495ab1d57f9680c07b3e43a488e8691
2017-05-10 13:53:27 -07:00
Xidorn Quan
98f239480d
Bug 1362302 part 1 - Use nsIAtom for counter style names. r=dbaron
...
MozReview-Commit-ID: 5VK6BgGRVRs
--HG--
extra : rebase_source : 104a28eddeb7984bd9f691693cf8debc1387fb87
2017-05-06 11:34:35 +10:00
Robert Longson
0c1b6c1fcc
Bug 1347409 part 2 - serialise fill and stroke fallback properly r=cam
2017-05-02 22:12:59 +01:00
Robert Longson
732aac6704
Bug 1347409 part 1 - introduce nsStyleSVGFallbackType so that we can begin to distinguish the type of paintserver fallback r=cam
2017-04-29 14:03:20 +01:00