Zack Weinberg
42ead75834
Bug 174055, part 4: mechanical fixups outside gfx.
2011-04-07 18:05:49 -07:00
Zack Weinberg
d6425e8bd1
Bug 174055, part 2: merge nsIThebesFontMetrics into nsIFontMetrics.
2011-04-07 18:05:25 -07:00
Zack Weinberg
299386f14c
Bug 174055, part 1: minimize inclusion of nsI(Thebes)FontMetrics.h.
2011-04-07 18:04:41 -07:00
Jonathan Kew
99d0c392b8
bug 633299 - don't discard font entries for @font-face rules that haven't changed. r=dbaron
2011-04-12 11:53:20 +01:00
Boris Zbarsky
2fe672e79c
Bug 645491 part 2. Speed up changes to id attributes on pages with lots of id selectors. r=dbaron
...
The basic idea is to only match against id selectors which might matter by keeping track of them in a hashtable instead of a flat list. We still need to use a flat list for possibly-negated id selectors, unfortunately.
2011-04-12 19:57:48 -07:00
Boris Zbarsky
3787b23388
Bug 645491 part 1. Rename ClassSelector to AtomSelector. r=dbaron
...
We're going to use this same data structure for id selectors too, so the old name doesn't make sense any more.
2011-04-12 19:57:42 -07:00
Ms2ger
4c894d44d4
Backed out changeset 3f82f25d7334
2011-04-12 14:28:53 +02:00
Jonathan Kew
d9c320b9df
bug 633299 - don't discard font entries for @font-face rules that haven't changed. r=dbaron
2011-04-12 11:53:20 +01:00
Boris Zbarsky
c55a85c955
Fix 32-bit mac opt bustage, bug 435442, r=dbaron
2011-04-12 01:12:12 -07:00
L. David Baron
7e86462271
ifdef CSS animations so that the feature can be backed out by flipping the switches in configure.in and then reverting the changes to the following four files appropriately: nsIDOMCSS2Properties.idl, nsIDOMCSSRule.idl, property_database.js, test_transitions_computed_values.html. (Bug 435442, patch 15) r=bzbarsky
2011-04-11 23:18:44 -07:00
L. David Baron
6f2e43e63d
Fire animation events at the correct times. (Bug 435442, patch 14) r=bzbarsky
2011-04-11 23:18:44 -07:00
L. David Baron
ab5c78e7b3
Instead of incorrectly setting nsComputedDOMStyle's mOuterFrame and mInnerFrame when we have a pseudo-element to the element's frames, leave them null. (Bug 435442, patch 13) r=bzbarsky
...
Note: tested by the pseudo-element tests in patch 14.
2011-04-11 23:18:44 -07:00
L. David Baron
d1dba7e001
Implement and test animation of css3-animations. (Bug 435442, patch 11) r=bzbarsky
2011-04-11 23:18:44 -07:00
L. David Baron
a00f552ebd
Factor some common testing code into animation_utils.js. (Bug 435442, patch 10) r=bzbarsky
2011-04-11 23:18:43 -07:00
L. David Baron
a84d8c9295
Make AnimValuesStyleRule::AddEmptyValue infallible. (Bug 435442, patch 8) r=bzbarsky
2011-04-11 23:18:43 -07:00
L. David Baron
726f8b0eca
Refactor some parts of nsTransitionManager into common base class to be shared with AnimationManager. (Bug 435442, patch 7) r=bzbarsky
2011-04-11 23:18:43 -07:00
L. David Baron
079314787c
Add support for cascading of keyframes rules. (Bug 435442, patch 6) r=bzbarsky
2011-04-11 23:18:43 -07:00
L. David Baron
f80131c3b4
Implement parsing and storage of @keyframes rule. (Bug 435442, patch 5) r=bzbarsky
2011-04-11 23:18:43 -07:00
L. David Baron
0de989d5b1
Fix style rule inheritance macros. (Bug 435442, patch 4) r=bzbarsky
2011-04-11 23:18:43 -07:00
L. David Baron
b149cd157b
Clean up handling of CSSOM modifications to rules that are non-child descendants of a sheet. (Bug 435442, patch 3) r=bzbarsky
...
This fixes handling of a number of cases:
1. Modifications to a style rule inside a group rule now trigger
GetRuleCascades.
2. A sheet that has been (potentially) modified is reliably marked as
such, and thus never cloned.
2011-04-11 23:18:43 -07:00
L. David Baron
7d0955a692
Share implementation of GetCSSParsingEnvironment so we can use it for both style rules' declarations and keyframe rules' declarations. (Bug 435442, patch 2) r=bzbarsky
2011-04-11 23:18:42 -07:00
L. David Baron
46a3aba4b3
Implement parsing and computation for the new properties in css3-animation. (Bug 435442, patch 1) r=bzbarsky
2011-04-11 23:18:42 -07:00
L. David Baron
9f841c864a
Implement step-start, step-end, and steps() timing functions. (Bug 435442, patch 0) r=bzbarsky
2011-04-11 23:18:42 -07:00
Craig Topper
79dd891370
Bug 577976 - Part 6: Add cast to resolve ambiguity in case 'using' isn't supported by compiler, r=bzbarsky
2011-04-06 00:11:42 -07:00
Craig Topper
4d575fe7cd
Bug 645956 - Part 5: Remove NS_NewCSSCharsetRule, r=bzbarsky
2011-03-22 23:20:09 -07:00
Craig Topper
4d9b01e971
Bug 645956 - Part 4: Move CSSCharsetRule to header file and put in css namespace, r=bzbarsky
2010-08-07 22:34:19 -07:00
Craig Topper
f399980acf
Bug 645956 - Part 3: Remove NS_NewCSSNamespaceRule, r=bzbarsky
2011-03-22 22:23:04 -07:00
Craig Topper
2ad1f0e447
Bug 645956 - Part 2: Remove NS_NewCSSImportRule, r=bzbarsky
2011-03-22 22:22:59 -07:00
Craig Topper
742b017a7c
Bug 645956 - Part 1: Remove NS_NewCSSStyleRule, r=bzbarsky
2011-03-22 19:56:47 -07:00
Craig Topper
a32fd499a0
Bug 577976 - Part 5: Remove AddRef from GetStyleSheet, r=bzbarsky
2010-08-07 22:33:15 -07:00
Craig Topper
a5784bd2e2
Bug 577976 - Part 4: Move AddRef/Release back to nsCSSRule, r=bzbarsky
2011-03-17 22:18:08 -07:00
Craig Topper
f9a52c2641
Bug 577976 - Part 3: Rename nsCSSRule and put in css namespace, r=bzbarsky
...
--HG--
rename : layout/style/nsCSSRule.h => layout/style/Rule.h
2011-03-06 19:59:03 -08:00
Craig Topper
83a021fe91
Bug 577976 - Part 2: Remove forwarding methods to nsCSSRule from Rule classes, r=bzbarsky
2010-08-07 22:30:57 -07:00
Craig Topper
cd32b7900c
Bug 577976 - Part 1: Make nsCSSRule inherit from nsICSSRule and remove inheritance of nsICSSRule from other classes, r=bzbarsky
2011-03-28 20:21:20 -07:00
Craig Topper
4f5347e078
Bug 577974 - Part 4: DeCOM and de-virtualize methods in GroupRule, r=bzbarsky
2010-08-07 22:29:28 -07:00
Craig Topper
e742b48926
Bug 577974 - Part 3: Rename nsCSSDocumentRule and nsCSSMediaRule, r=bzbarsky
2011-03-17 22:18:08 -07:00
Craig Topper
c601a2e51b
Bug 577974 - Part 2: Remove nsICSSGroupRule, r=bzbarsky
...
--HG--
rename : layout/style/nsICSSGroupRule.h => layout/style/GroupRule.h
2010-08-07 22:28:33 -07:00
Craig Topper
9dbe5a9481
Bug 577974 - Part 1: Rename CSSGroupRuleListImpl. r=bzbarsky
2010-08-07 22:23:17 -07:00
Mats Palmgren
7288597be1
Bug 640272 - Check load status for border images before trying to render them. r=bzbarsky
2011-04-04 13:41:02 +02:00
Mats Palmgren
74b4c1dcd1
Bug 645423 - Don't poison nsRuleData in --enable-valgrind builds. r=dbaron
2011-04-04 13:41:02 +02:00
Chris Leary
4f6b3c79c8
Merge tracemonkey to mozilla-central.
2011-03-31 15:47:46 -07:00
Paul Biggar
43b850291d
Bug 643548: Remove mozalloc_undef_macro_wrappers hack from JS engine. (r=luke,rs=brendan)
...
mozalloc_undef_macro_wrappers are brittle and have side-effects that are hard
to debug and fix. The alternative is the just stick an underscore on the end of
malloc, free, etc, which is a comparatively small burden.
2011-03-31 01:14:12 -07:00
Masayuki Nakano
ea752bfc4b
Bug 59109 Part 3: Implement text-decoration-color and text-decoration-style rendering r=dbaron
2011-03-31 21:27:03 +09:00
Masayuki Nakano
264109812b
Bug 59109 Part 1: Adding -moz-text-decoration-color and -moz-text-decoration-style r=dbaron, sr=bzbarsky
2011-03-31 21:26:35 +09:00
Ehsan Akhgari
a0f4acae30
Merge cedar into mozilla-central
2011-03-30 13:53:35 -04:00
Simon Montagu
be96a9dc94
Remove UTF-32 encoder and decoder. Bug 604317, r=emk
2011-03-30 08:35:34 +02:00
L. David Baron
484bb3497b
Add test for bug 583219. r=bzbarsky
2011-03-29 20:46:13 -07:00
L. David Baron
809999141b
Don't call SetSheet with a null sheet. (Bug 645951) r=bzbarsky
2011-03-29 20:46:12 -07:00
Florian Quèze
20b0b008d5
Bug 591341 - Add color keywords for default text and background colors. r=dbaron
2011-03-30 11:28:05 +02:00
Ehsan Akhgari
ca0a27ab24
Merge cedar into mozilla-central
2011-03-29 10:39:07 -04:00
L. David Baron
f30ccb969b
Remove the datastruct_ and member_ fields of the CSS_PROP macro. (Bug 645620, patch 5) r=bzbarsky
2011-03-28 16:07:27 -07:00
L. David Baron
2131a8f272
Remove nsCSSStruct.h/cpp. (Bug 645620, patch 4) r=bzbarsky
2011-03-28 16:07:26 -07:00
L. David Baron
012f77a7a9
Move nsCSSCornerSizes from nsCSSStruct.h/cpp to nsCSSValue.h/cpp. (Bug 645620, patch 3) r=bzbarsky
2011-03-28 16:07:26 -07:00
L. David Baron
39b5580d80
Remove nsCSSDataBlock::kOffsetTable, which is no longer needed. (Bug 645620, patch 2) r=bzbarsky
2011-03-28 16:07:26 -07:00
L. David Baron
f22af36a6f
Replace use of nsCSS* structs in nsCSSExpandedDataBlock with an array of nsCSSValue. (Bug 645620, patch 1) r=bzbarsky
...
Note that this increases the size of nsCSSExpandedDataBlock by three
nsCSSValues for the three non-CSS properties.
2011-03-28 16:07:26 -07:00
Jonas Sicking
ca53c7c13a
Bug 644476: Rename classes/functions/variables to use "CORS" rather than "Access Control" or "Cross site" where appropriate. r=smaug
2011-03-28 13:18:45 -07:00
Ms2ger
4add4dff80
Bug 562701, part c: Use Element in nsStyleAnimation::ComputeValue; r=dbaron
2011-03-28 12:51:59 -04:00
Daniel Holbert
eeeddcd75e
Bug 645750: Remove unused variables 'variantMask' and 'table' from nsCSSParser. r=dbaron
2011-03-29 09:53:09 -07:00
Boris Zbarsky
8a877093bc
Bug 598832 part 16. Use a single TreeMatchContext for all the style resolution that the frame constructor does as part of a single frame construction batch. r=dbaron
2011-03-29 13:29:21 -04:00
Boris Zbarsky
2bad4d16d0
Bug 598832 part 15. Make RuleProcessorData not inherit from TreeMatchContext anymore, so we can decouple the lifetimes. r=dbaron
2011-03-29 13:29:21 -04:00
Boris Zbarsky
bab493667a
Bug 598832 part 14. Make RuleProcessorData a stack-only class. r=dbaron
2011-03-29 13:29:21 -04:00
Boris Zbarsky
1d0038c7b8
Bug 598832 part 13. Stop using RuleProcessorData in the DOM-exposed selector-matching methods. r=dbaron
2011-03-29 13:29:21 -04:00
Boris Zbarsky
5299172bbc
Bug 598832 part 12. Stop using RuleProcessorData in SelectorMatchesTree. r=dbaron
2011-03-29 13:29:21 -04:00
Boris Zbarsky
ad215aa928
Bug 598832 part 11. Stop caching the parent content pointer and the element pointer; just use the passed-in aElement. r=dbaron
2011-03-29 13:29:21 -04:00
Boris Zbarsky
a2477a6565
Bug 598832 part 10. Stop caching information about the element's attributes; just get it from the DOM as needed. r=dbaron
2011-03-29 13:29:21 -04:00
Boris Zbarsky
b2528f25ed
Bug 598832 part 9. Stop caching the element's local name; just get it from the DOM as needed. r=dbaron
2011-03-29 13:29:21 -04:00
Boris Zbarsky
66521f6f8c
Bug 598832 part 8. Move NodeMatchContext higher up the callstack, so that we don't have to call IsLink as much. r=dbaron
2011-03-29 13:29:21 -04:00
Boris Zbarsky
c2d78db208
Bug 598832 part 7. Stop caching the content state of elements; just reget it from the DOM as needed. r=dbaron
2011-03-29 13:29:21 -04:00
Boris Zbarsky
06fc5fd9e4
Bug 598832 part 6. Stop caching the language of elements; just reget it from the DOM as needed. r=dbaron
2011-03-29 13:29:21 -04:00
Boris Zbarsky
ed28ec7565
Bug 598832 part 5. Move caching of nth-index stuff to the TreeMatchContext. r=dbaron
2011-03-29 13:29:21 -04:00
Boris Zbarsky
14b6974cbf
Bug 598832 part 4. Move tracking of whether we're in quirks mode to the TreeMatchContext. r=dbaron
2011-03-29 13:29:20 -04:00
Boris Zbarsky
0c71da47ea
Bug 598832 part 3. Stop keeping track of whether the node or document is HTML in the RuleProcessorData. r=dbaron
2011-03-29 13:29:20 -04:00
Boris Zbarsky
56f2955c75
Bug 598832 part 2. Move tracking of the scope root to the TreeMatchContext. r=dbaron
2011-03-29 13:29:20 -04:00
Boris Zbarsky
1450ef8e9f
Bug 598832 part 1. Move TreeMatchContext out to where things other than the rule processor can get at it. r=dbaron
2011-03-29 13:29:20 -04:00
timeless@mozdev.org
395892eff6
Bug 577914 mark DEBUG only variables as ifdef DEBUG in layout
...
r=dbaron
2010-07-11 15:47:45 +03:00
Boris Zbarsky
8038f06c2e
Bug 643945. Use a <button type='button'>, not an <input type='button'>, for the dropmarker in a <select>. r=ehsan
2011-03-25 21:05:56 -04:00
L. David Baron
d78a10bc18
Backout changeset f406ffe65c08 (Bug 620931 part 1) for causing bug 644790.
2011-03-24 21:07:53 -07:00
L. David Baron
af9a4f98db
Merge layout work from projects/birch, part 4. a=rs
2011-03-24 14:36:14 -07:00
Boris Zbarsky
a91fb24e3a
Bug 602341 part 7. Fix serialization of tree selectors. r=dbaron
2011-03-23 17:25:42 -04:00
L. David Baron
65ba1c0595
Merge layout work from projects/birch, part 3. a=smaug
2011-03-24 08:38:19 -07:00
Mike Hommey
765d4f1b6c
Bug 620931 part 1 - Use chrome manifest to register resource://gre-resources/. r=bsmedberg
2011-03-24 15:27:37 +01:00
Boris Zbarsky
4635536259
Bug 606087. Don't reframe if overflow styles change on inlines. r=dbaron. Test changes by Alexander Surkov, r=marco.zehe
2011-03-23 09:56:58 -04:00
Boris Zbarsky
1a3816d126
Bug 602341 part 6. Make pseudoclass atoms private to nsCSSPseudoClasses. r=dbaron
2011-03-23 09:52:25 -04:00
Boris Zbarsky
5eab7e1239
Bug 602341 part 5. Get rid of some pseudoclass atoms in the CSS parser. r=dbaron
2011-03-23 09:52:25 -04:00
Boris Zbarsky
0cd46556b4
Bug 602341 part 4. Drop the nsIAtom arguments to AddPSeudoClass. r=dbaron
2011-03-23 09:52:25 -04:00
Boris Zbarsky
b883f48aec
Bug 602341 part 3. Get rid of the mAtom member of nsPseudoClassList. r=dbaron
2011-03-23 09:52:25 -04:00
Boris Zbarsky
c0e236bebd
Bug 602341 part 2. Switch tree pseudoelements to using an nsAtomList (mClassList, to be exact), not an nsPseudoClassList (mPseudoClassList), for their list of atoms. r=dbaron
2011-03-23 09:52:25 -04:00
Boris Zbarsky
401c62aad2
Bug 602341 part 1. Switch the pseudoclass Has*Arg functions from atoms to pseudoclass types. r=dbaron
2011-03-23 09:52:24 -04:00
L. David Baron
095768af68
Fix Windows optimized bustage from bug 636039 patch 15: use placement new in a loop instead of using placement new[].
2011-03-18 14:02:44 -07:00
L. David Baron
c6b9eb02e0
Remove changes that should have been removed from bug 636039 patch 14 when I revised by 636039 patch 13.
2011-03-18 14:02:44 -07:00
L. David Baron
0028daf833
Fix bustage from bug 636039, patch 13, by not trying to access stub entries in kOffsetTable for the CSS_PROP_STUB_NOT_CSS entries. (Bug 636039)
2011-03-17 21:58:26 -07:00
L. David Baron
446b33c572
Fix Windows bustage by using the alloca-inclusion incantation from jstracer.cpp. (Bug 636039)
2011-03-17 20:43:06 -07:00
L. David Baron
a16e79db9e
Make nsCachedStyleData store arrays of nsStyleStruct*, and use style struct IDs for faster access to those arrays. (Bug 639231, patch 3) r=bzbarsky
2011-03-17 20:14:32 -07:00
L. David Baron
f7e180061f
Fix indentation. (Bug 639231, patch 2) r=bzbarsky
2011-03-17 20:14:32 -07:00
L. David Baron
17fb4b6565
Keep reset and inherited style struct IDs separate. (Bug 639231, patch 1) r=bzbarsky
2011-03-17 20:14:31 -07:00
L. David Baron
f1fb6dbc73
Add poisoning for nsRuleData::mValueOffsets. (Bug 636039, patch 19) r=bzbarsky
...
I tested manually that after:
(a) removing the |ruleData.mValueOffsets[aSID] = 0;| in
nsRuleNode::WalkRuleTree
(b) removing the NS_ABORT_IF_FALSE(aRuleData->mValueOffsets[aSID] == 0,
...) from nsRuleNode::CheckSpecifiedProperties and
UnsetPropertiesWithoutFlags
that we crash dereferencing the poison address in a SetCoord call inside
nsRuleNode::ComputeTextResetData
2011-03-17 20:14:31 -07:00
L. David Baron
7dfaf2124a
Make test_property_database.html give all the errors rather than throwing an exception for the first missing longhand property. (Bug 636039, patch 18) r=bzbarsky
...
The main fix is in the first of the three for loops modified, but the
new structure of that one seems like an improvement worth applying to
the other two.
2011-03-17 20:14:31 -07:00
L. David Baron
bfca304c0a
Remove now unused nsRuleData* structs. (Bug 636039, patch 17) r=bzbarsky
2011-03-17 20:14:31 -07:00
L. David Baron
d5df3b1e50
Remove Moz prefixes from names of subproperty tables. (Bug 636039, patch 16) r=bzbarsky
...
This fixes the FIXME introduced in patch 4.
2011-03-17 20:14:31 -07:00
L. David Baron
8f037974d7
Instead of stack-allocating nsRuleData* structs in separate methods for each style struct, allocate an array of nsCSSValue using alloca. (Bug 636039, patch 15) r=bzbarsky
2011-03-17 20:14:31 -07:00