688 Commits

Author SHA1 Message Date
pierre%netscape.com
413d134dfe 43420 + CSS3 update: renamed "text-align:-moz-default" into "text-align:start"
git-svn-id: svn://10.0.0.236/trunk@76558 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 13:28:18 +00:00
dbaron%fas.harvard.edu
1adb256d88 Reduce the risk of parser leaks by releasing the parsers owned by CSSLoaders when no longer needed. r=attinasi
git-svn-id: svn://10.0.0.236/trunk@76478 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 23:04:42 +00:00
pierre%netscape.com
83df3e3c44 48096: Need a -moz-all value for user-select. r=sfraser.
git-svn-id: svn://10.0.0.236/trunk@76187 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-12 01:00:14 +00:00
dbaron%fas.harvard.edu
5c4eea6dd3 Fix huge leak warren introduced last night. Changing the hash keys to have owning pointers caused circular ownership. r=waterson b=48373 (nsbeta3+)
git-svn-id: svn://10.0.0.236/trunk@76013 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 20:08:30 +00:00
warren%netscape.com
e5706a7236 Bug 46711. Removed nsAutoString travisty from nsStringKey. Introduced nsCStringKey. Made them both share the underlying string when possible. r=waterson
git-svn-id: svn://10.0.0.236/trunk@75975 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 06:19:37 +00:00
pierre%netscape.com
7393600e1b 47138: Some invalid units are not resulting in dropped declarations.
15174: counter() and counters() should not be recognized by CSS parser.


git-svn-id: svn://10.0.0.236/trunk@75744 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 00:34:42 +00:00
dbaron%fas.harvard.edu
a0c7410ceb Fix potential leak. r=attinasi a=waterson
git-svn-id: svn://10.0.0.236/trunk@75698 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-07 03:06:22 +00:00
pierre%netscape.com
892645b8c6 attempt to fix the SunOS build
git-svn-id: svn://10.0.0.236/trunk@75643 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-05 06:39:42 +00:00
pierre%netscape.com
6e8b05fbf3 9816 (Outlines should be disabled completely for FCS)
46562 ('display: run-in' disables whole declaration block)
45804 (In quirks mode, 0 in 'border' should set the width, not the color)
46547 (Background image not centered correctly)
Thanks to emk <VYV03354@nifty.ne.jp>


git-svn-id: svn://10.0.0.236/trunk@75638 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-05 04:40:03 +00:00
pierre%netscape.com
1dc88b3a49 46599 (nsCSSLoader should check for local file before passing FORCE_RELOAD)
git-svn-id: svn://10.0.0.236/trunk@75637 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-05 04:39:43 +00:00
pierre%netscape.com
47661c52c3 43420 (textarea inherits align="center" from parent td)
git-svn-id: svn://10.0.0.236/trunk@75635 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-05 04:37:57 +00:00
attinasi%netscape.com
ad73ad64b4 Part of fix to allow background on BODY element to be inherited. b=47127 r=pierre
git-svn-id: svn://10.0.0.236/trunk@75598 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-04 20:44:08 +00:00
hyatt%netscape.com
a9d2806621 Fix for 46129. r=waterson,attinasi,pierre
git-svn-id: svn://10.0.0.236/trunk@75047 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-28 09:36:51 +00:00
dbaron%fas.harvard.edu
38b11b0554 Improve performance of testing for visited links CSS selector matching by reducing string conversion and by caching the state of the link on the link element. r=waterson b=25963
git-svn-id: svn://10.0.0.236/trunk@74961 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-27 23:17:53 +00:00
attinasi%netscape.com
9883f75dbb Checkin for timeless@bemail.org: Fixed rounding error making LARGER work for font sizes less than 9px. b=12461, r=attinasi@netscape.com,disttsc@bart.nl a=brendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@74390 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-18 21:48:51 +00:00
jst%netscape.com
a607a900c8 Fixing nsbeta2+ bug 44001, nulling out output parameters to avoid crasing. r=vidur@netscape.com
git-svn-id: svn://10.0.0.236/trunk@74071 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 02:15:27 +00:00
attinasi%netscape.com
8bfb7bdd72 Reversed the order of testing for link-elements so that the most common (anchors) are tested first. Update to earlier checkin.
git-svn-id: svn://10.0.0.236/trunk@72852 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 00:41:25 +00:00
attinasi%netscape.com
7eb58b89d3 Fixed bug 6306: AREA and LINK elements are now treated like links when it comes to matching selectors. Cleaned up SelectorMatches as well by moving link-logic into new method. r=kmcclusk@netscape.com b=6306
git-svn-id: svn://10.0.0.236/trunk@72842 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 23:48:21 +00:00
waterson%netscape.com
ffe15b5764 Use NS_LITERAL_STRING instead of an nsAutoString to avoid copy/inflate on platforms that support two-byte wchar_t. r=attinasi
git-svn-id: svn://10.0.0.236/trunk@72637 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-20 05:45:07 +00:00
jst%netscape.com
6af64ec54b Fixing nsbeta2+ bug 39892. Adding support for getting the computed value of the 'behavior' property with getComputedStyle(). r=hyatt
git-svn-id: svn://10.0.0.236/trunk@72155 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-14 00:06:36 +00:00
attinasi%netscape.com
d263a60d9c Fixed problem where anchors with no HREF were being styled like links in composer. b=31594 r=kmcclusk
git-svn-id: svn://10.0.0.236/trunk@71737 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-07 23:07:57 +00:00
pierre%netscape.com
b308cf318d Checked back in the backed out code (41321) after doing a minor fix in nsCSSValue.cpp (41618)
git-svn-id: svn://10.0.0.236/trunk@71601 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-06 09:36:12 +00:00
pierre%netscape.com
225e6c27b2 Backed out the previous changes (41321, waterson/attinasi) because of the regression in 41618.
git-svn-id: svn://10.0.0.236/trunk@71590 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-06 06:50:21 +00:00
mkaply%us.ibm.com
9d4a029884 # 37239
r = jst, a = waterson
OS/2 bringup - PR_CALLBACK for VisualAge


git-svn-id: svn://10.0.0.236/trunk@71532 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-05 19:15:32 +00:00
warren%netscape.com
cc5d426fbe Renaming nsIAllocator to nsIMemory (and nsAllocator to nsMemory). API cleanup/freeze. Bug #18433
git-svn-id: svn://10.0.0.236/trunk@71450 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-03 09:46:12 +00:00
waterson%netscape.com
f39433e11c Bug 41321. Use PRUnichar* instead of nsString* to store string values for nsCSSValue and nsHTMLValue. r=attinasi.
git-svn-id: svn://10.0.0.236/trunk@71406 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-02 22:54:35 +00:00
attinasi%netscape.com
3da8003982 Implemented QuirkMode style sheet and moved some initial quirk style rules from html.css to the new quirk.css. b=38026 r=rods a=karnaze
git-svn-id: svn://10.0.0.236/trunk@71391 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-02 21:45:06 +00:00
waterson%netscape.com
aeed9836c3 Bug 29611. Use 'GetHref()' to retrieve anchor tag's href. r=attinasi
git-svn-id: svn://10.0.0.236/trunk@71338 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-02 04:27:47 +00:00
mstoltz%netscape.com
8d64704489 Fix for 16858 w/o breaking directory browser. r=waterson a=beard
git-svn-id: svn://10.0.0.236/trunk@71307 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-01 23:57:48 +00:00
attinasi%netscape.com
a9a853f825 Floated elements now get their display type set to a block, in compliance with the CSS1 specification. Also, positioned elements get their float property cleared. b=32200 r=karnaze a=karnaze
git-svn-id: svn://10.0.0.236/trunk@71302 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-01 23:31:00 +00:00
shaver%mozilla.org
6e2756c80d properly handle updating of class or id, #39642, r=attinasi, a=waterson
git-svn-id: svn://10.0.0.236/trunk@71169 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-31 20:00:31 +00:00
mkaply%us.ibm.com
112434216b # 37239
r = rickg, a = brendan
OS/2 bringup continues on M16 - Changes for VisualAge build (PR_CALLBACK)


git-svn-id: svn://10.0.0.236/trunk@71166 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-31 14:09:34 +00:00
waterson%netscape.com
4a050fe624 #if-0 out mstoltz's changes to fix tinderbox.
git-svn-id: svn://10.0.0.236/trunk@70994 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-27 05:22:39 +00:00
mstoltz%netscape.com
21edbcf9bf Fixed bug in DOM security checks, fixes bug 37907, 23516. Added security check for htmlelement.innerhtml, fixes 39083. Added location check to BASE HREF=, fixes 35859. r=vidur. Added check to style= tag, fixes 16858, r=pierre.
git-svn-id: svn://10.0.0.236/trunk@70965 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-26 23:28:40 +00:00
carl.wong%intel.com
5632825acd Fixed bug#39134 (reference count leak in SheetLoadData). r=attinasi@netscape.com a=leaf@netscape.com
git-svn-id: svn://10.0.0.236/trunk@70399 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-17 18:29:30 +00:00
jst%netscape.com
383782079d Make this a bit safer to use.
git-svn-id: svn://10.0.0.236/trunk@70345 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-17 06:26:23 +00:00
jst%netscape.com
91243dfcb6 Hook up new property and fix a crasher.
git-svn-id: svn://10.0.0.236/trunk@70334 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-17 06:13:43 +00:00
jst%netscape.com
30e91e2d64 Adding computed style implementation to the build, and make it compile on windows.
git-svn-id: svn://10.0.0.236/trunk@70287 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-17 04:57:50 +00:00
sfraser%netscape.com
f72dc9c694 Fix the static nsCOMPtr<nsIAtom> atom("type"), replacing it with nsHTMLAtoms::type, to fix an assertion on shutdown.
git-svn-id: svn://10.0.0.236/trunk@70245 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-17 02:23:59 +00:00
shaver%mozilla.org
f792546214 Significantly reduce the amount of time we blow on style reresolution by
tracking the attributes which appear in CSS selectors, and only firing
a complete reresolution when we change one of those.  In the irrelevant-attr
case, we just let the frame update itself and get on with our lives right
away.  Fixed 38378, r=brendan, booyah.

Also, when setting an attribute to the same value that it currently holds,
don't think about it especially hard, and _don't_ go anywhere near the
style code.  Fixed 21879, r=brendan, boo_yah_.


git-svn-id: svn://10.0.0.236/trunk@69948 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-16 02:43:33 +00:00
attinasi%netscape.com
32ce610d53 Added support for simple xlinks: we now treat simple xlinks like links for styling. b=38026 r=dbaron
git-svn-id: svn://10.0.0.236/trunk@69891 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-15 22:30:27 +00:00
jst%netscape.com
757b271c1a More WIP on getComputedStyle(), not part of the build yet.
git-svn-id: svn://10.0.0.236/trunk@69718 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-15 01:59:05 +00:00
jst%netscape.com
04bccbd8fa Adding a very primitive readonly implementation of CSSPrimitiveValue. Not part of the build yet.
git-svn-id: svn://10.0.0.236/trunk@69717 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-15 01:58:26 +00:00
jst%netscape.com
f37851bcbd In stead of throwing an exception when the user asks for the owner rule of style sheet we return null.
git-svn-id: svn://10.0.0.236/trunk@69568 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-13 18:10:24 +00:00
michael.lowe%bigfoot.com
89eff2adf7 Implement CSS3 cursors on Windows
git-svn-id: svn://10.0.0.236/trunk@68568 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-07 05:14:43 +00:00
attinasi%netscape.com
f89065c311 Tables now inherit backgrond color and image into the cells and allow them to paint instead in quirks mode (the way it originally was). b=34838
git-svn-id: svn://10.0.0.236/trunk@68259 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-04 21:41:02 +00:00
attinasi%netscape.com
921df5eb29 Change to disallow underscore character in identifiers, as required in the CSS2 spec. Fix contributed by VYV03354@nifty.ne.jp, r=attinasi@netscape.com
git-svn-id: svn://10.0.0.236/trunk@68257 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-04 21:36:49 +00:00
jst%netscape.com
b15a5bb348 New files needed for getComputedStyle(). Not part of the build yet.
git-svn-id: svn://10.0.0.236/trunk@68182 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-04 00:07:33 +00:00
attinasi%netscape.com
5f1b41704f Applied patch from VYV03354@nifty.ne.jp to make class names specified in non-ASCII characters recognizable as parts of selectors. b=38038,35800.
git-svn-id: svn://10.0.0.236/trunk@68153 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-03 22:12:58 +00:00
jst%netscape.com
09a726c20d WIP for supporting setting the cssText property on css declarations through the CSS DOM, approved and partly reviewed by Pierre.
git-svn-id: svn://10.0.0.236/trunk@68135 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-03 21:42:00 +00:00