Zack Weinberg
9c94b683aa
Bug 174055, part 4: mechanical fixups outside gfx.
2011-04-07 18:05:49 -07:00
Zack Weinberg
8efcfb667c
Bug 174055, part 2: merge nsIThebesFontMetrics into nsIFontMetrics.
2011-04-07 18:05:25 -07:00
Zack Weinberg
9d9261f8e6
Bug 174055, part 1: minimize inclusion of nsI(Thebes)FontMetrics.h.
2011-04-07 18:04:41 -07:00
Jonathan Kew
a81e747578
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
0ca26df21a
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
8e0707160a
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
eb396c876e
Backed out changeset 3f82f25d7334
2011-04-12 14:28:53 +02:00
Jonathan Kew
78a3823cd4
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
12a5f02c26
Fix 32-bit mac opt bustage, bug 435442, r=dbaron
2011-04-12 01:12:12 -07:00
L. David Baron
058a80b273
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
6bbc3c7002
Fire animation events at the correct times. (Bug 435442, patch 14) r=bzbarsky
2011-04-11 23:18:44 -07:00
L. David Baron
e329edd03a
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
f60d09e0c2
Implement and test animation of css3-animations. (Bug 435442, patch 11) r=bzbarsky
2011-04-11 23:18:44 -07:00
L. David Baron
15f1d6db4d
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
c7ee404625
Make AnimValuesStyleRule::AddEmptyValue infallible. (Bug 435442, patch 8) r=bzbarsky
2011-04-11 23:18:43 -07:00
L. David Baron
cb79bf536c
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
e960ca660f
Add support for cascading of keyframes rules. (Bug 435442, patch 6) r=bzbarsky
2011-04-11 23:18:43 -07:00
L. David Baron
dbff9d529d
Implement parsing and storage of @keyframes rule. (Bug 435442, patch 5) r=bzbarsky
2011-04-11 23:18:43 -07:00
L. David Baron
8b0b392e7a
Fix style rule inheritance macros. (Bug 435442, patch 4) r=bzbarsky
2011-04-11 23:18:43 -07:00
L. David Baron
7131773be8
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
9cafd5f7f4
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
e69110bf28
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
22f88e80eb
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
5cd9198fd7
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
508c107c8f
Bug 645956 - Part 5: Remove NS_NewCSSCharsetRule, r=bzbarsky
2011-03-22 23:20:09 -07:00
Craig Topper
fae2ff768e
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
3954d790c7
Bug 645956 - Part 3: Remove NS_NewCSSNamespaceRule, r=bzbarsky
2011-03-22 22:23:04 -07:00
Craig Topper
592772b0d6
Bug 645956 - Part 2: Remove NS_NewCSSImportRule, r=bzbarsky
2011-03-22 22:22:59 -07:00
Craig Topper
5d59874f2f
Bug 645956 - Part 1: Remove NS_NewCSSStyleRule, r=bzbarsky
2011-03-22 19:56:47 -07:00
Craig Topper
247eec6f18
Bug 577976 - Part 5: Remove AddRef from GetStyleSheet, r=bzbarsky
2010-08-07 22:33:15 -07:00
Craig Topper
5d21e90225
Bug 577976 - Part 4: Move AddRef/Release back to nsCSSRule, r=bzbarsky
2011-03-17 22:18:08 -07:00
Craig Topper
1761a6f4c0
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
e5acfe6b19
Bug 577976 - Part 2: Remove forwarding methods to nsCSSRule from Rule classes, r=bzbarsky
2010-08-07 22:30:57 -07:00
Craig Topper
a1e678f59b
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
8471ba83fd
Bug 577974 - Part 4: DeCOM and de-virtualize methods in GroupRule, r=bzbarsky
2010-08-07 22:29:28 -07:00
Craig Topper
4f3b570428
Bug 577974 - Part 3: Rename nsCSSDocumentRule and nsCSSMediaRule, r=bzbarsky
2011-03-17 22:18:08 -07:00
Craig Topper
ba94c59f46
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
8b1d4ff8bf
Bug 577974 - Part 1: Rename CSSGroupRuleListImpl. r=bzbarsky
2010-08-07 22:23:17 -07:00
Mats Palmgren
fa97974a8a
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
a8146775f4
Bug 645423 - Don't poison nsRuleData in --enable-valgrind builds. r=dbaron
2011-04-04 13:41:02 +02:00
Chris Leary
5e235c0017
Merge tracemonkey to mozilla-central.
2011-03-31 15:47:46 -07:00
Paul Biggar
e471647538
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
8bebd6ed5a
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
a9da7d87b4
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
2865908cb2
Merge cedar into mozilla-central
2011-03-30 13:53:35 -04:00
Simon Montagu
812728ada4
Remove UTF-32 encoder and decoder. Bug 604317, r=emk
2011-03-30 08:35:34 +02:00
L. David Baron
20e988ae1c
Add test for bug 583219. r=bzbarsky
2011-03-29 20:46:13 -07:00
L. David Baron
aaf96ddd6d
Don't call SetSheet with a null sheet. (Bug 645951) r=bzbarsky
2011-03-29 20:46:12 -07:00
Florian Quèze
c5f34b231c
Bug 591341 - Add color keywords for default text and background colors. r=dbaron
2011-03-30 11:28:05 +02:00
Ehsan Akhgari
de31d8418a
Merge cedar into mozilla-central
2011-03-29 10:39:07 -04:00
L. David Baron
d74b2e259e
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
a6b72237ee
Remove nsCSSStruct.h/cpp. (Bug 645620, patch 4) r=bzbarsky
2011-03-28 16:07:26 -07:00
L. David Baron
ad6a671055
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
b84b9500b9
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
1465996e2e
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
0cdda7d665
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
091c1b69fe
Bug 562701, part c: Use Element in nsStyleAnimation::ComputeValue; r=dbaron
2011-03-28 12:51:59 -04:00
Daniel Holbert
6a0f72ac71
Bug 645750: Remove unused variables 'variantMask' and 'table' from nsCSSParser. r=dbaron
2011-03-29 09:53:09 -07:00
Boris Zbarsky
1951214f30
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
3beea4846c
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
2cbc069124
Bug 598832 part 14. Make RuleProcessorData a stack-only class. r=dbaron
2011-03-29 13:29:21 -04:00
Boris Zbarsky
02ab80d43a
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
d4fac101f6
Bug 598832 part 12. Stop using RuleProcessorData in SelectorMatchesTree. r=dbaron
2011-03-29 13:29:21 -04:00
Boris Zbarsky
4adbca5fc6
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
524c6cfeb9
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
c06754c9f3
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
1541897981
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
a4873fc9fe
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
4cb00997f3
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
540ee5da7e
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
f087027450
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
a88b8c21ff
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
dbd92c4d2d
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
d4ea459188
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
ac8b79b960
Bug 577914 mark DEBUG only variables as ifdef DEBUG in layout
...
r=dbaron
2010-07-11 15:47:45 +03:00
Boris Zbarsky
ea79905533
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
4d1ecb3828
Backout changeset f406ffe65c08 (Bug 620931 part 1) for causing bug 644790.
2011-03-24 21:07:53 -07:00
L. David Baron
315dc5ae13
Merge layout work from projects/birch, part 4. a=rs
2011-03-24 14:36:14 -07:00
Boris Zbarsky
75c69c02b6
Bug 602341 part 7. Fix serialization of tree selectors. r=dbaron
2011-03-23 17:25:42 -04:00
L. David Baron
27926fa517
Merge layout work from projects/birch, part 3. a=smaug
2011-03-24 08:38:19 -07:00
Mike Hommey
ca3da8c43e
Bug 620931 part 1 - Use chrome manifest to register resource://gre-resources/. r=bsmedberg
2011-03-24 15:27:37 +01:00
Boris Zbarsky
0f015ac610
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
b1ac8cde0d
Bug 602341 part 6. Make pseudoclass atoms private to nsCSSPseudoClasses. r=dbaron
2011-03-23 09:52:25 -04:00
Boris Zbarsky
d88c89e0ec
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
873c340f4f
Bug 602341 part 4. Drop the nsIAtom arguments to AddPSeudoClass. r=dbaron
2011-03-23 09:52:25 -04:00
Boris Zbarsky
524d8f7d3e
Bug 602341 part 3. Get rid of the mAtom member of nsPseudoClassList. r=dbaron
2011-03-23 09:52:25 -04:00
Boris Zbarsky
baa229d903
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
e1a460be9a
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
5970f11790
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
92673c9bcd
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
42406ee04a
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
6d1b75ce1d
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
4c2491cf79
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
bcea784100
Fix indentation. (Bug 639231, patch 2) r=bzbarsky
2011-03-17 20:14:32 -07:00
L. David Baron
c3d6d54e6c
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
32fe7b0573
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
e3b26be137
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
e68f6cd3aa
Remove now unused nsRuleData* structs. (Bug 636039, patch 17) r=bzbarsky
2011-03-17 20:14:31 -07:00
L. David Baron
7fa3fafeb7
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
5a5e98acac
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
L. David Baron
b2fa8204db
Add index and count data for the properties that need to be computed for each style struct. (Bug 636039, patch 14) r=bzbarsky
...
This adds a second occurrence of the ugliest pattern of nsCSSPropList.h
inclusion.
2011-03-17 20:14:31 -07:00
L. David Baron
d69f50075f
Make the three CSS_PROP_INCLUDE_NOT_CSS properties much more like normal CSS properties, and (importantly) give them property IDs in the longhand range. Replace CSS_PROP_INCLUDE_NOT_CSS with CSS_PROP_STUB_NOT_CSS for callers that need stubs. (Bug 636039, patch 13) r=bzbarsky
2011-03-17 20:14:31 -07:00
L. David Baron
fa1e64c142
Remove now-unneeded parameters to COMPUTE_START_{INHERITED,RESET}. (Bug 636039, patch 12) r=bzbarsky
2011-03-17 20:14:31 -07:00
L. David Baron
f25a4ed96e
Convert nsRuleNode::Compute*Data to property getters instead of accessing struct members. (Bug 636039, patch 11) r=bzbarsky
2011-03-17 20:14:31 -07:00
L. David Baron
88015bb3dc
Correct checks that were for the wrong pseudo-property (script-level vs. script-size-multiplier). (Bug 636039, patch 10) r=bzbarsky
2011-03-17 20:14:31 -07:00
L. David Baron
9aa9f78b71
Remove unused *AtOffset methods. (Bug 636039, patch 9) r=bzbarsky
2011-03-17 20:14:31 -07:00
L. David Baron
0dc7fd526a
Convert custom style rules to property getters instead of accessing struct members. (Bug 636039, patch 8) r=bzbarsky
2011-03-17 20:14:31 -07:00
L. David Baron
eda89852ca
Add nsRuleData::ValueForBackgroundColor, etc., methods for each CSS property. (Bug 636039, patch 5) r=bzbarsky
2011-03-17 20:14:30 -07:00
L. David Baron
e81511619b
Allow the method field in nsCSSPropList.h to be used with or without prefixes. (Bug 636039, patch 4) r=bzbarsky
2011-03-17 20:14:30 -07:00
L. David Baron
d1d5d732a1
Don't bloat nsCSSTable for members that only need to exist in nsRuleDataTable. (Bug 636039, patch 3) r=bzbarsky
2011-03-17 20:14:30 -07:00
L. David Baron
ea57c3b152
Correct comment describing nsRuleData::ValueFor. (Bug 636039, patch 2) r=bzbarsky
...
nsRuleData::ValueFor does not return null; it checks conditions that
would cause it to do so with NS_ABORT_IF_FALSE. Callers are required to
check mSIDs.
2011-03-17 20:14:30 -07:00
Boris Zbarsky
5c39968964
Bug 641856. column-rule needs to work even when overflow is not visible. r=roc
2011-03-17 13:41:52 -04:00
Craig Topper
1f2acc01f9
Bug 577002 Part 3: Make various ImportRule functions non-virtual and cleanup some return types. r=bzbarsky
2011-03-17 13:41:52 -04:00
Craig Topper
435a97bcbe
Bug 577002 Part 2: Remove nsICSSImportRule. r=bzbarsky
...
--HG--
rename : layout/style/nsICSSImportRule.h => layout/style/ImportRule.h
2011-03-17 13:41:52 -04:00
Craig Topper
8bb0fba53b
Bug 577002 Part 1: Rename CSSImportRuleImpl to mozilla::css::ImportRule. r=bzbarsky
2011-03-17 13:41:52 -04:00
Craig Topper
593acaf148
Bug 576877 Part 3: De-virtualize methods in NameSpaceRule. r=bzbarsky
2011-03-17 13:41:52 -04:00
Craig Topper
b187409e0b
Bug 576877 Part 2: Remove nsICSSNameSpaceRule. r=bzbarsky
...
--HG--
rename : layout/style/nsICSSNameSpaceRule.h => layout/style/NameSpaceRule.h
2011-03-17 13:41:52 -04:00
Craig Topper
0ce0277213
Bug 576877 Part 1: Rename CSSNameSpaceRuleImpl to mozilla::css::NameSpaceRule. r=bzbarsky
2011-03-17 13:41:52 -04:00
L. David Baron
e055e9f2d6
Include the opening "url(" in URL and Bad_URL tokens (though the latter do not have a close paren), and make tokenization of url() function be noncontextual, as required by CSS. (Bug 604179, patch 7) r=bzbarsky
...
Note that tokenization of url-prefix() and domain() remains contextual.
Needed to help CSS 2.1 meet Proposed Recommendation entrance criteria.
2011-03-11 11:29:45 -06:00
L. David Baron
5d6a08f7ca
Include the close parenthesis in the URL token and make quoted URLs produce URL tokens rather than string tokens. (Bug 604179, patch 6) r=bzbarsky
2011-03-11 11:29:45 -06:00
L. David Baron
15a86695af
Disallow control characters less than space inside unquoted url(), per spec. (Bug 604179, patch 5) r=bzbarsky
2011-03-11 11:29:44 -06:00
L. David Baron
d44c2477e5
Fix incorrect indentation in nsCSSScanner::NextURL. (Bug 604179, patch 4) r=bzbarsky
2011-03-11 11:29:44 -06:00
L. David Baron
3fb9258741
Move the consumption of beginning whitespace (for all forms) and ending whitespace (for the string form) inside url() into the tokenizer. (Bug 604179, patch 3) r=bzbarsky
2011-03-11 11:29:44 -06:00
L. David Baron
32741bb192
Rename CSS tokens to be closer to the names of newly-added tokens (BAD_STRING, BAD_URI) in the CSS 2.1 tokenization. (Bug 604179, patch 2) r=bzbarsky
2011-03-11 11:29:44 -06:00
L. David Baron
0d7afcb40f
Use GatherURL in ParseNameSpaceRule and ParseImageRect, and rename GatherURL to ParseURLOrString for clarity. (Bug 604179, patch 1) r=bzbarsky
...
Note that this adds a missing UngetToken(), which affects the other
consumer of GatherURL, parsing of @import rules.
2011-03-11 11:29:44 -06:00
Craig Topper
4555aee2c3
Bug 576831 part 6. DeCOMtaminate some StyleRule method signatures. r=bzbarsky.
2011-03-10 21:50:20 -05:00
Craig Topper
c0bf047cd8
Bug 576831 part 5. Make some methods that used to be virtual non-virtual. r=bzbarsky
2011-03-10 21:50:12 -05:00
Craig Topper
1a010af7bd
Bug 576831 part 4. Remove nsICSSStyleRule and use mozilla::css::StyleRule instead. r=bzbarsky
...
--HG--
rename : layout/style/nsCSSStyleRule.cpp => layout/style/StyleRule.cpp
rename : layout/style/nsICSSStyleRule.h => layout/style/StyleRule.h
2011-03-10 21:48:57 -05:00
Craig Topper
6582fd662f
Bug 576831 part 3. Rename CSSImportantRule to mozilla::css::ImportantRule. r=bzbarsky
2011-03-10 21:48:26 -05:00
Craig Topper
b0a353c4d9
Bug 576831 part 2. Rename DOMCSSStyleRuleImpl to mozilla::css::DOMCSSStyleRule. r=bzbarsky
2011-03-10 21:47:52 -05:00
Craig Topper
78c4bb3d7c
Bug 576831 part 1. Rename CSSStyleRuleImpl to mozilla::css::StyleRule. r=bzbarsky
2011-03-10 21:47:08 -05:00
L. David Baron
2fc425d7aa
Merge layout work from projects/birch, part 2.
2011-03-23 17:39:29 -07:00
Boris Zbarsky
fe38c4f1f8
Bug 608759. Stop calling ContentEnumFunc through a function pointer; just call it directly. r=dbaron
2011-03-07 12:45:25 -05:00
L. David Baron
ebb2194875
Use ParseSingleValueProperty for the components inside the 'transition' shorthand as well. (Bug 636029) r=bzbarsky
2011-03-05 09:58:33 -08:00
L. David Baron
94b5a8b599
Make generic mechanism for parsing lists of single values with ParseVariant. (Bug 636029) r=bzbarsky
2011-03-05 09:58:33 -08:00
L. David Baron
246f9e9c3c
Drive the ParseVariant calls in ParseSingleValueProperty from data rather than a big switch. (Bug 636029) r=bzbarsky
2011-03-05 09:58:33 -08:00
L. David Baron
866b43d04c
Fix keyword table entries in nsCSSPropList and code in nsRuleNode to match those used in the parser. (Bug 636029) r=bzbarsky
2011-03-05 09:58:33 -08:00
L. David Baron
ff243414e8
Add 'parsevariant_' parameter to CSS_PROP macro, with all properties initially zero. (Bug 636029) r=bzbarsky
2011-03-05 09:58:33 -08:00
L. David Baron
1b765fca3b
Separate properties that are parsed in ParseSingleValueProperty with something other than ParseVariant. (Bug 636029) r=bzbarsky
2011-03-05 09:58:33 -08:00
L. David Baron
e60b19027e
Separate the non-property parsed in ParseSingleValueProperty. (Bug 636029) r=bzbarsky
2011-03-05 09:58:33 -08:00
L. David Baron
da5e4486fd
Disable parsing of 'marker', 'run-in', and 'compact' in a less hacky way. (Bug 636029) r=bzbarsky
...
This simply removes all the code for the values. This removes a
special-case that would otherwise need to become more complicated in a
later patch in this series.
2011-03-05 09:58:33 -08:00
L. David Baron
db7976c7b6
Add parse types for CSS properties so we don't parse them in one huge switch. (Bug 636029) r=bzbarsky
...
With this patch, every CSS property is required to have one of the parse
type values (CSS_PROPERTY_PARSE_{FUNCTION,VALUE,INACCESSIBLE}) in its
flag bits. This avoids needing a switch in
CSSParserImpl::ParseProperty(nsCSSProperty).
Note that this reserves more space in CSS_PROPERTY_PARSE_PROPERTY_MASK
than appears to be necessary; that space will be used in a later patch
in this series.
2011-03-05 09:58:33 -08:00
L. David Baron
fbcc4ea23f
Make sure all properties in nsCSSPropList.h have useful values for the method_ field. (Bug 636039) r=bzbarsky
...
Note that these are unprefixed to be consistent with the similar
existing methods for other logical box properties. Prefixing doesn't
matter for the dom property field of CSS_PROP_LIST_EXCLUDE_INTERNAL
properties, since dom property field of such properties is not exposed
to the Web.
2011-03-05 09:58:33 -08:00
Craig Topper
049a2cbebc
Bug 585867 part 5. Remove outparam and AddRef from all property getters. r=bzbarsky
2011-03-04 12:28:57 -05:00
Craig Topper
e29ea732b4
Bug 585867 part 4. Make SetValueToStyleImage return void. r=bzbarsky
2011-03-04 12:28:57 -05:00
Craig Topper
30c8fd0941
Bug 585867 part 3. Make AppendCSSValue infallible. r=bzbarsky
2011-03-04 12:28:57 -05:00
Craig Topper
16821d655c
Bug 585867 part 2. Make SetToRGBAColor return void. r=bzbarsky
2011-03-04 12:28:57 -05:00
Craig Topper
e6875da8c5
Bug 585867 part 1. Remove OOM checks on the return value of GetROCSSPrimitiveValue and GetROCSSValueList. r=bzbarsky
2011-03-04 12:28:56 -05:00
Boris Zbarsky
3c361751b1
Bug 616137. Skip to the nearest ']' when parsing an attr selector fails. r=dbaron
2011-03-04 10:27:02 -05:00
L. David Baron
458b3f4865
-moz-box-ordinal-group should not accept 0, since the code that uses the property ignores values of 0. (Bug 636034) r=bzbarsky
2011-03-03 13:18:42 -08:00
L. David Baron
c1745e3355
Remove tracking of whether the font family comes from HTML, since we no longer use the information. (Bug 636040) r=jdaggett
2011-03-03 13:18:42 -08:00
L. David Baron
3c8543b4c2
Remove tracking of which font families are quirky, since we no longer use the information. (Bug 636040) r=jdaggett
2011-03-03 13:18:42 -08:00
L. David Baron
8c94d6c6b7
Fix skipping of @-rules that are inside blocks to conform to new rule in CSS 2.1, which says that we must look for end-of-outer-block in addition to a semicolon or a block. (Bug 604175) r=bzbarsky
...
This fixes http://test.csswg.org/suites/css2.1/20110111/html4/at-rule-013.htm
Needed to help CSS 2.1 meet Proposed Recommendation entrance criteria.
2011-03-03 13:18:42 -08:00
L. David Baron
733c3e9498
Make GatherMedia() stop at block or semicolon in invalid cases. (Bug 604172) r=bzbarsky
...
Needed to help CSS 2.1 meet Proposed Recommendation entrance criteria.
2011-03-03 13:18:42 -08:00
L. David Baron
3b791b8856
Add missing UngetToken() for invalid contents of @charset rule. (Bug 604172) r=bzbarsky
...
Needed to help CSS 2.1 meet Proposed Recommendation entrance criteria.
2011-03-03 13:18:42 -08:00
Boris Zbarsky
4a2ddae72a
Bug 635286. Fix dynamic handling of :not() inside :-moz-any(). r=dbaron, a=dbaron
2011-02-24 13:42:15 -05:00
L. David Baron
8aa5ed0c97
Merge layout work from projects/birch, part 1. a=bsmedberg
2011-03-23 12:36:08 -07:00
Brad Lassey
1c145951b0
bug 623820 - Text zoom reflow messes up layout on AMO and other sites r=roc,dbaron a=blocking-fennec
2011-03-10 23:33:43 -05:00
Jonathan Kew
21e2e9e4e5
bug 499292 - hide fallback text for a short time while a font downloads. r=jdaggett a=beltzner
2011-01-05 21:48:48 +00:00
Boris Zbarsky
0171d56a16
Bug 631352. Changes to @lang need to restyle all descendants. r=dbaron, a=blocker
2011-02-08 16:30:57 -05:00
Ehsan Akhgari
d795b68b10
Bug 573960 - Make the bordercolor attribute on table elements work again; r=bernd a=blocking-betaN+
2011-01-31 16:23:01 -05:00
Boris Zbarsky
ea40fa52d0
Bug 631682. Make sure to start background image loads for the root element when we compute its style and decide to construct a frame. r+a=dbaron
2011-02-04 22:43:13 -05:00
Zack Weinberg
ff869fa5b1
Bug 631615: suppress CSS parser diagnostics in ParseSelectorString. r=dbaron a2.0=dbaron
2011-02-04 14:17:00 -08:00
Ehsan Akhgari
57151f9616
Bug 630564 - Ctrl+Shift+X in the location bar in RTL mode should change the text alignment in addition to directionality; r=roc a=blocking-final+
2011-02-03 01:31:14 -05:00
Jeff Walden
ccaa2e2118
Bug 497869 - Future reserved words are syntax errors in strict mode. r=brendan
2011-01-22 17:46:22 -08:00
Jeff Walden
cf91ab6636
Back out everything from the last several hours for turning into a disaster zone finally ending in total orange. r=return-to-sanity
2011-01-23 03:12:28 -08:00
Jeff Walden
0768147b7b
Another round of orange fixes, sigh. r=orange yet again
2011-01-23 00:12:05 -08:00
Ehsan Akhgari
0da4dab89c
Bug 581536 - Resizer direction doesn't handle dynamic changes correctly; r=bsbarsky a=blocking-betaN+
...
--HG--
rename : layout/reftests/forms/textarea-rtl.html => layout/reftests/forms/textarea-rtl-dynamic-attr.html
rename : layout/reftests/forms/textarea-rtl.html => layout/reftests/forms/textarea-rtl-dynamic-style.html
extra : rebase_source : c12e9bcce6d2af527d15fe2f78a80f056888846c
2010-12-10 19:25:25 -05:00
Ryan VanderMeulen
c0d17f3d9d
Bug 586130 - Warning C4099 fixes (layout). r=dholbert a=bsmedberg
2011-01-20 19:49:09 -08:00
Boris Zbarsky
39c5bea90a
Backed out changeset 4e9a62d516ef (bug 573960) on suspicion of causing test orange.
2011-01-18 22:58:44 -05:00
Daniel Kirsch
a1b74fdf64
Bug 573960. When bordercolor is set, it should also be used as the table grid color. r=fantasai, a=blocker
2011-01-18 21:20:35 -05:00
Boris Zbarsky
dd3e262caa
Bug 625434. Make sure we don't get into a situation where we're failing to gc the ruletree for a page. r=dbaron, a=blocker
2011-01-18 21:20:35 -05:00
Neil Deakin
f7e53a18d1
Bug 489303, show resizer when statusbar is hidden, r=roc,gavin a=blocking
2011-01-17 09:35:32 -05:00
L. David Baron
fcc7a42b4b
Make this test more reliable given imperfect timers, to fix TEST-UNEXPECTED-FAIL that has happened once so far. (Bug 613888) a=tests
2011-01-15 10:24:41 -08:00
L. David Baron
9de9b46b38
Correctly fix up the parentage of child sheets when removing the primary nsCSSStyleSheet from an nsCSSStyleSheetInner. (Bug 623351) r=bzbarsky a2.0=blocking
2011-01-14 19:57:53 -08:00
SHIMODA Hiroshi ext:(%2C%20L.%20David%20Baron%20%3Cdbaron%40dbaron.org%3E)
280b41f3d6
Add test for transitionend events firing for transitions that, prior to bug 613888, were canceled right before completing. r=bzbarsky a2.0=blocking
2011-01-14 19:57:53 -08:00
L. David Baron
06865cb7b6
Don't cancel transitions that are almost completed (and round to their final value) when we get an unrelated style change. (Bug 613888) r=bzbarsky a2.0=blocking
2011-01-14 19:57:53 -08:00
Boris Zbarsky
34b4d820d5
Bug 589615 part 2. Rename the HTML preshint level to just the preshint level, since it's the only preshint level now. r=dbaron, a=dbaron
2011-01-14 21:14:41 -05:00
Boris Zbarsky
1f56d9e4bd
Bug 589615 part 1. Get rid of the non-HTML preshint level. r=dbaron
2011-01-14 21:14:41 -05:00
Ehsan Akhgari
23dd4b1323
Bug 620906 - Back out part of bug 289384 to make sure that scrollbars work in CKEditor fields again; r=roc a=blocking-final+
2011-01-11 16:00:44 -05:00
L. David Baron
12fc3dcc44
Fix backwards handling of zero-duration transitions. (Bug 622461) r=bzbarsky a2.0=blocking2.0:betaN
2011-01-04 10:10:54 -05:00
Robert O'Callahan
e7ff7b3a5f
Bug 602757. Part 3: Change IsOpaque to GetOpaqueRegion so we can get useful opaque regions for content that uses border-radius. r=tnikkel,sr=dbaron,a=blocking
2011-01-03 14:48:09 +13:00
Robert O'Callahan
df3c85691f
Bug 593604. Part 5: Mark CSS gradient images as opaque when all their stops are opaque. r=dbaron,a=blocking
2011-01-03 14:48:09 +13:00
L. David Baron
4b623571f7
Correct handling of unitless zero in calc() expressions. (Bug 595648) r=bzbarsky a=blocking2.0:betaN+
...
This ensures that we treat a unitless zero as a number rather than a
length inside of calc() expressions. This causes both the acceptance of
previously-rejected expressions (such as -moz-calc(0 * 1em)) and the
rejection of previously-accepted ones (such as -moz-calc(0 + 1em)).
2010-12-30 12:59:33 -05:00
L. David Baron
915e327832
In contexts where the CSS parser accepts numbers and lengths, treat unitless zero as a number rather than a length. (Bug 595648) r=bzbarsky,dholbert a=blocking2.0:betaN+
...
This patch has the side-effect of changing the representation of '0'
values in properties added by SVG to use the number representation
rather than the length representation. This requires marking the
stroke-dashoffset:0 test in test_value_computation.html as known to
fail, since computed style code now returns 0 rather than 0px, and also
requires changing some inputs and results in some SMIL tests (which
seems like it's showing a bug that we can't interpolate between
equivalent values when we ought to be able to do so).
2010-12-30 12:59:33 -05:00
Brian Birtles
8e4d0b5873
Bug 607537 - SVG SMIL: Support paint servers an animation values; r=dholbert,dbaron; a=roc
2010-12-29 10:31:14 +09:00
Gavin Sharp
542ed50dd1
Back out 0ab0603bea99 (bug 489303) due to suspected Txul regression, a=backout
2010-12-25 14:55:35 -05:00
Neil Deakin
c873f850eb
Bug 489303 - No resizer since the statusbar is gone, r=gavin+roc, a=b
2010-12-21 13:19:00 -08:00
Mounir Lamouri
94471ce1a7
Bug 612752 - Change :-moz-ui-invalid default style when the invalid element is focused. r=dbaron ui-r=limi a=blocking-final
...
--HG--
rename : layout/reftests/css-ui-invalid/default-style/button-ref.html => layout/reftests/css-ui-invalid/default-style/button-focus-ref.html
rename : layout/reftests/css-ui-invalid/default-style/button.html => layout/reftests/css-ui-invalid/default-style/button-focus.html
rename : layout/reftests/css-ui-invalid/default-style/input-ref.html => layout/reftests/css-ui-invalid/default-style/input-focus-ref.html
rename : layout/reftests/css-ui-invalid/default-style/input.html => layout/reftests/css-ui-invalid/default-style/input-focus.html
rename : layout/reftests/css-ui-invalid/default-style/select-ref.html => layout/reftests/css-ui-invalid/default-style/select-focus-ref.html
rename : layout/reftests/css-ui-invalid/default-style/select.html => layout/reftests/css-ui-invalid/default-style/select-focus.html
rename : layout/reftests/css-ui-invalid/default-style/textarea-ref.html => layout/reftests/css-ui-invalid/default-style/textarea-focus-ref.html
rename : layout/reftests/css-ui-invalid/default-style/textarea.html => layout/reftests/css-ui-invalid/default-style/textarea-focus.html
2010-12-21 19:58:04 -05:00
Serge Gautherie
3cd25279ee
Bug 558705 - [Debug] mochitests-4: intermittent "test_value_cloning.html | Test timed out."; (Av1) Increase timeout factor to 4 from 3.
...
r=dbaron a=(test only).
2010-12-21 03:08:23 +01:00
Chris Pearce
205811b7f5
Bug 604885 commit backout merge. a=backout
2010-12-21 07:43:48 +13:00
Chris Pearce
50ca8e9e23
Bug 604885 - backout 00cabcc7d182 a=backout
2010-12-21 07:42:41 +13:00
Mihai Sucan
5676e1f24c
Bug 606498 - Make sure the new nsIScriptError2 is used in all possible places- part 3; r=bzbarsky,dbaron,mrbkap sr=jst a=blocking2.0
2010-12-20 12:21:59 -04:00
timeless@mozdev.org
542782a17a
Bug 619785 - nsComputedDOMStyle::DoGetMozBackgroundSize leaks valY when it has problems with valX, r+a=bz
2010-12-16 14:01:00 -08:00
Chris Pearce
2aa82b9ce7
Bug 604885 - Don't render video controls outside of css-specified width/height. r=roc a=blocking2.0
2010-11-25 07:34:56 +13:00
Mounir Lamouri
4fa7ffe450
Bug 613249 - <output> should have :-moz-ui-invalid and :-moz-ui-valid applying. r=bz a=jst
...
--HG--
rename : layout/reftests/css-invalid/output/output-invalid.html => layout/reftests/css-ui-invalid/output/output-invalid.html
rename : layout/reftests/css-invalid/output/output-ref.html => layout/reftests/css-ui-invalid/output/output-ref.html
rename : layout/reftests/css-invalid/output/output-valid.html => layout/reftests/css-ui-invalid/output/output-valid.html
rename : layout/reftests/css-invalid/output/reftest.list => layout/reftests/css-ui-invalid/output/reftest.list
rename : layout/reftests/css-invalid/output/style.css => layout/reftests/css-ui-invalid/output/style.css
rename : layout/reftests/css-valid/output/output-invalid.html => layout/reftests/css-ui-valid/output/output-invalid.html
rename : layout/reftests/css-valid/output/output-ref.html => layout/reftests/css-ui-valid/output/output-ref.html
rename : layout/reftests/css-valid/output/output-valid.html => layout/reftests/css-ui-valid/output/output-valid.html
rename : layout/reftests/css-valid/output/reftest.list => layout/reftests/css-ui-valid/output/reftest.list
rename : layout/reftests/css-valid/output/style.css => layout/reftests/css-ui-valid/output/style.css
2010-11-24 11:13:05 +01:00
Mounir Lamouri
55ca9912cc
Bug 605125 (1/5) - Add :-moz-ui-valid pseudo-class. r=bz a=jst
2010-11-24 00:54:29 +01:00
Mounir Lamouri
d5cdb4de16
Bug 609017 - Default style for :-moz-ui-invalid. r=bz ui-r=limi a=sicking
2010-11-24 00:51:43 +01:00
Mounir Lamouri
9b15bfaf64
Bug 605124 (1/5) - Add :-moz-ui-invalid pseudo-class. r=bz a=bsmedberg
2010-11-24 00:48:18 +01:00
Mounir Lamouri
9140044744
Bug 609016 - Remove default style for :invalid. r=bz a=bsmedberg
2010-11-24 00:47:26 +01:00