Commit Graph

197 Commits

Author SHA1 Message Date
Chris Peterson
77dd1c3b70 Bug 1356843 - Fix -Wcomma warnings in layout/. r=dholbert
clang's -Wcomma warning warns about suspicious use of the comma operator such as between two statements or to call a function for side effects within an expression. In addition to fixing the warnings, replace some char16_t(' ') casts of char literals with shorter UTF-16 character literals u' '.

layout/painting/FrameLayerBuilder.cpp:3647:31 [-Wcomma] possible misuse of comma operator here
layout/painting/FrameLayerBuilder.cpp:3657:41 [-Wcomma] possible misuse of comma operator here
layout/painting/nsCSSRenderingBorders.cpp:3336:33 [-Wcomma] possible misuse of comma operator here
layout/painting/nsCSSRenderingBorders.cpp:3336:60 [-Wcomma] possible misuse of comma operator here
layout/painting/nsCSSRenderingBorders.cpp:3337:33 [-Wcomma] possible misuse of comma operator here
layout/painting/nsCSSRenderingBorders.cpp:3337:60 [-Wcomma] possible misuse of comma operator here
layout/style/Declaration.cpp:808:41 [-Wcomma] possible misuse of comma operator here
layout/style/Declaration.cpp:812:42 [-Wcomma] possible misuse of comma operator here
layout/style/FontFaceSet.cpp:1118:60 [-Wcomma] possible misuse of comma operator here

MozReview-Commit-ID: 9tfcIsnnBwM
2017-04-09 21:11:45 -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
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
Bobby Holley
a4aee5c6b3 Bug 1343388 - Assert against the servo traversal when serializing gecko declarations. r=emilio
MozReview-Commit-ID: LnYYbx742X1
2017-02-28 18:07:49 -08:00
Xidorn Quan
dd7595af14 Bug 1340341 - Set immutablity in GetCSSDeclaration instead of ToString. r=bz
MozReview-Commit-ID: 2aDsVJMJG8T
2017-02-24 22:06:07 +11:00
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
Xidorn Quan
e10f4086cd Bug 1330172 part 2 - Fix serialization of property declaration with variable reference. r=heycam
MozReview-Commit-ID: ATDj4lHrtR1
2017-01-20 22:35:12 +11:00
Xidorn Quan
6291255b1b Bug 1330172 part 1 - Fix serialization of CSS-wide keyword in variable. r=heycam
MozReview-Commit-ID: KvpwRjfFF2z
2017-01-20 22:34:06 +11: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
Ethan Lin
21e43f842d Bug 1303623 - Part3. Parser changes. r=heycam
MozReview-Commit-ID: AQz596lVFnd
2016-10-19 15:49:10 +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
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
Daniel Holbert
e73b560488 Bug 1321495 part 3: Add needed #includes to various .cpp files in layout/style, to preemptively fix unified-build bustage. r=TYLin
MozReview-Commit-ID: GEjKZqc06FO
2016-12-01 10:40:04 -08: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
Conache Cristian
50fc3a1a1e Bug 1315403-no whitespace between "!" and "important" in Declaration::AppendPropertyAndValueToString and Declaration::AppendVariableAndValueToStr, r=xidorn
MozReview-Commit-ID: BKGqEpn0utp
2016-11-20 14:42:11 +02:00
Xidorn Quan
cb21569555 Bug 1294299 part 10 - Implement DeclarationBlock.EnsureMutable. r=heycam
MozReview-Commit-ID: KpaypyY5moC
2016-11-03 14:41:02 +11:00
Xidorn Quan
6d9ed7b946 Bug 1294299 part 8 - Refactor interface provided by css::Declaration. r=heycam
The main targets of this refactor are:
1. Move most of the logic of distinguishing properties and custom
   properties from nsDOMCSSDeclaration into css::Declaration, which
   gives ServoDeclarationBlock more flexibility to implement.
2. Rename those methods of css::Declaration to provide a clear interface
   which makes sense for implementing in ServoDeclarationBlock, and also
   avoid method overload, which can impede the forward macro, on them.

MozReview-Commit-ID: 2cCqF855TVK
2016-11-03 14:41:02 +11:00
Xidorn Quan
6c265c7a69 Bug 1309109 part 2 - Move immutable and container from css::Declaration to a new base class. r=heycam
MozReview-Commit-ID: 9gCrBrK70Z3
2016-10-18 15:29:03 +11: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
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
Mats Palmgren
d530df343b Bug 1282643 - [css-grid] Reject repeat() column tracks in <grid-template> when there's a grid template area string in the row part. r=dholbert 2016-08-26 15:16:57 +02:00
Mats Palmgren
0918fa6f8b Bug 1266124 - [css-grid] Update the 'grid' shorthand syntax to the latest spec. r=dholbert 2016-08-26 15:16:57 +02:00
Jonathan Chan
e201b93c16 Bug 1293739 - Part 1: Rename nsCSSProperty to nsCSSPropertyID. r=dholbert
This patch is generated by the following commands (note: if you're running
using OS X's sed, which accepts slightly different flags, you'll have to
specify an actual backup suffix in -i, or use gsed from Homebrew):

  hg stat -c \
  | cut -c 3-  \
  | tr '\n' '\0' \
  | xargs -0 -P 8 gsed --follow-symlinks 's/\bnsCSSProperty\b/nsCSSPropertyID/g' -i''

Then:

  hg mv layout/style/nsCSSProperty.h layout/style/nsCSSPropertyID.h

... and finally, manually renaming nsCSSProperty in the include guard in
nsCSSProperty.h.

MozReview-Commit-ID: ZV6jyvmLfA
2016-08-16 18:37:48 -07:00
Gregory Szorc
3bcd02ebea Backed out changesets dcdb85fc5517, 702bca0deee2, 9cKX8gC1ATA (bug 1293739) for build bustage; a=bustage
The merge from inbound to central conflicted with the merge from
autoland to central, it appears. Per tree rules, the commit from the
autoland repo wins and the inbound commit gets backed out.

CLOSED TREE
2016-08-16 17:50:40 -07:00
Wes Kocher
bb9e0744e6 Merge inbound to central, a=merge
a=release to get around the webidl hook for a comment-only change
2016-08-16 17:05:30 -07:00
Daisuke Akatsuka
f2b0e52be2 Bug 1277433 - Part 1: Use discrete animation for appropriate CSS Alignment properties. r=dholbert,heycam
MozReview-Commit-ID: BHtzuwJOuB5
2016-08-16 14:29:21 +09:00
Jonathan Chan
23ccd0531f Bug 1293739 - Part 1: Rename nsCSSProperty to nsCSSPropertyID. r=dholbert
This patch is generated by the following commands (note: if you're running
using OS X's sed, which accepts slightly different flags, you'll have to
specify an actual backup suffix in -i, or use gsed from Homebrew):

  hg stat -c \
  | cut -c 3-  \
  | tr '\n' '\0' \
  | xargs -0 -P 8 gsed --follow-symlinks 's/\bnsCSSProperty\b/nsCSSPropertyID/g' -i''

Then:

  hg mv layout/style/nsCSSProperty.h layout/style/nsCSSPropertyID.h

... and finally, manually renaming nsCSSProperty in the include guard in
nsCSSProperty.h.

MozReview-Commit-ID: ZV6jyvmLfA
2016-08-09 16:28:19 -07:00
cku
1672ac34fb Bug 1286337 - Part 1. Correct default value of mask-origin. r=heycam
MozReview-Commit-ID: G8qfOLEHsj3
2016-07-13 03:22:36 +08:00
Xidorn Quan
90f7282451 Bug 1269975 part 1 - Move nsCSSProps::EnabledState to a top level enum class mozilla::CSSEnabledState. r=heycam
MozReview-Commit-ID: 3KH5cqDFzUI
2016-05-10 18:44:05 +10:00
Ryan VanderMeulen
39f3eff072 Backed out 4 changesets (bug 1269975) for bustage.
Backed out changeset a55ecedea260 (bug 1269975)
Backed out changeset 5321545b938c (bug 1269975)
Backed out changeset 7e4a2ee61ef3 (bug 1269975)
Backed out changeset d181f8e7e4c3 (bug 1269975)
2016-05-10 00:08:54 -04:00
Xidorn Quan
38e4a7340d Bug 1269975 part 1 - Move nsCSSProps::EnabledState to a top level enum class mozilla::CSSEnabledState. r=heycam
MozReview-Commit-ID: 3KH5cqDFzUI
2016-05-10 13:36:25 +10:00
Markus Stange
e3f2c79921 Bug 550426 - Add support for {background,mask}-position-{x,y}, most of the style system changes. r=dbaron
MozReview-Commit-ID: JgZIoj43aZv
2016-04-29 14:12:10 -04:00
Wes Kocher
1a290e54b0 Backed out 10 changesets (bug 550426) for failures in browser_css_autocompletion.js
Backed out changeset 6ff2e12738ca (bug 550426)
Backed out changeset 10ee68fd318e (bug 550426)
Backed out changeset 324f4f602730 (bug 550426)
Backed out changeset 81306e78ccaa (bug 550426)
Backed out changeset 44b820f6fb3d (bug 550426)
Backed out changeset 987b6ff7262e (bug 550426)
Backed out changeset d505646974c7 (bug 550426)
Backed out changeset 2162ecc18859 (bug 550426)
Backed out changeset 1a030aba3acc (bug 550426)
Backed out changeset 3655883e7faf (bug 550426)

MozReview-Commit-ID: AlUihrLtlhL
2016-04-29 14:47:43 -07:00
Markus Stange
f6b7c79b01 Bug 550426 - Add support for {background,mask}-position-{x,y}, most of the style system changes. r=dbaron
MozReview-Commit-ID: JgZIoj43aZv
2016-04-29 14:12:10 -04:00
Jeremy Chen
753e4f7268 Bug 1248708 - Part1: parse and compute -webkit-text-stroke property. r=heycam 2016-04-23 01:40:39 +08:00
Mats Palmgren
4d2666847a Bug 1266250 part 1 - [css-grid] Resurrect the 'grid-template' shorthand (backs out bug 1253529). r=dholbert 2016-04-21 16:18:34 +02:00
CJKu
5e1f61012e Bug 759568 - Part 1. Parse background-clip:text; r=dholbert r=heycam
MozReview-Commit-ID: BPuQjWYvAuj
2016-04-14 16:28:06 +08:00
Carsten "Tomcat" Book
5cfbb0a7a0 Backed out changeset b68e6d1cf93a (bug 759568) for reftest failures 2016-04-14 08:57:57 +02:00
CJKu
ce2b9eb21b Bug 759568 - Part 1. Parse background-clip:text; r=dholbert r=heycom
MozReview-Commit-ID: BPuQjWYvAuj
2016-04-14 12:45:37 +08:00
Sebastian Hengst
52bb9aaf69 Backed out changeset 7ec8bfb9bbd4 (bug 759568) for failures in test_all_shorthand.html and more. r=backout 2016-04-12 17:55:52 +02:00
CJKu
0fadc233ab Bug 759568 - Part 1. Parse background-clip:text; r=dholbert r=heycom
MozReview-Commit-ID: BPuQjWYvAuj
2016-04-12 21:58:21 +08:00
Mats Palmgren
da36c44e1d Bug 1253529 part 2 - [css-grid] Remove the 'grid-template' shorthand. r=dholbert 2016-03-08 23:03:26 +01:00
CJKu
3c9eb1e509 Bug 1243734 - Part 1. Use MOZ_ENABLE_MASK_AS_SHORTHAND to define the type of mask property; r=dbaron
MozReview-Commit-ID: FkPgdh8YHOC
2016-03-01 19:52:17 +08:00
Birunthan Mohanathas
bfee0fb40c Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj 2016-02-02 17:36:30 +02:00
Cameron McCormack
e26e19638e Bug 1244585 - Remove unused Declaration::HasVariableDeclaration method. r=xidorn 2016-02-01 12:19:13 +11:00
Phil Ringnalda
d871b9515f Back out 7 changesets (bug 1235261) for cpptest failures in TestTArray
CLOSED TREE

Backed out changeset d66c3f19a210 (bug 1235261)
Backed out changeset 467d945426bb (bug 1235261)
Backed out changeset 32b61df13142 (bug 1235261)
Backed out changeset c50bb8ed4196 (bug 1235261)
Backed out changeset 0ff0fa6fe81f (bug 1235261)
Backed out changeset df70e89669da (bug 1235261)
Backed out changeset 064969357fc9 (bug 1235261)
2016-01-31 10:10:57 -08:00
Birunthan Mohanathas
245cd6a02f Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj 2016-01-31 17:12:12 +02:00
CJKu
9859c96940 Bug 686281 - Mask CSS parsing and Mask DOM API. r=dbaron 2016-01-28 06:28:00 +01:00
CJKu
ff44f07acd Bug 686281 - Rename *background* to *imagelayer*; r=dbaron. 2016-01-28 06:27:00 +01:00
Mats Palmgren
a454b92315 Bug 1240956 part 1 - [css-grid] Swap the order of column/row values for 'grid', 'grid-template' and 'grid-gap' properties. Block axis values now always comes first; inline axis values second. r=dholbert 2016-01-27 17:02:13 +01:00