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