Kevin Hsieh
e65cc86685
Bug 1383925 - Remove unnecessary copy construction of default font in nsRuleNode.cpp. r=dholbert
...
MozReview-Commit-ID: 6awjBjmEBsM
2017-07-24 17:56:54 -07:00
Xidorn Quan
7ecc3b6ca1
Bug 1382077 part 2 - Move mUsesViewportUnits into nsStyleSet. r=heycam
...
MozReview-Commit-ID: DQ4ZoLLNPeN
2017-07-24 11:51:32 +10:00
Carsten "Tomcat" Book
07d253a893
Backed out changeset 972821835d48 (bug 1382077)
2017-07-25 12:17:16 +02:00
Xidorn Quan
2798346a35
Bug 1382077 part 2 - Move mUsesViewportUnits into nsStyleSet. r=heycam
...
MozReview-Commit-ID: DQ4ZoLLNPeN
2017-07-24 11:51:32 +10:00
Emilio Cobos Álvarez
224666fa6f
Bug 1383634: Remove usage of GetParentAllowServo in nsRuleNode. r=xidorn
...
This is Gecko-only code, so no need to allow Servo.
MozReview-Commit-ID: H4xZx0jMREI
2017-07-24 10:11:40 +02:00
Kevin Hsieh
883fbb97ad
bug 1363349 (part 1) - refactor CSSCalc.h to share code better, via a templated ReduceCalcOps class r=dholbert
...
MozReview-Commit-ID: IvU2StpKHLm
2017-07-12 18:13:07 -07:00
Cameron McCormack
796951490e
Bug 1353312 - Don't use conditions when caching a struct with no rules. r=dbaron
...
MozReview-Commit-ID: 2Q1xWcDY10T
2017-07-05 23:23:10 -04:00
Emilio Cobos Álvarez
79dc52d467
Bug 1370802: There's actually no need for lang to be lowercased. r=heycam
...
MozReview-Commit-ID: KwtbLqR9Y81
2017-06-17 02:27:59 +02:00
Emilio Cobos Álvarez
ceb7a883d3
Bug 1370802: Parse lang attributes as atoms. r=heycam
...
MozReview-Commit-ID: Cnq3wB7aVB1
2017-06-15 21:48:26 +02:00
Markus Stange
539f07616a
Bug 1370034 - Add CSS properties -moz-window-transform and -moz-window-transform-origin, style system parts (excluding stylo). r=dbaron
...
MozReview-Commit-ID: BlLMswF0bKO
2017-06-19 01:44:22 -04:00
Markus Stange
b8c33eb763
Bug 1370034 - Add -moz-window-opacity property, style system parts (excluding stylo). r=dbaron
...
MozReview-Commit-ID: J2SPMzh0I9C
2017-06-18 21:04:40 -04:00
Cameron McCormack
95368ca21c
Backout bug 1291457 and bug 1370034 for bustage.
2017-06-19 13:55:15 +08:00
Markus Stange
ec6ecdb465
Bug 1370034 - Add CSS properties -moz-window-transform and -moz-window-transform-origin, style system parts (excluding stylo). r=dbaron
...
MozReview-Commit-ID: BlLMswF0bKO
2017-06-19 00:21:16 -04:00
Markus Stange
39724e9b46
Bug 1370034 - Add -moz-window-opacity property, style system parts (excluding stylo). r=dbaron
...
MozReview-Commit-ID: J2SPMzh0I9C
2017-06-18 21:04:40 -04:00
Manish Goregaokar
533734efc7
Bug 1373018 - Part 10: stylo: Remove StyleSource; r=bholley
...
MozReview-Commit-ID: 4IcROeDNoBA
2017-06-10 22:27:45 -07:00
Manish Goregaokar
e8a3c268a8
Bug 1373018 - Part 8: stylo: Move nsStyleContext::SetStyle to GeckoStyleContext; r=bholley
...
MozReview-Commit-ID: ycXu95whnG
2017-06-10 22:27:45 -07:00
Alexis Beingessner
3117218f13
Bug 1088760 - Remove nsRenderingContext, replacing all of its uses with gfxContext. r=jwatt,jrmuizel
...
MozReview-Commit-ID: K1WUIOnvazF
2017-06-13 11:00:10 -04:00
Sebastian Hengst
1b1d14e565
Backed out changeset 3d1ce85e6348 (bug 1088760) for bustage, at least on Android at layout/generic/nsPluginFrame.cpp:1612. r=backout
2017-06-13 00:30:03 +02:00
Alexis Beingessner
c6fbc5e17e
Bug 1088760 - Remove nsRenderingContext, replacing all of its uses with gfxContext. r=jwatt,jrmuizel
...
MozReview-Commit-ID: K1WUIOnvazF
2017-06-12 17:32:48 -04:00
Jeff Hajewski
e7886588bb
Bug 1371354: Changes macro defined NS_SYTLE_IMAGELAYER_ to enum class StyleImageLayer; r=manishearth
...
MozReview-Commit-ID: DgvenevRHg2
2017-06-09 16:53:34 -07:00
Carsten "Tomcat" Book
77340b6737
merge mozilla-inbound to mozilla-central a=merge
2017-06-02 14:22:17 +02:00
Jeff Hajewski
adba322437
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
Jonathan Watt
67b82658a2
Bug 1365926, part 1 - Support 'context-fill-opacity'/'context-stroke-opacity' as SVG-as-an-image context properties. r=heycam
...
MozReview-Commit-ID: 2YHjwCB02jV
2017-05-18 12:47:20 +01:00
Manish Goregaokar
4b18020b43
Bug 1367275 - Part 5: stylo: Support -moz-min-font-size-ratio; r=xidorn
...
MozReview-Commit-ID: xRxkFJodeK
2017-05-27 13:23:15 -07:00
Xidorn Quan
b47214dcef
Bug 1366735 part 1 - Change counter functions to use struct rather than nsCSSValue::Array. r=heycam
...
MozReview-Commit-ID: 4FiOxCOsjtD
2017-05-22 22:51:20 +10:00
cku
d6a67e609c
Bug 1366434 - Part 1. Automatically repeat mask-mode and mask-composite to match the number of mask layers. r=heycam
...
To do this, we simply need to add them into nsRuleNode::FillAllBackgroundLists.
It's gecko only bug, stylist in stylo handle it correctly.
MozReview-Commit-ID: 6GkuMZnNEqt
2017-05-23 15:47:14 +08:00
Xidorn Quan
e3293c7d8e
Bug 1363968 - Change how counter-{reset,increment} is parsed to align serialization of specified value with Servo and Blink. r=heycam
...
This also includes a small fix to manifest of the affected mochitest.
MozReview-Commit-ID: 1b8lba5JiHr
2017-05-23 13:28:47 +10:00
Mats Palmgren
bd90393cc1
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
2017-05-21 17:15:00 +08:00
Mats Palmgren
35df0ba8a6
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
2017-05-18 11:09:00 +08:00
Carsten "Tomcat" Book
88417aa458
Backed out changeset e528713f882c (bug 1365614)
2017-05-22 15:45:34 +02:00
Carsten "Tomcat" Book
1aa86b3e0e
Backed out changeset bbb688fe1ba3 (bug 1365614)
2017-05-22 15:45:31 +02:00
Mats Palmgren
473a358067
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
f59f3f0543
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
c9d8fddac3
Bug 1364115 - Allow -moz-stack-sizing to work in a single direction only. r=dbaron,manishearth
...
MozReview-Commit-ID: Kl7YQpfolTC
2017-05-15 12:33:46 +01:00
Xidorn Quan
b7742acb67
Bug 1363699 part 1 - Make named CounterStyle objects not refcounted. r=heycam
...
This change does the following:
* Introduce a new smart pointer called CounterStylePtr which either
holds an AnonymousCounterStyle strongly, or a named CounterStyle
managed by CounterStyleManager weakly, and use it to replace all
RefPtr<CounterStyle> around the codebase.
* Rename CounterStyleManager::mCacheTable to mStyles to reflect the
fact that it is used to manage all styles, not just for caching.
* Add a retired styles list which collect all named CounterStyle
evicted from mStyles, and post a PostRefreshObserver to destroy
objects in that list after next flush.
* Remove helper functions for counter style in nsStyleList and expose
mCounterStyle directly, to make code simpler with the new pointer.
Reason for adding a new smart pointer type rather than making their
AddRef/Release behave like BuiltinCounterStyle is that, it is possible
that after a flush, some stale style structs may still be alive. They
can contain pointer to destroyed CounterStyle objects. Although the
actual content may never be accessed anymore, RefPtr may still access
the object for refcounting during destruction.
MozReview-Commit-ID: xxegwSDhNb
2017-05-13 21:42:23 +10:00
Jonathan Watt
670c0b0cc4
Bug 1350010, part 8 - Simplify copying of mContextProps in nsRuleNode::ComputeSVGData. r=heycam
...
MozReview-Commit-ID: HxOfDQWNDeB
2017-04-21 18:06:38 +01:00
Jonathan Watt
0af916cbb0
Bug 1350010, part 7 - Treat unset -moz-context-properties as 'inherit'. r=heycam
...
MozReview-Commit-ID: Cu3dbFfeCgM
2017-04-21 12:46:18 +01:00
Xidorn Quan
45a9721391
Bug 1362302 part 1 - Use nsIAtom for counter style names. r=dbaron
...
MozReview-Commit-ID: 5VK6BgGRVRs
2017-05-06 11:34:35 +10:00
Manish Goregaokar
39a60244aa
Bug 1358634 - Handle fallback to default variable font in case of nonexistant generic ; r=heycam
...
MozReview-Commit-ID: GHUfkmJNgqG
2017-05-05 12:26:00 -07:00
Manish Goregaokar
d86048b880
Bug 1361550 - Make font-size: larger/smaller a simple ratio; add stylo support; r=dbaron
...
MozReview-Commit-ID: DMmFc2i2OIA
2017-05-04 14:26:12 -07:00
Robert Longson
fe779567bf
Bug 1347409 part 2 - serialise fill and stroke fallback properly r=cam
2017-05-02 22:12:59 +01:00
Jonathan Watt
5e6164b63f
Bug 1350010, part 1 - Implement the '-moz-context-properties' property. r=heycam
...
MozReview-Commit-ID: CyVQe0UfKdy
2017-04-11 21:38:10 +01:00
Daniel Holbert
b2b5cf7068
Bug 1357117 part 2: Add flag to distinguish between -moz & -webkit prefixed gradient expressions. r=heycam
...
This patch doesn't change our behavior -- we won't actually act on the new flag
until the next patch in this series.
MozReview-Commit-ID: EONsLM54eG1
2017-04-25 11:48:39 -07:00
Manish Goregaokar
4755b8a6e5
Bug 1349417 - Part 2: stylo: Add basic system font support, use for font-size and font-family; r=xidorn
...
MozReview-Commit-ID: 4ZMR83GkAZN
2017-04-21 15:40:44 -07:00
Manish Goregaokar
1a232c673a
Bug 1349417 - Part 1: stylo: Factor out system font computation into nsRuleNode::ComputeSystemFont; r=xidorn
...
MozReview-Commit-ID: KfzzCodvLXd
2017-04-21 15:40:40 -07:00
Mats Palmgren
bd3424149f
Bug 1357655 part 1 - [css-ui] Make 'none' the initial value for 'appearance' for web and UA compatibility. Add 'appearance:auto' to UA sheets for form controls, XUL etc where needed. r=bz
...
MozReview-Commit-ID: 2h5ndqHresm
2017-04-21 02:24:19 +02:00
Cameron McCormack
d3f0b2bea1
Bug 1356601 - Don't force computation of a Variables struct when animations are involved. r=dbaron
...
Without this change, we can end up asserting in ComputeVariablesData and
crashing in CSSVariableResolver::Resolve due to not finding any variable
declarations on the rules we matched, when we have content like in the
crashtest added here, i.e. variables inheriting into a pseudo like
::first-line and animations on the element inside the ::first-line.
We could solve this alternatively by removing the assertion and making
CSSVariableResolver::Resolve handle a null aDeclarations more gracefully,
but since we can save the effort of recomputing the Variables struct in
this case, we may as well.
MozReview-Commit-ID: 6l06ZF3WGsy
2017-04-18 22:27:04 +10:00
Xidorn Quan
0f2df09dac
Bug 1355734 - Remove text-decoration-line: -moz-anchor-decoration. r=heycam,masayuki
...
MozReview-Commit-ID: 4TmVncV1K5G
2017-04-13 16:17:03 +08:00
Nazım Can Altınova
b416f7e28d
Bug 1341761 - Convert nsStyleImage::mElementId to use nsIAtom. r=xidorn
...
MozReview-Commit-ID: 9YcbhMmXYoi
2017-04-09 16:44:36 +03:00
Manish Goregaokar
6b0229835a
Bug 1341724 - Part 2: stylo: Add bindings for fetching font metrics from Gecko; r=heycam
...
MozReview-Commit-ID: BkPNq22ruwU
2017-04-10 17:06:14 +08:00