tor%cs.brown.edu
c10cf6e314
Bug 244917 - implement SVG gradients. Patch by scootermorris@comcast.net.
...
r=sicking,afri,tor,jwatt. Shared mozilla code sr=tor,dbaron.
git-svn-id: svn://10.0.0.236/trunk@163782 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-14 23:02:53 +00:00
bzbarsky%mit.edu
ea4f69c690
Make sure to set mScannerInited when it is. Bug 263959, caught by jag
...
git-svn-id: svn://10.0.0.236/trunk@163735 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-14 15:06:04 +00:00
bzbarsky%mit.edu
cde277f1cf
Don't create new nsCSSScanners all the time. Just make nsCSSScanner a
...
non-pointer member of nsCSSParser so when we recycle parsers scanners get
recycled automatically. Bug 263959, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@163709 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-14 03:30:55 +00:00
dbaron%dbaron.org
b791c16965
Move CSS error reporting functions from parser to scanner so that scanner can report errors, and fix up the one existing error report in the scanner that I'd forgotten about. b=262249 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@163612 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-12 18:44:14 +00:00
bzbarsky%mit.edu
cd5e4baffe
Fix "normal" and "-moz-initial" values for "content" to do the right thing.
...
Bug 262624, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@163273 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-06 00:45:42 +00:00
mats.palmgren%bredband.net
d83ca07985
Make window.setCursor() use CSS 'cursor' property values. b=260272 r+sr=dbaron
...
git-svn-id: svn://10.0.0.236/trunk@163089 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-01 17:15:15 +00:00
bzbarsky%mit.edu
76625d8613
Remove parsing of play-during property, since we don't support it anyway and
...
it's gone from CSS2.1 and CSS3. Bug 258079, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@163043 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-30 22:32:28 +00:00
dbaron%dbaron.org
123881d207
Fix bustage when CSS error reporting disabled. b=187007
...
git-svn-id: svn://10.0.0.236/trunk@162555 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-20 20:08:20 +00:00
dbaron%dbaron.org
00ee6e5230
Make CSS errors localizable. b=187007 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@162553 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-20 19:38:11 +00:00
dbaron%dbaron.org
0c2068f65a
Separate sheet URI and base URI for style attributes and for CSS parsing from DOM APIs. b=258707 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@162122 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-10 23:31:48 +00:00
dbaron%dbaron.org
af8931a4f1
Fix DEBUG bustage. b=255538
...
git-svn-id: svn://10.0.0.236/trunk@162071 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-10 09:31:10 +00:00
dbaron%dbaron.org
a4ca9058c6
Separate concept of stylesheet URI into base URI (for resolving relative links) and sheet URI (for everything else), since they can differ for style elements (and inline style and style set from script, but that's for the next patch). Some other things (relating to external stylesheets, where it doesn't make a difference) that probably should use the sheet URL are left as the base URL for now because I didn't want to change too much at once. b=255538 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@162059 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-10 06:45:59 +00:00
bzbarsky%mit.edu
f3fd99f0a7
Add nsCSSValuePair type and use it for storage of some properties. Bug 208729,
...
r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@162049 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-10 03:26:58 +00:00
dbaron%dbaron.org
d116431504
Pass line number information for style elements through to the CSS parser so we can give correct line numbers in error reports. b=240420 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@161992 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-09 17:32:35 +00:00
dbaron%dbaron.org
d078282226
Land bug 72747 in pieces: Implement overflow-x and overflow-y. b=72747 r+sr=roc
...
git-svn-id: svn://10.0.0.236/trunk@161772 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-05 00:04:04 +00:00
dbaron%dbaron.org
565357f6d2
Backout the CSS parts of bug 72747 to see if that fixes the Tp regression.
...
git-svn-id: svn://10.0.0.236/trunk@161357 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-26 22:35:38 +00:00
dbaron%dbaron.org
ed6372cf2f
Implement 'overflow-x' and 'overflow-y' CSS properties, long implemented by IE for Windows and proposed for CSS3. Implement scrolling='yes' and equivalents on frame and iframe. Various pieces of related cleanup (see comment 22 in bug). b=72747 r+sr=roc
...
git-svn-id: svn://10.0.0.236/trunk@161333 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-26 17:11:20 +00:00
tor%cs.brown.edu
20578e63ca
Bug 234789 - SVG text ignores font-size if no unit specified.
...
Patch by scootermorris@comcast.net , r=tor, sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@160579 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-10 00:02:47 +00:00
dbaron%dbaron.org
3ea4fea687
Implement @-moz-document at-rule for site-specific rules, particularly in user stylesheets. b=238099 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@160406 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-05 18:26:14 +00:00
dbaron%dbaron.org
de732e9488
Don't allocate and leak selectors that we don't need. b=252510 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@159614 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-21 21:20:14 +00:00
roc+%cs.cmu.edu
9479fac3b5
Bug 251162. Add -moz-column-gap to the style system. r+sr=dbaron
...
git-svn-id: svn://10.0.0.236/trunk@159419 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-18 12:12:46 +00:00
dbaron%dbaron.org
fe80e9ca1c
Send the stylesheet as the HTTP Referer header for images loaded from CSS stylesheets. b=249168 r=bzbarsky sr=darin
...
git-svn-id: svn://10.0.0.236/trunk@159195 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-14 21:56:23 +00:00
roc+%cs.cmu.edu
f8fdf5f9c2
Bug 245297. Add basic style system support for columns. r+sr=dbaron
...
git-svn-id: svn://10.0.0.236/trunk@158023 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-17 11:57:37 +00:00
roc+%cs.cmu.edu
0b0fa89131
Bug 226439. Convert codebase to use AppendLiteral/AssignLiteral/LowerCaseEqualsLiteral. r+sr=darin
...
git-svn-id: svn://10.0.0.236/trunk@157992 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-17 00:13:25 +00:00
bzbarsky%mit.edu
0c601b530f
Use property ids from the property list, as long as we're using preprocessing
...
to create all the Set/Get* functions for nsIDOMCSS2Properties. Bug 243728, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@157556 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-08 01:32:29 +00:00
caillon%redhat.com
b9425c4a43
Remove '-moz-resizer' from the style system.
...
Bug 242712. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@156009 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-05 21:37:32 +00:00
bzbarsky%mit.edu
19a39fd9a3
Don't allow negative line-heights to make it past the CSS parser. Bug 240900,
...
r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@155088 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-18 20:10:09 +00:00
gerv%gerv.net
5a6ece6544
Bug 236613: change to MPL/LGPL/GPL tri-license.
...
git-svn-id: svn://10.0.0.236/trunk@155064 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-18 13:54:27 +00:00
gerv%gerv.net
98831918fc
Bug 236613: change to MPL/LGPL/GPL tri-license.
...
git-svn-id: svn://10.0.0.236/trunk@155044 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-17 21:52:36 +00:00
dbaron%dbaron.org
ab7ff079ea
Rename FOR_CSS_SIDES to NS_FOR_CSS_SIDES, move it, and use it more. b=233795 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@154708 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-12 21:54:45 +00:00
caillon%redhat.com
9a4301e0e0
Bug 219829
...
Allow mixing length and percentage values with keyword values for the background-position property, which is now allowed per section 14.2.1 of CSS 2.1
r+sr=dbaron
a=asa
git-svn-id: svn://10.0.0.236/trunk@154666 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-10 05:08:02 +00:00
bzbarsky%mit.edu
668e1489b3
Fix ID selector parsing to check for a valid identifier. Bug 239079,
...
r+sr=dbaron, a=chofmann
git-svn-id: svn://10.0.0.236/trunk@154486 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-03 17:18:45 +00:00
alex.fritze%crocodile-clips.com
937a1cf846
Landing of SVG_20020806_BRANCH, Bug 182533. Refactoring of SVG backend, new GDI+ and Libart rendering
...
backends, text support on Windows (GDI+), rudimentary text support on Linux (libart/freetype2), presentation
attributes, lots of bug fixes (see bug 182533 for dependency list).
Not part of default build; code is #ifdef'ed out.
r=sicking, sr=jst for dom and htmlparser changes
r=bsmedberg, sr=tor for config changes
r=dbaron, sr=bzbarsky for content and layout changes
r=tor, sr=bzbarsky for gfx changes
git-svn-id: svn://10.0.0.236/trunk@152468 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-07 12:39:26 +00:00
dbaron%dbaron.org
6b800e75e5
Implement -moz-margin-start, -moz-margin-end, -moz-padding-start, and -moz-padding-end and cascade them correctly. Use them in html.css to improve default styles for lists in RTL documents. b=74880 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@152274 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-04 06:10:56 +00:00
dbaron%dbaron.org
87f96cc17d
Fix parsing of 'cursor' property and ignoring of uri() values, which we don't support. b=77974 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@151470 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-18 01:12:58 +00:00
dbaron%dbaron.org
7888f1af3e
Implement CSS3 indirect adjacent sibling combinator (~). Roughly identical patches independently written by Daniel Glazman <daniel@glazman.org>, Bradley Baetz <bbaetz@acm.org>, and me. r+sr=dbaron b=135141
...
git-svn-id: svn://10.0.0.236/trunk@151321 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-14 20:12:03 +00:00
bzbarsky%mit.edu
9900c39f48
Don't allow pseudos that are supposed to be functions to pass through as ident
...
tokens. Bug 230704, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@151230 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-12 23:56:18 +00:00
bzbarsky%mit.edu
3e32bc588c
Don't use HTML rules to parse (redundantly) media strings in CSS @import
...
rules. Bug 153755, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@151128 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-10 02:27:41 +00:00
bryner%brianryner.com
468d3e2e8d
Eliminate nsIStyleSet as an XPCOM interface, making the implementation internal to layout. Frame constructor ownership moves to the pres shell, and the style set methods that forward to the frame constructor are gone. Rewrote style set sheet add/remove to reduce code size. For more details, see bug 64116. r+sr=dbaron.
...
git-svn-id: svn://10.0.0.236/trunk@150998 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-07 22:30:53 +00:00
bzbarsky%mit.edu
d513aa3f26
Make AdjustComputedWidth/Height take a boolean that tells it whether to account
...
for box-sizing; sometimes we don't want to. Also fix parsing of
max-width/height and min-width/height to error on negative values (per spec).
Bug 227819, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@150907 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-05 23:59:25 +00:00
dbaron%dbaron.org
d0f32a43bc
Fix two case-sensitivity issues with attribute selectors. b=229172 Patch from Gilles Durys <mozbug@durys.net>. r+sr=dbaron
...
git-svn-id: svn://10.0.0.236/trunk@150779 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-30 17:58:17 +00:00
bzbarsky%mit.edu
94d2d661ce
-moz-initial, not initial. Use CSS keyword table to prevent this happening
...
again. Bug 120903, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@149389 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-16 01:12:50 +00:00
dbaron%dbaron.org
4c629e6e15
Make aErrorCode values nsresult, since that's what they are. Remove obsolete handling of -1 for EOF and now-obsolete TODO list. b=224254 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@149269 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-13 22:48:05 +00:00
bzbarsky%mit.edu
460c4b1716
Fix parsing regression bug 224737. Patch by mats.palmgren@bredband.net (Mats
...
Palmgren), r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@148854 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-05 04:51:17 +00:00
bzbarsky%mit.edu
a39be782a9
Correctly ignore adjacent type selectors with no combinator. Bug 224188,
...
r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@148812 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-04 03:16:10 +00:00
bzbarsky%mit.edu
11dc845cec
Make attr() parsing have better error reporting and bail on attr(*|foo). Bug
...
223746, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@148502 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-30 02:06:12 +00:00
dbaron%dbaron.org
776f9f50ae
Make play-during a true shorthand so it gets parsed correctly after the nsCSSDeclaration storage rewrite. b=223718 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@148496 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-30 01:51:00 +00:00
dbaron%dbaron.org
1a2977b836
Store the original string for URL values so that composer and CSSOM do not make relative URLs absolute. b=167262 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@148494 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-30 01:45:37 +00:00
dbaron%dbaron.org
220a62afce
Implement element.style for XUL elements. Fully fault XUL attributes when style attribute is modified, and ensure that string and style rule versions of style attribute stay in sync. (HTML elements only store the latter.) b=7639 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@148493 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-30 01:40:33 +00:00
dbaron%dbaron.org
37de3855c7
Make URIs in the style system nsIURI pointers instead of strings. b=113173 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@147501 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-01 22:53:56 +00:00