Daisuke Akatsuka
4e8abff7f9
Bug 1210796 - Part 1a: Add GetUnanimatedComputedStyle into nsIDOMWindowUtils to use in animationinspector of devtools. r=birtles,heycam
...
In this patch, we implement nsIDOMWindowUtils::GetUnanimatedComputedStyle
which returns computed value of given CSS property without animation rule. This
method is used from the DevTools animation inspector to fill in keyframe values
when the property value is null (indicating that the underlying/base value is
being used).
In order to implement this, we extend nsComputedDOMStyle constructor to fetch
the computed style minus animation style (i.e. the base style). This is somewhat
complicated by the fact that for discrete animation.
StyleAnimationValue::ExtractComputedValue may return ‘unset’, ‘initial’ or
‘inherit’. For example, if the author uses the 'unset' 'initial' or 'inherit'
keyword for a discrete property (e.g. 'align-content’), ExtractComputedValue
returns the keywords as-is. Furthermore, if the user does not set any specific
keyword, ExtractComputedValue returns ‘unset’. We use this new
nsComputedDOMStyle mechanism to resolve these keywords into a valid keyword for
computed style in the same way as other properties (e.g. ‘opacity’).
MozReview-Commit-ID: HffJ9SCDf2k
2017-04-18 12:15:47 +09:00
Boris Zbarsky
b26328d6e6
Bug 1345362 part 3. Introduce CSSPseudoElementType::NonInheritingAnonBox to represent non-inheriting anon boxes. r=heycam
...
The idea is to be able to call the right function during style resolution time
without doing a linear walk via nsCSSAnonBoxes::IsNonInheritingAnonBox.
MozReview-Commit-ID: JKt33GggTjz
2017-03-08 23:41:04 -05:00
Daniel Holbert
d74b889d67
Bug 1339546 part 2: Make layout/style/*.cpp include corresponding .h file as the first header. r=xidorn
...
MozReview-Commit-ID: 2rZ9z0BgRvN
2017-02-14 11:23:11 -08:00
Thomas Wisniewski
e3967a6e44
Bug 1069012 - Unprefix ::placeholder pseudo-element. r=bz
2016-09-07 19:38:38 -04:00
Xidorn Quan
59e42a1031
Bug 1269976 part 2 - Add nsCSSPseudoElements::IsEnabled() and make GetPseudoType take CSSEnabledState. r=heycam
...
MozReview-Commit-ID: K3uFwojy6FZ
2016-05-10 18:44:05 +10:00
Xidorn Quan
1f91ffd0e0
Bug 1269976 part 1 - Move CSSPseudoElements_flags to a static array in nsCSSPseudoElements. r=heycam
...
MozReview-Commit-ID: HWMuRrakCia
2016-05-10 18:44:05 +10:00
Ryan VanderMeulen
32bd5582e6
Backed out changesets 4e949692600a and 6f7ecae8e663 (bug 1269976) for bustage.
2016-05-09 23:58:49 -04:00
Xidorn Quan
eab81e400b
Bug 1269976 part 2 - Add nsCSSPseudoElements::IsEnabled() and make GetPseudoType take CSSEnabledState. r=heycam
...
MozReview-Commit-ID: K3uFwojy6FZ
2016-05-10 13:36:25 +10:00
Xidorn Quan
ff6b01749c
Bug 1269976 part 1 - Move CSSPseudoElements_flags to a static array in nsCSSPseudoElements. r=heycam
...
MozReview-Commit-ID: HWMuRrakCia
2016-05-10 13:36:25 +10:00
Boris Chiou
865378aff1
Bug 1244049 - Part 4: Define CSSPseudoElementTypeBase. r=dbaron
...
In order to convert CSSPseudoElementType into its underlying type easier,
we define CSSPseudoElementTypeBase. However, keep using uint8_t directly for
forward declarations.
2016-02-18 19:18:00 +01:00
Boris Chiou
32cdf253b7
Bug 1244049 - Part 2: Replace nsCSSPseudoElements::Type with CSSPseudoElementType. r=dbaron
...
Also, try to use forward declaraions for CSSPseudoElementType;
2016-02-17 21:37:00 +01:00
Boris Chiou
16edfa82cd
Bug 1244049 - Part 1: Define scoped enum for CSSPseudoElement type. r=dbaron
2016-02-16 23:07:00 +01:00
L. David Baron
a0afad0c7f
Bug 1082899 patch 2 - Add flags storage and accessors for nsCSSPseudoClasses. r=birtles
...
The code for this is basically copied from nsCSSPseudoElements.
2014-10-23 12:57:27 -04:00
Birunthan Mohanathas
88a0348924
Bug 713082 - Part 2: Rename Util.h to ArrayUtils.h. r=Waldo
2013-12-08 21:52:54 -05:00
Cameron McCormack
53ea8152d3
Bug 922669 - Part 3: Add a flag to represent whether a pseudo-element supports user action pseudo-classes (currently :hover and :active). r=bz
2013-11-28 17:46:38 +11:00
Arnaud Bienner
bbbb95894a
Bug 938334 - Use "Type" as parameter in nsCSSPseudoElements methods instead of "nsIAtom*" when it makes sense to do so. r=dbaron
2013-11-17 19:33:56 +01:00
Ehsan Akhgari
bbdec43a44
Bug 938123 - Build layout/style in unified mode; r=roc
2013-11-14 21:42:57 -05:00
David Zbarsky
1c27c4d045
[Bug 847110] Fix up includes in layout/style r=dbaron
2013-03-02 19:31:48 -05:00
Ehsan Akhgari
243c878d26
Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
...
This patch was generated by a script. Here's the source of the script for
future reference:
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 "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t
convert PRIntn int
convert PRUintn unsigned
convert PRSize size_t
convert PROffset32 int32_t
convert PROffset64 int64_t
convert PRPtrdiff ptrdiff_t
convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Gervase Markham
cb6a072c2a
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Jacob Holzinger
bfaddb970e
Bug 696242 - Convert NS_RegisterStaticAtoms and nsCSSScanner::ReportUnexpectedParams to take an array-reference rather than a pointer and length, making it impossible to pass a pointer/length that are inconsistent. r=jwalden
2012-03-08 18:22:57 -08:00
Jeff Walden
7d613942b0
Bug 693469 - Implement mozilla::ArrayLength and mozilla::ArrayEnd, and replace uses of NS_ARRAY_LENGTH whenever possible. (Exceptions: assigning to static initializers, use in static assertions, as template parameters, etc. These will go away when the relevant compilers have C++11 constexpr support.) r=cjones
2011-10-10 22:50:08 -07:00
Jeff Walden
c5e5f873d1
Back out everything since 5435ee09cf7b. Tinderbox compilers hate me. r=epic-fail
2011-10-12 12:21:53 -07:00
Jeff Walden
946f2ae0e3
Bug 639469 - Implement mozilla::ArrayLength and mozilla::ArrayEnd, and replace uses of NS_ARRAY_LENGTH whenever possible. r=cjones
2011-10-10 22:50:08 -07:00
Michael Wu
0fe7772ece
Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
2011-09-28 23:19:26 -07:00
Daniel Holbert
1e43c475fc
Bug 551397: CSS_PSEUDO_ELEMENT needs to be undefined before next definition. r=sicking
2010-03-10 12:33:37 -08:00
Jonas Sicking
48366287f1
Bug 534136 Part 1: Make atoms keep a pointer to an nsStringBuffer rather than storing the data inline. r=bsmedberg
2010-03-08 07:44:59 -08:00
Boris Zbarsky
753175c110
Bug 525608 part 3. Change all style set consumers that ask for a pseudo style context to indicate what they're actually asking for (pseudo-element, anonymous box, or xul tree thing). r=dbaron
2009-12-11 02:37:40 -05:00
Boris Zbarsky
e06b127edc
Bug 525608 part 1. Introduce an enum for keeping track of pseudo-elements. r=dbaron
2009-12-11 02:37:40 -05:00
Boris Zbarsky
e28191d463
Backing out bug 525608 and bug 525952
2009-12-10 18:28:08 -08:00
Boris Zbarsky
03f70fa558
Bug 525608 part 3. Change all style set consumers that ask for a pseudo style context to indicate what they're actually asking for (pseudo-element, anonymous box, or xul tree thing). r=dbaron
2009-12-10 14:36:05 -08:00
Boris Zbarsky
c15825906b
Bug 525608 part 1. Introduce an enum for keeping track of pseudo-elements. r=dbaron
2009-12-10 14:36:04 -08:00
L. David Baron
66d261c7fd
Existing callers call IsCSS2PseudoElement on non-pseudo-elements (in particular, anon boxes), so we need to make that not assert and be deterministic. (Bug 521044) r=bzbarsky
2009-10-07 20:22:42 -07:00
L. David Baron
f0018a71f5
Add flags to pseudo-elements, and add one that says which ones are expected to contain elements. (Bug 505515) r=bzbarsky
2009-08-10 15:52:29 -07:00
dbaron@dbaron.org
bdeea6cda8
File comments that show up in LXR and provide a quick summary of what's in each file.
2006-03-25 05:47:31 +00:00
bzbarsky@mit.edu
3580d270c5
Add support for '::' notation for CSS pseudo-elements (bug 62843). Drop
...
selectors containing unrecognized pseudo-classes and pseudo-elements (bug
145968). Fix some CSS rules in quirk.css and xul.css that were bogus (no
bug). Patch in bug 62843. r+sr=dbaron
2003-07-04 01:33:10 +00:00
alecf@netscape.com
dbe199d936
fix for bug 199170, convert layout to use nsStaticAtom. sr=dbaron
2003-04-02 04:51:07 +00:00
dbaron@dbaron.org
8e6dd5f04a
Reduce code size of atom lists by storing a table of strings and pointers to fill in. b=181383 r=alecf sr=sfraser
2003-02-22 15:58:07 +00:00
dbaron@fas.harvard.edu
8a88f30fc6
Change my email address from dbaron@fas.harvard.edu to dbaron@dbaron.org. Comment changes only.
2003-01-01 23:53:20 +00:00
dbaron@fas.harvard.edu
72f2298b73
Consolidate all CSS pseudos and split them into three atom lists to distinguish between pseudo-classes, pseudo-elements, and fake-pseudo-elements used for anonymous boxes. b=147887 r,sr=roc,bz
2002-11-17 15:37:56 +00:00