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
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
Ting-Yu Lin
2c0ccc8249
Bug 1312328 - Remove CSS variables preference "layout.css.variables.enabled". r=xidorn
...
MozReview-Commit-ID: HwYpwbhQkZj
2017-04-07 00:29:39 +08:00
Mats Palmgren
8297bf43a1
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
14c0f9ceb9
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
2017-03-16 15:18:10 +08:00
cku
9db54d5a1a
Bug 1340044 - Part 1. Declare mTransformBox as StyleGeometryBox. r=heycam
...
MozReview-Commit-ID: 9fcHkDtNHhL
2017-03-15 12:21:07 +08:00
Xidorn Quan
0bcaa746f1
Bug 1346669 - Make font-synthesis not a subprop of font shorthand. r=jfkthame
...
MozReview-Commit-ID: KUX72Gr4SYs
2017-03-13 12:36:19 +11:00
Neerja Pancholi
5fddb99f6b
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
2017-02-13 16:57:33 -08:00
jeremychen@mozilla.com
8e500e1044
Bug 276079 - parse and compute CSS text-justify property. r=xidorn
...
MozReview-Commit-ID: K3bh0H2SPnE
2017-03-01 20:58:25 +08:00
Neerja Pancholi
55ce6ad5a8
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
2017-02-16 13:27:16 -08:00
cku
610e164bc8
Bug 1336905 - Part 2. Remove StyleShapeOutsideShapeBox. r=TYLin
...
MozReview-Commit-ID: L7vlIGwCOzi
2017-02-06 15:56:03 +08:00
Ravi Shankar
cc5a9b9be0
Bug 1339765 - Replace NS_STYLE_GRID_TRACK_BREADTH_* with enum classes;r=heycam
...
MozReview-Commit-ID: BAMrykPhoIl
2017-02-17 09:28:36 +05:30
Daniel Holbert
d74b889d67
Bug 1339546 part 2: Make layout/style/*.cpp include corresponding .h file as the first header. r=xidorn
...
MozReview-Commit-ID: 2rZ9z0BgRvN
2017-02-14 11:23:11 -08:00
Iris Hsiao
b5a0c8c111
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
84dbe2a1c2
Bug 1335876 - Part 1. Declare mTransformBox as StyleGeometryBox. r=heycam
...
MozReview-Commit-ID: 9fcHkDtNHhL
2017-02-02 13:57:49 +08:00
Carsten "Tomcat" Book
1d0ceb48b5
Backed out changeset f76fbaee4ce8 (bug 1336905)
2017-02-14 11:06:56 +01:00
cku
bf05616600
Bug 1336905 - Part 2. Remove StyleShapeOutsideShapeBox. r=TYLin
...
MozReview-Commit-ID: L7vlIGwCOzi
2017-02-06 15:56:03 +08:00
Xidorn Quan
2ffe464251
Bug 1333675 - Remove prefixed values for unicode-bidi. r=dholbert
...
MozReview-Commit-ID: B1TNnDPHel2
2017-02-08 15:25:17 +11:00
Ting-Yu Lin
88ba0449c7
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
2017-01-24 18:41:56 +08:00
Jeremy Chen
102346403b
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
2017-01-04 23:55:16 +08:00
Jeremy Chen
9e2ea144ef
Bug 1328540 - convert NS_STYLE_HYPHENS_* to an enum class. r=xidorn
...
MozReview-Commit-ID: BwTzbA29Y3H
2017-01-04 23:55:16 +08:00
Mats Palmgren
e9205611c1
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
b00f9ec88d
Bug 1311270 - Part 3. Replace {bg|mask}-origin/{bg|mask}-clip constants by StyleGeometryBox.
...
MozReview-Commit-ID: DYokhDa9fFQ
2016-11-22 15:30:01 +08:00
cku
c0fd83b73b
Bug 1311270 - Part 2. Rename StyleClipPathGeometryBox to StyleGeometryBox and extend contained values.
...
MozReview-Commit-ID: 85zjcifAycX
2016-11-22 14:49:43 +08:00
Ethan Lin
a4566c4e99
Bug 1303623 - Part2. Style structure changes. r=heycam
...
MozReview-Commit-ID: Lkdd5nAQRwG
2016-10-19 15:48:47 +08:00
Ting-Yu Lin
497d7f2846
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
2016-12-03 16:13:49 +08:00
Xidorn Quan
cc24e912e2
Bug 1311870 - Change property id of moz-prefixed properties to match their name. r=heycam
...
MozReview-Commit-ID: DkrMkzMq5qM
2016-12-21 18:16:50 +11:00
Xidorn Quan
f706b7b744
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
2016-12-16 10:02:48 +11:00
Cameron McCormack
da21cae689
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
f428026d58
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
7e10b6ab51
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
2016-11-18 18:12:25 +08:00
Jeremy Chen
fd4a5f4104
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
7b03cc4895
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
0fd35a5767
Bug 1294299 part 7 - Generate static atoms for CSS properties. r=emilio,heycam
...
MozReview-Commit-ID: FCjbgKagQO1
2016-11-03 14:41:02 +11:00
Adam Velebil
72138e6b9f
Bug 1313565 - Convert NS_STYLE_ORIENT_* to enum class ; r=manishearth,xidorn
...
MozReview-Commit-ID: LHT6Aa2ojlf
2016-10-28 06:17:20 +02:00
Adam Velebil
76d136e726
Bug 1313565 - Convert NS_STYLE_WINDOW_DRAGGING_* to enum class ; r=manishearth,xidorn
...
MozReview-Commit-ID: 7I7Z4q7mLtC
2016-10-29 10:51:05 +02:00
Adam Velebil
8425f11c26
Bug 1313565 - Convert NS_STYLE_USER_MODIFY_* to enum class ; r=manishearth,xidorn
...
MozReview-Commit-ID: IA4bGLgRxd6
2016-10-23 22:41:49 +02:00
Adam Velebil
2c22de0ff7
Bug 1312173 - Convert NS_STYLE_USER_INPUT_* to an enum class; r=manishearth,xidorn
...
MozReview-Commit-ID: sYiJrZryrA
2016-10-23 00:08:18 +02:00
982dc4dd56
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
449c420d52
Bug 1306214 part 3 - Remove -moz-use-text-color from Gecko. r=heycam
...
MozReview-Commit-ID: EEYCB5jUH9L
2016-09-29 17:47:22 +10:00
Manish Goregaokar
49b3b83008
Bug 1300337 - Replace None_ variants from nsStyleConsts.h with None; r=heycam,TYLin
...
MozReview-Commit-ID: CxHzbEzjLxT
2016-09-04 00:16:58 +05:30
Jeremy Chen
351de41d83
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
2016-09-07 10:20:17 +08:00
Emilio Cobos Álvarez
2efcfaad38
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
6ae194574b
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
2016-08-30 17:21:03 -07:00
Ravi Shankar
27b0e2b9f2
Bug 1297982 - Replace NS_STYLE_BOX_ORIENT_* with enum class; r=xidorn
...
MozReview-Commit-ID: GC0VRyHUM4V
2016-08-26 12:48:41 +05:30
Ravi Shankar
26db0836fe
Bug 1297982 - Replace NS_STYLE_BOX_DIRECTION_* with enum class; r=xidorn
...
MozReview-Commit-ID: H6Mr73864O2
2016-08-26 12:47:09 +05:30
Ravi Shankar
181d48792f
Bug 1297982 - Replace NS_STYLE_BOX_DECORATION_BREAK_* with enum class; r=xidorn
...
MozReview-Commit-ID: 9Cli68UpKdz
2016-08-26 12:44:32 +05:30
Ravi Shankar
49bd1a9b5f
Bug 1297982 - Replace NS_STYLE_BOX_PACK_* with enum class; r=xidorn
...
MozReview-Commit-ID: Cx20hOJbmad
2016-08-26 12:41:54 +05:30
Ravi Shankar
8b54ac9176
Bug 1297982 - Replace NS_STYLE_BOX_ALIGN_* with enum class; r=xidorn
...
MozReview-Commit-ID: EO8hXmXooft
2016-08-26 12:39:19 +05:30
Manish Goregaokar
573a62e695
Bug 1295895 - Correctly capitalize StyleFillRule; r=heycam
...
MozReview-Commit-ID: ZfHrllA9QV
2016-08-17 12:13:26 +05:30