dbaron@dbaron.org
78594a3fc8
Remove change hints from CSS parser and replace with boolean indicating whether there was a change, computed a much simpler way. b=158713 r+sr=bzbarsky
2003-06-30 21:39:22 +00:00
dbaron@dbaron.org
99d81c4dbc
Make CSSStyleRuleImpl immutable by changing mutation code (including some merging of code between nsDOMCSSAttributeDeclaration and DOMCSSDeclarationImpl) so that it creates a new rule for the modified declaration. Change StyleRuleChanged notification signatures, and change pres shell's handling of style rule change, addition, and removal to just do reresolution. Remove fine-grained ways of clearing style data. Change PeekStyleData so it doesn't do more work than it needs to, and can be relied on not to access rules that no longer match any content. b=188803 r+sr=bzbarsky
2003-06-18 01:59:57 +00:00
dbaron@dbaron.org
83ccc0d3ea
Create only one CSSStyleRuleImpl per rule rather than one per comma-separated selector to fix CSSOM compliance bugs and make rule immutability easier. Store list of selectors on the CSSStyleRuleImpl, each with their own weight. b=98765 r+sr=bzbarsky
2003-06-14 23:50:54 +00:00
bzbarsky@mit.edu
9b37fad92a
CSS3 Selectors is now in CR, so we can change -moz-hsl() to hsl(). Bug 208159,
...
r+sr=dbaron
2003-06-14 20:44:26 +00:00
caillon@returnzero.com
c8a200d763
Bug 209087
...
Content interface out-parameters should use ptr-to-ptrs instead of ref-to-ptrs and some small deCOMtamination.
r+sr=jst@netscape.com
2003-06-13 20:10:01 +00:00
dbaron@dbaron.org
cb886e55cc
Put more information on the CSS properties in nsCSSPropList.h.
...
Use the property list in the tables for nsRuleNode::CheckSpecifiedProperties.
To reduce heap usage, redesign the storage of properties and values in nsCSSDeclaration to allocate all property-value pairs in a declaration block in a single allocation, and use temporary structures (like the old permanent structures) during parsing and modification. Replace per-property switch statements in nsCSSDeclaration with table-based code to reduce code size.
b=125246 r+sr=bzbarsky
2003-06-07 22:14:42 +00:00
cbiesinger@web.de
a8a7e7f36f
patch by tenthumbs@cybernex.net r+sr=bz bug 206864
...
Incorrect comparison in content/html/style/src/nsCSSParser.cpp
2003-05-26 16:59:40 +00:00
bryner@netscape.com
4486f8d13d
Make --disable-xul work (bug 69995). We build enough XUL to support
...
scrollbars unconditionally, but can now leave out heavyweight widgets like
grid, listbox, and tree. r=bzbarsky, sr=alecf.
2003-04-11 00:56:27 +00:00
alecf@netscape.com
2fbddd4893
landing attempt #2 for 195262 - support for static atoms, and converting atoms over to UTF8 to reduce bloat - now without performance regressions!
...
sr=darin, r=dbaron
2003-03-25 18:55:59 +00:00
alecf@netscape.com
1f1c5bf595
backout my static atom patch for now until I figure out the performance loss! :(
...
bug 195262
2003-03-21 20:13:08 +00:00
alecf@netscape.com
9dc9223a52
argh fix darwin bustage.. :(
2003-03-21 16:06:20 +00:00
alecf@netscape.com
8133f44681
just one theory on the Ts slowdown, before I back myself out completely
2003-03-21 13:31:34 +00:00
bzbarsky@mit.edu
853a27b0cc
s/floorf/floor/. Fixes solaris/AIX/whatever bustage
2003-03-18 08:29:00 +00:00
bzbarsky@mit.edu
bdeeaec47e
Add math.h too
2003-03-18 06:48:04 +00:00
bzbarsky@mit.edu
c79666d4ee
Fix build bustage -- looks like not all platforms have round(). r=timeless
2003-03-18 06:45:57 +00:00
bzbarsky@mit.edu
cdaa015256
Bug 160550 -- implement -moz-hsl() (CSS3 hsl() colors). Implement the parsing end of
...
-moz-rgba() and -moz-hsla(); the GFX end is bug 147017. r+sr=dbaron
2003-03-18 05:43:12 +00:00
bzbarsky@mit.edu
489d25e676
Don't parse "string" values for text-align till we actually support them in
...
layout... Bug 197771, r+sr=dbaron
2003-03-18 05:25:37 +00:00
bzbarsky@mit.edu
59aa8f5a1c
Random CSS parser cleanup -- nsCOMPtr, nsCOMArray, remove unused methods, etc.
...
Bug 197512, r+sr=dbaron
2003-03-18 05:21:30 +00:00
bzbarsky@mit.edu
2347c66c1b
Make the CSS parser not throw on attempts to parse lengths with unknown units
...
(bug 197212). Also fixes a few build warnings and finally removes
NS_CSS_PARSER_DROP_DECLARATION (bug 88423). r+sr=dbaron
2003-03-17 03:58:06 +00:00
roc+@cs.cmu.edu
2269ac49f5
Bug 195883. %-values are not valid for '-moz-opacity'.
2003-03-08 03:08:25 +00:00
peterv@netscape.com
627a38d0b9
Fix for bug 195153 (Remove bogus 'extern' decls from NS_New* functions.). Patch by jst, r=sicking, sr=peterv.
2003-03-05 15:08:41 +00:00
caillon@returnzero.com
1169b8baa0
Bug 14777 - Give inline background image painting a rhyme and reason to how it works. Implement CSS3 proposal (-moz-)background-inline-policy.
...
r+sr=roc+moz
2003-01-17 09:33:52 +00:00
dbaron@dbaron.org
47922f2a26
Bug 178643: Remove uses of NS_INIT_ISUPPORTS, since it's no longer needed. r=timeless sr=jag
2003-01-08 19:24:38 +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
peterv@netscape.com
a286b2a9ae
Fix for bug 183999 (Modernize content). r=caillon, sr=bz.
2002-12-11 14:24:49 +00:00
bzbarsky@mit.edu
de205739a0
Make the CSSLoader correctly order stylesheets as they are dynamically added
...
and removed via the DOM. Clean up the nsIDocument stylesheet accessors. Clean
up nsIDocumentObserver stylesheet stuff a bit. Make style sheets visible in
the CSSOM (though not completely accessible) from the moment the load is kicked
off. Make us have sheet objects that can be manipulated via CSSOM even for
failed loads. Bug 107567, bug 47734, bug 57225, bug 178407.
r=sicking, sr=peterv.
2002-12-03 05:48:14 +00:00
sicking@bigfoot.com
4b50c34806
Bug 8929: Kill NS_COMFALSE
...
r=peterv sr=bz
2002-11-25 11:21:22 +00:00
bzbarsky@mit.edu
1efa63ee67
Report the unknown namespace when we have an unknown namespace error.
...
Bug 180852, r=dbaron, rs=roc+moz
2002-11-19 15:12:02 +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
bzbarsky@mit.edu
3f480af282
Backing out alecf for now, since this change makes mailcompose crash
...
(and we don't want smoketest blockers, now do we?)
2002-11-16 12:07:13 +00:00
alecf@netscape.com
bf80c3a1b7
prep work for fixing bug 180379 - stop creating extra nsCSSSelectors - instead of creating them on the stack then copying them to the heap, start with them newly on the heap.
...
r=bzbarsky, sr=dbaron
2002-11-16 05:37:24 +00:00
bzbarsky@mit.edu
71aedee4b7
fix regression in setting important property values in inline style via
...
DOM. Bug 173767, r=caillon, sr=dbaron
2002-11-06 02:07:17 +00:00
dbaron@fas.harvard.edu
09cb21ea04
OK, over from snprintf to PR_snprintf. b=173837
2002-10-15 00:29:58 +00:00
dbaron@fas.harvard.edu
311dc27f6a
Maybe an explicit include of stdio.h will fix the myotonic bustage. b=173837
2002-10-15 00:20:45 +00:00
dbaron@fas.harvard.edu
f9a2607464
Change sprintf to snprintf to avoid potential for buffer overflow. Untabify surrounding code. b=173837 r=heikki sr=bzbarsky a=rjesup
2002-10-14 23:49:48 +00:00
caillon@returnzero.com
0d9875f0a1
Correcting our background painting code per the latest CSS specs. By default, backgrounds should be painted to the border
...
area, and not the padding area as per the CSS 2 Errata, CSS2.1 and CSS3. Also, implementing the CSS3 'background-clip'
and 'background-origin' properties (currently with -moz- prefixes) to control this behavior.
Bug 162252, r=dbaron sr=roc+moz
2002-10-08 10:24:53 +00:00
caillon@returnzero.com
1043c715bf
Bug 117500. Adding support for the CSS2Properties interface to computed style declarations.
...
r=dbaron sr=jst
2002-09-26 03:46:50 +00:00
bzbarsky@mit.edu
d3aa06d6bb
Fix an edge case in color-parsing correctness. Bug 154755, r=glazman,
...
sr=dbaron
2002-09-14 05:28:26 +00:00
bzbarsky@mit.edu
0117b90b22
negative border widths are not legal in CSS. bug 167657, r=glazou,
...
sr=dbaron.
2002-09-11 01:47:25 +00:00
dougt@netscape.com
46ce738546
166917. Clean up xpcom SDK includes. r=rpotts@netscape.com, sr=alecf@netscape.com, a=rjesup@wgate.com
2002-09-07 17:13:19 +00:00
bzbarsky@mit.edu
241d58a1a2
Bug 119321 and bug 80106. Create a generic nsIUnicharStreamLoader that
...
makes two callbacks -- one to determine the charset and one to provide
an nsIUnicharInputStream. Use this in the CSSLoader instead of
allocating a single big buffer for the sheet. Clean up the way we look
for the @charset charset in the sheet data.
r=rpotts for netwerk/, r=peterv for content/, r=smontagu for intl/,
sr=darin for the whole thing.
2002-08-27 23:47:25 +00:00
roc+@cs.cmu.edu
458e434a36
Bug 160936. Add type nsChangeHint for style hints. Make it a set of bits. Make sure an NS_STYLE_HINT_REFLOW always also does a repaint of the frame. r=dbaron,sr=kin
2002-08-24 14:41:28 +00:00
dbaron@fas.harvard.edu
89efeec71f
Implement CSS2 :lang() selector. Fix problems with dynamic changes of 'quotes' property. Patch mostly by Ulrich Drepper (drepper@redhat.com), with some changes by Pierre Saslawsky and dbaron. r=rbs, dbaron sr=bzbarsky b=35768
2002-08-14 12:34:39 +00:00
bzbarsky@mit.edu
69d017df11
Expose @charset rules in the CSSOM. Bug 160834. r=glazman, sr=dbaron.
2002-08-06 05:26:41 +00:00
dbaron@fas.harvard.edu
75630656bd
Turn on CSS parser error reporting in DEBUG builds. Make unexpected-EOF error messages more informative. b=155855 r=bzbarsky sr=ben
2002-07-09 04:28:58 +00:00
jst@netscape.com
39ce2a2ba9
Fixing bug 134278. Die kNameSpaceID_HTML, die! r=sicking@bigfoot.com, sr=heikki@netscape.com
2002-05-20 22:47:02 +00:00
gerv@gerv.net
e69f263318
Bug 3935 - mozilla-native psuedo classes and properties should be marked as such. This fixes a number of them; still a few more to do. Patch by gerv, r=dbaron, sr=jst, a=asa.
2002-04-19 08:07:11 +00:00
hewitt@netscape.com
ffbc59afea
bugs 110156, 110155
...
Removing support for <outliner> tags
Removing <tree> layout code and moving <tree> tags to outliner layout
Convert all usage of <outliner> to tree tags
Convert all usage of <tree> tags to new <tree> syntax or <listbox>
r=cmanske,varga sr=hyatt,sspitzer a=asa
Also includes fixes by Jan Varga (varga@utcruk.sk ) for bugs 132020, 133451, 131393, 115894, and 129327
2002-03-29 02:46:01 +00:00
bryner@netscape.com
24bb067195
Revert to using an attribute for menuactive (bug 133610). r=ben/jkeiser, sr=jst, a=asa.
2002-03-27 07:01:26 +00:00
attinasi@netscape.com
14202ad249
Support for proprietary style property to allow composer to force broken image icons. b=58646 r=karnaze sr=kin a=asa
2002-03-26 20:14:05 +00:00