Граф коммитов

830 Коммитов

Автор SHA1 Сообщение Дата
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
Ting-Yu Lin c9cfd878cb Bug 1317588 Part 2 - Remove mozilla::css::Side typedef. r=mats
This patch is written with the help of the following script.

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 "css::Side" "Side"

MozReview-Commit-ID: DPV6vivpPUp

--HG--
extra : rebase_source : 9c4f66dc9d2b26c89a4517fba4ff9c5db413411b
2016-11-18 16:28:38 +08:00
Cameron McCormack 5bb56a7bb5 Bug 1310560 - Part 1: Make cursor use nsStyleImageRequest for url() value storage. r=xidorn
MozReview-Commit-ID: JU76TS3kxbz

--HG--
extra : rebase_source : 37f9538fca48c6bf90495bf44582c192977658e7
2016-11-21 14:34:11 +08:00
Brad Werth 7e8c2c8166 Bug 1304636 Part 2: Make GetComputedStyle report 'auto' for min-height:auto flex/grid items. r=dholbert
MozReview-Commit-ID: BmMvny3HePe

--HG--
extra : rebase_source : c9f155bc550091d491fd25d71bb2ca8d2c42320d
2016-11-17 15:41:49 -08:00
Brad Werth 8796e8969d Bug 1304636 Part 1: Make GetComputedStyle report 'auto' for min-width:auto flex/grid items. r=dholbert
MozReview-Commit-ID: 3snktoHTohq

--HG--
extra : rebase_source : 2f8c4e62cf25bcb82ea52a8e984dc1dab0c00737
2016-11-18 13:47:30 -08:00
Xidorn Quan df85c99c08 Bug 1294299 part 1 - Make nsDOMCSSDeclaration use DeclarationBlock. r=heycam
MozReview-Commit-ID: B2eHrpxOMJ8

--HG--
extra : source : 1fb048c40e848189bc31f5309d4f85b6101975c2
2016-11-03 14:41:02 +11:00
Cameron McCormack c0a347f7d0 Bug 1310463 - Part 2: Simplify nsComputedDOMStyle::DoGetListStyleImage a little. r=xidorn
MozReview-Commit-ID: Kxbxu8mZcQs
2016-11-03 09:40:53 +08:00
Cameron McCormack 32c930ba08 Bug 1288302 - Part 5: Make nsStyleImage use nsStyleImageRequest. r=bholley
This makes background-image, mask-image and border-image settable
from Servo.

Since imgRequestProxy resolution in nsStyleImages can now happen later than
at computed value setting time, and that resolution can fail,
nsStyleImage::GetImageData() might now return null.  So all of the users of
nsStyleImage now null check its result.

MozReview-Commit-ID: FMRUrC3SfOs
2016-11-02 16:58:32 +08:00
Cameron McCormack 13f86cd932 Merge backout. 2016-11-01 08:43:23 +08:00
Cameron McCormack 02f1de5bbd Back out a0488e9c0024..5ebcedea1fa5 (bug 1288302 and bug 1310463) for Talos RSS regressions.
MozReview-Commit-ID: JB5uwDeO0We
2016-11-01 08:42:49 +08:00
Cameron McCormack 17f39f6df6 Bug 1310463 - Part 2: Simplify nsComputedDOMStyle::DoGetListStyleImage a little. r=xidorn
MozReview-Commit-ID: Kxbxu8mZcQs
---
 layout/style/nsComputedDOMStyle.cpp | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)
2016-10-20 08:53:45 +08:00
Cameron McCormack 74fdb2a2bf Bug 1288302 - Part 5: Make nsStyleImage use nsStyleImageRequest. r=bholley
This makes background-image, mask-image and border-image settable
from Servo.

Since imgRequestProxy resolution in nsStyleImages can now happen later than
at computed value setting time, and that resolution can fail,
nsStyleImage::GetImageData() might now return null.  So all of the users of
nsStyleImage now null check its result.

MozReview-Commit-ID: FMRUrC3SfOs
2016-10-20 08:36:25 +08:00
Mats Palmgren f7d882a41c Bug 1305244 part 1 - [css-grid] Serialize minmax(auto, <flex>) track sizes as <flex>. r=dholbert 2016-10-29 01:30:10 +02:00
cku 412846baa6 Bug 1308963 - Part 1. Set initial value of mask-repeat as repeat. r=xidorn
MozReview-Commit-ID: 8VrPiEyKF4n

--HG--
extra : rebase_source : 0203bbfbee0e2622285e4af498553fbec63c4d62
2016-10-13 22:57:10 +08:00
Cameron McCormack b93ab3109e Bug 1298774 - Part 9: Remove FragmentOrURL. r=cjku
MozReview-Commit-ID: Du10tRgKtQ4

--HG--
extra : rebase_source : 8092f86207b1fd91ba00beb088c894afd374bd56
2016-10-11 14:56:12 +08:00
Cameron McCormack ccba4f429e Bug 1298774 - Part 8: Make mask-image use css::URLValueData for url() storage instead of FragmentOrURL. r=cjku
MozReview-Commit-ID: 2Xm3IP3SXK0

--HG--
extra : rebase_source : e524bf9a7641a80ef591dc380f4832cbcb5944ba
2016-10-11 14:56:12 +08:00
Cameron McCormack 840196223a Bug 1298774 - Part 7: Make nsStyleFilter use css::URLValue for url() storage instead of FragmentOrURL. r=cjku
MozReview-Commit-ID: FyhH9QG9vYq

--HG--
extra : rebase_source : 300a97e42ae9b27d83e7316e502295c597fad7cd
2016-10-11 14:56:12 +08:00
Cameron McCormack e07dbc8da6 Bug 1298774 - Part 6: Make SVG marker properties use css::URLValue for storage instead of FragmentOrURL. r=cjku
MozReview-Commit-ID: 8OQWmDpP7Ax

--HG--
extra : rebase_source : f372d5d77481bc71d49d0f7446244f6e9162d0ac
2016-10-11 14:56:11 +08:00
Cameron McCormack a9271aac63 Bug 1298774 - Part 5: Make nsStyleSVGPaint use css::URLValue for url() storage instead of FragmentOrURL. r=cjku
MozReview-Commit-ID: CkNcSxVToTL

--HG--
extra : rebase_source : 956149a0d12e7633aca15eb460704926a7db7371
2016-10-11 14:56:11 +08:00
Cameron McCormack f1dcd6fc45 Bug 1298774 - Part 4: Make ShapeStyleSource use css::URLValue for url() storage instead of FragmentOrURL. r=cjku
MozReview-Commit-ID: CQy6ArR48Sp

--HG--
extra : rebase_source : 71203745bca616395daeffe5b47b288b0ce67b0b
2016-10-11 14:56:11 +08:00
Phil Ringnalda c2d51243de Merge m-c to m-i
MozReview-Commit-ID: EDdoYQ8zdUw
2016-10-03 20:35:14 -07:00
Astley Chen d2724f11cc Bug 1292447: part 4 - Get vertical-align prop resolved to computed value. r=TYLin,xidorn
MozReview-Commit-ID: 542KRnVAojo

--HG--
extra : rebase_source : 02e7e9f29d252f4aa2c43b5e6c3ef15ec0fd2a80
2016-10-03 18:14:20 +08:00
Astley Chen 9e2d610084 Bug 1292447: part 3 - Get text-indent prop resolved to computed value. r=TYLin,xidorn
MozReview-Commit-ID: 4xp4iLzcn5S

--HG--
extra : rebase_source : 7a82a9de8b40476239a11d92fe18ecb0ef71cb4f
2016-10-03 18:14:20 +08:00
Astley Chen a6674a0908 Bug 1292447: part 2 - Get border-*-radius and outline-radius-* props value resolved to computed value. r=xidorn
MozReview-Commit-ID: L05tISAdu0q

--HG--
extra : rebase_source : d51af7f896dfbabcd8eec03a5715018314a54397
2016-10-03 18:14:20 +08:00
Astley Chen 8b3fe9ba10 Bug 1292447: part 1 - Get {min,max}-{width,height} prop resolved to computed value. r=TYLin,xidorn
MozReview-Commit-ID: JGT1A5By5Vp

--HG--
extra : rebase_source : 744fa5729af5d1d39bfb49de0bb2334384266d76
2016-10-03 18:14:20 +08:00
Brad Werth b9a57c7d02 Bug 1304012 -- Part 1: Don't bother resolving align-self/justify-self 'auto' value for getComputedStyle & inheritance. r=dholbert
MozReview-Commit-ID: 8LMn8oQhUz8
2016-09-27 14:45:51 -07:00
Brad Werth 25da11fb5e Bug 1305844 - Make most align/justify nsStylePosition members public, and remove trivial accessors. r=dholbert
--HG--
extra : rebase_source : a38fdd5d608370e3408a698fd887cc15f5c01537
2016-10-03 13:05:35 -07:00
Manish Goregaokar 1feab4fa75 Bug 1311959 - Remove marker-offset; r=tromey,xidorn
MozReview-Commit-ID: 72Fse0z1BiY

--HG--
extra : rebase_source : 45743ae282b861fc84f3462d1e49abde9ca0997f
2016-10-21 15:34:46 +05:30
Xidorn Quan e92fe57924 Bug 1266621 part 5 - Convert border-color to store complex color. r=heycam
MozReview-Commit-ID: 19sl9f3EVgt

--HG--
extra : rebase_source : fba71e92cf7d23728a7c963ae12027e7aee7e986
2016-09-27 20:16:35 +10:00
Xidorn Quan 6972756593 Bug 1266621 part 3 - Convert outline-color to store complex color. r=heycam
MozReview-Commit-ID: 70tre2pYqi3

--HG--
extra : rebase_source : 18ff94f359dde9cd174e2991b7dd848686058057
2016-09-27 20:44:19 +10:00
Xidorn Quan 1c2e2c2361 Bug 1266621 part 2 - Convert column-rule-color to store complex color. r=heycam
MozReview-Commit-ID: AB2b5CPABOZ

--HG--
extra : rebase_source : 99766bfc2f7558935fa5adc869fa23844e3b909f
2016-09-27 20:12:08 +10:00
Xidorn Quan cc1649886e Bug 1266621 part 1 - Convert text-decoration-color to store complex color. r=heycam
MozReview-Commit-ID: LEGICgvgQDY

--HG--
extra : rebase_source : 6c68c6e26648354d4d5515e199fdf07711eca726
2016-09-27 20:19:48 +10:00
Cameron McCormack a98e3ac042 Bug 1305376 - Use nsTArray for cursor image list storage. r=xidorn
MozReview-Commit-ID: 2uRGInQmNYU

--HG--
extra : rebase_source : 2b18874f61ebbb1c25aa2e1fab74c1e2577d9f2b
2016-09-29 10:55:55 +08:00
Xidorn Quan 6b6e2ad7b2 Bug 1299741 part 11 - Change text-{emphasis,fill,stroke}-color to using StyleComplexColor. r=dbaron
MozReview-Commit-ID: 1MlgGAkdPn8

--HG--
extra : rebase_source : 293aa61adaa091bb3d4350a4b86ec9cfbb40eb02
2016-09-16 14:40:45 +10:00
Carsten "Tomcat" Book c81bda3e2d Merge mozilla-central to autoland 2016-09-09 12:19:59 +02: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
Brad Werth 4ca89baabe Bug 1281446 - Resolved value of grid-template-columns/rows now lists removed auto-fit tracks as 0px. r=mats
--HG--
extra : rebase_source : 1590c0690945a702ab519b6aa66c90e2a2e86222
2016-09-08 08:40:06 -07:00
Nicholas Nethercote b71747b2ac Bug 1299727 - Rename NS_WARN_IF_FALSE as NS_WARNING_ASSERTION. r=erahm.
The new name makes the sense of the condition much clearer. E.g. compare:

  NS_WARN_IF_FALSE(!rv.Failed());

with:

  NS_WARNING_ASSERTION(!rv.Failed());

The new name also makes it clearer that it only has effect in debug builds,
because that's standard for assertions.

--HG--
extra : rebase_source : 886e57a9e433e0cb6ed635cc075b34b7ebf81853
2016-09-01 15:01:16 +10: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
Ryan VanderMeulen 628ab3deff Merge m-c to inbound. a=merge 2016-08-26 09:39:29 -04:00
Mats Palmgren 15b4f3793a Bug 1281320 - [css-grid] Implement 'fit-content([ <length> | <percentage> ])' value for <track-size>. r=dholbert 2016-08-26 15:16:57 +02:00
tlin@mozilla.com 6ac132dfe9 Bug 1295084 Part 4 - Rename Position::PositionCoord to Position::Coord. r=dholbert
--HG--
extra : rebase_source : 1b8b7019640f2db91167880899438cac7a2c49cd
2016-08-25 09:59:51 +00:00
tlin@mozilla.com 54d89b5a5c Bug 1295084 Part 3 - Move nsStyleImageLayers::Position to mozilla::Position. r=dholbert
--HG--
extra : rebase_source : 6684d08700f9d7fed9fc1572871a0250d43b74cf
2016-08-25 09:59:51 +00:00
tlin@mozilla.com 1a6e56ea85 Bug 1295084 Part 2 - Move two Position methods into nsStyleImageLayers. r=dholbert
--HG--
extra : rebase_source : d6288a2c46a2f7002fc1a6547b0607a811546d58
2016-08-25 09:59:51 +00:00
Emilio Cobos Álvarez 8cd73540c2 Bug 1292618: Tidy up nsStyleContent's API now allocations are infallible. r=heycam
MozReview-Commit-ID: BrHn4RiEWeg
2016-08-19 13:17:54 -07:00
Phil Ringnalda b4f23026ee Backed out 5 changesets (bug 1292618) for !mImageTracked assertion failures
CLOSED TREE

Backed out changeset 1d767147e160 (bug 1292618)
Backed out changeset e6034e58efe4 (bug 1292618)
Backed out changeset 928dd363efa0 (bug 1292618)
Backed out changeset 8e274c66ae7f (bug 1292618)
Backed out changeset 6c347701d343 (bug 1292618)
2016-08-19 00:23:42 -07:00
Emilio Cobos Álvarez bcc13a32eb Bug 1292618: Tidy up nsStyleContent's API now allocations are infallible. r=heycam
MozReview-Commit-ID: BrHn4RiEWeg
2016-08-18 22:16:13 -07:00
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
Jonathan Chan 4b87f11bd9 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

--HG--
rename : layout/style/nsCSSProperty.h => layout/style/nsCSSPropertyID.h
2016-08-16 18:37:48 -07:00
Gregory Szorc 1794619188 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

--HG--
extra : amend_source : 927e1cdfa8e55ccbd873d404d905caf6871c8c4f
extra : histedit_source : 07095868c3f767258e1d7d2645193bf4811b13bb%2Ca49ae5a28bf6e67298b6208ee9254c25a2539712
2016-08-16 17:50:40 -07:00