Xidorn Quan
fc8edefa79
Bug 1393189 part 3 - Replace all uses of nsCSSProps::kListStyleKTable with gBuiltinStyleTable. r=dholbert
...
The change in CounterStyleManager::BuildCounterStyle converts a case-
insensitive comparison to a case-sensitive comparison by comparing atom
pointer directly. But this is fine because all names of builtin counter
styles should have been lowercased by the parser. For Gecko, it is done
in CSSParserImpl::ParseCounterStyleName, and for Servo, it is done in
counter_style::parse_counter_style_name.
MozReview-Commit-ID: JHHmzEaNIpn
2017-08-29 15:36:32 +10:00
Kevin Hsieh
b044805d48
Bug 1367860 (part 3) - Construct language-specific default variable font as fallback font, not specified font. r=dbaron
...
MozReview-Commit-ID: 5kBHhvacxbS
2017-08-18 12:56:02 -07:00
Kevin Hsieh
860e72eb68
Bug 1367860 (part 2) - Update CSS fallback font when lang changes. r=dbaron
...
MozReview-Commit-ID: 1VzxKnJJ1kD
2017-08-18 11:30:21 -07:00
Kevin Hsieh
850aaaec90
Bug 1367860 (part 1) - Handle CSS font-family units using switch instead of if. r=dbaron
...
MozReview-Commit-ID: DBwSHM8kfGP
2017-08-18 11:26:44 -07:00
Nazım Can Altınova
5e5b68d3c7
Bug 1355721 - stylo: Implement font feature values lookup r=emilio,xidorn
...
MozReview-Commit-ID: 7wgQ1NCn7vL
2017-08-23 18:05:53 -07:00
Gregory Szorc
336b6b8347
Backed out changesets b749fc196a50, 2791eac8d760 (bug 1355721) for build bustage
...
CLOSED TREE
2017-08-24 20:30:17 -07:00
Nazım Can Altınova
639d0c6171
Bug 1355721 - stylo: Implement font feature values lookup r=emilio,xidorn
...
MozReview-Commit-ID: 7wgQ1NCn7vL
2017-08-23 18:05:53 -07:00
Jeremy Chen
c5de85fe8a
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
2017-08-23 18:14:03 +08:00
hardik tyagi
e3bd4cc789
Bug 1389862: Change NS_STYLE_CONTENT macro definitions to scoped enum class StyleContent; r=manishearth
...
MozReview-Commit-ID: 4ojiXrCNRIN
2017-08-14 23:56:24 -07:00
Xidorn Quan
a29da54fad
Bug 1388255 - Make nsStylePosition::mGridTemplate{Columns,Rows} a UniquePtr. r=canaltinova,dholbert
...
MozReview-Commit-ID: 8SOE6sAavCX
2017-08-09 11:30:25 +10:00
Manish Goregaokar
8f46c1f6dd
Bug 1358688 - Part 1: Don't unzoom text for font-size:larger/smaller ; r=emilio
...
This used to be necessary when larger/smaller did a table lookup.
However as of bug 1361550 these are simple ratios and should be treated
the same as em units.
MozReview-Commit-ID: 2zM7O0awynG
2017-08-02 11:28:08 -07:00
Emilio Cobos Álvarez
54f1c009a9
Bug 1384542: Move GetParent and IsLinkContext to GeckoStyleContext. r=heycam
...
MozReview-Commit-ID: C19yGcphixX
2017-07-31 14:32:59 +02:00
Emilio Cobos Álvarez
5a23788fa4
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
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