Cameron McCormack
f89609e8d3
Bug 731271 - Part 2: Add new nsCSSValue units to store colors in their original syntactic form. r=dbaron
2013-09-16 09:35:48 +10:00
Cameron McCormack
4e156d6ca3
Bug 731271 - Part 1: Rename eCSSUnit_Color to eCSSUnit_RGBAColor. r=dbaron
2013-09-16 09:35:48 +10:00
Cameron McCormack
b6a267e600
Bug 773296 - Part 14: Add an nsCSSProps::IsInherited function. r=dbaron
...
Add a helper function to nsCSSProps to look up whether a given
nsCSSProperty lives in a style struct for inherited properties.
2013-12-12 13:09:43 +11:00
Cameron McCormack
5edbefbd77
Bug 773296 - Part 2: Parse CSS variable declarations and store them on Declaration objects. p=ebassi,heycam r=dbaron
...
Patch co-authored by Emmanuele Bassi <ebassi@gmail.com>
This defines a CSSVariableDeclarations class that holds a set of
variable declarations. This is at the specified value stage, so values
can either be 'initial', 'inherit' or a token stream (which is what you
normally have). The variables are stored in a hash table. Although
it's a bit of a hack, we store 'initial' and 'inherit' using special
string values that can't be valid token streams (we use "!" and ";").
Declaration objects now can have two CSSVariableDeclarations objects
on them, to store normal and !important variable declarations. So that
we keep preserving the order of declarations on the object, we inflate
mOrder to store uint32_ts, where values from eCSSProperty_COUNT onwards
represent custom properties. mVariableOrder stores the names of the
variables corresponding to those entries in mOrder.
We also add a new nsCSSProperty value, eCSSPropertyExtra_variable, which
is used to represent any custom property name.
nsCSSProps::LookupProperty can return this value.
The changes to nsCSSParser are straightforward. Custom properties
are parsed and checked for syntactic validity (e.g. "var(a,)" being
invalid) and stored on the Declaration. We use nsCSSScanner's
recording ability to grab the unparsed CSS string corresponding to
the variable's value.
2013-12-12 13:09:40 +11:00
Daniel Holbert
0ddb39c806
Bug 702508 part 2: Support parsing/computing the CSS property "align-content". r=dbaron
2013-12-05 10:57:50 -08:00
Daniel Holbert
99dab87905
Bug 702508 part 1: Support parsing/computing the CSS property "flex-wrap". r=dbaron
2013-12-05 10:57:50 -08:00
James Kitchener
deb5493772
Bug 114365 - Add CSS properties for -moz-math-variant. r=heycam
2013-12-02 11:49:00 -05:00
Daniel Holbert
120abc396f
Bug 936100 part 5: Remove usage of flexbox pref from C++ code. r=mats
2013-11-09 07:53:14 -08:00
Mats Palmgren
115c33a3a9
Bug 929991 - Put 'text-align: true X' support behind a preference (disabled by default). r=heycam
2013-10-27 20:56:32 +00:00
Cameron McCormack
8752ad5edf
Bug 921731 - Part 2: Parse "unset" in property values whereever "inherit" and "initial" are allowed. r=bzbarsky
2013-10-04 04:49:17 +10:00
Cameron McCormack
fbff651ff7
No bug - Comment typo fixes in nsCSSProps.h. (DONTBUILD)
2013-09-29 11:40:07 +10:00
Birunthan Mohanathas
5a217147ab
Bug 264517 - Move the _LAYOUT variant of COMPUTED_STYLE_MAP_ENTRY into a property bit. r=dbaron
2013-09-23 09:28:55 -04:00
Ehsan Akhgari
86a457baf2
Bug 916610 - Minimize the #includes in layout/style; r=roc
2013-09-15 21:06:52 -04:00
Jonathan Kew
1edbfad3fc
Bug 798843 - Rename -moz-objectFill, -moz-objectStroke, -moz-objectValue to context-fill, context-stroke, context-value r=dbaron
...
* * *
bug 798843 - recompile svg.woff font to pick up the updated glyph definitions
* * *
bug 798843 - update property_database.js to match the new property names
2013-05-16 14:35:15 +12:00
Ryan VanderMeulen
eda259c9c3
Backed out changesets 6c097bdfc079, 51f5d900cd27, 9fdf99c07466, and b322938b37ef (bug 798843) due to intermittent Windows test failures.
2013-09-13 11:15:54 -04:00
Jonathan Kew
e57e75500d
Bug 798843 - Rename -moz-objectFill, -moz-objectStroke, -moz-objectValue to context-fill, context-stroke, context-value r=dbaron
...
* * *
bug 798843 - recompile svg.woff font to pick up the updated glyph definitions
* * *
bug 798843 - update property_database.js to match the new property names
2013-05-16 14:35:15 +12:00
Corey Ford
6ec5cfd903
Bug 886646 - Part 1: Support position:sticky in the CSS parser, enabled by a preference. r=heycam
2013-09-05 15:47:08 -07:00
Seth Fowler
bcd260ddfc
Bug 825771 (Part 1) - Add CSS support for the image-orientation property. r=dbaron
2013-08-28 15:39:06 -07:00
John Daggett
4e3a388690
Bug 875250 - implement CSS parsing of text-orientation, text-combine-horizontal properties. r=dholbert
2013-08-19 19:26:44 +09:00
John Daggett
6fef3e645e
Bug 904263 - don't set disabled subproperties within font shorthand parsing. r=dbaron
2013-08-15 09:37:57 +09:00
Masayuki Nakano
8ea1abaca9
Bug 812995 Support 'blink' value at -moz-text-decoration-line and drop -moz-text-blink r=dbaron
2013-08-06 23:02:34 +09:00
Ms2ger
3352b76ed4
Backout changeset f2ac3d57b445 for insufficient review.
2013-08-08 19:37:47 +02:00
Masayuki Nakano
9b6c86343a
Bug 812995 Support 'blink' value at -moz-text-decoration-line and drop -moz-text-blink r=dbaron
2013-08-06 23:02:34 +09:00
Daniel Holbert
b456b5c0bd
(no bug) comment-tweak, to explicitly mention a pref name instead of hinting at it. (no review)
...
DONTBUILD because comment-only change
2013-08-07 15:32:16 -07:00
Rik Cabanier
f1d4f25d93
Bug 901375 - Implement support in CSS for mix-blend-mode; r=heycam
2013-08-07 16:59:10 +09:00
Max Vujovic
e4f9873c6f
Bug 898175 - Refactor filter parsing to use a keyword lookup table for filter function names. r=dbaron
2013-08-06 17:53:30 +10:00
Ehsan Akhgari
5ee21d6d3f
Bug 895322 - Part 1: Replace the usages of MOZ_STATIC_ASSERT with C++11 static_assert; r=Waldo
...
This patch was mostly generated by running the following scripts on the codebase, with some
manual changes made afterwards:
# static_assert.sh
#!/bin/bash
# Command to convert an NSPR integer type to the equivalent standard integer type
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name nsXPCOMCID.h \
! -name prtypes.h \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.cc" \
-o -iname "*.mm" \) | \
xargs -n 1 `dirname $0`/assert_replacer.py #sed -i -e "s/\b$1\b/$2/g"
}
convert MOZ_STATIC_ASSERT static_assert
hg rev --no-backup mfbt/Assertions.h \
media/webrtc/signaling/src/sipcc/core/includes/ccapi.h \
modules/libmar/src/mar_private.h \
modules/libmar/src/mar.h
# assert_replacer.py
#!/usr/bin/python
import sys
import re
pattern = re.compile(r"\bMOZ_STATIC_ASSERT\b")
def replaceInPlace(fname):
print fname
f = open(fname, "rw+")
lines = f.readlines()
for i in range(0, len(lines)):
while True:
index = re.search(pattern, lines[i])
if index != None:
index = index.start()
lines[i] = lines[i][0:index] + "static_assert" + lines[i][index+len("MOZ_STATIC_ASSERT"):]
for j in range(i + 1, len(lines)):
if lines[j].find(" ", index) == index:
lines[j] = lines[j][0:index] + lines[j][index+4:]
else:
break
else:
break
f.seek(0, 0)
f.truncate()
f.write("".join(lines))
f.close()
argc = len(sys.argv)
for i in range(1, argc):
replaceInPlace(sys.argv[i])
--HG--
extra : rebase_source : 4b4a4047d82f2c205b9fad8d56dfc3f1afc0b045
2013-07-18 13:59:53 -04:00
John Daggett
b439b6e590
Bug 857142 - implement -moz-font-smoothing. r=dbaron
2013-07-30 05:00:41 +09:00
Max Vujovic
dd92ca0dd1
Bug 895182 - [CSS Filters] Implement parsing for blur, brightness, contrast, grayscale, invert, opacity, saturate, sepia. Co-authored with Dirk Schulze (krit). r=heycam
2013-07-22 15:08:33 -07:00
Ed Morley
b8d2e3631d
Backed out changeset f24d81b85929 (bug 895182) for Windows build failures on a CLOSED TREE
2013-07-23 16:36:45 +01:00
Max Vujovic
695c4ee979
Bug 895182 - [CSS Filters] Implement parsing for blur, brightness, contrast, grayscale, invert, opacity, saturate, sepia. Co-authored with Dirk Schulze (krit). r=heycam
2013-07-23 10:47:16 -04:00
Mina Almasry
d2c3c8512d
Bug 877690 - Implement an API for getting CSS property values to be used in auto-completion. r=bz
2013-07-15 17:28:49 -04:00
Ed Morley
941b06e491
Backed out changeset 9897835271b5 (bug 877690) for crashes on a CLOSED TREE
2013-07-15 16:36:17 +01:00
Mina Almasry
e1fe3cd880
Bug 877690 - Implement an API for getting CSS property values to be used in auto-completion. r=bz
2013-07-15 09:59:57 -04:00
Rick Eyre
76072f4667
Bug 772321 - Implement CSS parsing of writing-mode r=dbaron
2013-05-28 12:00:49 -04:00
Daniel Holbert
cc7305fa0e
Bug 864553 part 1: Remove ifdefs for MOZ_FLEXBOX and configure.in MOZ_FLEXBOX chunk. r=dbaron
2013-05-22 11:44:25 +08:00
John Daggett
18ea34f1e4
Bug 549861 - reland font-variant subproperties with DOM-peer review. r=khuey
2013-05-20 11:59:20 +09:00
Ms2ger
1bc3a7f29b
Merge backout.
2013-05-19 20:26:58 +02:00
Ms2ger
c80e8cd5c6
Backout bug 549861 (changesets 27fb48df15ce:7ecd4e3863b4) for insufficient review.
2013-05-19 20:23:19 +02:00
John Daggett
633de7d681
Bug 549861. Implement CSS parsing of font-variant-alternates. r=dbaron
2013-05-13 18:45:37 +09:00
John Daggett
7b0b7f608c
Bug 549861. Parse simple font-variant subproperties. r=dbaron
2013-05-13 18:45:36 +09:00
Phil Ringnalda
2cef52d052
Back out 4d755ea39a56:81d152795bea (bug 798843) for style mochitest failures
2013-05-15 20:53:30 -07:00
Edwin Flores
2107f8d1f5
Bug 798843 - Rename -moz-objectFill, -moz-objectStroke, -moz-objectValue to context-fill, context-stroke, context-value r=dbaron
2013-05-16 14:35:15 +12:00
Boris Zbarsky
2055c25036
Bug 870845. Correctly check for parse-inaccessible properties in inDOMUtils::GetCSSPropertyNames. r=heycam
2013-05-14 14:20:58 -04:00
Ryan VanderMeulen
01613554be
Backed out 4 changesets (bug 869195, bug 870845, bug 872043, bug 862825) for mochitest b-c, mochitest-other, and xpcshell orange on a CLOSED TREE.
...
Backed out changeset 049889b25a79 (bug 869195)
Backed out changeset fc0bef5a2cfd (bug 862825)
Backed out changeset 267fe0d9c201 (bug 870845)
Backed out changeset 7b06b9d1acb2 (bug 872043)
2013-05-14 16:40:26 -04:00
Boris Zbarsky
d5b9a00b6b
Bug 870845. Correctly check for parse-inaccessible properties in inDOMUtils::GetCSSPropertyNames. r=heycam
2013-05-14 14:20:58 -04:00
L. David Baron
3b8425c455
Move enabled state for aliases from gAliases to gPropertyEnabled. (Bug 849656, patch 3) r=bzbarsky
2013-03-13 09:58:39 -07:00
Cameron McCormack
873a543487
Bug 793617 - Implement mask-type property. r=dbaron,longsonr
2012-12-21 11:15:22 +11:00
Brendan Dahl
d860d7b308
Bug 115199 - CSS2 @page rule style support. r=dbaron
2012-08-31 14:21:28 -07:00
Ryan VanderMeulen
8f46b7f654
Backed out changesets 0b6b3d2856a4 and 30776e402787 (bug 115199) for reftest failures.
2012-11-13 20:19:18 -05:00