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

824 Коммитов

Автор SHA1 Сообщение Дата
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 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 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
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
Xidorn Quan 0e7a21831d Bug 1311598 part 4 - Split binding types from ServoBindings.h into ServoBindingTypes, and merge ServoBindingHelpers into it. r=heycam
MozReview-Commit-ID: CKvBMOapqlI

--HG--
extra : rebase_source : 83531296b4b8a8a9c54f03953cab2a48e8c6cbad
extra : source : e1c6c680a4718619e1a4cbecd84cccac4101d69b
2016-10-24 20:16:46 +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
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
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
Iris Hsiao 767e1e9b11 merge mozilla-inbound to mozilla-central a=merge 2016-09-26 18:34:20 +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
Xidorn Quan 8b3d5beac6 Bug 1299741 part 4 - Add StyleComplexColor type for storing color combining numeric color and currentcolor. r=dbaron
MozReview-Commit-ID: I6DaSaMCgtH

--HG--
extra : rebase_source : 0ad610a40431e74a540714491be35ad444fd4372
2016-09-02 14:58:10 +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
Bobby Holley 6351b3ffb8 Bug 1304913 - Have Servo manage node data directly without FFI calls. r=Manishearth
MozReview-Commit-ID: H8f8VP18TbM
2016-09-23 15:58:48 -07: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
Manish Goregaokar 97989b02e7 Bug 1298655 - Add bindings for constructing nsCSSShadowArray; r=bholley
MozReview-Commit-ID: IFaQwuhsKqH

--HG--
extra : rebase_source : 4ecc974b4edef66a48ae1d46d2fec382994f6a29
2016-08-28 10:11:17 +05:30
L. David Baron 155cf7f9b8 Bug 1251075 - Split out the parts of nsStyleDisplay::Is{Abs,Fixed}PosContainingBlock that don't depend on the frame. r=bz
The fact that HasTransform() depends on the frame requires the *Internal
functions rather than simply having the public function that takes a
frame call the public function that takes a style context.

MozReview-Commit-ID: CcWZjDTIr52
2016-08-29 11:43:29 -07:00
Wes Kocher f09e8fef1a Merge inbound to central, a=merge 2016-08-26 16:20:50 -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
tlin@mozilla.com 3100ef24af Bug 1295084 Part 1 - Move FragmentOrURL into mozilla namespace. r=dholbert
--HG--
extra : rebase_source : 2d4be5845d11c03560c7cd3fd60417b47f2a6dac
2016-08-25 09:59:51 +00: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
Xidorn Quan 4111be24e9 Bug 1200469 part 2 - Discard cursor image urgently. r=tnikkel
Given that script may change cursor image in a high frequency, and it
is usually small, it is probably better discarding it urgently.

MozReview-Commit-ID: J6tqIODXykg
2016-08-19 23:43:11 +10: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
Manish Goregaokar ef51453f37 Bug 1295662 - stylo: Add bindings for StyleClipPath; r=heycam
MozReview-Commit-ID: E1ALXo7qd43

--HG--
extra : rebase_source : 60c6dcddc13d0e5ca2c9214dc22ca232200faf56
2016-08-15 21:18:11 +05:30
Manish Goregaokar dc45507308 Bug 1295662 - Document layout of nsStyleCorners and inset StyleBasicShape; r=heycam
MozReview-Commit-ID: DYwaSnLvWJK

--HG--
extra : rebase_source : 1b03f8b3ed067897acbeed0719bdc03ca12f55fa
2016-08-17 15:39:34 +05:30
Wes Kocher 07f8858bf6 Merge inbound to central, a=merge 2016-08-17 16:38:41 -07:00
Nathan Froyd 274ff3d25a Bug 1295192 - part 2 - remove CPP_THROW_NEW from style struct type-safe operator new overloads; r=bholley
operator new overloads that declare that they don't throw exceptions
require a null check on their return value, per the C++ spec.  We know
that Servo isn't going to call these functions with null pointers, so
remove the CPP_THROW_NEW annotation and save ourselves some work.
2016-08-17 15:28:45 -04:00
Nathan Froyd d9759d258f Bug 1295192 - part 1 - remove CPP_THROW_NEW on layout struct operator new overloads that forward to nsPresShell::AllocateByObjectID; r=dholbert
Structs in our style system use an arena-style allocation system,
managed by the presshell to which they belong.  All of the relevant
overloads that forward allocation requests to the presshell declare
themselves as CPP_THROW_NEW, which indicates that they do not throw
exceptions.  The C++ specification states that operator new overloads
that declare themselves to not throw exceptions require a null check on
their return value.  However, the relevant presshell allocation method,
AllocateByObjectID, is infallible and will never return a null pointer.

The callers of all of these methods are therefore doing useless
(compiler-generated) null checks.  Let's get rid of those useless checks
by removing the CPP_THROW_NEW annotations.  This change declares these
methods will return non-null pointers and throw exceptions in case of
errors--but as we don't use exceptions, and AllocateByObjectID will
abort on OOM, everything works out OK.
2016-08-17 15:28:45 -04: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
Wes Kocher 57773cd69e Backed out 4 changesets (bug 1295192) for being a possible cause of crashtest assertions CLOSED TREE
Backed out changeset 7f10779fe019 (bug 1295192)
Backed out changeset e683dce4197a (bug 1295192)
Backed out changeset 67d12eaa8074 (bug 1295192)
Backed out changeset 44f143a01f78 (bug 1295192)
2016-08-16 11:22:04 -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
Nathan Froyd 880a5a466c Bug 1295192 - part 2 - remove CPP_THROW_NEW from style struct type-safe operator new overloads; r=bholley
operator new overloads that declare that they don't throw exceptions
require a null check on their return value, per the C++ spec.  We know
that Servo isn't going to call these functions with null pointers, so
remove the CPP_THROW_NEW annotation and save ourselves some work.
2016-08-16 17:05:38 -04:00
Nathan Froyd fa4f709cfd Bug 1295192 - part 1 - remove CPP_THROW_NEW on layout struct operator new overloads that forward to nsPresShell::AllocateByObjectID; r=dholbert
Structs in our style system use an arena-style allocation system,
managed by the presshell to which they belong.  All of the relevant
overloads that forward allocation requests to the presshell declare
themselves as CPP_THROW_NEW, which indicates that they do not throw
exceptions.  The C++ specification states that operator new overloads
that declare themselves to not throw exceptions require a null check on
their return value.  However, the relevant presshell allocation method,
AllocateByObjectID, is infallible and will never return a null pointer.

The callers of all of these methods are therefore doing useless
(compiler-generated) null checks.  Let's get rid of those useless checks
by removing the CPP_THROW_NEW annotations.  This change declares these
methods will return non-null pointers and throw exceptions in case of
errors--but as we don't use exceptions, and AllocateByObjectID will
abort on OOM, everything works out OK.
2016-08-16 17:05:39 -04: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 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
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 213646c667 Bug 1288626 Part 7 - Rename StyleClipShapeSizing to StyleClipPathGeometryBox. r=heycam
Change to geometry box to match the name in the spec.
https://drafts.fxtf.org/css-masking-1/#the-clip-path

MozReview-Commit-ID: 8jDTynCkJ4A

--HG--
extra : rebase_source : c2e165e320c1341012b32b48bfb03b3c9b4f56c5
2016-07-28 13:45:43 +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
Ting-Yu Lin 30bb6dcff2 Bug 1288626 Part 1 - Move nsBasicShape and nsStyleClipPath into mozilla namespace. r=heycam
MozReview-Commit-ID: D9wwa1rLUNa

--HG--
extra : rebase_source : 763c529a933e1a13a6a16a2d6a6d0439646bf012
2016-07-27 17:38:26 +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
Emilio Cobos Álvarez e09cb4a0e8 Bug 1291863: Add some type replacements to fix the Servo binding generation. r=bholley
MozReview-Commit-ID: 63eXtp2otFa
2016-08-03 15:11:15 -07: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
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
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
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
Kartikaya Gupta 504b319a29 Bug 1287185 - Disable paint skipping for scrollframes with background-attachment:local. r=mstange
MozReview-Commit-ID: GMgIyxUd20c

--HG--
extra : rebase_source : 2fec3dd0a02aa0ab6eab69e9e6ee6229863be10e
2016-07-15 15:56:39 -04:00
Jeremy Chen 9667904735 Bug 906116 - part3.2.1: Replace NS_STYLE_HINT_FRAMECHANGE with nsChangeHint_ReconstructFrame. r=me
Remove unnecessary nsChangeHints used in
nsStyle*:DifferenceAlwaysHandledForDescendants. Accordingly,
nsStyle*:MaxDifference can be simplified as well.

This is a followup patch for part3.2 in Bug 906116.

MozReview-Commit-ID: GgU9xgghCO7
2016-07-07 16:58:51 +08:00
Jeremy Chen 0d17d1e151 Bug 906116 - part3.2: Replace NS_STYLE_HINT_FRAMECHANGE with nsChangeHint_ReconstructFrame. r=dbaron
Use ReconstructFrame | (any ther bits needed) to replace
NS_STYLE_HINT_FRAMECHANGE in nsStyle*::MaxDifference.

For those nsStyle* that do not have nsChangeHint_NeutralChange in their
CalcDifference, we should be able to elimate nsChangeHint_NeutralChange from
their MaxDifference as well.

MozReview-Commit-ID: B3VJWt6gKoL

--HG--
extra : rebase_source : d0deff5bb579438c33b7b3288fc76d8b0420e1af
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