Mats Palmgren
c8ff2283ea
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
Xidorn Quan
d8c29760a1
Bug 1355734 - Remove text-decoration-line: -moz-anchor-decoration. r=heycam,masayuki
...
MozReview-Commit-ID: 4TmVncV1K5G
--HG--
extra : rebase_source : 568218d415642f1088c82d4b2e03d5885067b162
2017-04-13 16:17:03 +08:00
Ting-Yu Lin
867c2263f2
Bug 1312328 - Remove CSS variables preference "layout.css.variables.enabled". r=xidorn
...
MozReview-Commit-ID: HwYpwbhQkZj
--HG--
extra : rebase_source : 245d116b1fef01fa1db11eef70aa0379e8a9c9e9
2017-04-07 00:29:39 +08:00
Mats Palmgren
eeffa0c3eb
Bug 1333482 part 1 - [css-ui] Introduce the 'appearance: auto | none' property. r=dholbert
...
MozReview-Commit-ID: 3itCDTKuYQ9
2017-03-23 22:11:17 -07:00
cku
c486e7014c
Bug 1340044 - Part 2. Rename value in StyleGeometryBox. r=heycam
...
This change is to use gecko_enum_prefix in helpers.mako.rs, so that we do not
need to manually write code for nsStyleDisplay::mTransformBox.
MozReview-Commit-ID: 7UAL0iUcSIO
--HG--
extra : rebase_source : e99b7c163991df7ef3e7c0404fcef1832718a150
2017-03-16 15:18:10 +08:00
cku
85448394ac
Bug 1340044 - Part 1. Declare mTransformBox as StyleGeometryBox. r=heycam
...
MozReview-Commit-ID: 9fcHkDtNHhL
--HG--
extra : rebase_source : 61cdec71eea4f80e2e1e702bf6a03132287545a3
2017-03-15 12:21:07 +08:00
Xidorn Quan
8395dba220
Bug 1346669 - Make font-synthesis not a subprop of font shorthand. r=jfkthame
...
MozReview-Commit-ID: KUX72Gr4SYs
--HG--
extra : rebase_source : d509b50fae55c6f2ae218ca81d072dd7557f2361
2017-03-13 12:36:19 +11:00
Neerja Pancholi
f62798efe1
Bug 1339298 - Add boilerplate code for CSS3 multicol column-span parsing and define pref 'layout.css.column-span.enabled' to toggle it. r=dholbert
...
MozReview-Commit-ID: 6aSlRhcKm8i
--HG--
extra : rebase_source : 5028c7fb8ea5e4de42e658729b71d7e7af46a43d
2017-02-13 16:57:33 -08:00
jeremychen@mozilla.com
8638420acc
Bug 276079 - parse and compute CSS text-justify property. r=xidorn
...
MozReview-Commit-ID: K3bh0H2SPnE
--HG--
extra : rebase_source : c483f3f1cb7eb024b1851ad1df6b6562630a2fc5
2017-03-01 20:58:25 +08:00
Neerja Pancholi
5c9853e95f
Bug 1339619 - Refactor parsing code for '-moz-text-size-adjust' to use the (more conventional) keyword table approach to calculate computed style. r=dholbert
...
MozReview-Commit-ID: 2mawqnlUh8t
--HG--
extra : rebase_source : c2b24d7c03a0c4f7ad8db94ab7bf98b05607defc
2017-02-16 13:27:16 -08:00
cku
158bc08d53
Bug 1336905 - Part 2. Remove StyleShapeOutsideShapeBox. r=TYLin
...
MozReview-Commit-ID: L7vlIGwCOzi
--HG--
extra : rebase_source : 2c2744f3fdc4a2b6936f1135ea2cb62d76cd0399
extra : source : f76fbaee4ce86efbee78c60f0cce96f7c6926807
2017-02-06 15:56:03 +08:00
Ravi Shankar
9f7341a8f1
Bug 1339765 - Replace NS_STYLE_GRID_TRACK_BREADTH_* with enum classes;r=heycam
...
MozReview-Commit-ID: BAMrykPhoIl
--HG--
extra : rebase_source : 025144924eb6270837d74adab5e72265b6d2f62a
2017-02-17 09:28:36 +05:30
Daniel Holbert
f8a884b751
Bug 1339546 part 2: Make layout/style/*.cpp include corresponding .h file as the first header. r=xidorn
...
MozReview-Commit-ID: 2rZ9z0BgRvN
--HG--
extra : rebase_source : d046a915283dd45ec8ff39f1b63da8ae59d3fac8
2017-02-14 11:23:11 -08:00
Iris Hsiao
57e2751fbd
Backed out 4 changesets (bug 1335876) for stylo tc build bustage
...
Backed out changeset b870f9671bcd (bug 1335876)
Backed out changeset 3e160602fc1a (bug 1335876)
Backed out changeset 9d290cbe5aad (bug 1335876)
Backed out changeset 6e447c3fcd79 (bug 1335876)
2017-02-15 10:20:11 +08:00
cku
b931dde44d
Bug 1335876 - Part 1. Declare mTransformBox as StyleGeometryBox. r=heycam
...
MozReview-Commit-ID: 9fcHkDtNHhL
--HG--
extra : rebase_source : 8c5f80c261f178db970bb9bf0615d394da2560f5
2017-02-02 13:57:49 +08:00
Carsten "Tomcat" Book
ac81a7aaea
Backed out changeset f76fbaee4ce8 (bug 1336905)
2017-02-14 11:06:56 +01:00
cku
9bdbe1a759
Bug 1336905 - Part 2. Remove StyleShapeOutsideShapeBox. r=TYLin
...
MozReview-Commit-ID: L7vlIGwCOzi
--HG--
extra : rebase_source : ecd727fc92a2c2dc6ca5555326ababfa6ba330b5
2017-02-06 15:56:03 +08:00
Xidorn Quan
9a46e4e6e0
Bug 1333675 - Remove prefixed values for unicode-bidi. r=dholbert
...
MozReview-Commit-ID: B1TNnDPHel2
--HG--
extra : rebase_source : 6219c71c7910bb7c18bc311c454b74c2a1454428
2017-02-08 15:25:17 +11:00
Ting-Yu Lin
88f22bd389
Bug 1333366 Part 2 - Update legacy NS_SIDE usage and document. r=mats
...
Delete the "or 0 for no movement in that direction" from the CanAdjustEdges
document in nsMenuPopupFrame.h because the only caller in nsResizerFrame.cpp
never passes 0 to it.
MozReview-Commit-ID: 3A5A8O4MDn1
--HG--
extra : rebase_source : 3a961f9195d7887f8abb5c31ae9ec088f78a2626
2017-01-24 18:41:56 +08:00
Jeremy Chen
213197e5e1
Bug 1328540 - trim trailing whitespaces. r=jeremychen
...
Trim trailing whitespaces for files that are touched in this bug:
gfxTextRun.h
gfxTextRun.cpp
nsTextFrame.cpp
nsCSSProps.cpp
MozReview-Commit-ID: FmiW2QiCoFv
--HG--
extra : rebase_source : cbc9ae8c3c4410d1fe79c027d4ccf11b45c8bd19
2017-01-04 23:55:16 +08: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
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
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
Ethan Lin
f1d376b659
Bug 1303623 - Part2. Style structure changes. r=heycam
...
MozReview-Commit-ID: Lkdd5nAQRwG
--HG--
extra : rebase_source : 644ad5a39359d956c6c102be3735278c42872ce3
2016-10-19 15:48:47 +08:00
Ting-Yu Lin
6c29f00e11
Bug 1325006 Part 2 - Convert NS_RADIUS_* to StyleShapeRadius enum class. r=heycam
...
The "default" case in EnumerationToLength() is not needed anymore because
StyleShapeRadius is an enum class, which cannot have other values.
MozReview-Commit-ID: GHkPAXXxqGZ
--HG--
extra : rebase_source : 8bc51d6f21cd70688d3b968bcd0a5ef12a6e3f47
2016-12-03 16:13:49 +08:00
Xidorn Quan
47dc891b40
Bug 1311870 - Change property id of moz-prefixed properties to match their name. r=heycam
...
MozReview-Commit-ID: DkrMkzMq5qM
--HG--
extra : source : 8d502b58d6124335dcf54146306628644252dfb6
extra : amend_source : f40b0e1629e6c0fcb1c1c595d7787e18e0271924
2016-12-21 18:16:50 +11:00
Xidorn Quan
4898d47131
Bug 1323147 part 2 - Remove static atoms of CSS properties. r=heycam
...
This is basically a backout of bug 1294299 part 7.
MozReview-Commit-ID: LpWwFrNX4Jt
--HG--
extra : source : f483d76256e4adedec5f9e7ffd32b51d6e77aa5c
2016-12-16 10:02:48 +11: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
Mats Palmgren
0965da8493
Bug 1319958 - [css-align][css-grid][css-flexbox] Implement the place-items/self/content shorthands. r=dholbert
2016-11-28 00:44:22 +01: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
Jeremy Chen
086d94490c
Bug 1295788 - Remove layout.css.display-contents.enabled pref.
...
1. Remove the preference setting in reftest.list
2. Remove the preference guard in property_database.js
3. Remove the callback function of preference change
4. Remove the preference from all.js
MozReview-Commit-ID: 6aqYmhz6c9M
2016-11-17 10:52:51 +08:00
Mats Palmgren
ab344ac072
Bug 1313254 part 1 - [css-align] Change "baseline|last-baseline" to "[ first | last ]? baseline". r=dholbert
2016-11-05 02:57:07 +01:00
Xidorn Quan
fd4ecd1066
Bug 1294299 part 7 - Generate static atoms for CSS properties. r=emilio,heycam
...
MozReview-Commit-ID: FCjbgKagQO1
--HG--
extra : source : aaa46ff4380bb5aecc9c2a7509323b395f4f4935
2016-11-03 14:41:02 +11:00
Adam Velebil
33caf18ccc
Bug 1313565 - Convert NS_STYLE_ORIENT_* to enum class ; r=manishearth,xidorn
...
MozReview-Commit-ID: LHT6Aa2ojlf
--HG--
extra : rebase_source : cad726aee8e14d7ae60b899a76fcd26edb608507
2016-10-28 06:17:20 +02:00
Adam Velebil
389406c473
Bug 1313565 - Convert NS_STYLE_WINDOW_DRAGGING_* to enum class ; r=manishearth,xidorn
...
MozReview-Commit-ID: 7I7Z4q7mLtC
--HG--
extra : rebase_source : 23ce3fddb26424aa42aea93cfdf6fc123926fe18
2016-10-29 10:51:05 +02:00
Adam Velebil
9260566b60
Bug 1313565 - Convert NS_STYLE_USER_MODIFY_* to enum class ; r=manishearth,xidorn
...
MozReview-Commit-ID: IA4bGLgRxd6
--HG--
extra : rebase_source : 6632c53a96df170e8604d65b351f7ee2717ec9ec
2016-10-23 22:41:49 +02:00
Adam Velebil
e7dddd42f0
Bug 1312173 - Convert NS_STYLE_USER_INPUT_* to an enum class; r=manishearth,xidorn
...
MozReview-Commit-ID: sYiJrZryrA
--HG--
extra : rebase_source : dbb7bae56bea6203176097af8de119cae0a6391c
2016-10-23 00:08:18 +02:00
stefanh@inbox.com
3a689f8b9a
Bug 1192053 - Implement NS_THEME_MAC_SOURCE_LIST_SELECTION and NS_THEME_MAC_ACTIVE_SOURCE_LIST_SELECTION. r=mstange.
2016-10-14 22:45:29 +02:00
Xidorn Quan
2f279e5ef8
Bug 1306214 part 3 - Remove -moz-use-text-color from Gecko. r=heycam
...
MozReview-Commit-ID: EEYCB5jUH9L
--HG--
extra : rebase_source : ce6fcfdd573e1986a07fdae84106274bd2ae2495
2016-09-29 17:47:22 +10:00
Manish Goregaokar
aad318e17a
Bug 1300337
- Replace None_ variants from nsStyleConsts.h with None; r=heycam,TYLin
...
MozReview-Commit-ID: CxHzbEzjLxT
--HG--
extra : rebase_source : 232f90b8b107f7fb49f47a29a4e493660b8a7d87
2016-09-04 00:16:58 +05:30
Jeremy Chen
c6d0429830
Bug 1297306 - part6:replace NS_STYLE_CLEAR_* with StyleClear enum class. r=xidorn
...
After using enum class, a switch-case warning in CombineBreakType is caught.
This is one of such kind safty checks that we would like to gain.
Fix it by adding default case for switch-case in CombineBreakType.
MozReview-Commit-ID: BdS3LPN6qzX
--HG--
extra : rebase_source : 17f24a0d482ed6eb51b23e6942d0ac1c87375e0b
2016-09-07 10:20:17 +08:00
Emilio Cobos Álvarez
619cb14d87
Bug 1299066: Make NS_STYLE_DISPLAY_* an enum class. Prefer indexing instead of linear search in the frame constructor r=heycam,bz
...
The main renaming was generated with the following python script:
```
import sys
import re
CAMEL_CASE_REGEX = re.compile(r"(^|_|-)([A-Z])([A-Z]+)")
DISPLAY_REGEX = re.compile(r"\bNS_STYLE_DISPLAY_([^M][A-Z_]+)\b")
def to_camel_case(ident):
return re.sub(CAMEL_CASE_REGEX,
lambda m: m.group(2) + m.group(3).lower(), ident)
def constant_to_enum(constant):
return "StyleDisplay::" + to_camel_case(constant) + ("_" if constant == "NONE" else "")
def process_line(line):
return re.sub(DISPLAY_REGEX,
lambda m: constant_to_enum(m.group(1)), line)
lines = []
with open(sys.argv[1], "r") as f:
for line in f:
lines.append(process_line(line))
with open(sys.argv[1], "w") as f:
for line in lines:
f.write(line)
```
And the following shell commands:
```
find . -name '*.cpp' -exec python display.py {} \;
find . -name '*.h' -exec python display.py {} \;
```
MozReview-Commit-ID: 91xYCbLC2Vf
2016-09-01 20:41:17 -07:00
Neerja Pancholi
0ab64cae78
Bug 1295271
- Remove all _moz_ prefixes from all instances of _moz_column r=dbaron
...
Command used:
find -E ./* -iregex '.*(\.cpp|\.h)' | xargs egrep -l '.*_moz_column.*' | xargs sed -i '' 's/_moz_column/column/g'
MozReview-Commit-ID: CJbSfDfhmle
--HG--
extra : rebase_source : f3989585c0f5ac98ebbcf7c9a729b4c89c5ddeab
2016-08-30 17:21:03 -07:00
Ravi Shankar
b41dc19d66
Bug 1297982 - Replace NS_STYLE_BOX_ORIENT_* with enum class; r=xidorn
...
MozReview-Commit-ID: GC0VRyHUM4V
--HG--
extra : rebase_source : eb43a793816101798d0d3bb9a56864519eb7a14a
2016-08-26 12:48:41 +05:30
Ravi Shankar
294361b78a
Bug 1297982 - Replace NS_STYLE_BOX_DIRECTION_* with enum class; r=xidorn
...
MozReview-Commit-ID: H6Mr73864O2
--HG--
extra : rebase_source : a13a5d1ec0b0149da82bfdb3ea7ce22cd9ddfcd2
2016-08-26 12:47:09 +05:30
Ravi Shankar
149cb6c819
Bug 1297982 - Replace NS_STYLE_BOX_DECORATION_BREAK_* with enum class; r=xidorn
...
MozReview-Commit-ID: 9Cli68UpKdz
--HG--
extra : rebase_source : aa43e54c5e5501cbfee29437c5fcfc0216823bd8
2016-08-26 12:44:32 +05:30
Ravi Shankar
0589e4d8e2
Bug 1297982 - Replace NS_STYLE_BOX_PACK_* with enum class; r=xidorn
...
MozReview-Commit-ID: Cx20hOJbmad
--HG--
extra : rebase_source : 8a537ab49ee23c99ea7e8ba1a58bf3f487c53092
2016-08-26 12:41:54 +05:30
Ravi Shankar
ca8ee9dc38
Bug 1297982 - Replace NS_STYLE_BOX_ALIGN_* with enum class; r=xidorn
...
MozReview-Commit-ID: EO8hXmXooft
--HG--
extra : rebase_source : ef1e01a373964d5cb7207f87e14e85a9a1dab7fd
2016-08-26 12:39:19 +05:30
Manish Goregaokar
0b438b8b77
Bug 1295895 - Correctly capitalize StyleFillRule; r=heycam
...
MozReview-Commit-ID: ZfHrllA9QV
--HG--
extra : rebase_source : d9b9303d21b3fb5977247ae403caabfd54d666f8
2016-08-17 12:13:26 +05:30