Commit Graph

1021 Commits

Author SHA1 Message Date
Thomas Wisniewski
390c3bda9a Bug 943918 - Part 1: style system support for tab-size:<length> and tab-size:<number>. r=heycam 2016-11-24 23:23:14 -05:00
Sebastian Hengst
f6618cb892 Backed out changeset 8a6c538cf61a (bug 943918) for failing own test tab-size-length.html on at least Windows 8 x64 opt+debug and OS X debug. r=backout 2016-11-28 00:41:19 +01:00
Thomas Wisniewski
ae1257b378 Bug 943918 - Part 1: style system support for tab-size:<length> and tab-size:<number>. r=heycam 2016-11-24 23:23:14 -05:00
Sebastian Hengst
da69754231 Backed out changeset 39e0069c673e (bug 1317562) for failing reftest 368020-1.html on OS X and Windows. r=backout 2016-11-27 14:07:18 +01:00
Timothy Nikkel
651143f578 Bug 1317562. Make style images use async image notifications when requesting decoding. r=aosmond 2016-11-27 01:33:02 -06:00
Timothy Nikkel
501b1c2574 Bug 1317562. Allow flags to be passed to StartDecoding for the sole purpose of allowing async notifications to be requested. r=aosmond 2016-11-26 01:56:26 -06:00
Cameron McCormack
1d9afbc1fb Bug 1310560 - Part 2: Remove unused EqualImages and EqualURIs functions. r=xidorn
MozReview-Commit-ID: 28nyrNMcxXq

--HG--
extra : rebase_source : 5593f9e6596b9c05fd2541908b4cecf05d1c0797
2016-11-21 14:34:15 +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
cku
690ab041c6 Bug 1234485 - Part 6. Implement nsStyleImageLayers::operator=. r=mstange
nsStyleImageLayers::operator= is required by the next patch.
MozReview-Commit-ID: CE1j2qW9TIY

--HG--
extra : rebase_source : ef2c5548e11f8d53824fe47400c79f6f90f1b1ed
2016-11-07 22:32:15 +08:00
Cameron McCormack
0eb23cdd2c Bug 1310463 - Part 1: Make list-style-image use nsStyleImageRequest for storage. r=xidorn
MozReview-Commit-ID: ENTo2HNbBpN
* * *
[mq]: x

MozReview-Commit-ID: 2SNJ4bXYpTH
2016-11-03 09:40:53 +08:00
Cameron McCormack
356666065d Bug 1288302 - Part 5.1: Merge Track and Lock flags so we don't set them together. r=xidorn
MozReview-Commit-ID: ASSWXvsczvc
2016-11-02 16:58:32 +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
195dbb2d2a Bug 1288302 - Part 3: Add nsStyleImageRequest. r=xidorn,bholley
MozReview-Commit-ID: F763Dv0Nfzp
2016-11-02 16:58:31 +08:00
Cameron McCormack
2c0304b286 Bug 1288302 - Part 2: Pass ImageTracker to style struct image tracking methods instead of nsPresContext. r=xidorn
MozReview-Commit-ID: AsGfXliHLRf
2016-11-02 16:58:31 +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
22201e4731 Backed out changeset 288d92c34790 (bug 1311921) for being an inadequate Talos regression fix.
MozReview-Commit-ID: DMQ4Hibdm6h
2016-11-01 08:33:26 +08:00
Cameron McCormack
e17f336f65 Bug 1310463 - Part 1: Make list-style-image use nsStyleImageRequest for storage. r=xidorn
MozReview-Commit-ID: ENTo2HNbBpN
---
 layout/style/nsRuleNode.cpp    |  8 ++++----
 layout/style/nsStyleStruct.cpp | 15 +++++++++++++--
 layout/style/nsStyleStruct.h   | 18 ++++++------------
 3 files changed, 23 insertions(+), 18 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
Cameron McCormack
2216900ad3 Bug 1288302 - Part 3: Add nsStyleImageRequest. r=xidorn,bholley
MozReview-Commit-ID: F763Dv0Nfzp
2016-10-20 08:36:21 +08:00
Cameron McCormack
0387dc2875 Bug 1288302 - Part 2: Pass ImageTracker to style struct image tracking methods instead of nsPresContext. r=xidorn
MozReview-Commit-ID: AsGfXliHLRf
2016-10-20 08:36:16 +08: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
Cameron McCormack
3be9ff068c Bug 1311921 - Store base and relative URIs explicitly in nsStyleImageRequests for comparison purposes, rather than use css::ImageValues. r=bholley
MozReview-Commit-ID: 5aArKCI7Rhx

--HG--
extra : rebase_source : 15d2d9fc2a715bbc8438da814ce68d1a119898fc
2016-10-28 14:34:33 +08:00
cku
abdaa5d307 Bug 1309646 - Part 3. Use nsChangeHint_UpdateBackgroundPosition in position mask. r=mstange
MozReview-Commit-ID: CeLPAN8OdhF

--HG--
extra : rebase_source : cdd4808fe3b42a4cf6e610c8f106732744afe330
2016-10-13 18:35:35 +08:00
L. David Baron
b2d6dd5976 Bug 1307853 - Set inline-resize flag when the content-box size is changing (in addition to border-box). r=mats
MozReview-Commit-ID: FjUwuQB8g5j
2016-10-13 11:41:52 -07:00
Ting-Yu Lin
05baa2eb30 Bug 1309813 - Reland list-initialization for array. r=heycam
This effectively reverts this patch.
https://hg.mozilla.org/mozilla-central/rev/cf209d9bc29c

MozReview-Commit-ID: GQSvTiKvoaC
2016-10-13 03:33:00 +08:00
Cameron McCormack
c1f0ee12ba Bug 1309082 - Part 2: Rename some ImageTracker members. r=bholley
MozReview-Commit-ID: 6yOIKKl8npT

--HG--
extra : rebase_source : 247787a0e18640c878e461c4b600bc36a40bad6d
2016-10-13 15:04:19 +08:00
Cameron McCormack
58c32a9088 Bug 1309082 - Part 1: Extract image tracking from nsDocument into a separate, refcounted object. r=bholley
This is refcounted as we'll need to hold strong references to the ImageTracker
from style structs that load images.

MozReview-Commit-ID: 994gE9tOjAn

--HG--
extra : rebase_source : 2d50059e51b42251c89a92a954cef7b49720ceba
2016-10-13 15:04:15 +08:00
cku
705996b473 Bug 1308963 - Part 3. Set initial value of mask-position as (0, 0). r=xidorn
MozReview-Commit-ID: DN7q6FrGEMA

--HG--
extra : rebase_source : 294089f79d6925d4c47202b95e270b152054f1e7
2016-10-13 23:13:11 +08: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
b490466d48 Bug 1298774 - Part 2: Rename URLValueData::mLocalURLFlag to match FragmentOrURL::mIsLocalRef naming. r=cjku
MozReview-Commit-ID: A9NHxMfPRSF

--HG--
extra : rebase_source : 702e3eaecb0aaf8b4c7514f626aec8049a11b09b
2016-10-11 14:56:11 +08: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
Xidorn Quan
1fa27577d0 Bug 1310123 - Move values of static constants in nsStyleStruct to the header. r=mats
MozReview-Commit-ID: J5Fp0iAEnkg

--HG--
extra : rebase_source : b8366ff6b14493f53c0aa8880850adcad7495983
2016-10-25 17:25:10 +11:00
Wes Kocher
e12c1e7155 Backed out changeset 9b715399e585 (bug 1310123) for build failures a=backout CLOSED TREE 2016-10-25 16:54:45 -07:00
Xidorn Quan
88c0b5d425 Bug 1310123 - Move values of static constants in nsStyleStruct to the header. r=mats
MozReview-Commit-ID: J5Fp0iAEnkg

--HG--
extra : rebase_source : 51870f9798ba6e34ee809421589c09c1d5ec584f
2016-10-25 17:25:10 +11: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
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
Brad Werth
2fe8e4a753 Bug 1304012 -- Part 2: Rename nsStyleStruct Computed**Self functions to Used**Self. r=dholbert
MozReview-Commit-ID: FCBuT2Z7sy6
2016-09-30 09:15:57 -07:00
Carsten "Tomcat" Book
6636b09ddd merge mozilla-inbound to mozilla-central a=merge 2016-09-30 12:02:16 +02:00
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
L. David Baron
13bc05d1b6 Bug 1301500 - Separate change hint for adding/removing transform from UpdateContainingBlock. r=heycam
MozReview-Commit-ID: FwEQDA327EI

--HG--
extra : transplant_source : a0cf%B4b%0FXxq%A2ZP%A5G%D1%E7H%E1%C0
2016-09-29 14:15:32 -07:00
Jeremy Chen
05b7065953 Bug 1305004 - fix ReResolveStyleContext related comments. r=heycam
Fix comment only, NPOTB, DONTBUILD.

MozReview-Commit-ID: APxOg5yVw7A

--HG--
extra : rebase_source : a48180811fedda97eaf374a7777374f8c3616ce3
2016-09-23 18:08:01 +08:00
cku
0a4b5b390c Bug 1304437 - Part 1. Return nsChangeHint_UpdateEffects when the length of the mask-image property has changed. r=heycam
MozReview-Commit-ID: 8ETx873Atu7

--HG--
extra : rebase_source : 8b67cd96dbc89a1dabe7c05e0b7254f6fa48bc56
2016-09-22 18:24:52 +08:00
Cameron McCormack
6bcc95b10d Bug 1304632 - Part 2: Remove unnecessary nsStyleImage::mImage null checking. r=bholley
nsStyleImage::mImage is always set to a non-null object when its mType
is eStyleImageType_Image, so let's just assert that and stop null
checking in that case.

MozReview-Commit-ID: 2ect4coV0LV

--HG--
extra : rebase_source : 768b0c5989bc3e32d4d8ab803d85885f223bcb43
2016-08-15 09:57:13 +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
Nicholas Nethercote
f4ec41d9b5 Bug 1297300 - Add missing checks to GetSpec() calls in layout/. r=dholbert,heycam.
--HG--
extra : rebase_source : b3a26866746cde4337f5ffeff94f370b2eb7da3e
2016-08-31 20:10:10 +10:00
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
Cameron McCormack
524cf8e41b Bug 1297963 - Part 3: Use OMT-safe function for -moz-binding comparisons in CalcDifference. r=emilio
MozReview-Commit-ID: 6n7j2DrAVFv
2016-09-03 00:22:48 +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
23932b1a58 Backed out 5 changesets (bug 1298768, bug 1297963) for causing widespread mochitest-bc failures.
Backed out changeset dedd56fa5c54 (bug 1297963)
Backed out changeset bc1ac59cfe8f (bug 1297963)
Backed out changeset a2e337d5aa02 (bug 1297963)
Backed out changeset e73da71408a3 (bug 1297963)
Backed out changeset 56f8bca8f8e8 (bug 1298768)

CLOSED TREE
2016-09-01 08:05:43 -04:00
Cameron McCormack
04fb0dfd24 Bug 1297963 - Part 3: Use OMT-safe function for -moz-binding comparisons in CalcDifference. r=emilio
MozReview-Commit-ID: 2PkR5tUMMy0
2016-08-29 18:17:26 +08: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
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
Timothy Nikkel
05dc5b9ede Bug 1260324. Don't draw garbage to the screen if an image doesn't happen to be decoded. r=seth
Layout has been using imgIContainer::IsOpaque to determine if the image will draw opaquely to all pixels it covers, and doing culling based on this.

However imgIContainer::IsOpaque doesn't guarantee anything. It only describes if the image, when in a decoded state, has all opaque pixels. So if the image doesn't have fully decoded frames around (because they got discarded) it may not draw opaquely to all of its pixels.

So we create a new function that first checks if there is a fully decoded frame.
2016-08-22 21:15:38 -05:00
Wes Kocher
3de1ea925a Backed out changeset 54933b5b96f1 (bug 1260324) for frequent windows reftest failures a=backout CLOSED TREE 2016-08-23 13:50:14 -07:00
Timothy Nikkel
9e89a17b91 Bug 1260324. Don't draw garbage to the screen if an image doesn't happen to be decoded. r=seth
Layout has been using imgIContainer::IsOpaque to determine if the image will draw opaquely to all pixels it covers, and doing culling based on this.

However imgIContainer::IsOpaque doesn't guarantee anything. It only describes if the image, when in a decoded state, has all opaque pixels. So if the image doesn't have fully decoded frames around (because they got discarded) it may not draw opaquely to all of its pixels.

So we create a new function that first checks if there is a fully decoded frame.
2016-08-22 21:15:38 -05: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
Wes Kocher
07f8858bf6 Merge inbound to central, a=merge 2016-08-17 16:38:41 -07:00
Wes Kocher
c84ec3b3f3 Merge m-c to inbound, a=merge 2016-08-16 22:06:58 -07:00
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
Wes Kocher
48b8d407c8 Merge inbound to central, a=merge
a=release to get around the webidl hook for a comment-only change

--HG--
extra : amend_source : f7e57101e1a25d3cf3536a256898ec2a21c54b38
2016-08-16 17:05:30 -07:00
Manish Goregaokar
6519960758 Bug 1295177 - Convert STYLE_FILL_RULE_* to an enum class; r=xidorn
MozReview-Commit-ID: HnNFNyD4oVJ

--HG--
extra : rebase_source : 12dcee0023ec66a49ea2db673bb5ac85cd006c1e
2016-08-15 21:47:04 +05:30
Julian Seward
0749ba9357 Bug 1289098 - Fixes to avoid Valgrind false positives with gcc-5.4 -O2 builds. r=dbaron.
--HG--
extra : rebase_source : 489e0686b650f329c41bc5d2c2504ac308b9541d
2016-08-16 11:05:08 +02:00
Jonathan Chan
9c62a2c11c 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-09 16:28:19 -07:00
cku
9abf2e0eea Bug 1295065 - Fix assertion failure at FragmentOrURL::SetValue after enabling mask-as-shorthand. r=heycam
MozReview-Commit-ID: AUySGzzqjQo

--HG--
extra : rebase_source : 295e0e01662a4c74c50791b5245873ff7b3cfb7f
2016-08-15 12:00:03 +08:00
Emilio Cobos Álvarez
7024baef71 Bug 1292930: Handle the case of having unresolved URIs in nsStyleDisplay::mBinding. r=heycam
This handles the case of the URIs not being resolved during stylo's parallel
traversal.

MozReview-Commit-ID: ExYsFbeaYWo
2016-08-16 16:10:16 -07:00
cku
7454a40dfc Bug 1295062 - Fix mask-position initial value in nsRuleNode::ComputeSVGResetData. r=astley,heycam
MozReview-Commit-ID: EvbSdG0xLtV

--HG--
extra : rebase_source : b5922cd9576564d7abbbf5f285aa7970de109f45
2016-08-15 15:33:03 +08: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
Ravi Shankar
61b118d165 Bug 1291667 - Change NS_STYLE_USER_SELECT_* constants to enum classes; r=heycam,manishearth
MozReview-Commit-ID: IcDt3XYvdlj

--HG--
extra : rebase_source : ea426ac572b6adfc09fd9440e45a0c26adde4373
2016-08-10 21:42:21 +05:30
cku
ed7978775a Bug 1277788 - Part 1. Set initial value of mask-position as center. r=dbaron.
MozReview-Commit-ID: BflQ6tz8ZjM

--HG--
extra : rebase_source : 01b05533f5c791da0987af81d5cca276ec36e3f0
2016-08-10 16:10:45 +08:00
Ting-Yu Lin
b8899e7e16 Bug 1293604 - Replace NS_STYLE_FLOAT_* with StyleFloat enum class. r=dbaron
MozReview-Commit-ID: 4K6TyIm6cs3

--HG--
extra : rebase_source : b6210815b7c03d5634fdddf8080a3da4e090d194
2016-08-09 17:32:54 +08:00
cku
cddd3b562b Bug 1258623 - Set initial value of mask-repeat as no-repeat. r=dbaron
MozReview-Commit-ID: 4VgvRXdVL2F

--HG--
extra : rebase_source : 80416c1d6a4fa8b3d4f022f879db50d31c79699b
2016-07-18 17:02:58 +08:00
Ting-Yu Lin
3e0b364f59 Bug 1288626 Part 8 - Add shape-outside support to style system. r=heycam
I have to move the definition of StyleBasicShape and StyleShapeSource prior to
where nsStyleDisplay::mShapeOutside is defined since the template struct need to
be fully defined before using as a member variable.

Use SetIdent() in CreatePrimitiveValueForBasicShapeOrURL() in
nsComputedDOMStyle.cpp per bug 1288626 comment 6.

MozReview-Commit-ID: 1KZS299CFul

--HG--
extra : rebase_source : d96276a1d514e1e42e1daf6f23e6bbfcb92d3bec
2016-07-22 15:40:01 +08:00
Ting-Yu Lin
9ccd71a0c4 Bug 1288626 Part 6 - Generalize StyleClipPath to be template struct StyleShapeSource. r=heycam
The only difference between clip-path and shape-outside is the reference box
enum, so I generalize StyleClipPath to be a template struct StyleShapeSource to
accommodate both. I'll have to move all the method definition to the header to
make the linker happy.

The only logic change is calling operator==() instead of EqualURIs to compare
urls in StyleShapeSource::operator==().

MozReview-Commit-ID: LOBGVVpnnB

--HG--
extra : rebase_source : eca561500f8f8529cf6e7b5c04372a51c1b62862
2016-08-04 13:43:08 +08:00
Ting-Yu Lin
4ad0c1bbe3 Bug 1288626 Part 5 - Rename StyleClipPathType to StyleShapeSourceType. r=heycam
StyleClipPathType will be generalized to StyleShapeSourceType to match this
change.

MozReview-Commit-ID: Igaad2EoSSt

--HG--
extra : rebase_source : 517d7b968e90f8f83e1223d33bd9d59000e034fd
2016-08-04 11:51:20 +08:00
Ting-Yu Lin
e8946e534d Bug 1288626 Part 4 - Rename nsStyleClipPath to StyleClipPath. r=heycam
MozReview-Commit-ID: 2iT4elvtTGd

--HG--
extra : rebase_source : 7a7cb977e288c7fab33e7bb83ad97e30e53844d9
2016-07-28 10:29:33 +08:00
Ting-Yu Lin
74392a7dec Bug 1288626 Part 3 - Rename nsStyleBasicShape to StyleBasicShape. r=heycam
MozReview-Commit-ID: 9NUKpZ4s4kG

--HG--
extra : rebase_source : 52f688a06e9af2733f128a874147276c735db2f1
2016-07-27 18:14:36 +08:00
Ting-Yu Lin
d5b06eeac7 Bug 1288626 Part 2 - Use basic shape enum class defined in nsStyleConsts.h. r=heycam
Rename StyleBasicShape to StyleBasicShapeType in nsStyleConsts.h, and
replace the old enum nsStyleBasicShape::Type by the enum class
StyleBasicShapeType.

Also, replace NS_ASSERTION() by MOZ_ASSERT().

MozReview-Commit-ID: EuS4ZtYKsk6

--HG--
extra : rebase_source : b6cb68f91c545cef283c97de222111d3acb64b02
2016-07-27 17:59:33 +08:00
cku
e39570c057 Bug 1291280 - Part 2. Declare nsStyleImageLayers::Layer::mSourceURI as FragmentOrURI r=heycam
MozReview-Commit-ID: 6KFb7MjlLqj

--HG--
extra : rebase_source : 24ac046807f12e3bea6717baab962de94d8fafc5
2016-08-06 06:38:44 +08:00
cku
6fc952395d Bug 1291280 - Part 1. Move the definition of FragmentOrURL up. r=heycam
MozReview-Commit-ID: 3TtUtnE2ZBh

--HG--
extra : rebase_source : dd22cfab1da88550bb3c6fa8459827c53d6e5bd0
2016-08-06 06:16:50 +08:00
cku
9e967a4f21 Bug 652991 - Part 9. Using FragmentOrURL to represent PanitServer url. r=heycam
MozReview-Commit-ID: IZf0fGantoB

--HG--
extra : rebase_source : 201786ad6a890bb96f5f4384b1420802c926373f
extra : source : 1a80ce736d77b1dba6d9cf53c8a20b5a6078ac6d
2016-07-05 01:00:15 +08:00
cku
856763a293 Bug 652991 - Part 7. Using FragmentOrURL to represent SVG filter url. r=heycam
MozReview-Commit-ID: F6BpTQfC82i

--HG--
extra : rebase_source : 07c2e6fb662b00c453a5d491722267f810ef3fa7
extra : source : 3e53712a3b48bb771a2faeafc1603eb10fbb851f
2016-07-23 16:16:59 +08:00
cku
25577ba9c8 Bug 652991 - Part 5. Using FragmentOrURL to represent SVG clippath. r=heycam
MozReview-Commit-ID: BErpWUQ5iQ1

--HG--
extra : rebase_source : 16ed0cd6bb1fd3bc7ac91b33078c9938306a69b6
extra : source : fd15e7962cffec5b2c1f101a36e32dcdce17146c
2016-07-05 00:59:57 +08:00
cku
385c8ddfb0 Bug 652991 - Part 3. Using FragmentOrURL to represent SVG maker url. r=heycam
MozReview-Commit-ID: IQDGL7j5p1q

--HG--
extra : rebase_source : 3dcfca05e5dd9056c6a332da1e4caa2e7aeaa4b3
2016-06-24 02:11:51 +08:00
cku
05cf37818b Bug 652991 - Part 2. Create FragmentOrURL to hold both local-ref/non-local-ref URL. r=heycam
MozReview-Commit-ID: FVPNqxk3Uyr

--HG--
extra : rebase_source : 4777d3785e4e1794d223fad66a0780f2e79d0511
2016-06-18 00:02:43 +01:00
Kevin Chen
dc9ffec776 Bug 1285320 - Part 2: Purge border-image cache when hypothetical SVG viewport changes, if using SVG image with no aspect ratio. r=dholbert 2016-07-31 20:24:00 -04:00
Kevin Chen
eac3fc0e13 Bug 1285320 - Part 1: Add struct "CachedBorderImageData" to keep cached data for border in nsStyleImage. r=dholbert 2016-07-31 20:23:00 -04:00
Neerja Pancholi
d660b8cb84 Bug 1288797 - Replace nsAutoPtr with UniquePtr in nsStyleStruct.h (for variable "mCropRect") r=dholbert
MozReview-Commit-ID: 1UFbO0jgM1k

--HG--
extra : rebase_source : 577c45b90653482ec2d5baab679c743cc68ac872
2016-07-28 15:06:02 -07:00
Jonathan Chan
da1ba5c6ef Bug 1290269 - Add missing includes to nsStyleStruct.cpp. r=dholbert
MozReview-Commit-ID: 1dsnqyvAanr

--HG--
extra : rebase_source : d64f942cb059af1f2a1c7cea0d03bad140caaf84
2016-07-28 14:51:12 -07:00
Jeremy Chen
c9f52459aa Bug 1289007 - part1: parse and compute initial-letter property. r=heycam
MozReview-Commit-ID: E0eXolZ93oJ

--HG--
extra : rebase_source : 3fc74b84a488bb495f926b420aa6c06a987e09b2
2016-07-28 15:23:36 +08:00
Daisuke Akatsuka
4f153efd27 Bug 1264865 - Part 3: Remove codes that are no longer in use. r=birtles
MozReview-Commit-ID: Dhrco8madlz

--HG--
extra : rebase_source : b26d9d25c2dd54f7ec0e12dd51127229cb085346
2016-07-27 10:13:17 +09:00
Daisuke Akatsuka
a579826684 Bug 1264865 - Part 2: Remove trailing whitespaces. r=birtles
MozReview-Commit-ID: AFdXnvmbFfD

--HG--
extra : rebase_source : b3d4c0d830852686aa576a18562e340c846f75e9
2016-07-27 10:13:04 +09:00
Manish Goregaokar
52b9ca33f3 Bug 1288383 - Replace NS_STYLE_USER_FOCUS_* with an enum class; r=heycam
MozReview-Commit-ID: A7BYcfsn1tI

--HG--
extra : rebase_source : b893331b173a306143e546f0d403ae25f827fae2
2016-07-25 11:56:40 +05:30
Manish Goregaokar
d78a51cbcc Bug 1288383 - Replace NS_STYLE_FLOAT_EDGE_* with an enum class; r=heycam
MozReview-Commit-ID: FrH5kGWeXkL

--HG--
extra : rebase_source : 73c3446ba07f31f3fbfb6eca304ebe88cccf359a
2016-07-25 11:56:05 +05:30
Manish Goregaokar
f4dffe63a1 Bug 1288383 - Replace NS_STYLE_CLIP_PATH_* with an enum class; r=heycam
MozReview-Commit-ID: H6nwOybonF3

--HG--
extra : rebase_source : db3ab986f7708540219cefa18a21b4624a2dc27a
2016-07-25 11:52:34 +05:30
Chris Peterson
b175c9fdd5 Bug 1277106 - Part 2: Expand MOZ_UTF16() strings to u"" string literals. r=Waldo 2016-07-20 22:03:25 -07:00
Carsten "Tomcat" Book
241ae512ec Merge mozilla-central to autoland 2016-07-20 11:24:44 +02:00
Carsten "Tomcat" Book
8428cd56e3 merge mozilla-inbound to mozilla-central a=merge 2016-07-20 11:20:15 +02:00
cku
4d83e423f5 Bug 1235494 - Optimize nsStyleImageLayers::Layer::CalcDifference r=dbaron
MozReview-Commit-ID: K8lxA8S4EW2

--HG--
extra : rebase_source : 229f90c65ab204330063b09314e83fbfdb2727cc
2016-07-19 12:35:44 +08:00
Manish Goregaokar
8add405354 Bug 1287755 - Replace NS_STYLE_CLIP_SHAPE_SIZING_* with an enum class; r=heycam
MozReview-Commit-ID: KutLb8H9JOk

--HG--
extra : rebase_source : ae38fcb7ebc8c6d5a8c77c773c8706580e41040c
2016-07-20 11:12:42 +05:30
Jeremy Chen
9d8ddf9b2d Bug 1287308 - part1: replace uses of NS_STYLE_HINT_NONE with nsChangeHint(0). r=dbaron
MozReview-Commit-ID: CN66AimiuEu

--HG--
extra : rebase_source : 6caaa30e9afa8645ea31c4918230ba2ec53bc74a
2016-07-17 22:20:21 +08:00
Jeremy Chen
35861acb00 Bug 906116 - part3.1: Replace NS_STYLE_HINT_FRAMECHANGE with nsChangeHint_ReconstructFrame. r=dbaron
Replace NS_STYLE_HINT_FRAMECHANGE with nsChangeHint_ReconstructFrame in
nsStyle*::CalcDifference.

MozReview-Commit-ID: 85WPCyYolal

--HG--
extra : rebase_source : 7eb5f6528268001108b11dab7c00252714ca738d
2016-07-06 13:06:14 +08:00
Jeremy Chen
1c15f8a673 Bug 906116 - part1: Ensure bracing all controlled statements in nsStyleStruct.h and nsStyleStruct.cpp. r=dbaron
According to our coding style guide, we should always brace controlled
statements, even a single-line consequent of an if-else-statement. It avoids
dangling else bugs.

MozReview-Commit-ID: FT1AR5MqOGw

--HG--
extra : rebase_source : f864e6f66c28e92574fb316a686e2d6d8fcb78e3
2016-07-06 13:06:13 +08:00
Carsten "Tomcat" Book
1a67b0a534 Backed out changeset 0f4e9c57ee8e (bug 906116) for bustage on a CLOSED TREE 2016-07-06 05:40:49 +02:00
Carsten "Tomcat" Book
95bf0b9965 Backed out changeset 17d17aeec1fa (bug 906116) 2016-07-06 05:40:07 +02:00
Jeremy Chen
df7ed352fc Bug 906116 - part3.1: Replace NS_STYLE_HINT_FRAMECHANGE with nsChangeHint_ReconstructFrame. r=dbaron
Replace NS_STYLE_HINT_FRAMECHANGE with nsChangeHint_ReconstructFrame in
nsStyle*::CalcDifference.

MozReview-Commit-ID: 85WPCyYolal

--HG--
extra : rebase_source : 3a5e247fe38e0b75d9ea1826ce5758b5a5862675
2016-07-06 09:59:55 +08:00
Jeremy Chen
b789d84b05 Bug 906116 - part1: Ensure bracing all controlled statements in nsStyleStruct.h and nsStyleStruct.cpp. r=dbaron
According to our coding style guide, we should always brace controlled
statements, even a single-line consequent of an if-else-statement. It avoids
dangling else bugs.

MozReview-Commit-ID: FT1AR5MqOGw

--HG--
extra : rebase_source : 111b4f70c83a59ee7dab8bf8adf60bc10916cc79
2016-07-06 09:59:55 +08:00
Cameron McCormack
2a58c3e595 Bug 1277163 - Rename nsStyleContext* argument to Calc(Style)Difference methods to indicate it's the new style. r=dbaron
MozReview-Commit-ID: 9AvGc1tjJpx
2016-06-21 11:47:54 +10:00
Ting-Yu Lin
a178b8185c Bug 1280647 - Rename nsStyleDisplay member mFloats to mFloat. r=dholbert
Also rename mOriginalFloats to mOriginalFloat.

MozReview-Commit-ID: COfmU34CtJU

--HG--
extra : rebase_source : 5b203dd9f0161f353a4a0b95003afe4af1d1480e
2016-06-18 22:16:20 +01:00
cku
176b14a02c Bug 1273804 - Use nsChangeHint_RepaintFrame hint for position change of a mask layer r=heycam
MozReview-Commit-ID: 4W9Qmk6MVri

--HG--
extra : rebase_source : cd89cc81dd4861ca74425956f0a47621f2c20c3d
2016-06-14 12:36:01 +01:00
Cameron McCormack
97ad9d5793 Bug 1277154 - Remove bitfields from nsStyleSVG to help with rust bindgen. r=xidorn 2016-06-03 17:16:39 +10:00
Astley Chen
8289c3a746 Bug 1258286: Part 1 - add layer types to nsStyleImageLayers and layer initialization. r=heycam
--HG--
extra : rebase_source : a41c3983b68e701dd7df37ee42a9c123805fd833
2016-06-03 23:56:54 +08:00
Phil Ringnalda
4ba56e35cf Back out bb39628ebe69 (bug 1277154) for reftest bustage in svg-glyph-objectvalue.svg
CLOSED TREE
2016-06-02 20:06:13 -07:00
Cameron McCormack
e3581a9cba Bug 1277154 - Remove bitfields from nsStyleSVG to help with rust bindgen. r=xidorn 2016-06-03 10:02:57 +10:00
Ethan Lin
094e16eac7 Bug 1275957 - Part 1. Apply space property to gradient. r=mstange 2016-06-02 02:09:00 +02:00
Kartikaya Gupta
c6021ffe84 Bug 1275604 - Ensure that we schedule a paint if the touch-action property changes. r=tnikkel
MozReview-Commit-ID: Jy10Qa2JpSE
2016-06-01 13:13:14 -04:00
Carsten "Tomcat" Book
a415d80096 Backed out changeset a9db7e5634d7 (bug 1258286) for test_smilCSSFromTo.xhtml test failures 2016-06-01 08:47:06 +02:00
Astley Chen
23317c963f Bug 1258286: Part 1 - add layer types to nsStyleImageLayers and layer initialization. r=heycam
MozReview-Commit-ID: ENLXAEA62Bm

--HG--
extra : histedit_source : a93d2a0d1603026dfc94e38e8e754646cd307b6d
2016-06-01 11:00:58 +08:00
Ting-Yu Lin
0dd7719112 Bug 1269175 - Convert nsStyleSVG::mStrokeDasharray to be nsTArray. r=heycam
MozReview-Commit-ID: 5TC8KBD5cO6

--HG--
extra : rebase_source : 5a1cc695279dc5c5f4d1799814613c3335a65196
2016-05-26 14:01:58 +08:00
Jet Villegas
2857c00f1a Bug 1273455: Let CSS Image surface caches expire, rather than immediately discarding. r=seth 2016-07-19 13:29:21 +08:00
Mats Palmgren
5e2c16366e Bug 1266268 - [css-grid] Implement <percentage> for grid gap properties. r=dholbert 2016-05-25 10:48:52 +02:00
Thomas Wisniewski
9b377bb0ef Bug 955857 - Replace CSS word-wrap with overflow-wrap, and add it back as a CSS_PROP_ALIAS. r=dbaron
MozReview-Commit-ID: FiZJvm25rNN

--HG--
extra : rebase_source : c7b16fc302e5c7905beea98353faa960db0a9248
2016-05-23 20:27:21 -04:00
Jeremy Chen
685cf4c3d8 Bug 1273766 - part3: purge NS_UpdateHint inline. r=heycam
MozReview-Commit-ID: IIOT9jq8hOl

--HG--
extra : rebase_source : dfb3d874ce4419f32f13e662bd495e97ac9cac10
2016-05-23 11:26:03 +08:00
Jeremy Chen
0f24420a8f Bug 1273766 - part2: purge NS_SubtractHint inline. r=heycam
MozReview-Commit-ID: 1UX1wZJNnat

--HG--
extra : rebase_source : e74d1cf5ca0866897634339a0fe6df65e0d249ae
2016-05-23 11:26:03 +08:00
Jeremy Chen
1a607ceb9d Bug 1273766 - part1: purge NS_CombineHint inline. r=heycam
MozReview-Commit-ID: CWlyjREgoEk

--HG--
extra : rebase_source : 452a425fe4c722d7d5e15118ecb0e59c54908f37
2016-05-23 11:26:03 +08:00
Keith Yeung
24bac18bf5 Bug 1273424 - Rename -moz-float-edge constants to be more consistent with keywords. r=bholley 2016-05-18 11:07:46 -07:00
Cameron McCormack
4ca33888b2 Bug 1271869 - Rename NS_STYLE_TEXT_ALIGN_DEFAULT to NS_STYLE_TEXT_ALIGN_START. r=dholbert 2016-05-11 14:03:34 +10:00
Cameron McCormack
f9bc9c5fd4 Bug 1271510 - Part 2: Improve nsStyleOutline::CalcDifference to make better use of mActualOutlineWidth. r=dholbert 2016-05-11 14:03:34 +10:00
Cameron McCormack
8e8681cc48 Bug 1271510 - Part 1: Rename nsStyleOutline::mCachedOutlineWidth to mActualOutlineWidth. r=dholbert 2016-05-11 14:03:34 +10:00
Cameron McCormack
74881f45fe Bug 1271168 - Part 1: Remove nsPresContext arg from nsStyleOutline::RecalcData. r=bholley 2016-05-08 20:22:00 +02:00
Xidorn Quan
fa7ba2cb82 Bug 1269975 part 1 - Move nsCSSProps::EnabledState to a top level enum class mozilla::CSSEnabledState. r=heycam
MozReview-Commit-ID: 3KH5cqDFzUI

--HG--
extra : rebase_source : 3c8355f7807982152a16a913b31cbcdd6ef78030
extra : source : 73e89d25a34ca5587f306b848b0b801342f9432f
2016-05-10 18:44:05 +10:00
Ryan VanderMeulen
f514ed495c 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
30a6d76b26 Bug 1269975 part 1 - Move nsCSSProps::EnabledState to a top level enum class mozilla::CSSEnabledState. r=heycam
MozReview-Commit-ID: 3KH5cqDFzUI

--HG--
extra : source : 73e89d25a34ca5587f306b848b0b801342f9432f
2016-05-10 13:36:25 +10:00
Bobby Holley
2dfd23a1ac Bug 1269933 - Teach CounterStyles their name and remove the string member from the style structs. r=xidorn 2016-05-06 00:09:18 -07:00
Bobby Holley
60bd9ae61b Bug 1269901 - Remove mCachedMargin. r=dbaron 2016-05-04 16:56:17 -07:00
Bobby Holley
f2c9cdf0d8 Bug 1269901 - Remove mCachedPadding. r=dbaron 2016-05-04 16:56:17 -07:00
Bobby Holley
6e6e20ba47 Bug 1269901 - Refactor Helpers. r=dbaron 2016-05-04 16:56:17 -07:00
Markus Stange
0aa0fa1e2b Bug 1227327 - Invalidate table parts and MathML frames when background-position changes on them. r=dbaron
Theoretically we should do the same for nsTreeBodyFrame, but that frame type is
harder to detect and I'm not sure it's worth adding code to support updating
background-position on XUL trees.

MozReview-Commit-ID: 8HPT53MX6bO

--HG--
extra : rebase_source : 1e84e83616832debe8f6da394630a5a2e014e7df
2016-04-28 13:01:22 -04:00
Ting-Yu Lin
c68250d06d Bug 1267524 followup - Revert list-initialization for array in Part 19. r=me
This revert the new C++11 syntax used in Part 19. which should fix build
errors for msvc 2013.
https://msdn.microsoft.com/en-us/library/9f53ks1w.aspx

--HG--
extra : amend_source : 95d5565f549358d26ffa7136fb4f8a1be1c66050
2016-05-04 13:35:21 +08:00
Phil Ringnalda
f74761a568 Back out 6 changesets (bug 1227327) for Android reftest failures in 942672-1.html, background-position-2b.html and background-position-2c.html
CLOSED TREE

Backed out changeset c9b0ba301426 (bug 1227327)
Backed out changeset c857ad1fa01c (bug 1227327)
Backed out changeset 4ba58cd94310 (bug 1227327)
Backed out changeset 30e394faeb23 (bug 1227327)
Backed out changeset ce7fd04cc749 (bug 1227327)
Backed out changeset e0fe45294034 (bug 1227327)
2016-05-03 21:49:07 -07:00
Markus Stange
ea8e203822 Bug 1227327 - Invalidate table parts and MathML frames when background-position changes on them. r=dbaron
Theoretically we should do the same for nsTreeBodyFrame, but that frame type is
harder to detect and I'm not sure it's worth adding code to support updating
background-position on XUL trees.

MozReview-Commit-ID: 8HPT53MX6bO

--HG--
extra : rebase_source : 1e84e83616832debe8f6da394630a5a2e014e7df
2016-04-28 13:01:22 -04:00
Ting-Yu Lin
1c724eaebc Bug 1267524 Part 19 - Move nsStyleCoord members to initializer list. r=heycam
MozReview-Commit-ID: BOjeQGlCbV9

--HG--
extra : rebase_source : f5372e3b70812ad1777a76d8346dbdfe9913584b
2016-05-03 17:26:30 +08:00
Ting-Yu Lin
fd1ce11cba Bug 1267524 Part 18 - Remove "void" from zero argument functions. r=heycam
MozReview-Commit-ID: GW6RsdgcC1j

--HG--
extra : rebase_source : bb272974662b8543bbcb177cf5bacb7bd024bee3
2016-05-03 17:26:30 +08:00
Ting-Yu Lin
2abba94f05 Bug 1267524 Part 17 - Use member initializer list for nsStyleVariables. r=heycam
MozReview-Commit-ID: Ag7VZKgrNf3

--HG--
extra : rebase_source : 4c9c01289a350579c750ed3318593ad7eaca827d
2016-05-03 17:26:30 +08:00
Ting-Yu Lin
8c8ebcd032 Bug 1267524 Part 16 - Use member initializer list for nsStyleUIReset. r=heycam
MozReview-Commit-ID: 58XpFZLLskk

--HG--
extra : rebase_source : 3bc4f084a0dc993544a4f3a248215a46bf35da51
2016-05-03 17:26:30 +08:00
Ting-Yu Lin
6107e10221 Bug 1267524 Part 15 - Use member initializer list for nsStyleUserInterface. r=heycam
MozReview-Commit-ID: KqSikZnyKd0

--HG--
extra : rebase_source : 1ce862d039331b90da0150ba025e50a6b74809ef
2016-05-03 17:26:30 +08:00
Ting-Yu Lin
49fbebcf6b Bug 1267524 Part 14 - Use member initializer list for nsStyleText. r=heycam
MozReview-Commit-ID: 2akpRSE1Kkv

--HG--
extra : rebase_source : 2c36eff15c368fbad0337463ef87de44ab6f00b0
2016-05-03 17:26:29 +08:00
Ting-Yu Lin
d46088a7f8 Bug 1267524 Part 13 - Use member initializer list for nsStyleTextReset. r=heycam
MozReview-Commit-ID: GqlFSXXCSZ9

--HG--
extra : rebase_source : a85616e60ee88e913242bbfa126e8f10179e46ab
2016-05-03 17:26:29 +08:00
Ting-Yu Lin
786a0b39e8 Bug 1267524 Part 12 - Use member initializer list for nsStyleContent. r=heycam
MozReview-Commit-ID: L7kQDKfAOVb

--HG--
extra : rebase_source : d239d272c8cd1f67d860490c815cc5f793121876
2016-05-03 17:26:29 +08:00
Ting-Yu Lin
1575e0225d Bug 1267524 Part 11 - Use member initializer list for nsStyleVisibility. r=heycam
MozReview-Commit-ID: I8YHela8U4Z

--HG--
extra : rebase_source : 24572d4dd3745b1b8eef76f777043519007f4be3
2016-05-03 17:26:29 +08:00
Ting-Yu Lin
b2bf598458 Bug 1267524 Part 10 - Use member initializer list for nsStyleDisplay. r=heycam
MozReview-Commit-ID: 2tW9RYNTOMD

--HG--
extra : rebase_source : 348e6be67f260c6c8e1b0a41c6e5b940f0d65ca5
2016-05-03 17:26:29 +08:00
Ting-Yu Lin
d4f2f311d2 Bug 1267524 Part 9 - Use member initializer list for nsStyleColor. r=heycam
MozReview-Commit-ID: 61fklP4Ojev

--HG--
extra : rebase_source : 6721dde79f9657deee99d33ea36b747c94dc3353
2016-05-03 17:26:29 +08:00
Ting-Yu Lin
757f9e8caf Bug 1267524 Part 8 - Use member initializer list for nsStyleTableBorder. r=heycam
MozReview-Commit-ID: DO40OraGWoj

--HG--
extra : rebase_source : 78d7f004fd9494cbe773fb14d66233383b46abe6
2016-05-03 17:26:29 +08:00
Ting-Yu Lin
1d1d802deb Bug 1267524 Part 7 - Use member initializer list for nsStyleTable. r=heycam
MozReview-Commit-ID: 4WUjx8rONVt

--HG--
extra : rebase_source : efa5ddf886f1ef66bf153e88b250adf47c5c5bb4
2016-05-03 17:26:28 +08:00
Ting-Yu Lin
707e8fda33 Bug 1267524 Part 6 - Use member initializer list for nsStylePosition. r=heycam
MozReview-Commit-ID: En2yLFd0WGs

--HG--
extra : rebase_source : a5c3b466aa0dabf226f2faacefdb48a40091f560
2016-05-03 17:26:28 +08:00
Ting-Yu Lin
39663f3b8d Bug 1267524 Part 5 - Use member initializer list for nsStyleSVGReset. r=heycam
MozReview-Commit-ID: 8Lzhifb6uir

--HG--
extra : rebase_source : 659cf302e0daa0b6bf3d922594e38f0d6a5784b4
2016-05-03 17:26:28 +08:00
Ting-Yu Lin
336393cc4e Bug 1267524 Part 4.2 - Use member initializer list for nsStyleSVG. r=heycam
In the initializer list of the copy constructor, mStrokeDasharray and
mStrokeDasharrayLength are both initialized to nullptr and 0
respectively. If aSource.mStrokeDasharray has value, they're further be
set to proper values later in the function body. In this way, the two
'else' clauses can be removed.

MozReview-Commit-ID: DGybV7zFcyo

--HG--
extra : rebase_source : fe7d6e73323e226ab304d1a45e29d192cdc8f39c
2016-05-03 17:26:28 +08:00
Ting-Yu Lin
8864b85d3a Bug 1267524 Part 4.1 - Add Reset() and rewrite methods for nsStyleSVGPaint. r=heycam
Eliminate the explicit destructor / placement new calls in SetType().

MozReview-Commit-ID: 1CtjX1AEbFR

--HG--
extra : rebase_source : 85c46087bb0aa1debe08789caecf15066a0f4704
2016-05-03 17:26:27 +08:00
Ting-Yu Lin
4420a4b3a8 Bug 1267524 Part 3 - Use member initializer list for nsStyleColumn. r=heycam
MozReview-Commit-ID: 8xvVUe9QaRF

--HG--
extra : rebase_source : d065de11cde5779e4ad489dc10d4fb063a25610f
2016-05-02 11:11:45 +08:00
Ting-Yu Lin
49a65a5200 Bug 1267524 Part 2 - Use member initializer list for nsStyleXUL. r=heycam
MozReview-Commit-ID: FHb0yTvYAXR

--HG--
extra : rebase_source : 6158f8d7ec97ef93dd0ff7efedea2c0bfb65b10f
2016-05-02 11:11:45 +08:00
Ting-Yu Lin
b375f10f47 Bug 1267524 Part 1 - Use member initializer list for nsStyleOutline. r=heycam
mCachedOutlineWidth was not initialized. I set it to 0.

MozReview-Commit-ID: fqaoZj1iMm

--HG--
extra : rebase_source : 54b158e52fb2600602a93c8a6921716a16b4b32b
2016-05-02 11:11:45 +08:00
Phil Ringnalda
5387bf0160 Back out 6 changesets (bug 1227327) for failures in est_fixed_bg_scrolling_repaints.html
Backed out changeset 529ff32ced48 (bug 1227327)
Backed out changeset b726c30c4290 (bug 1227327)
Backed out changeset 5453b1ce4e85 (bug 1227327)
Backed out changeset 462dc0904d05 (bug 1227327)
Backed out changeset 1515512d3731 (bug 1227327)
Backed out changeset 2276fc059bf7 (bug 1227327)
2016-05-02 22:23:10 -07:00
Markus Stange
6ae2cdbdd0 Bug 1227327 - Invalidate table parts and MathML frames when background-position changes on them. r=dbaron
Theoretically we should do the same for nsTreeBodyFrame, but that frame type is
harder to detect and I'm not sure it's worth adding code to support updating
background-position on XUL trees.

MozReview-Commit-ID: 8HPT53MX6bO

--HG--
extra : rebase_source : 1e84e83616832debe8f6da394630a5a2e014e7df
2016-04-28 13:01:22 -04:00
Markus Stange
1a43349a44 Bug 550426 - Add support for {background,mask}-position-{x,y}, most of the style system changes. r=dbaron
MozReview-Commit-ID: JgZIoj43aZv

--HG--
extra : rebase_source : cf90a8cf7c10ee90f4c312b7ff5c1107aa8571f2
2016-04-29 14:12:10 -04:00
Wes Kocher
6521757101 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

--HG--
rename : layout/reftests/backgrounds/background-position-6b.html => layout/reftests/backgrounds/background-position-6.html
2016-04-29 14:47:43 -07:00
Markus Stange
10d8636821 Bug 550426 - Add support for {background,mask}-position-{x,y}, most of the style system changes. r=dbaron
MozReview-Commit-ID: JgZIoj43aZv

--HG--
extra : rebase_source : 5c7663c042e6507f9979d769db26eef22dc8ba79
2016-04-29 14:12:10 -04:00
Botond Ballo
992cbd5b93 Bug 735857 - Treat background-attachment:fixed as background-attachment:scroll if it's on a non-root element affected by a transform. r=mstange
MozReview-Commit-ID: 1lnQoD98xv3

--HG--
extra : rebase_source : 0cfd2c2a7926210775b6a1beff69ba32f2a10d6c
2016-04-25 17:20:13 -04:00
Jeremy Chen
84a70f3910 Bug 1248708 - Part1: parse and compute -webkit-text-stroke property. r=heycam 2016-04-23 01:40:39 +08:00
Bobby Holley
37c8b13e17 Bug 1266249 - Remove mHasCachedOutline. r=dbaron 2016-04-21 17:44:32 -07:00
Cameron McCormack
ce928d01ad Bug 1264830 - Part 3: Change nsStyleDisplay::{mTransitions,mAnimations} to use nsStyleAutoArray. r=bholley
nsStyleDisplay::{mTransitions,mAnimations} both always have at least one
element in it, so we change them to use nsStyleAutoArray rather than
nsTArray.
2016-04-19 09:51:16 +10:00
Cameron McCormack
e7ae67f825 Bug 1264830 - Part 2: Change nsStyleImageLayers::mLayers to use nsStyleAutoArray. r=bholley
nsStyleImageLayers::mLayers always has at least one element in it, so we
change it to use nsStyleAutoArray rather than nsTArray.
2016-04-19 09:51:16 +10:00
Cameron McCormack
6b84ca3abb Bug 1261754 - Part 12: Move filter from nsStyleSVGReset to nsStyleEffects. r=dholbert 2016-04-12 15:52:43 +10:00
Cameron McCormack
672aaef5a4 Bug 1261754 - Part 11: Move opacity from nsStyleDisplay to nsStyleEffects. r=dholbert 2016-04-12 15:52:43 +10:00
Cameron McCormack
0ef9faa708 Bug 1261754 - Part 10: Move mix-blend-mode from nsStyleDisplay to nsStyleEffects. r=dholbert 2016-04-12 15:52:42 +10:00
Cameron McCormack
c2126abc67 Bug 1261754 - Part 9: Move clip from nsStyleDisplay to nsStyleEffects. r=dholbert 2016-04-12 15:52:42 +10:00
Cameron McCormack
0718df89c3 Bug 1261754 - Part 8: Move box-shadow from nsStyleBorder to a new nsStyleEffects struct. r=dholbert 2016-04-12 15:52:42 +10:00
Cameron McCormack
6f4ce86293 Bug 1261754 - Part 7: Move pointer-events from nsStyleVisibility to nsStyleUserInterface. r=dholbert 2016-04-12 15:52:41 +10:00
Cameron McCormack
cb363fa1df Bug 1261754 - Part 6: Move vertical-align from nsStyleTextReset to nsStyleDisplay. r=dholbert 2016-04-12 15:52:41 +10:00
Cameron McCormack
d7db2f5ade Bug 1261754 - Part 5: Move text-rendering from nsStyleSVG to nsStyleText. r=dholbert 2016-04-12 15:52:41 +10:00