1866 Commits

Author SHA1 Message Date
alecf%netscape.com
f24ccb3da0 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


git-svn-id: svn://10.0.0.236/trunk@140260 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-25 18:55:59 +00:00
timeless%mozdev.org
0e5f07166f Bug 106386 rid source of misspellings
patch by nb@ipnode.info r=biesi sr=dmose


git-svn-id: svn://10.0.0.236/trunk@140130 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-24 04:15:34 +00:00
alecf%netscape.com
2a83f1b2d9 backout my static atom patch for now until I figure out the performance loss! :(
bug 195262


git-svn-id: svn://10.0.0.236/trunk@139962 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-21 20:13:08 +00:00
alecf%netscape.com
aa145295c7 argh fix darwin bustage.. :(
git-svn-id: svn://10.0.0.236/trunk@139936 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-21 16:06:20 +00:00
alecf%netscape.com
3fa5a6e1da just one theory on the Ts slowdown, before I back myself out completely
git-svn-id: svn://10.0.0.236/trunk@139925 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-21 13:31:34 +00:00
alecf%netscape.com
59c2bfe187 fix for bug 195262:
- convert atoms to UTF8 because 99% of the time, that is what they are used for
- add support for static atoms, where the strings are declared in a large const array and not copied into the heap
r=dbaron, sr=darin

this is an experimental landing - if there are performance issues, I will back it out.


git-svn-id: svn://10.0.0.236/trunk@139909 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-21 06:26:32 +00:00
bzbarsky%mit.edu
ea0d50568b s/floorf/floor/. Fixes solaris/AIX/whatever bustage
git-svn-id: svn://10.0.0.236/trunk@139659 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-18 08:29:00 +00:00
bzbarsky%mit.edu
4f9a4db54e Add math.h too
git-svn-id: svn://10.0.0.236/trunk@139656 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-18 06:48:04 +00:00
bzbarsky%mit.edu
6a018426c4 Fix build bustage -- looks like not all platforms have round(). r=timeless
git-svn-id: svn://10.0.0.236/trunk@139655 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-18 06:45:57 +00:00
bzbarsky%mit.edu
61cb208768 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


git-svn-id: svn://10.0.0.236/trunk@139650 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-18 05:43:12 +00:00
bzbarsky%mit.edu
4ca70c77f0 Don't parse "string" values for text-align till we actually support them in
layout... Bug 197771, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@139649 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-18 05:25:37 +00:00
bzbarsky%mit.edu
a0fe9c437e Random CSS parser cleanup -- nsCOMPtr, nsCOMArray, remove unused methods, etc.
Bug 197512, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@139648 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-18 05:21:30 +00:00
bzbarsky%mit.edu
05bc13b022 Make scrollDelay settable; make height/width attrs work on standards-mode
pages. Bug 197461, r=doron, sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@139598 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-17 06:58:17 +00:00
bzbarsky%mit.edu
d5678f9f7d 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


git-svn-id: svn://10.0.0.236/trunk@139592 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-17 03:58:06 +00:00
bzbarsky%mit.edu
56379f8173 Avoid possible double-delete of CSS declaration. Bug 196271, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@139590 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-17 03:46:17 +00:00
bzbarsky%mit.edu
f0eaf3702e Make all CSSStyleSheets have a useful mDocument so that they can pass change
notifications properly.  Parent sheets are responsible for keeping their kids'
mDocument pointers up-to-date.  Bug 194543, r=dbaron, sr=peterv


git-svn-id: svn://10.0.0.236/trunk@139589 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-17 03:44:02 +00:00
dbaron%dbaron.org
b3e12f2c54 No more experiments. Back to plain old macros. r+sr=roc b=196603
git-svn-id: svn://10.0.0.236/trunk@139555 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-16 04:51:56 +00:00
dbaron%dbaron.org
a1632181db Well, the OS/2 compiler does not like the cool way of doing this, so on to the ugly way... b=197277
git-svn-id: svn://10.0.0.236/trunk@139549 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-16 01:34:48 +00:00
dbaron%dbaron.org
0893714573 Ensure that CalcStyleDifference populates the new context with all of the structs present on the old context to ensure that the PeekStyleData optimization is valid. Avoid copy-and-pasted code. b=196603 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@139542 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-16 00:20:21 +00:00
dbaron%dbaron.org
2d30530b49 Oops! nsStyleSVG never had a GetStyleStructID method. b=196603
git-svn-id: svn://10.0.0.236/trunk@139534 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-15 21:54:49 +00:00
bzbarsky%mit.edu
3bd333c19e Remove some style-data-clearing functions that no one uses and that don't do
the right thing anyway.  Bug 169989, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@139391 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-13 18:58:54 +00:00
dbaron%dbaron.org
e8efd80e8f Make HTMLDocumentColorRule immutable. b=196795 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@139385 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-13 15:30:32 +00:00
dbaron%dbaron.org
efc8215ab8 Ensure that GetStyleData never returns null, even in out-of-memory, by storing a backup set of style structs to return in case of failure. b=154751 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@139384 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-13 15:29:36 +00:00
bzbarsky%mit.edu
1c14eb6841 Fix bug 197090; foo.style.background="" would throw instead of just doing
nothing.  r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@139352 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-12 21:54:50 +00:00
bryner%netscape.com
650a08b24e Don't need to stabilize mRefCnt to 1 in nsStyleContext dtor (bug 196956). r/sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@139319 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-12 05:19:43 +00:00
bryner%netscape.com
a40b1536d0 Implement Aqua form controls when building with the Cocoa toolkit (bug 188254). r=pinkerton, sr=sfraser.
git-svn-id: svn://10.0.0.236/trunk@139317 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-12 04:57:33 +00:00
roc+%cs.cmu.edu
220a586522 Bug 195883. %-values are not valid for '-moz-opacity'.
git-svn-id: svn://10.0.0.236/trunk@139134 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-08 03:08:25 +00:00
dbaron%dbaron.org
2e0108c17f Remove unused variable (fix warning). b=171830
git-svn-id: svn://10.0.0.236/trunk@139042 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-06 21:01:52 +00:00
dbaron%dbaron.org
82f6da961c Fix for bustage on older gcc. b=117316
git-svn-id: svn://10.0.0.236/trunk@139041 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-06 20:16:35 +00:00
alecf%netscape.com
326b7425d7 fix for bug 191416 - clean up nsIUnicharInputStream to make it more like nsIInputStream:
- hide Fill() (or remove it where not necessary)
- add ReadSegments() so that we can do reads without copying
- remove the extra offset parameter to Read()
r=dougt, sr=darin


git-svn-id: svn://10.0.0.236/trunk@139039 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-06 19:54:51 +00:00
dbaron%dbaron.org
de7999bf43 Fix dynamic style changes resulting from change to href attribute on HTML links. b=194972 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@139036 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-06 19:19:55 +00:00
dbaron%dbaron.org
089db98924 Implement garbage collection of the rule tree to fix some cases of memory growth and to allow us to move towards style rule immutability. b=117316 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@139035 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-06 19:14:17 +00:00
dbaron%dbaron.org
3b86a016bb Handle inline style changes by creating new style rules to wrap the modified nsCSSDeclarations, thus moving towards style rule immutability and away from property-based change hints. Patch from Boris Zbarsky <bzbarsky@mit.edu>. r=dbaron sr=roc b=171830
git-svn-id: svn://10.0.0.236/trunk@139034 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-06 19:07:22 +00:00
peterv%netscape.com
c96c6fa64f Fix for bug 195153 (Remove bogus 'extern' decls from NS_New* functions.). Patch by jst, r=sicking, sr=peterv.
git-svn-id: svn://10.0.0.236/trunk@138957 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-05 15:08:41 +00:00
sfraser%netscape.com
6f87b85c6b Fix bug 195160: remove static NS_DEFINE_IID from header files. r=cls, sr=alecf.
git-svn-id: svn://10.0.0.236/trunk@138693 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-28 05:47:36 +00:00
sfraser%netscape.com
681cb0b389 Declare kCSSRawProperties and kCSSRawKeywords as 'extern' so that tests code can link with the .a, and get them.
git-svn-id: svn://10.0.0.236/trunk@138511 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-26 03:34:15 +00:00
sfraser%netscape.com
94edbe3959 Bug 74803: fix the data in various static name tables to be const, and fix nsStaticNameTable to accept const data. r=dbaron, sr=alecf.
git-svn-id: svn://10.0.0.236/trunk@138488 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-26 00:52:07 +00:00
dbaron%dbaron.org
dc1497f24d Make ProbePseudoStyleFor return null whenever :before and :after aren't displayed so that we don't try to reframe constantly in certain cases, preventing link clicking from working. b=188525 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@138300 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-23 17:28:25 +00:00
dbaron%dbaron.org
84bd814999 Fix bustage. b=167415
git-svn-id: svn://10.0.0.236/trunk@138283 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-23 05:36:40 +00:00
bzbarsky%mit.edu
b8de299d37 Make CSSStyleSheetImpl::Clone properly set various weak refs on the clone
(parent sheet, parent rule, owning node, document).  Bug 167415, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@138277 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-23 04:44:41 +00:00
bzbarsky%mit.edu
a99c8b3055 Make the parser recycling list in the loader a class static. Bug 190658,
r=sicking, sr=peterv


git-svn-id: svn://10.0.0.236/trunk@138219 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-22 19:36:32 +00:00
dbaron%dbaron.org
1565ce1865 Fix bugs with removal of certain properties. b=182294 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@138216 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-22 19:23:46 +00:00
dbaron%dbaron.org
3f0d2d6a2c Make our ignoring of properties for :first-line and :first-letter a lot closer to the spec (although still buggy). b=103189 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@138214 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-22 19:20:16 +00:00
dbaron%dbaron.org
104506ddb5 Fix dynamic change bugs by making HTMLColorRule immutable. b=99850 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@138213 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-22 19:15:46 +00:00
dbaron%dbaron.org
22283f6fd1 Replace nsIStyleSheet::AttributeAffectsStyle with nsIStyleRuleProcessor::HasAttributeDependentStyle. Strengthen the attribute optimization and apply it to HTML as well. b=163556 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@138196 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-22 16:10:53 +00:00
dbaron%dbaron.org
18e9b2801c Reduce code size of atom lists by storing a table of strings and pointers to fill in. b=181383 r=alecf sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@138195 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-22 15:58:07 +00:00
dbaron%dbaron.org
e6a2b29ebf Remove nsISizeOfHandler and associated SizeOf methods. b=106792 r=bzbarsky sr=jst
git-svn-id: svn://10.0.0.236/trunk@138193 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-22 15:34:38 +00:00
bryner%netscape.com
8d708cf819 Attempting to fix os/2 and worms bustage. Add a protected default ctor to nsStyleContext. This should never be called since we never instantiate an nsDerivedSafe. r=bbaetz.
git-svn-id: svn://10.0.0.236/trunk@138171 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-22 10:13:34 +00:00
bryner%netscape.com
dfb57e3d01 Make nsStyleContext also return nsrefcnt from AddRef and Release, fixing gcc 2.95 bustage.
git-svn-id: svn://10.0.0.236/trunk@138148 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-22 04:05:05 +00:00
bryner%netscape.com
c44337949a Remove nsIStyleContext (bug 114713), r/sr=dbaron. Changed lots of methods to use nsStyleContext* or already_AddRefed<nsStyleContext> as return values, depending on whether a reference is returned. Turn on nsRefPtr (bug 104346), and change nsDerivedSafe to not declare AddRef and Release explicitly virtual, r=jag, sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@138129 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-22 00:32:13 +00:00