361 Commits

Author SHA1 Message Date
bzbarsky%mit.edu
4d91fc7bff Improve error reporting on unknown function pseudo-classes. Bug 261073, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@177805 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-16 01:46:04 +00:00
bzbarsky%mit.edu
92b9eb9e93 Escapes should be allowed to start an id. Bug 299148, r+sr=dbaron, a=bsmedberg
git-svn-id: svn://10.0.0.236/trunk@176257 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-19 20:49:34 +00:00
dbaron%dbaron.org
a610dfc91e Send correct Referer when <base href> is involved. r+sr=bzbarsky a=bsmedberg b=300942
git-svn-id: svn://10.0.0.236/trunk@176256 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-19 20:44:49 +00:00
timeless%mozdev.org
931c321236 Bug 299560 nsCSSParser.cpp:935 Comparison between signed and unsigned integer expressions
patch by b.jacques@planet.nl r=dbaron sr=dbaron a=bsmedberg


git-svn-id: svn://10.0.0.236/trunk@176022 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-13 18:16:00 +00:00
dbaron%dbaron.org
25b210b22c Implement css3 syntax for url() values of cursor with optional hotspot coordinates. b=286303 r=biesi sr=bzbarsky a=asa
git-svn-id: svn://10.0.0.236/trunk@175468 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-01 04:29:42 +00:00
bzbarsky%mit.edu
7178a28d71 Make sure to clean up before any early returns. Bug 295638, r=vlad, sr=dbaron,
a=shaver.


git-svn-id: svn://10.0.0.236/trunk@173923 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-01 15:41:12 +00:00
bzbarsky%mit.edu
13aba10e80 Don't call ValueAppended on every single inline style mutation. Should be a
tad faster, and actually serialize better.  Bug 288574, r+sr=dbaron, a=asa.


git-svn-id: svn://10.0.0.236/trunk@172819 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-28 20:19:24 +00:00
vladimir%pobox.com
7689b69908 b=288796, add public ParseColorString method to CSSParser, r+sr=dbaron,a=asa
git-svn-id: svn://10.0.0.236/trunk@172384 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-18 02:51:40 +00:00
tor%cs.brown.edu
ff8b5cf88f Bug 277135 - addressing svg style sr comments. r=scooter, sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@171608 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-04 21:42:26 +00:00
dbaron%dbaron.org
72020748e5 Implement CSS2 counters. b=3247 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@171473 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-01 23:07:00 +00:00
smfr%smfr.org
772e4ba0b2 Fix bug 288360 -- uninitialized return values caused failure to load CSS on various sites. r/sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@171413 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-30 23:05:02 +00:00
dbaron%dbaron.org
be07cbe034 Consolidate and deCOMtaminate parsing and storage of media lists. b=156716 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@171350 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-30 00:36:57 +00:00
mats.palmgren%bredband.net
d5dcb62486 Fix a few -moz-outline* problems and drop the prefix.
Change WARNING to ERROR in nsComputedDOMStyle.cpp and add a few more.
b=281972 r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@171246 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-27 11:36:08 +00:00
dbaron%dbaron.org
d70f0b01bf Add comment. b=286262 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@170885 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-18 06:56:03 +00:00
bryner%brianryner.com
5379a88c76 Rename nsNameSpaceMap to nsXMLNameSpaceMap to avoid symbol collision in static builds (bug 281728). r=dbaron.
git-svn-id: svn://10.0.0.236/trunk@169449 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-19 00:10:38 +00:00
bryner%brianryner.com
32c824e02b Remove nsINameSpace and replace with a simple array-based list of namespace mappings for CSS. Bug 281728, r+sr=bzbarsky.
git-svn-id: svn://10.0.0.236/trunk@169414 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-18 19:18:37 +00:00
tor%cs.brown.edu
8e4cbfc529 Bug 193825 - <svg:clipPath> implementation.
r=scooter, sr=dbaron for shared moz files.


git-svn-id: svn://10.0.0.236/trunk@168283 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-25 03:55:03 +00:00
tor%cs.brown.edu
308eece6d8 Bug 238050 - implement SVG markers. r=scooter, moz common files sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@166471 18797224-902f-48f8-a5cc-f745e15eee43
2004-12-09 03:16:15 +00:00
mats.palmgren%bredband.net
b48e73a4be Skip leading space inside :not(). b=271916 r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@165849 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-28 15:04:13 +00:00
mats.palmgren%bredband.net
13cfc53916 Making invalid selectors ignore the following rule in more cases. b=265542 r=bzbarsky sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@165818 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-26 21:05:45 +00:00
tor%cs.brown.edu
b5ae075b44 Bug 103294 - improve parsing of SVG stroke-dasharray property. r+sr=bz
git-svn-id: svn://10.0.0.236/trunk@165164 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-09 18:19:28 +00:00
bzbarsky%mit.edu
fe32860667 Make it possible to use the string input stream without heap-allocating a
string.  Bug 263973, r=darin, sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@164487 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-27 02:19:43 +00:00
aaronleventhal%moonset.net
53a4f4090a Bug 251498. Implement outline-offset. r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@164430 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-26 12:57:15 +00:00
dbaron%dbaron.org
307067aa6d Remove partial implementation of -moz-key-equivalent that was useful for nothing other than crashing. b=265721 r+sr=bzbarsky a=asa
git-svn-id: svn://10.0.0.236/trunk@164265 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-24 04:32:21 +00:00
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