Compare commits

..

2822 Commits

Author SHA1 Message Date
alex.fritze%crocodile-clips.com
124fb27d4a Remove unnecessary static cast. Found by bzbarsky.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@152463 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-07 09:24:18 +00:00
alex.fritze%crocodile-clips.com
9ff478fb4e Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@152462 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-07 09:12:48 +00:00
alex.fritze%crocodile-clips.com
fa90b61fc2 Remove redundant comment. Found by biesi.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@152400 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-05 22:58:56 +00:00
alex.fritze%crocodile-clips.com
37a6577219 Change $(NSNULL) to $(NULL). Found by biesi.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@152399 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-05 22:46:41 +00:00
alex.fritze%crocodile-clips.com
c049cd1a3e Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@152363 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-05 07:52:08 +00:00
alex.fritze%crocodile-clips.com
3310110a52 Fix merge bustage.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@152319 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-05 00:12:00 +00:00
alex.fritze%crocodile-clips.com
324fd52ea5 Fix merge bustage. Thanks to David Avery for fix.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@152318 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-05 00:06:07 +00:00
alex.fritze%crocodile-clips.com
7253405625 Changes to allow SVG attributes to accept any string value. Fixes SVG in XUL templates.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@152308 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-04 22:33:06 +00:00
alex.fritze%crocodile-clips.com
8895496b07 Changes to allow SVG attributes to accept any string value. Fixes SVG in XUL templates.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@152300 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-04 21:28:36 +00:00
alex.fritze%crocodile-clips.com
ce68892c9c Merge from trunk
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@152296 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-04 17:13:43 +00:00
alex.fritze%crocodile-clips.com
f2f79ebae8 Add some debug code (commented out).
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@152283 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-04 08:52:22 +00:00
alex.fritze%crocodile-clips.com
1ba3c8bc3c Fix merge bustage.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@152219 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-03 11:43:13 +00:00
alex.fritze%crocodile-clips.com
628e2fd72b Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@152218 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-03 09:35:20 +00:00
alex.fritze%crocodile-clips.com
b4cf3ce52e Fix merge bustage (nsIPresContext API change)
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@152144 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-01 15:10:58 +00:00
alex.fritze%crocodile-clips.com
f9ec30e1f8 Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@152138 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-01 11:50:34 +00:00
alex.fritze%crocodile-clips.com
e10b5abf77 Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@152081 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-30 13:29:09 +00:00
alex.fritze%crocodile-clips.com
fdc9d79612 Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@151946 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-28 09:45:44 +00:00
alex.fritze%crocodile-clips.com
4de67abf10 Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@151906 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-27 17:13:01 +00:00
alex.fritze%crocodile-clips.com
cc75e15965 Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@151795 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-24 14:01:59 +00:00
alex.fritze%crocodile-clips.com
e979c1cf21 Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@151694 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-22 16:34:10 +00:00
alex.fritze%crocodile-clips.com
f8611f937c Very dumb rectangular region code to make dynamic SVG work.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@151692 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-22 16:13:20 +00:00
alex.fritze%crocodile-clips.com
e35670d62a Fix merge bustage (nsIPresContext decomtamination).
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@151657 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-21 21:24:43 +00:00
alex.fritze%crocodile-clips.com
9e2217f461 Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@151648 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-21 19:02:19 +00:00
tor%cs.brown.edu
91e2399c96 Fix indentation/tabbing
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@151610 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-20 23:56:28 +00:00
tor%cs.brown.edu
8f3e73639d Cairo rendering backend
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@151588 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-20 17:36:28 +00:00
alex.fritze%crocodile-clips.com
046f8dece7 Fix merge bustage (calling convention for nsSVGElement::SetBindingParent)
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@151511 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-18 19:04:06 +00:00
alex.fritze%crocodile-clips.com
e79a6e13e3 Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@151498 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-18 13:54:50 +00:00
alex.fritze%crocodile-clips.com
8fcb11ad3a Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@151461 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-17 20:39:05 +00:00
alex.fritze%crocodile-clips.com
960045ff84 Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@151305 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-14 15:42:43 +00:00
alex.fritze%crocodile-clips.com
77bfb08cf7 Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@151198 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-12 12:12:32 +00:00
alex.fritze%crocodile-clips.com
0052a7429d Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@151084 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-09 18:01:32 +00:00
alex.fritze%crocodile-clips.com
9c19eed4e5 Remove text-top and text-bottom as possible values for dominant-baseline (SVG 1.1 standard).
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@151028 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-08 13:09:27 +00:00
alex.fritze%crocodile-clips.com
c200d1d972 Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@150917 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-06 10:50:48 +00:00
alex.fritze%crocodile-clips.com
9afbd254bf Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@150802 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-31 15:20:21 +00:00
alex.fritze%crocodile-clips.com
ed3879b9e5 Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@150733 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-25 14:07:33 +00:00
alex.fritze%crocodile-clips.com
a6541de133 Review changes by dbaron.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@150637 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-22 21:54:52 +00:00
alex.fritze%crocodile-clips.com
7dc43318c1 Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@150610 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-21 19:10:04 +00:00
alex.fritze%crocodile-clips.com
34b5f88123 Regenerate.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@150449 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-18 22:42:12 +00:00
alex.fritze%crocodile-clips.com
c0f1761da3 Windows needs an even more involved test for <Gdiplus.h>. Hopefully 3rd time lucky.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@150448 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-18 22:37:29 +00:00
alex.fritze%crocodile-clips.com
927c4d9146 Regenerate.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@150447 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-18 22:02:33 +00:00
alex.fritze%crocodile-clips.com
1ceed5c792 Use more elaborate test to work around an apparent Windows-problem with AC_CHECK_HEADER.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@150446 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-18 21:58:58 +00:00
alex.fritze%crocodile-clips.com
bc9163fb4c Changes to config files incorporating bsdmedberg's feedback.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@150422 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-18 17:19:59 +00:00
alex.fritze%crocodile-clips.com
953d822a11 As per Jonas Sicking's comments on bug#182533, move SVG nsDOMClassInfoID items to the end, so not to impact binary compatibility.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@150398 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-17 19:51:20 +00:00
alex.fritze%crocodile-clips.com
51bc2cdde5 Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@150330 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-15 21:28:20 +00:00
alex.fritze%crocodile-clips.com
2d9dc00996 Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@150026 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-04 11:50:08 +00:00
alex.fritze%crocodile-clips.com
668d0513c8 Merge from trunk
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@149979 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-03 16:59:33 +00:00
alex.fritze%crocodile-clips.com
42d45c1af7 Fix merge bustage (bug#226887). Patch by <basic@mozillanews.org>.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@149809 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-27 07:40:31 +00:00
alex.fritze%crocodile-clips.com
c7bdc1a0bb Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@149724 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-25 07:52:55 +00:00
alex.fritze%crocodile-clips.com
3026c2125b Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@149613 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-21 14:11:44 +00:00
alex.fritze%crocodile-clips.com
fe04044f4b Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@149546 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-19 09:28:42 +00:00
alex.fritze%crocodile-clips.com
547ee9f021 Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@149488 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-18 07:45:43 +00:00
alex.fritze%crocodile-clips.com
29c75d807e Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@149427 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-17 09:43:28 +00:00
alex.fritze%crocodile-clips.com
c1a8588436 Correct CSS keyword.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@149400 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-16 07:46:58 +00:00
alex.fritze%crocodile-clips.com
1d5b321391 Implement 'shape-rendering' property.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@149378 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-15 23:34:51 +00:00
alex.fritze%crocodile-clips.com
0e4acc3679 Make sure fill and stroke are up-to-date when hittesting.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@149371 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-15 22:16:43 +00:00
alex.fritze%crocodile-clips.com
54f047805b Implement 'pointer-events' property.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@149359 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-15 15:45:48 +00:00
alex.fritze%crocodile-clips.com
1c6d9d1cd3 Fix merge bustage related to bug #225060.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@149355 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-15 13:36:20 +00:00
alex.fritze%crocodile-clips.com
c66846744a Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@149354 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-15 11:15:19 +00:00
alex.fritze%crocodile-clips.com
79c45adec4 Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@149352 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-15 10:45:30 +00:00
alex.fritze%crocodile-clips.com
6ed228a9b6 Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@149296 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-14 11:33:56 +00:00
alex.fritze%crocodile-clips.com
64ddfa4c0a Fix merge bustage.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@149244 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-13 16:27:28 +00:00
alex.fritze%crocodile-clips.com
22256a2fd4 Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@149215 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-12 20:49:57 +00:00
alex.fritze%crocodile-clips.com
259eecb7d8 Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@148487 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-30 01:31:31 +00:00
alex.fritze%crocodile-clips.com
51c25bdd5c Remove obsolete presentation attribute code (#111317).
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@148304 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-23 01:52:04 +00:00
alex.fritze%crocodile-clips.com
314472e423 Fix merge bustage (GetBaseURL signature change).
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@148280 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-22 10:55:29 +00:00
alex.fritze%crocodile-clips.com
4c70758b42 Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@148268 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-22 07:18:21 +00:00
alex.fritze%crocodile-clips.com
44ac2127f5 Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@148145 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-20 06:27:49 +00:00
alex.fritze%crocodile-clips.com
6e77e63e9e Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@147950 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-14 08:39:44 +00:00
alex.fritze%crocodile-clips.com
de8fdfefd2 Don't render elements in <defs> section (bug#216566). Patch by <darryl@tzap.ca>.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@147753 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-08 12:49:12 +00:00
alex.fritze%crocodile-clips.com
4ee5a11f4e Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@147618 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-06 10:29:54 +00:00
alex.fritze%crocodile-clips.com
5fc6682a4c Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@147525 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-03 08:25:27 +00:00
alex.fritze%crocodile-clips.com
b4f27e28e5 Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@147506 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-02 08:47:22 +00:00
alex.fritze%crocodile-clips.com
cd8b020073 Fix gcc-3.3.1 compile failure (missing return value). Patch by John Ellson <ellson@research.att.com>.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@147399 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-28 11:17:00 +00:00
alex.fritze%crocodile-clips.com
e3ea8752b7 Fix merge bustage.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@147398 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-28 10:40:07 +00:00
alex.fritze%crocodile-clips.com
4192300b04 Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@147365 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-27 17:55:33 +00:00
alex.fritze%crocodile-clips.com
97449ea51e Fix merge bustage.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@147262 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-24 21:37:38 +00:00
alex.fritze%crocodile-clips.com
455ea0ba74 Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@147245 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-24 14:29:36 +00:00
alex.fritze%crocodile-clips.com
d68731e18f Add/change some headers to get build to work for objdir builds.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@147040 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-18 23:38:10 +00:00
alex.fritze%crocodile-clips.com
50f30b6c10 Add files needed for svg freetype text renderer.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@147039 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-18 23:13:48 +00:00
alex.fritze%crocodile-clips.com
042951fa82 Add new files for svg freetype text renderer.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@147038 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-18 22:10:35 +00:00
alex.fritze%crocodile-clips.com
8e8e2f5071 Add freetype functions needed for svg text rendering engine.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@147037 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-18 22:07:27 +00:00
alex.fritze%crocodile-clips.com
c10756872b Add freetype text rendering engine.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@147036 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-18 22:05:30 +00:00
alex.fritze%crocodile-clips.com
eac86043fd Fix swapped colors on Windows.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@146953 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-16 12:28:25 +00:00
alex.fritze%crocodile-clips.com
472042d899 Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@146897 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-15 10:02:45 +00:00
alex.fritze%crocodile-clips.com
1ca574741e Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@146867 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-14 16:35:53 +00:00
alex.fritze%crocodile-clips.com
b80e5e116d change glyph to path in the doxygen comments.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@146669 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-10 07:55:58 +00:00
alex.fritze%crocodile-clips.com
8527a7b190 Add some doxygen documentation.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@146668 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-10 07:43:04 +00:00
alex.fritze%crocodile-clips.com
ab22154a1b Add some doxygen documentation.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@146652 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-09 09:12:21 +00:00
alex.fritze%crocodile-clips.com
2f0e0d8ecd Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@146628 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-08 10:40:46 +00:00
(no author)
be4d0346bc This commit was manufactured by cvs2svn to create branch
'SVG_20020806_BRANCH'.

git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@146619 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-07 22:24:22 +00:00
alex.fritze%crocodile-clips.com
b65a04d37c Fix gdi+ renderer's font matching code (the old method would not find
certain fonts). Make sure GDI+ only gets init'ed/shutdown once;
generic font objects don't work after re-initialization.


git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@146484 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-31 18:36:43 +00:00
alex.fritze%crocodile-clips.com
f40ce4d8f6 add branchdiff_svg target
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@146299 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-25 09:53:06 +00:00
alex.fritze%crocodile-clips.com
086ba3f31f Merge from trunk
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@146050 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-15 10:57:34 +00:00
alex.fritze%crocodile-clips.com
29fdff7f17 (hopefully) fix colors on mac
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@146046 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-15 09:21:52 +00:00
alex.fritze%crocodile-clips.com
4083d65a98 fix squashed rendering on mac
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@146044 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-15 08:48:57 +00:00
alex.fritze%crocodile-clips.com
65ad96443a Add mac-specific libart bitmap implementation to list of new files.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@145966 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-13 18:01:41 +00:00
alex.fritze%crocodile-clips.com
fd21bb7f47 add mac-specific libart bitmap to fix svg rendering on macos.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@145965 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-13 17:58:39 +00:00
alex.fritze%crocodile-clips.com
fa860c5c6c change method signature in preparation for mac libart bitmap implementation.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@145958 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-13 14:23:53 +00:00
alex.fritze%crocodile-clips.com
9af81d858e Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@145955 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-13 12:29:58 +00:00
alex.fritze%crocodile-clips.com
a33a841b33 Fix dynamic positioning for <text>-elements
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@145934 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-13 00:01:34 +00:00
alex.fritze%crocodile-clips.com
3eec392591 Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@145661 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-06 14:35:04 +00:00
alex.fritze%crocodile-clips.com
af4c60ffc9 Add missing addref.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@145433 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-31 21:01:28 +00:00
alex.fritze%crocodile-clips.com
83540119ab Merge from trunk
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@145424 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-31 15:46:58 +00:00
alex.fritze%crocodile-clips.com
7dfae6e1ee Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@145397 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-30 21:51:09 +00:00
alex.fritze%crocodile-clips.com
1ee8e063cd fix merge bustage.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@145343 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-29 19:31:46 +00:00
alex.fritze%crocodile-clips.com
f5460cca5a Merge from trunk
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@145328 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-29 14:32:41 +00:00
alex.fritze%crocodile-clips.com
d0c9edc243 Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@145232 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-26 15:30:24 +00:00
alex.fritze%crocodile-clips.com
ffc95aff9d Merge from trunk
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@145112 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-23 11:28:52 +00:00
alex.fritze%crocodile-clips.com
62f6f0346c Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@145010 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-20 22:33:34 +00:00
alex.fritze%crocodile-clips.com
90ca863185 Merge from trunk
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@144970 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-19 13:04:52 +00:00
alex.fritze%crocodile-clips.com
6e88127a8f Merge from trunk
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@144943 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-18 09:15:22 +00:00
alex.fritze%crocodile-clips.com
be67909eab Merge from trunk
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@144910 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-16 22:39:34 +00:00
alex.fritze%crocodile-clips.com
82e4c9b535 Remove debug spam
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@144899 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-16 11:47:53 +00:00
alex.fritze%crocodile-clips.com
fc1c3e7b5a Switch gtk2 build to use pixbuf instead of nsIImage. Enables foreignObject support.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@144896 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-16 08:45:28 +00:00
alex.fritze%crocodile-clips.com
7a52dff6ba Fix gtk2 build.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@144816 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-14 07:24:04 +00:00
alex.fritze%crocodile-clips.com
d543acb064 Fork off a libart bitmap class for gtk2, so that we can get foreignObject support working at least for gtk2
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@144797 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-13 14:16:48 +00:00
alex.fritze%crocodile-clips.com
bf87fd6971 Fix merge bustage.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@144796 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-13 13:54:05 +00:00
alex.fritze%crocodile-clips.com
4c5208689a Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@144772 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-12 13:28:37 +00:00
alex.fritze%crocodile-clips.com
a0450540ec Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@144647 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-09 12:38:08 +00:00
alex.fritze%crocodile-clips.com
5cc861c2fe Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@144462 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-04 08:14:10 +00:00
alex.fritze%crocodile-clips.com
0b284c67b0 Fix CSS_PROP_SVGRESET merge bustage.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@144427 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-03 10:36:38 +00:00
alex.fritze%crocodile-clips.com
f8ba312ce3 Fix merge bustage.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@144426 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-03 09:28:47 +00:00
alex.fritze%crocodile-clips.com
427669723f Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@144425 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-03 09:22:31 +00:00
alex.fritze%crocodile-clips.com
89967ac8f4 Make sure all codepaths of NS_NewSVGDocument return a value. Fixes bug#160882.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@144392 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-02 20:55:02 +00:00
alex.fritze%crocodile-clips.com
fd40593907 Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@144357 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-01 21:31:06 +00:00
alex.fritze%crocodile-clips.com
57f0a3a81c Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@144221 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-27 18:14:16 +00:00
alex.fritze%crocodile-clips.com
8240ca9999 Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@144113 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-24 22:15:10 +00:00
alex.fritze%crocodile-clips.com
4ded2f55b2 Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@143989 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-20 11:37:50 +00:00
alex.fritze%crocodile-clips.com
2da93c3af0 Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@143934 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-19 16:13:14 +00:00
alex.fritze%crocodile-clips.com
b9198d5370 Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@143758 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-16 14:18:50 +00:00
alex.fritze%crocodile-clips.com
dafa06a08f Fix merge bustage.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@143757 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-16 12:11:20 +00:00
alex.fritze%crocodile-clips.com
1b95983f33 Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@143750 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-16 09:34:27 +00:00
alex.fritze%crocodile-clips.com
a8544911ea Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@143581 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-11 09:26:50 +00:00
alex.fritze%crocodile-clips.com
72bc30a9b9 Make sure nsCSSDeclaration is initialized before using it.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@143469 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-09 18:41:39 +00:00
alex.fritze%crocodile-clips.com
13b6c2e76e Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@143451 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-09 14:02:10 +00:00
alex.fritze%crocodile-clips.com
aa455e49df Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@143283 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-04 09:37:51 +00:00
alex.fritze%crocodile-clips.com
79d671e320 Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@143168 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-02 07:08:04 +00:00
alex.fritze%crocodile-clips.com
4d1d2d49fb Pass offset to nsIRenderingContext::DrawTile to account for interface change
introduced in bug#194791.


git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@143160 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-01 21:43:48 +00:00
alex.fritze%crocodile-clips.com
b3a90c6efd Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@143143 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-31 18:01:30 +00:00
alex.fritze%crocodile-clips.com
a6dba709e9 Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@143135 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-31 09:31:40 +00:00
alex.fritze%crocodile-clips.com
d06f55bf97 merge from trunk
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@142610 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-19 13:20:51 +00:00
alex.fritze%crocodile-clips.com
4438b008ef Merge from trunk
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@142499 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-15 13:01:15 +00:00
alex.fritze%crocodile-clips.com
4b0f47e701 merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@142305 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-10 19:17:13 +00:00
alex.fritze%crocodile-clips.com
35695feb70 make sure we get scrollbars when svg canvas (as determined by
width/height attribs on outer svg element) is larger than window.


git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@142002 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-01 09:09:39 +00:00
alex.fritze%crocodile-clips.com
91a9d59338 merge from trunk
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@141969 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-30 16:02:06 +00:00
alex.fritze%crocodile-clips.com
7264f9e3a9 merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@141879 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-27 13:56:42 +00:00
alex.fritze%crocodile-clips.com
f3bf9e5147 add patched makefile to branch, so that new dom idl files are found ok
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@141690 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-23 12:42:36 +00:00
alex.fritze%crocodile-clips.com
c699807e02 Add some files in preparation for <svg:image> support. Change SVG
mapped attribute handling to support other namespaces (e.g. xlink).


git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@141688 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-23 11:29:32 +00:00
alex.fritze%crocodile-clips.com
235a9071f2 merge from trunk
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@141684 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-23 08:23:22 +00:00
alex.fritze%crocodile-clips.com
b9fc6ecaeb merge from trunk
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@141603 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-22 17:26:08 +00:00
alex.fritze%crocodile-clips.com
974c44a4d9 fix merge bustage by adding missing include directory.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@141522 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-21 18:15:05 +00:00
alex.fritze%crocodile-clips.com
91772cd113 merge from trunk
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@141454 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-19 17:40:28 +00:00
alex.fritze%crocodile-clips.com
49c1920d2a merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@141172 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-15 09:46:50 +00:00
alex.fritze%crocodile-clips.com
18bed169d3 merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@141116 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-14 08:49:19 +00:00
alex.fritze%crocodile-clips.com
21b0e8f669 merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@141068 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-12 16:33:59 +00:00
alex.fritze%crocodile-clips.com
5605dc8ec9 merge from trunk
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@140972 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-10 15:44:53 +00:00
alex.fritze%crocodile-clips.com
9f668a6437 merge from trunk
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@140750 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-05 20:18:52 +00:00
alex.fritze%crocodile-clips.com
d29ed4bbb1 merge from trunk
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@140392 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-27 18:23:15 +00:00
alex.fritze%crocodile-clips.com
0c997b104a merge from trunk
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@140295 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-25 23:39:01 +00:00
alex.fritze%crocodile-clips.com
0bbe559f46 fixing faulty configure tests.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@139693 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-18 20:20:25 +00:00
alex.fritze%crocodile-clips.com
cf88193292 fix merge bustage
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@139681 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-18 18:30:52 +00:00
alex.fritze%crocodile-clips.com
ac4ea9fb91 fix merge bustage.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@139680 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-18 18:29:31 +00:00
alex.fritze%crocodile-clips.com
015a1fa3b8 merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@139666 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-18 13:15:21 +00:00
alex.fritze%crocodile-clips.com
95f35b8965 merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@139660 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-18 08:48:36 +00:00
alex.fritze%crocodile-clips.com
25a6be530c remove NS_INIT_ISUPPORTS. patch by David Avery <daa@rm.incc.net>
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@139090 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-07 12:38:23 +00:00
alex.fritze%crocodile-clips.com
e5638cf3e8 merge from trunk
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@139086 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-07 08:57:20 +00:00
alex.fritze%crocodile-clips.com
8b0455794d merge from trunk
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@138965 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-05 20:46:22 +00:00
alex.fritze%crocodile-clips.com
dc3b61e2cf fix merge bustage
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@138384 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-24 22:31:35 +00:00
alex.fritze%crocodile-clips.com
447b63ea7c Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@138357 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-24 19:34:23 +00:00
alex.fritze%crocodile-clips.com
536d82e970 fix skewX/skeyY transform-attribute bug
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@137625 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-10 15:56:28 +00:00
alex.fritze%crocodile-clips.com
ac5dfaefe1 fix configure script on Win
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@137537 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-07 16:30:50 +00:00
alex.fritze%crocodile-clips.com
f8dfbe75d3 add support for viewBox attribute.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@137533 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-07 15:29:17 +00:00
alex.fritze%crocodile-clips.com
608f71a6e6 merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@137315 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-03 09:50:05 +00:00
alex.fritze%crocodile-clips.com
3211b86142 merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@136967 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-26 12:17:25 +00:00
alex.fritze%crocodile-clips.com
9fb795520f fix merge bustage.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@136855 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-22 22:10:04 +00:00
alex.fritze%crocodile-clips.com
8896426594 merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@136846 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-22 17:32:19 +00:00
(no author)
d058216a99 This commit was manufactured by cvs2svn to create branch
'SVG_20020806_BRANCH'.

git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@135994 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-08 19:35:37 +00:00
alex.fritze%crocodile-clips.com
1b472c4a75 adjust code for nsIRenderingContext changes described in bug #88685.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@135846 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-04 12:49:28 +00:00
alex.fritze%crocodile-clips.com
79cb157ab0 Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@135763 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-02 09:39:21 +00:00
alex.fritze%crocodile-clips.com
304af1c41e Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@135551 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-21 16:48:36 +00:00
alex.fritze%crocodile-clips.com
798558fe81 Fix for weird VC++ compiler issue described in bug#122363, comment #2
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@135344 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-16 10:49:47 +00:00
alex.fritze%crocodile-clips.com
77a8683e17 Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@135325 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-15 17:23:57 +00:00
alex.fritze%crocodile-clips.com
797e2cb2bd Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@134841 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-05 10:05:35 +00:00
alex.fritze%crocodile-clips.com
51fc41a86e merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@134684 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-03 14:41:01 +00:00
alex.fritze%crocodile-clips.com
ec22386ff1 Prevent nsVoidArray exceptions. Patch by james.turner@crocodile-clips.com.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@134585 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-29 15:30:29 +00:00
alex.fritze%crocodile-clips.com
9a51483f87 Remove pointless assertion
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@134584 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-29 15:29:06 +00:00
alex.fritze%crocodile-clips.com
7d7f17f67f Add support for dynamic presentation attributes.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@134570 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-28 16:19:28 +00:00
alex.fritze%crocodile-clips.com
7893a5f58d some support for presentation attributes.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@134554 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-28 01:14:33 +00:00
alex.fritze%crocodile-clips.com
6714715bfd Avoid crash by not passing empty rect to libart uta constructor.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@134450 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-26 07:56:19 +00:00
alex.fritze%crocodile-clips.com
5d7a3d611a Merge from trunk
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@134404 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-25 14:44:23 +00:00
alex.fritze%crocodile-clips.com
31e1b7eff1 Define art_alloc etc as functions instead of macros to ensure that we always get the same allocator, even when calling these functions from parts of Mozilla that have been linked to a different runtime library (under Windows this would cause memory corruption).
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@134403 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-25 14:17:22 +00:00
(no author)
9124109e31 This commit was manufactured by cvs2svn to create branch
'SVG_20020806_BRANCH'.

git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@134399 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-25 11:21:23 +00:00
alex.fritze%crocodile-clips.com
2d94942f5b Fix debugging issue on Windows.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@134190 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-20 12:25:32 +00:00
alex.fritze%crocodile-clips.com
42e17479e2 Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@134178 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-20 08:09:03 +00:00
alex.fritze%crocodile-clips.com
f8db85b93f Remove redundant flush
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@134053 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-18 23:03:04 +00:00
alex.fritze%crocodile-clips.com
dcccdaa5f4 stub out glyph classes so that the libart backend doesn't crash for documents with text elements
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@134033 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-18 03:26:26 +00:00
alex.fritze%crocodile-clips.com
c81a731259 stub out glpyh classes, so that the libart backend doesn't crash for documents with <text>
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@134032 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-18 03:22:53 +00:00
alex.fritze%crocodile-clips.com
0858c77a11 merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@134030 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-18 02:46:20 +00:00
alex.fritze%crocodile-clips.com
c9a5da2a83 new files to abstract platform dependent implementation of libart renderer
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@134025 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-17 23:24:20 +00:00
alex.fritze%crocodile-clips.com
5b307b5578 Refactor code to allow for ForeignObject rendering under Libart backend.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@134024 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-17 23:18:25 +00:00
alex.fritze%crocodile-clips.com
962165a230 Hack to get correct colors under Windows.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@133972 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-16 13:46:45 +00:00
alex.fritze%crocodile-clips.com
6a7e93fc0d merge from trunk
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@133900 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-15 12:38:23 +00:00
alex.fritze%crocodile-clips.com
8fe31aedde add missing exports.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@133895 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-15 08:25:12 +00:00
alex.fritze%crocodile-clips.com
925e098bd9 adding libart renderer makefile; forgotten first time round
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@133892 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-15 07:25:47 +00:00
alex.fritze%crocodile-clips.com
185189929a Initial checkin of new libart-based rendering backend. No text or foreignObject support yet.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@133863 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-14 23:49:57 +00:00
alex.fritze%crocodile-clips.com
30a89ae28b add initialization code for compilers that don't set data to zero by default.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@133858 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-14 22:42:25 +00:00
alex.fritze%crocodile-clips.com
67ccf0e802 sync to latest gnome source: add forgotten file.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@133781 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-13 22:46:38 +00:00
alex.fritze%crocodile-clips.com
bd2913e8d2 Adding vpath filter pipeline code
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@133751 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-13 15:34:50 +00:00
alex.fritze%crocodile-clips.com
8692a724f5 sync libart to latest gnome sources
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@133749 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-13 14:52:58 +00:00
alex.fritze%crocodile-clips.com
68b200682c fix build bustage again
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@133664 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-12 18:19:22 +00:00
alex.fritze%crocodile-clips.com
be49a5c533 fix build bustage
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@133661 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-12 18:04:13 +00:00
alex.fritze%crocodile-clips.com
11637c0a67 Merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@133659 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-12 16:50:40 +00:00
alex.fritze%crocodile-clips.com
24bb8e9051 change update logic
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@133656 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-12 15:33:27 +00:00
alex.fritze%crocodile-clips.com
8afe9be4be more text selection support
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@133653 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-12 11:58:38 +00:00
alex.fritze%crocodile-clips.com
d645380358 remove obsolete file reference.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@132777 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-31 15:49:28 +00:00
alex.fritze%crocodile-clips.com
24a732e8fb Some cleanup and start of implementation of text selection support.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@132773 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-31 14:57:13 +00:00
alex.fritze%crocodile-clips.com
63403c7502 Rename 'rendercontext' to 'canvas'. Part 2/2
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@132588 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-28 14:20:43 +00:00
alex.fritze%crocodile-clips.com
9738c30437 Rename 'rendercontext' to 'canvas', part 1/2
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@132587 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-28 14:17:58 +00:00
alex.fritze%crocodile-clips.com
4c364ca78a Implement text-rendering CSS property.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@132583 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-28 09:09:29 +00:00
alex.fritze%crocodile-clips.com
488b81738e Add new target to dump the list of branch files.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@132571 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-27 20:13:52 +00:00
alex.fritze%crocodile-clips.com
bbe5320722 Implement SVGTextContentElement::getExtentOfChar() & some cleanup.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@132531 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-25 17:20:40 +00:00
alex.fritze%crocodile-clips.com
e05f8b8f47 Fix printing issues.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@132515 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-25 08:06:13 +00:00
alex.fritze%crocodile-clips.com
92f6a255c2 Fix build problems when compiling with WIN32_LEAN_AND_MEAN
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@132397 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-23 07:54:06 +00:00
alex.fritze%crocodile-clips.com
22c75f27ec merge from trunk
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@132324 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-21 16:53:50 +00:00
alex.fritze%crocodile-clips.com
0623aff329 make reported bounding box empty for zero-length.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@132142 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-17 09:23:24 +00:00
alex.fritze%crocodile-clips.com
293dbbcd1f fix getBBox() for changes during suspended redraws
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@132141 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-17 09:21:45 +00:00
alex.fritze%crocodile-clips.com
545a72a5d0 handle null regions.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@132078 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-16 11:52:14 +00:00
alex.fritze%crocodile-clips.com
0c7c1c04f3 remove debug spam.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@132023 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-15 16:59:30 +00:00
alex.fritze%crocodile-clips.com
4372239cec Fix build bustage.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@132022 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-15 14:42:30 +00:00
alex.fritze%crocodile-clips.com
02927da3b6 merge from trunk; fix redraw issues when dynamically removing content; implement getBBox() for <text>; back out xbl bindings.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@132018 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-15 13:09:27 +00:00
alex.fritze%crocodile-clips.com
656d7c9457 Increase Gdiplus performance by forcing creation of surfaces with pixel access. switch on with SVG_FORCE_PIXEL_ACCESS_SURFACES
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@132017 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-15 12:59:42 +00:00
alex.fritze%crocodile-clips.com
37e1912c6f Fix redraw bug. Patch by james.turner@crocodile-clips.com
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@132016 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-15 12:49:04 +00:00
(no author)
bfb6485edc This commit was manufactured by cvs2svn to create branch
'SVG_20020806_BRANCH'.

git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@131581 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-09 07:03:16 +00:00
alex.fritze%crocodile-clips.com
deb2864a2a Hack to work around bug#172574
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@131155 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-04 13:44:51 +00:00
alex.fritze%crocodile-clips.com
4c014b265d Fix merge bustage.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@131108 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-03 22:23:36 +00:00
alex.fritze%crocodile-clips.com
c156d4f76f merge from trunk, add paint timing (switch on with SVG_DEBUG_PAINT_TIMING) and backbuffering (switch on with SVG_GDIPLUS_ENABLE_OFFSCREEN_BUFFER)
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@130880 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-01 08:47:13 +00:00
alex.fritze%crocodile-clips.com
cfa1889281 merge from trunk; make work with MOZ_OBJDIR
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@130296 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-23 22:10:51 +00:00
alex.fritze%crocodile-clips.com
0b2ab35cf7 fix method call
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@129082 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-09 07:11:17 +00:00
alex.fritze%crocodile-clips.com
1e9640b70f merge from trunk
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@129075 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-09 00:24:39 +00:00
alex.fritze%crocodile-clips.com
c22cb2a477 Fixing build bustage.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@128588 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-30 22:28:02 +00:00
alex.fritze%crocodile-clips.com
bba4e3b06b merge from trunk, some small bugfixes and addition of xbl bindings
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@128581 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-30 20:34:54 +00:00
alex.fritze%crocodile-clips.com
121e7c48d0 Fix for bug #141252: SVG crashes on loading image/svg+xml files.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@127148 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-13 10:07:08 +00:00
alex.fritze%crocodile-clips.com
ee7e2b52dd Removing obsolete build file.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@127094 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-12 21:11:15 +00:00
alex.fritze%crocodile-clips.com
7183ee1812 Set '-f' on CVS_CO_FLAGS to ensure that mozconfig2client-mk, etc. can be checked out.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@127073 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-12 13:26:40 +00:00
alex.fritze%crocodile-clips.com
578afc9476 Make client.mk pull SVG_20020806_BRANCH-minibranch.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@127072 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-12 12:59:50 +00:00
alex.fritze%crocodile-clips.com
a968ce91ff Converting to gmake.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@127071 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-12 12:56:23 +00:00
(no author)
40062f7b35 This commit was manufactured by cvs2svn to create branch
'SVG_20020806_BRANCH'.

git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@126989 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-10 09:10:07 +00:00
alex.fritze%crocodile-clips.com
e6b8ae652f merge from trunk.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@126767 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-08 16:18:58 +00:00
alex.fritze%crocodile-clips.com
cb5ac756a1 Don't pull in libart for gdiplus build
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@126539 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-06 21:49:55 +00:00
alex.fritze%crocodile-clips.com
b859c53926 merge from trunk
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@126528 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-06 18:05:43 +00:00
alex.fritze%crocodile-clips.com
229b44fa8e pull SVG_20020806_BRANCH
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@126514 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-06 13:47:21 +00:00
alex.fritze%crocodile-clips.com
7fcf2f29a1 initial checkin of svg code with new modularized rendering backend. Win32 only for now. Needs recent MS platform SDK to build; gdi+ to run (gdiplus.dll in bin directory on Win98/NT/2000). Doesn't use libart.
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@126512 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-06 13:45:56 +00:00
alex.fritze%crocodile-clips.com
102f76a050 removing obsolete files
git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@126493 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-06 12:21:56 +00:00
(no author)
9844f75573 This commit was manufactured by cvs2svn to create branch
'SVG_20020806_BRANCH'.

git-svn-id: svn://10.0.0.236/branches/SVG_20020806_BRANCH@125892 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-26 20:57:25 +00:00
jkeiser%netscape.com
325bff7164 Change ns(I)GfxTextControlFrame(2) -> ns(I)TextControlFrame (bug 129909), r=rods
@netscape.com, sr=bzbarsky@mit.edu, a=asa


git-svn-id: svn://10.0.0.236/trunk@125891 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-26 20:57:24 +00:00
gerv%gerv.net
f20e59a0fe Bug 158658 - relogin.cgi should use a template. This also adds the ability to localise messages. Patch by gerv; r=burnus.
git-svn-id: svn://10.0.0.236/trunk@125888 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-26 20:49:04 +00:00
gerv%gerv.net
11e488111d Bug 150776 - Remembered query options need regrouping. Patch by gerv; r=jouni, burnus.
git-svn-id: svn://10.0.0.236/trunk@125887 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-26 20:44:46 +00:00
jkeiser%netscape.com
b23089d0ce Move nsIHTMLContent.h into content/html/content/public (bug 77069), r=heikki, sr=jst, a=asa
git-svn-id: svn://10.0.0.236/trunk@125886 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-26 20:44:02 +00:00
gerv%gerv.net
53af493081 Bug 106640 - allow translation of system messages. Patch by gerv; r=burnus.
git-svn-id: svn://10.0.0.236/trunk@125883 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-26 20:39:17 +00:00
gerv%gerv.net
55840407d6 Bug 158497 - Templatise colchange.cgi. Patch by gerv; r=burnus.
git-svn-id: svn://10.0.0.236/trunk@125882 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-26 20:37:06 +00:00
pinkerton%netscape.com
88412f5cca Separating the personal toolbar from the sidebar selection. Bookmarks info
controller is now a singleton that lives forever. Personal toolbar context
menus do the right thing. (bug 148932).


git-svn-id: svn://10.0.0.236/trunk@125881 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-26 20:28:45 +00:00
leaf%mozilla.org
a305d85996 fix for bug 156577, r=chak. simple change to check for directory existence
before mkdir commands.


git-svn-id: svn://10.0.0.236/trunk@125879 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-26 19:31:06 +00:00
naving%netscape.com
781e9c65e2 42090 most of the work for this patch done by joshua.xia@sun.com r=naving sr=bienvenu a=asa Make cancel in
filterListDialog not remember changes.


git-svn-id: svn://10.0.0.236/trunk@125877 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-26 19:27:30 +00:00
mcafee%netscape.com
2169fd9093 fixing logic in pageload test for 2nd attempt case.
git-svn-id: svn://10.0.0.236/trunk@125875 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-26 19:10:58 +00:00
pinkerton%netscape.com
924efd456d Fixes crash when selecting text during URL load, adds undo/redo to url bar,
reduces the number of times we load about:blank to 1 per window, fixes
unicode characters in bookmarks. (bug 149198, 153263, 155710)


git-svn-id: svn://10.0.0.236/trunk@125873 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-26 18:50:01 +00:00
gerv%gerv.net
e18ec1cbb7 Bug 159565 - fix hash initialisation error caused by my duff patch for accesskeys. Patch by burnus; 2xr=gerv.
git-svn-id: svn://10.0.0.236/trunk@125870 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-26 18:22:18 +00:00
wtc%netscape.com
43d17bd1d6 Fixed the comment. The length of the secret may be larger than 64 bytes.
git-svn-id: svn://10.0.0.236/trunk@125869 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-26 18:20:59 +00:00
gerv%gerv.net
c2a07f8ca4 ... and = instead of =>.
git-svn-id: svn://10.0.0.236/trunk@125868 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-26 18:20:58 +00:00
gerv%gerv.net
1b57318c55 Fixing bustage caused by ; instead of , in burnus' patch.
git-svn-id: svn://10.0.0.236/trunk@125867 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-26 18:20:13 +00:00
gerv%gerv.net
e5f79c89d2 Bug 158651 - currenttime should use time2str. Patch by burnus@gmx.de; 2xr=gerv.
git-svn-id: svn://10.0.0.236/trunk@125865 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-26 18:16:39 +00:00
gerv%gerv.net
a8ca30121c Bug 123740 - Add <label> to email prefs. Patch by burnus@gmx.de; 2xr=gerv.
git-svn-id: svn://10.0.0.236/trunk@125864 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-26 18:11:45 +00:00
yokoyama%netscape.com
ff9f774c5b Bug 156979
XBL emulation of marquee.
/r=nhotta, timeless, /sr=jst, /a=asa


git-svn-id: svn://10.0.0.236/trunk@125863 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-26 17:47:16 +00:00
leaf%mozilla.org
f068dae85c adding new files from nsGfxTextControlFrame2.*; part of renaming in bug 129909
git-svn-id: svn://10.0.0.236/trunk@125861 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-26 17:17:00 +00:00
timeless%mac.com
03b6db2975 Bug 158790 - debug has printing prefs in a rendering group
patch by spiffonator@netscape.net r=timeless sr=alecf a=asa


git-svn-id: svn://10.0.0.236/trunk@125860 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-26 16:55:45 +00:00
nhotta%netscape.com
c49fae7638 Adding null check for mDocument before getting a document charset,
bug 159434, r=caillon, sr=jst, a=asa.


git-svn-id: svn://10.0.0.236/trunk@125859 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-26 16:45:45 +00:00
mikep%oeone.com
1456ece7b6 Fixes from OEoen calendar, removing duplicate and unused css attributes.
git-svn-id: svn://10.0.0.236/trunk@125858 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-26 15:19:22 +00:00
mikep%oeone.com
2651f6ccd4 Fixing so that outlook can import events mailed to other people.
Bug 159549.


git-svn-id: svn://10.0.0.236/trunk@125857 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-26 15:15:14 +00:00
ccarlen%netscape.com
a83072dd92 Bug 158126 - PPEmbed does not send activate events to Gecko. r=pink/sr=sfraser/a=asa.
git-svn-id: svn://10.0.0.236/trunk@125856 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-26 14:36:22 +00:00
mikep%oeone.com
fc977eaceb Fixing bug 159541.
git-svn-id: svn://10.0.0.236/trunk@125855 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-26 14:01:10 +00:00
mostafah%oeone.com
861d6bb2cb Checked in patch for bug 159458: [RFE] option to not save the Mozilla custom X- properties
git-svn-id: svn://10.0.0.236/trunk@125854 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-26 13:37:59 +00:00
cbiesinger%web.de
672499b3ae bug 155655 r=timeless sr=blake a=asa
Navigator preferences leave blank space where "make default browser" would be


git-svn-id: svn://10.0.0.236/trunk@125851 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-26 08:34:53 +00:00
peterlubczynski%netscape.com
725cbaf73e Fixing bug 152927: can't script any plugin in nested EMBED tag inside an OBJECT tag from onLoad handler -- CNET radio does not play with Real because SetSource is called from onLoad r=kmcclusk sr=dveditz a=asa
git-svn-id: svn://10.0.0.236/trunk@125845 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-26 03:48:24 +00:00
rginda%netscape.com
133a2f6ef8 bug 155328, "nsViewManager and nsPresShell are unaware of stacked event queues"
sr=jst, r=roc+mozilla@cs.cmu.edu, a=asa

make sure we always post new invalidate events to the topmost queue, and don't skip creating new reflow events just because we happen to have one an elder queue.


git-svn-id: svn://10.0.0.236/trunk@125843 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-26 03:31:56 +00:00
rginda%netscape.com
cd7bad237a bug 155328, "nsViewManager and nsPresShell are unaware of stacked event queues"
sr=rpotts, r=jst, a=asa

make sure we always post new reflow events to the topmost queue, and don't skip creating new reflow events just because we happen to have one an elder queue.


git-svn-id: svn://10.0.0.236/trunk@125842 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-26 03:29:07 +00:00
bzbarsky%mit.edu
59edb917bd Fix up the build stuff in there too. Not part of build.
git-svn-id: svn://10.0.0.236/trunk@125839 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-26 01:35:34 +00:00
bzbarsky%mit.edu
39acdb7a27 Updating interfaces to reflect new edition of the spec. Not part of build.
git-svn-id: svn://10.0.0.236/trunk@125838 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-26 01:30:33 +00:00
timeless%mac.com
518a0fb1b9 bug 157572 by alecf ports (os/2, xlib) bustage
git-svn-id: svn://10.0.0.236/trunk@125836 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-26 01:01:37 +00:00
bzbarsky%mit.edu
1ed31e83a7 Fix some build warnings. Bug 157378, patch by
Roland.Mainz@informatik.med.uni-giessen.de (Roland Mainz), r=bbaetz,
biesi, sr=bzbarsky, a=asa


git-svn-id: svn://10.0.0.236/trunk@125834 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-26 00:40:05 +00:00
bzbarsky%mit.edu
56707d69cd Backing out fix for bug 156072 due to regression bug 158792. r=caillon/sr=jst/a=asa
git-svn-id: svn://10.0.0.236/trunk@125833 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-26 00:35:15 +00:00
timeless%mac.com
cda8c2f36a bug 157572 by alecf busted bezilla
a=#bezilla,leaf for tinderbustage


git-svn-id: svn://10.0.0.236/trunk@125831 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-26 00:14:39 +00:00
cbiesinger%web.de
99426a9b40 bug 158789 patch by spiffonator@netscape.net r=blake sr=alecf a=asa
advanced has incomprehensible pref text


git-svn-id: svn://10.0.0.236/trunk@125822 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-25 22:03:13 +00:00
pinkerton%netscape.com
2a0f1b0336 Removing file, changed to .mm
git-svn-id: svn://10.0.0.236/trunk@125821 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-25 21:58:32 +00:00
pinkerton%netscape.com
910a803cc8 Move the pref controller to be a .mm file
git-svn-id: svn://10.0.0.236/trunk@125820 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-25 21:57:53 +00:00
pinkerton%netscape.com
8677e94998 Changing to be a .mm file so we can use c++ for writing out prefs
git-svn-id: svn://10.0.0.236/trunk@125819 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-25 21:56:33 +00:00
akkana%netscape.com
6a0a8efa86 142826: move to beginning of found pattern after a reverse find. Fix is from harry.lu@sun.com, r=me, sr=sfraser, a=asa
git-svn-id: svn://10.0.0.236/trunk@125818 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-25 21:49:42 +00:00
shrutiv%netscape.com
a1f6af4667 updating show example images
git-svn-id: svn://10.0.0.236/trunk@125817 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-25 21:48:14 +00:00
bryner%netscape.com
0c0cf9ecf3 Fix focus crasher resulting from the window's firstResponder pointing to a deleted NSView. Bug 159291, r/sr=hyatt. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@125815 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-25 21:31:51 +00:00
bryner%netscape.com
71e5a0d9ce Factor the nsIPromptService implementation out of CocoaBrowserService, and move it to using a generic factory. Clean up some #includes. Change AppComponents.cpp to a .mm file since it needs to include some cocoa headers. r=pinkerton.
git-svn-id: svn://10.0.0.236/trunk@125813 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-25 21:28:23 +00:00
shrutiv%netscape.com
56e1a45320 updating show example images
git-svn-id: svn://10.0.0.236/trunk@125811 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-25 21:10:39 +00:00
mostafah%oeone.com
b4d992cb02 Fixed bug 158957: DTSTAMP must use UTC time
and a bunch of indenting


git-svn-id: svn://10.0.0.236/trunk@125808 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-25 21:08:02 +00:00
smontagu%netscape.com
f0c487bee0 Fix crasher bug 158796, r=jkeiser, sr=jst, a=asa
git-svn-id: svn://10.0.0.236/trunk@125804 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-25 20:40:51 +00:00
timeless%mac.com
02bd51dca0 Bug 159070 installer claimed my everything install did not include PSM
r=ssu sr=dveditz a=asa


git-svn-id: svn://10.0.0.236/trunk@125803 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-25 20:40:32 +00:00
cbiesinger%web.de
a118c8a10f bug 158922 patch by spiffonator@netscape.net r=biesi sr=alecf a=asa
remove unused strings


git-svn-id: svn://10.0.0.236/trunk@125802 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-25 20:36:09 +00:00
timeless%mac.com
eb760368df Bug 158606 crash with -moz-opacity
patch by sergei_d@fi.tartu.ee r=timeless sr=blizzard (ports code) a=asa


git-svn-id: svn://10.0.0.236/trunk@125801 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-25 20:26:33 +00:00
dougt%netscape.com
93a121bec1 ProxyObjectCallInfo class is exported by many dso. r=darin, sr=alec, a=asa, b=158932
git-svn-id: svn://10.0.0.236/trunk@125800 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-25 20:13:06 +00:00
dougt%netscape.com
7383c167c4 nsICollection's nsQueryElementAt class is exported. r=darin, sr=alec, a=asa, b=158931
git-svn-id: svn://10.0.0.236/trunk@125798 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-25 20:12:18 +00:00
alecf%netscape.com
3c86efbaa2 fix for bug 159220 - make nsWindowDataSource be 64-bit friendly so we don't crash on Tru64
r=timeless, sr=brendan, a=asa


git-svn-id: svn://10.0.0.236/trunk@125797 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-25 20:02:33 +00:00
timeless%mac.com
9ba7855de7 Bug 157348 no AltGr recognised
patch by sergei_d@fi.tartu.ee r=timeless sr=blizzard (ports code) a=asa


git-svn-id: svn://10.0.0.236/trunk@125796 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-25 19:59:54 +00:00
alecf%netscape.com
6d5d0fa10e fix bustage by #including nsCOMPtr.h
git-svn-id: svn://10.0.0.236/trunk@125795 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-25 19:44:15 +00:00
bryner%netscape.com
7bc238d7a1 Change ShortVersion to be just the version number, not including the product name.
git-svn-id: svn://10.0.0.236/trunk@125794 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-25 19:05:56 +00:00
leaf%mozilla.org
94a5d7de0c Automated update
git-svn-id: svn://10.0.0.236/trunk@125793 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-25 18:40:14 +00:00
margaret.chan%sun.com
8cd5650005 Bug 149151 - Use -lazyload to distribute cost of loading objects throughout their life cycle. This checkin also includes another linker option -zcombreloc which will combine relocatable objects in one section. Both options are added for performance reason, and they are only for Solaris. r=cls, a=asa.
git-svn-id: svn://10.0.0.236/trunk@125792 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-25 18:37:34 +00:00
alecf%netscape.com
7e8aa74093 fix for bug 157572 - remove nsIAtom references from strings, and thus expicitly #include nsIAtom.h for consumers who are expecting it.
r=dmose, sr=jag, a=asa


git-svn-id: svn://10.0.0.236/trunk@125791 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-25 18:31:10 +00:00
tao%netscape.com
8f333523c8 Update instructions in README and provide link to a new file,
leve-xlation.html which has more explanation.


git-svn-id: svn://10.0.0.236/trunk@125790 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-25 17:38:28 +00:00
cmanske%netscape.com
dd2de77d93 Fixed Tab code in Composer dialogs, b=157778, r=neil@parkwaycc.co.uk, sr=alecf, a=asa/drivers
git-svn-id: svn://10.0.0.236/trunk@125789 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-25 17:32:12 +00:00
mikep%oeone.com
af4bc6cf21 Integrating license changes and other changes from OEone.
git-svn-id: svn://10.0.0.236/trunk@125787 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-25 17:05:46 +00:00
mikep%oeone.com
a728ae346c Patch 92744 from bug 156687.
git-svn-id: svn://10.0.0.236/trunk@125785 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-25 16:43:25 +00:00
mikep%oeone.com
369e8229d0 Fixing problem with long titles not wrapping in day view.
git-svn-id: svn://10.0.0.236/trunk@125784 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-25 14:28:21 +00:00
mikep%oeone.com
3692434a8e Fix from integrating changes for to items, bug 156687.
git-svn-id: svn://10.0.0.236/trunk@125783 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-25 14:26:22 +00:00
jdunn%netscape.com
28c54c8a52 moving extern statement out of function scope to fix bustage
r=dougt@netscape.com
sr=rpotts@netscape.com
a=asa@mozilla.org
# 141359


git-svn-id: svn://10.0.0.236/trunk@125782 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-25 14:21:00 +00:00
mikep%oeone.com
5a3999941d Adding in patch from bug 156687 from AJB.
git-svn-id: svn://10.0.0.236/trunk@125781 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-25 14:12:52 +00:00
mikep%oeone.com
cf8b475ee8 Adding tasks to button.
git-svn-id: svn://10.0.0.236/trunk@125780 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-25 14:11:33 +00:00
caillon%returnzero.com
97e3cd10d2 Bug 155752 - Use the XML parser for XHTML about: services
Patch contributed by Alexey Chernyak <alexey@ihug.com.au>
r=timeless, sr=jst, a=asa


git-svn-id: svn://10.0.0.236/trunk@125778 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-25 13:36:37 +00:00
caillon%returnzero.com
4767339f6c Bug 155752 - Use the XML parser for XHTML about: services
Patch contributed by Alexey Chernyak <alexey@ihug.com.au>
r=timeless, sr=jst, a=asa


git-svn-id: svn://10.0.0.236/trunk@125777 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-25 13:27:16 +00:00
mikep%oeone.com
dd6dc2263c Small fix for cutting events, bug 158604.
git-svn-id: svn://10.0.0.236/trunk@125776 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-25 12:32:36 +00:00
depstein%netscape.com
0d552e997c changed url
git-svn-id: svn://10.0.0.236/trunk@125775 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-25 08:19:35 +00:00
bzbarsky%mit.edu
e6f206c6ce Adding idl files needed for DOM3 Load/Save. Not part of build.
git-svn-id: svn://10.0.0.236/trunk@125774 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-25 06:38:57 +00:00
sfraser%netscape.com
d4abf23b1b Changing the 'Wrap' checkbox keyboard shortcut from Command-W to Command-R, to avoid conflict with Command-W closing the window.
git-svn-id: svn://10.0.0.236/trunk@125773 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-25 05:59:33 +00:00
sfraser%netscape.com
e5a16281a8 Fix for bug 159296 -- put the build ID in the about window. Also tweaked the scrolling text timer to fire much less fequently (and scroll more each time, but still remain smooth). Added dist/include to the include paths in the project (for nsBuildID.h), and fixed some file access paths to stuff in widget/src/cocoa.
git-svn-id: svn://10.0.0.236/trunk@125771 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-25 05:47:16 +00:00
pete.zha%sun.com
23127b1a98 Fix the foolish comments in previou check in.
Change "we are them" to "we enable them"
Will not effect the build


git-svn-id: svn://10.0.0.236/trunk@125769 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-25 05:20:14 +00:00
pete.zha%sun.com
2a3bf650f0 unix: should remove the Reveal Location & Launch File buttons from download progress dialog
bug=90008 r=jkeiser sr=bzbarsky a=asa


git-svn-id: svn://10.0.0.236/trunk@125768 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-25 05:10:46 +00:00
wtc%netscape.com
22622bc346 Removed unused ASN.1 templates and unnecessary declarations.
Modified Files: lowcert.c pcertt.h


git-svn-id: svn://10.0.0.236/trunk@125767 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-25 03:59:38 +00:00
henry.jia%sun.com
b3bfda0fb7 Fix for bug 138191
Description: Changing field focus with javascript and backspacing breaks tabbing
patch by Gilbert.Fang@sun.com
r=jkeiser, sr=bryner, a=asa


git-svn-id: svn://10.0.0.236/trunk@125766 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-25 03:14:29 +00:00
kaie%netscape.com
9132da9e54 b=141268 OCSP error messages should say OCSP, not OSCP (typo)
r=hixie sr=alecf a=asa


git-svn-id: svn://10.0.0.236/trunk@125764 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-25 02:48:33 +00:00
kaie%netscape.com
a9eeb6b688 b=145698 javascript strict warnings in msgCompSecurityInfo.js
r=javi sr=alecf a=asa


git-svn-id: svn://10.0.0.236/trunk@125763 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-25 02:45:51 +00:00
kaie%netscape.com
69975a03b0 b=156748 Incorrect stylesheet rule in message compose S/Mime overlay
r=dbaron sr=mscott a=asa


git-svn-id: svn://10.0.0.236/trunk@125762 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-25 02:38:06 +00:00
kaie%netscape.com
3232c2fc50 b=113844 "Load PKCS#11 Device" dialog sized incorrectly
r=kaie/javi  sr=alecf  a=asa


git-svn-id: svn://10.0.0.236/trunk@125761 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-25 02:26:52 +00:00
sfraser%netscape.com
c3e845b32f Fix for bug 158378: fix the bookmark info panel to behave correctly, support Undo, and not crash. Patch from David Hass, hacked on by me.
git-svn-id: svn://10.0.0.236/trunk@125760 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-25 02:07:43 +00:00
rods%netscape.com
717b70cb65 Hide the Page Setup btn on Linux until Bug 119491 is fixed
Bug 158282 r=sgehani sr=bryner a=asa


git-svn-id: svn://10.0.0.236/trunk@125759 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-25 01:48:42 +00:00
justdave%syndicomm.com
74ea63b790 Fix for bug 154008: some basic (but incomplete) maintenance on bug_email.pl, also fixes a possible security hole with a misuse
of a system() call.
Patches by Erik Anderson <erikba@teamworkgroup.com> and Brad Baetz <bbaetz@student.usyd.edu.au>
r= myk, justdave


git-svn-id: svn://10.0.0.236/trunk@125758 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-25 01:47:50 +00:00
sfraser%netscape.com
2e65f57aea Fix for bug 154895: fix Next/Previous tab to just cycle round through all tabs if you hit the start or end. That way, they are always enabled (when tabs are visible).
git-svn-id: svn://10.0.0.236/trunk@125756 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-25 01:16:36 +00:00
bryner%netscape.com
410ad0fd16 Factor out security dialogs from CocoaBrowserService, and provide a mechanism for using generic factories for application-provided XPCOM components (bug 158801). r=pinkerton, sfraser.
git-svn-id: svn://10.0.0.236/trunk@125755 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-25 00:57:27 +00:00
sfraser%netscape.com
60422765b0 Fix bug 157950: make sure that Find Again is disabled if there is no search string stored. Also changed the Find dialog behaviour to stay up when you hit Find (as it should, since it's a panel), to default to 'wrap' and 'ignore case' being on, and added key shortcuts for the checkboxes.
git-svn-id: svn://10.0.0.236/trunk@125753 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-25 00:42:53 +00:00
jrgm%netscape.com
30e5e68735 bug 158072: 'remove dead function selectLocale from strres.js', r=timeless, sr=jag, a=asa
git-svn-id: svn://10.0.0.236/trunk@125752 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-25 00:38:23 +00:00
bryner%netscape.com
2b1e437151 Make MachO mac build use Mac locale code (bug 158266). r=pinkerton, sr=sfraser, a=asa.
git-svn-id: svn://10.0.0.236/trunk@125750 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-25 00:28:29 +00:00
bryner%netscape.com
db891f00b1 fixing css syntax error (bug 158981). r=jkeiser, sr=bzbarsky, a=asa.
git-svn-id: svn://10.0.0.236/trunk@125749 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-25 00:12:04 +00:00
shrutiv%netscape.com
133bfab0b1 Including banner bmp for bookmarkscreen
git-svn-id: svn://10.0.0.236/trunk@125748 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-25 00:11:36 +00:00
sfraser%netscape.com
f83158bd8f Fix for bug 159170; when doing a Save, don't show the 'Leave open' button in the download progress window, and make sure that the window always closes at the end of the saving. r=pinkeron
Also fixed a refounting boo-boo with the downloader factor.


git-svn-id: svn://10.0.0.236/trunk@125747 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-25 00:00:51 +00:00
gerv%gerv.net
b25db35652 Bug 67950c - make quips.cgi compile without warnings, by use vars-ing $userid. Patch by gerv.
git-svn-id: svn://10.0.0.236/trunk@125745 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-24 23:38:50 +00:00
gerv%gerv.net
f0187522d7 Bug 67950b - quick fixes. Patch by gerv.
git-svn-id: svn://10.0.0.236/trunk@125744 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-24 23:32:41 +00:00
gerv%gerv.net
7998b638b7 Bug 67950 - Move the quip list into the database. Patch by davef@tetsubo.com; r=gerv, preed.
git-svn-id: svn://10.0.0.236/trunk@125742 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-24 23:23:00 +00:00
shrutiv%netscape.com
5089477442 Fix for bugscape bug 17314: remove bookmarks and sidebar from "Before
You Begin" (r=mitchf)


git-svn-id: svn://10.0.0.236/trunk@125741 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-24 23:21:40 +00:00
gerv%gerv.net
4d65990457 Bug 158660 - confirm_login in CGI.pl should use a template for the login dialog. Patch by gerv; 2xr=jouni.
git-svn-id: svn://10.0.0.236/trunk@125740 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-24 23:13:35 +00:00
pinkerton%netscape.com
fdea88a4db Changed "Save Link As..." in context menus to "Download Link Target..." (bug 159201)
git-svn-id: svn://10.0.0.236/trunk@125737 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-24 22:00:11 +00:00
pinkerton%netscape.com
6a614634bf localize d/l progress dialog and put strings in localizable.strings (bug 143093)
git-svn-id: svn://10.0.0.236/trunk@125736 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-24 21:48:08 +00:00
cltbld%netscape.com
1839a35cc1 Switching to pageload_server instead of hard-coded url for pageload test. -mcafee
git-svn-id: svn://10.0.0.236/trunk@125735 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-24 21:32:49 +00:00
alecf%netscape.com
31d3d623b4 lay some groundwork for bug 158003 - make some static constructors for the base classes that all the encoders/decoders can share
not part of build


git-svn-id: svn://10.0.0.236/trunk@125734 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-24 21:27:57 +00:00
alecf%netscape.com
ed041269b4 work for bug 158003 and bug 157993 - tweak base support classes with a fake inner interface in debug builds, so we can use QI to determine if the class is based off any of these support classes.
no reviewer, not part of build


git-svn-id: svn://10.0.0.236/trunk@125733 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-24 21:20:18 +00:00
cbiesinger%web.de
98a1043bbe bug 158937 r=timeless sr=bz a=asa
comment wrong


git-svn-id: svn://10.0.0.236/trunk@125732 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-24 20:53:50 +00:00
bzbarsky%mit.edu
4200beed9b Fix silly logic error in lazy lists. Bug 158948, r=jkeiser, sr=jst, a=asa
git-svn-id: svn://10.0.0.236/trunk@125731 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-24 20:43:48 +00:00
dprice%netscape.com
f25e227f7b 141056 r=hawara sr=dveditz a=asa
add error checking to fix top crasher


git-svn-id: svn://10.0.0.236/trunk@125730 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-24 20:42:22 +00:00
pinkerton%netscape.com
cdeb82a090 fix phantom checkbox and password field in prompt dialog (bug 156561)
git-svn-id: svn://10.0.0.236/trunk@125729 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-24 20:41:30 +00:00
ssu%netscape.com
a8c53c87f7 checking in patch for neil@parkwaycc.co.uk. fixes bug 158028 - The Mail Start Page does not load. r=ssu sr=sspitzer a=asa
git-svn-id: svn://10.0.0.236/trunk@125728 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-24 20:39:00 +00:00
gerv%gerv.net
b858190117 bug 159200 - support accesskey in search page. Patch by gerv; 2xr=timeless.
git-svn-id: svn://10.0.0.236/trunk@125727 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-24 20:25:08 +00:00
despotdaemon%netscape.com
c86bb44258 Pseudo-automatic update of changes made by curt@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@125726 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-24 20:13:49 +00:00
locka%iol.ie
c35ec937f6 Fixup link tags as stylesheets or anchors according to the value in their "rel" attribute. b=148797 r=brade@netscape.com sr=kin@netscape.com a=asa@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@125725 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-24 19:59:17 +00:00
gerv%gerv.net
54edcc88f8 Bug 102648 - a little more thought. We are changing Platform to Hardware (see the search page) for usability; if we do that, Product can be P and Hardware can be H. 2xr=timeless.
git-svn-id: svn://10.0.0.236/trunk@125724 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-24 19:53:00 +00:00
jkeiser%netscape.com
b6ca8fa2ed Add API Documentation comments (bug 159065), r=sicking, sr=jst/bzbarsky, a=asa
git-svn-id: svn://10.0.0.236/trunk@125722 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-24 19:40:03 +00:00
gerv%gerv.net
4626ac5418 Bug 102648 - Bugzilla should support accesskey. Patch by gerv; 2xr=timeless.
git-svn-id: svn://10.0.0.236/trunk@125721 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-24 19:14:07 +00:00
shrutiv%netscape.com
f9416d1e3b Fix for bug 158373: [REG] AOD is showing up on the end user's component
list (r=smeredith)


git-svn-id: svn://10.0.0.236/trunk@125720 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-24 18:31:38 +00:00
despotdaemon%netscape.com
a3c7a039f9 Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@125719 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-24 18:28:07 +00:00
cltbld%netscape.com
cbac512367 Setting pageload_server to more-appropriate default, spider. External people, please ask mcafee or jrgm for external ip. -mcafee
git-svn-id: svn://10.0.0.236/trunk@125718 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-24 18:08:15 +00:00
shrutiv%netscape.com
20283028ef Removing fix for bugscape bug 18020
git-svn-id: svn://10.0.0.236/trunk@125716 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-24 17:59:31 +00:00
pinkerton%netscape.com
5444122c25 Add aqua-like broken image icon
git-svn-id: svn://10.0.0.236/trunk@125715 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-24 17:48:48 +00:00
pinkerton%netscape.com
369b525690 aqua-looking broken image icon
git-svn-id: svn://10.0.0.236/trunk@125714 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-24 17:47:34 +00:00
shrutiv%netscape.com
ffb4b008bc Fix for bugscape bug 18020: Remove the CCKDocs folder from the installed
product (r=smeredith)


git-svn-id: svn://10.0.0.236/trunk@125713 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-24 17:41:29 +00:00
mcafee%netscape.com
ef253c4434 fixed slash problem
git-svn-id: svn://10.0.0.236/trunk@125711 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-24 16:04:03 +00:00
mikep%oeone.com
f44ecc8fb8 Fixing file type error.
git-svn-id: svn://10.0.0.236/trunk@125707 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-24 14:01:11 +00:00
mikep%oeone.com
c05391a935 Importing changes from OEone calendar, adding in UI for adding contacts to events.
git-svn-id: svn://10.0.0.236/trunk@125705 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-24 13:19:34 +00:00
mikep%oeone.com
6f5a20fe9d Start of adding in ability to link addresses to events.
git-svn-id: svn://10.0.0.236/trunk@125703 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-24 13:16:29 +00:00
mikep%oeone.com
e5c4c53135 Patch from ajbu@planet.nl for bug 159029.
git-svn-id: svn://10.0.0.236/trunk@125702 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-24 13:07:19 +00:00
bryner%netscape.com
9129fe1a67 Fixing static build bustage from sfraser's checkin for bug 145800:
- add all new source files to static build target
 - rename nsDownloader to CHDownloader to avoid symbol name conflicts with necko.


git-svn-id: svn://10.0.0.236/trunk@125690 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-24 08:23:52 +00:00
ssu%netscape.com
01886d9c66 fixing redness under Win32
git-svn-id: svn://10.0.0.236/trunk@125689 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-24 08:22:15 +00:00
gerv%gerv.net
2b84451550 bug 158498 - defparams.pl prints an error message in a check function instead of returning it. Patch by gerv; 2xr=zeroj.
git-svn-id: svn://10.0.0.236/trunk@125688 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-24 06:56:11 +00:00
ssu%netscape.com
6f65ef4a94 fixing bug 158187 - Support for Windows XP SP1 Integration (TRUNK merge). r=ssu,dprice,curt,law sr=jag,dveditz a=drivers
git-svn-id: svn://10.0.0.236/trunk@125687 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-24 06:43:19 +00:00
pete.zha%sun.com
c1bd7ab216 Translate nsIAccessible roles to ATK roles
bug=153816 r=aaronl sr=jst a=asa


git-svn-id: svn://10.0.0.236/trunk@125685 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-24 06:33:39 +00:00
jst%netscape.com
37e6116529 Fixing regression caused by bug 156452. Make sure the correct JS context is pushed onto the JS context stack before handling focus and blur code internally. This is needed since lots of focus and blur code rely on DOM range code that now does security checking when called to prevent from unauthorized use of a DOM range object. r=sicking@bigfoot.com, sr=bzbarsky@mit.edu, a=chofmann@netscape.com
git-svn-id: svn://10.0.0.236/trunk@125684 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-24 06:13:18 +00:00
jst%netscape.com
7da03ea51c Landing branch fix for bug 90757 on he trunk. There's a better fix for this, but we want to bake this on the trunk for a while before we possibly take this on the branch, once it's baked on the trunk we can land the real fix on the trunk... r=mstoltz@netscape.com, sr=rpotts@netscape.com, a=chofmann@netscape.com
git-svn-id: svn://10.0.0.236/trunk@125683 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-24 06:02:05 +00:00
leaf%mozilla.org
2f1683a246 Automated update
git-svn-id: svn://10.0.0.236/trunk@125681 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-24 05:55:40 +00:00
sfraser%netscape.com
0e88d0860a Fix bug 145800 -- implement downlod progress UI in chimera. These changes allow us to reuse the nsDownloadListener and progress dialog for both Saving (with an nsIWebBrowserPersist) and downloading (where necko creates an nsIDownload, which we implement). They are also factored so that other cocoa apps could reuse the downloading backend with their own progress dialog. r=pinkerton/bryner/ccarlen.
git-svn-id: svn://10.0.0.236/trunk@125680 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-24 05:53:14 +00:00
bryner%netscape.com
ae3ab7d37a Changes to allow Mozilla to build with new gcc3 developer tools on OS X (bug 153525). Patch by dbaron, r=cls, sr=bryner, a=asa.
git-svn-id: svn://10.0.0.236/trunk@125679 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-24 05:43:53 +00:00
sfraser%netscape.com
a962c21d41 Fixing the MachO (DARWIN) build, which broke when wtc checked in a patch in bug 153525. r=bryner.
git-svn-id: svn://10.0.0.236/trunk@125673 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-24 04:06:07 +00:00
cmanske%netscape.com
6a52761ff9 Disable 'Creat Link' when context menu launched on existing link, b=99541, r=brade, sr=kin, a=asa/drivers
git-svn-id: svn://10.0.0.236/trunk@125672 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-24 03:58:41 +00:00
cmanske%netscape.com
7771c9d127 Superscript and Subscript text styles should be mutually exclusive, b=100825, r=jfrancis, sr=kin, a=asa/drivers
git-svn-id: svn://10.0.0.236/trunk@125671 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-24 03:53:14 +00:00
cmanske%netscape.com
b1357f8a31 Part of fix to 'Fix right-click to edit link on an image', b=142042, r=neil@parkwaycc.co.uk, sr=alecf, a=asa/drivers
git-svn-id: svn://10.0.0.236/trunk@125669 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-24 03:47:01 +00:00
cmanske%netscape.com
5282cedd05 Reduce memory cost of using HTML Source multiple times by reducing undo buffer usage. b=158860, r=brade, sr=kin, a=asa/drivers
git-svn-id: svn://10.0.0.236/trunk@125667 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-24 03:35:40 +00:00
smeredith%netscape.com
02cadbb205 Fix for 18126 and 16956.
git-svn-id: svn://10.0.0.236/trunk@125666 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-24 03:04:12 +00:00
loadrunner%betak.net
0cec7b7c5a DNS: lookup regression, r=adamlock, sr=darin, a=asa, local fix for autodial by smeredith@netscape.com all credits to him
git-svn-id: svn://10.0.0.236/trunk@125665 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-24 02:43:22 +00:00
brendan%mozilla.org
3950b292ff Finally fix 137000, which requires working around an MSVC ISO-C violation ('identical COMDAT folding', 151066, r=brendan/jrgm, sr=bryner/shaver, a=asa).
git-svn-id: svn://10.0.0.236/trunk@125664 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-24 01:53:07 +00:00
naving%netscape.com
a8e7151bf4 158776 r=cavin sr=bienvenu a=asa fixing nsCRT::strtok uses in pop3 protocol code.
git-svn-id: svn://10.0.0.236/trunk@125663 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-24 01:50:57 +00:00
darin%netscape.com
bebde11822 fixes bug 157861 - have to hit Back twice to return to '300: multiple choices'
r=dougt sr=rpotts a=asa


git-svn-id: svn://10.0.0.236/trunk@125662 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-24 01:32:07 +00:00
bzbarsky%mit.edu
e62936a18e wallpaper for a bit of bug 120327; this should keep us from appending
".exe" all the time to things on Windows.  patch by me and
jruderman@hmc.edu, r=law, sr=jag, a=asa


git-svn-id: svn://10.0.0.236/trunk@125660 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-24 00:42:12 +00:00
nhotta%netscape.com
d12a957e19 Adding uconv to REQUIRES.
git-svn-id: svn://10.0.0.236/trunk@125659 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-24 00:34:14 +00:00
timeless%mac.com
2b4bbf7237 Bug 158092 Mozilla for BeOS is unable to show in browser proper international file/folder names.
patch by sergei_d@fi.tartu.ee r=timeless sr=darin a=asa


git-svn-id: svn://10.0.0.236/trunk@125655 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-24 00:01:31 +00:00
wtc%netscape.com
b01502356c Bug 153525: fixed build problems under gcc3 on Mac OS X. r=bryner.
Modified Files: _pth.h darwin.c


git-svn-id: svn://10.0.0.236/trunk@125653 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-23 23:54:12 +00:00
alecf%netscape.com
c3866b3a50 fix nhotta's bustage by adding "uconv" to the REQUIRES list
git-svn-id: svn://10.0.0.236/trunk@125652 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-23 23:47:30 +00:00
alecf%netscape.com
7ce57677ba more prep for bug 119923 - use chrome registry ContractID rather than CID, so that we can drop in a new embedding-only chrome registry
r=bnesse, sr=dveditz, a=asa


git-svn-id: svn://10.0.0.236/trunk@125651 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-23 23:30:04 +00:00
nhotta%netscape.com
7da2a94cbd Change nsJSProtocolHandler to listen to originCharset to apply conversion if necessary,
also changed the callers to set originCharset,
bug 137182, r=caillon, sr=jst, a=asa.


git-svn-id: svn://10.0.0.236/trunk@125650 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-23 23:28:28 +00:00
caillon%returnzero.com
eaa75bb394 Bug 104470 - Popup blocking breaks window.open()s which are targetted to frames or existing named windows
r=sicking sr=jst a=asa


git-svn-id: svn://10.0.0.236/trunk@125649 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-23 23:22:20 +00:00
bzbarsky%mit.edu
ff3b5f1bd2 Bug 158230. Clear out all the relevant style data when inline style
causes reframes.  r=dbaron, sr=hyatt, a=asa


git-svn-id: svn://10.0.0.236/trunk@125648 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-23 23:18:26 +00:00
depstein%netscape.com
97bfcc4686 Added web progress notification dialog; and additional flag to url dialog.
a=asa for QA checkins that are not part of the default builds


git-svn-id: svn://10.0.0.236/trunk@125646 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-23 22:31:23 +00:00
alecf%netscape.com
78fed2e87d add ucvasia module, which is a combination of ucvja, ucvtw, ucvtw2, and ucvko
not part of build, for bug 157993


git-svn-id: svn://10.0.0.236/trunk@125645 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-23 22:29:22 +00:00
alecf%netscape.com
9afdcf6fb2 add ucvwestern module, which is a combination of ucvcn, ucvlatin, and ucvibm
not part of build, for bug 157993


git-svn-id: svn://10.0.0.236/trunk@125644 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-23 22:28:10 +00:00
alecf%netscape.com
7611651ee7 fix typo for case-sensitive filesystems, not part of build
git-svn-id: svn://10.0.0.236/trunk@125643 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-23 22:25:20 +00:00
sicking%bigfoot.com
fdf8ae5b5f Make sure it is possible to get URI of xul elements even if they share nodeinfo with their prototype and are removed from the document tree.
b=156452 r=bz sr=jst a=asa


git-svn-id: svn://10.0.0.236/trunk@125642 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-23 22:16:45 +00:00
blakeross%telocity.com
ec222266a8 158419 - help back/fwd buttons broken. r=doron sr=ben a=brendan
git-svn-id: svn://10.0.0.236/trunk@125641 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-23 22:16:05 +00:00
alecf%netscape.com
f50250b92a add static utility library for bug 157993 - provides enhanced base classes for table-based converters
not part of build.. landing so I can test on multiple platforms.


git-svn-id: svn://10.0.0.236/trunk@125640 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-23 22:05:25 +00:00
rogerl%netscape.com
6042d2a155 Changed decimal escape handling to backward compatible rather than ECMA3
conforming. (Bug#158159)


git-svn-id: svn://10.0.0.236/trunk@125639 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-23 21:38:03 +00:00
shannond%netscape.com
9dc7d79806 Bugscape 17886 - Netscape.com recapture dialog should be unchecked by default
r=shrutiv@netscape.com


git-svn-id: svn://10.0.0.236/trunk@125637 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-23 20:53:38 +00:00
pinkerton%netscape.com
d21db24616 Change bookmark sidebar panel buttons to be "momentary change" to get
rid of icky border when depressed.


git-svn-id: svn://10.0.0.236/trunk@125636 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-23 20:42:39 +00:00
cbiesinger%web.de
8f356a3e7c bug 158245 patch by nick@technisys.com.ar r=db48x sr=bz a=scc
Page info should list the alt for images in the media-tab in the tree.


git-svn-id: svn://10.0.0.236/trunk@125635 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-23 20:40:17 +00:00
ftang%netscape.com
4298cf96c1 fix bug 156943. add cjk lang group check for mUnderlineSize computation
r=rbs sr=jst a=chofmann


git-svn-id: svn://10.0.0.236/trunk@125632 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-23 20:35:31 +00:00
mikep%oeone.com
ef9c61c74f Fixing bug 158885.
git-svn-id: svn://10.0.0.236/trunk@125629 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-23 19:23:20 +00:00
mitchf%netscape.com
29fd95aef2 Checking pref tree for remotely administered prefs now, and now auto-check
RemoteAdmin checkbox on following page if any are found.  Fixes bug 13657.


git-svn-id: svn://10.0.0.236/trunk@125628 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-23 17:26:22 +00:00
cbiesinger%web.de
9b368a5e1d address reviewer comments (whitespace)
git-svn-id: svn://10.0.0.236/trunk@125623 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-23 13:44:34 +00:00
cbiesinger%web.de
01e2d35c8b bug 145858 patch by sergei_d@fi.tartu.ee r=timeless a=asa
Imported NetPositive Bookmarks are not loaded properly anymore


git-svn-id: svn://10.0.0.236/trunk@125622 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-23 13:43:23 +00:00
cbiesinger%web.de
2ca860a6d3 fix typo (missing space)
git-svn-id: svn://10.0.0.236/trunk@125621 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-23 13:28:14 +00:00
cbiesinger%web.de
63f3c4f791 bug 129612 patch by neil@parkwaycc.co.uk r=doron sr=bz a=asa
add enable syntax highlighting checkbox to view source window


git-svn-id: svn://10.0.0.236/trunk@125620 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-23 13:22:28 +00:00
caillon%returnzero.com
ddfbc0ff4e Bug 152127 - Prevent tabs from getting renamed to "(Untitled)" at seemingly random times.
r=bzbarsky sr=jag a=asa

Also fixes bugs 101827, 101831, 102924, 108189, 108350, 108421, 111118, 124028, 134815, 141839, 144431, 144984, 150669, 158171


git-svn-id: svn://10.0.0.236/trunk@125619 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-23 10:24:14 +00:00
cltbld%netscape.com
14829a74ad Adding tests to chimera, I slammed this in here for now, need to rework build-seamonkey-utils.pl so tests can be called as functions. -mcafee
git-svn-id: svn://10.0.0.236/trunk@125615 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-23 07:54:18 +00:00
cltbld%netscape.com
e1af56bf1e Renaming RunTest to RunMozillaTests. Leaving in checks for RunTest for now. -mcafee
git-svn-id: svn://10.0.0.236/trunk@125614 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-23 07:52:30 +00:00
gerv%gerv.net
2d1c5ec9f0 Bug 96003 - buglist.cgi should not return all bugs if called without any parameters. Patch by gerv; r=myk.
git-svn-id: svn://10.0.0.236/trunk@125613 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-23 07:16:57 +00:00
kyle.yuan%sun.com
286ec8b7f4 Check in for bolian.yin@sun.com's fix
Bug 81473 The accesskey attribute does not work for the area element
r=dbaron, sr=jst, a=asa


git-svn-id: svn://10.0.0.236/trunk@125612 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-23 06:52:32 +00:00
kyle.yuan%sun.com
b5e7185c3c Bug 157183 Even though XUL Element Tree is focusable, Both the inspect tool and API return wrong value
r=jgaunt, sr=jag, a=asa


git-svn-id: svn://10.0.0.236/trunk@125609 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-23 05:32:39 +00:00
kyle.yuan%sun.com
e1f2c9c169 Bug 157485 Implement nsIAccessibleText for nsHTMLTextFieldAccessible
r=jgaunt, sr=jst, a=asa


git-svn-id: svn://10.0.0.236/trunk@125608 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-23 05:32:17 +00:00
kyle.yuan%sun.com
1a05f649c6 Bug 154521 In "Composer", all source I inputed will be removed by switching display mode between "<html>Source" and "Preview";
r=cmanske, sr=sfraser, a=asa
Harry Lu(harry.lu@sun.com)'s fix (part 2)


git-svn-id: svn://10.0.0.236/trunk@125607 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-23 05:31:42 +00:00
kyle.yuan%sun.com
00cb79e95a Bug 154521 In "Composer", all source I inputed will be removed by switching display mode between "<html>Source" and "Preview";
r=cmanske, sr=sfraser, a=asa
Harry Lu(harry.lu@sun.com)'s fix (part 1)


git-svn-id: svn://10.0.0.236/trunk@125606 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-23 05:30:16 +00:00
jkeiser%netscape.com
c728d3962c Fix uninitialized variable (bug 14445), r=timeless@mac.com, sr=jst@netscape.com, a=asa
git-svn-id: svn://10.0.0.236/trunk@125603 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-23 03:58:49 +00:00
bzbarsky%mit.edu
a844108e85 Fix tab switching in embedding apps. Bug 139294,
r=philipl@mail.utexas.edu, sr=jst, a=asa


git-svn-id: svn://10.0.0.236/trunk@125602 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-23 03:45:06 +00:00
stephend%netscape.com
a21496a361 Bug 158379. Align 'Filter Name' text with textfield in the Filter Rules dialog. r=naving@netscape.com/walk84@yahoo.com, sr=bryner@netscape.com, a=asa@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@125601 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-23 03:25:34 +00:00
pavlov%netscape.com
b92f218827 bug 157989. patch from paper@animecity.nu. r=pavlov sr=tor@acm.org a=brendan/chofmann
git-svn-id: svn://10.0.0.236/trunk@125600 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-23 03:22:27 +00:00
henry.jia%sun.com
a880ad3702 First patch for bug 158080
Description: replace the hardcode of "@mozilla.org/embedcomp/window-watcher;1" with NS_WINDOWWATCHER_CONTRACTID
Patch by Henry.Jia@sun.com
r=blizzard, sr=alecf, a=asa(for trunk)


git-svn-id: svn://10.0.0.236/trunk@125597 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-23 02:27:19 +00:00
av%netscape.com
c2e34ab5d1 Fixing 157627 -- prevent unnecessary writing plugin info to registry which causes indefinite bloat, r=av, sr=dveditz, a=asa
git-svn-id: svn://10.0.0.236/trunk@125596 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-23 02:18:44 +00:00
kyle.yuan%sun.com
185d879123 Bug 157865 </HTML> at the beginning of the page followed by <HEAD> or <BODY> causes Mozilla to freeze
r=choess, sr=bzbarsky, a=asa
Check in for Jerry's fix.


git-svn-id: svn://10.0.0.236/trunk@125594 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-23 02:00:48 +00:00
relyea%netscape.com
5c374eed8b return certs in sorted order.
git-svn-id: svn://10.0.0.236/trunk@125590 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-23 00:34:20 +00:00
gerv%gerv.net
0130c12013 Bug 143650 - general template display system. Patch by gerv; 2xr=jouni.
git-svn-id: svn://10.0.0.236/trunk@125586 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-22 23:17:48 +00:00
cbiesinger%web.de
d2ccc8cf02 bug 155148 patch by calvin.liu@sun.com r=hwaara sr=bienvenu a=asa
Online/Offline indicator doesn't work in "Advanced Address Book  Search" dialog


git-svn-id: svn://10.0.0.236/trunk@125585 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-22 22:28:44 +00:00
cltbld%netscape.com
2fd95378c9 Renaming Settings::RunTest to Settings::RunMozillaTests to be more descriptive. Leaving in check for old RunTest variable for now, in case there are some clients relying on that. -mcafee
git-svn-id: svn://10.0.0.236/trunk@125582 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-22 21:45:52 +00:00
joki%netscape.com
a588052207 Fix for bug 157845: mCurrentTarget pointer should not be set in the ESM without setting the NS_FRAME_EXTERNAL_REFERENCE bit. r:saari, sr:jst, a:chofmann
git-svn-id: svn://10.0.0.236/trunk@125581 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-22 21:36:36 +00:00
shrutiv%netscape.com
e649540c60 Fix for bugscape bug 17315: Help menu customizations aren't in MacOSX
(r=smeredith)


git-svn-id: svn://10.0.0.236/trunk@125580 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-22 21:34:32 +00:00
cbiesinger%web.de
eb1ac066c6 last checkin was for nick@technisys.com.ar who created that patch
git-svn-id: svn://10.0.0.236/trunk@125578 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-22 19:52:04 +00:00
cbiesinger%web.de
4fe07a1562 bug 158435 r=ksosez sr=bz a=jesup
Page Info's label-control association is broken (should be by id).


git-svn-id: svn://10.0.0.236/trunk@125577 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-22 19:51:16 +00:00
mikep%oeone.com
fbcfda6ec2 Fixing problem with attachments, from OEOne.
git-svn-id: svn://10.0.0.236/trunk@125575 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-22 18:54:15 +00:00
leaf%mozilla.org
3fa9d44ed2 add taskbar icons for applications, r=kerz,a=asa,b=158684
git-svn-id: svn://10.0.0.236/trunk@125574 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-22 18:01:41 +00:00
tao%netscape.com
0c28c38cf0 Initial checkin of the suit of scripts and files needed to leverage
translations from localized mozilla/netscape language packs into embed.jar.


git-svn-id: svn://10.0.0.236/trunk@125573 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-22 17:23:58 +00:00
kairo%kairo.at
cf73a02489 bug 158678 - adding missed help_help.html file, r=oeschger, dispensation of drviers per bug 122806
git-svn-id: svn://10.0.0.236/trunk@125572 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-22 17:10:21 +00:00
aaronl%netscape.com
11e8f2ad33 Not part of build. Bug 30088. Minor tweaks, getting ready for review
git-svn-id: svn://10.0.0.236/trunk@125571 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-22 14:55:02 +00:00
aaronl%netscape.com
71a8c22e47 Not part of build. Bug 30088. Minor tweaks, getting ready for review
git-svn-id: svn://10.0.0.236/trunk@125570 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-22 14:55:01 +00:00
rods%netscape.com
039c30685d fixing up test for more variants
git-svn-id: svn://10.0.0.236/trunk@125569 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-22 14:43:17 +00:00
rods%netscape.com
c4adb46d80 adding hidden iframe test
git-svn-id: svn://10.0.0.236/trunk@125568 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-22 14:02:27 +00:00
mikep%oeone.com
f04f61355f Patch from bug 123583.
git-svn-id: svn://10.0.0.236/trunk@125567 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-22 12:42:34 +00:00
jouni%heikniemi.net
f9bb67be21 Tree bustage fix of bug 157074: a filter had the wrong name in hidden-fields template.
git-svn-id: svn://10.0.0.236/trunk@125566 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-22 11:09:06 +00:00
rods%netscape.com
798b734575 Added additional tests cases for printing
git-svn-id: svn://10.0.0.236/trunk@125565 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-22 10:58:21 +00:00
rods%netscape.com
4d051a96ff When a FrameSet Frame's contains a FrameSet the mFrameType for the PrintObject
is always set to an eFrame. Which is fine when printing "AsIs"
but is incorrect when when printing "Each Frame Separately".
When printing "Each Frame Separately" the Frame really acts like a frameset.
So we need to set it to an eFrame
Bug 157918 r=dcone sr=kin a=scc


git-svn-id: svn://10.0.0.236/trunk@125564 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-22 10:55:07 +00:00
kyle.yuan%sun.com
8a0e6bc6e7 Not part of build.
Bug 157298 make install does not work in mozilla/widget/src/gtk2/mai
r=kyle
Thanks for mpeseng@tin.it's fix


git-svn-id: svn://10.0.0.236/trunk@125563 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-22 06:58:28 +00:00
kyle.yuan%sun.com
ba262e33d4 Not part of build.
Bug 153298 Translate nsIAccessible events to ATK events
r=kyle
Thanks for John Sun (john.sun@sun.com)'s fix


git-svn-id: svn://10.0.0.236/trunk@125562 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-22 06:57:08 +00:00
kerz%netscape.com
d651ed432f New desktop icons, r=cls, sr=bryner, a=asa, bug 73712
git-svn-id: svn://10.0.0.236/trunk@125558 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-21 23:15:55 +00:00
kerz%netscape.com
3636c59169 New desktop icons, r=cls, sr=bryner, a=asa
git-svn-id: svn://10.0.0.236/trunk@125557 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-21 23:04:48 +00:00
aaronl%netscape.com
c6f90015df Not part of build. Bug 30088 - type ahead find. Add support for nsITypeAheadFind.
git-svn-id: svn://10.0.0.236/trunk@125555 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-21 22:36:51 +00:00
gerv%gerv.net
d81b80bc41 Bug 95426 - remove $onebug cruft. Patch by gerv; 2xr=timeless.
git-svn-id: svn://10.0.0.236/trunk@125554 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-21 21:47:43 +00:00
hwaara%chello.se
38157b25b7 #125887, fix some cases where whitespace would make window.open() and openDialog() to not work.
r=jkeiser, sr=bzbarsky, a=brendan


git-svn-id: svn://10.0.0.236/trunk@125553 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-21 18:12:38 +00:00
gerv%gerv.net
f5446f3c7e Fixing trivial but obvious bug where "and QA contact" was not displaying correctly; noticed on b.m.o. No bug number.
git-svn-id: svn://10.0.0.236/trunk@125551 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-21 14:14:41 +00:00
pete.zha%sun.com
e7e1db9698 Forget one line in previou check in. Just add it now.
Sorry for this!


git-svn-id: svn://10.0.0.236/trunk@125550 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-21 11:19:39 +00:00
pete.zha%sun.com
5e7b11afb7 Summary: print to file overwrites file without asking
bug=107484 r=rods sr=bzbarsky a=scc


git-svn-id: svn://10.0.0.236/trunk@125549 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-21 10:59:57 +00:00
caillon%returnzero.com
035dbe91ce Bug 107147. "Using middle button to close a tab also pastes+opens url in another tab".
r=sicking
sr=jag
a=brendan


git-svn-id: svn://10.0.0.236/trunk@125546 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-21 01:48:34 +00:00
jkeiser%netscape.com
5d2a4473b9 Damn, missed this file. Part of bug 14445 update just now.
git-svn-id: svn://10.0.0.236/trunk@125545 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-20 23:44:21 +00:00
jkeiser%netscape.com
01341d9e3c Make radio buttons work without forms (bug 14445), r=rods@netscape.com, sr=jst@netscape.com, a=asa.
git-svn-id: svn://10.0.0.236/trunk@125544 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-20 23:09:24 +00:00
morse%netscape.com
255ebc1837 bug 155114, back out all patches for fixing cookie-stealing bug, a=asa
git-svn-id: svn://10.0.0.236/trunk@125535 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-20 07:38:16 +00:00
cltbld%netscape.com
7bc97b064e fixing reset home dir logic, sorry. -mcafee
git-svn-id: svn://10.0.0.236/trunk@125532 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-20 06:19:15 +00:00
shanjian%netscape.com
41e6689d50 #156943 CJK text underline is positioned too near the text
raise baseline for CJK language groups.
r=rbs, sr=waterson, a=adt


git-svn-id: svn://10.0.0.236/trunk@125531 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-20 05:21:25 +00:00
sfraser%netscape.com
5dfe57abb3 Fixing bug 155334 -- zombie progress dialog left after doing a File | Save As in plain text format. We were checking the STATE_IS_NETWORK flag to decide when the download has finished, but this flag is not included for plain text saves (nsWebBrowserPersist doesn't give it to us). So we look at the start flags, and make sure the end flag matches on this bit. Also detabbed the file.
git-svn-id: svn://10.0.0.236/trunk@125530 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-20 03:22:36 +00:00
sicking%bigfoot.com
96ef7647c7 Allow "chromenodes" to access all domains.
b=158167 r=bzbarsky sr=jst a=asa


git-svn-id: svn://10.0.0.236/trunk@125528 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-20 01:40:02 +00:00
hwaara%chello.se
79c60ad859 #62157, "Document content is rendered even though version value is not '1.0'." Make us care about what version is specified and bail out on anything but "1.0".
r=bzbarsky, sr=heikki, a=asa


git-svn-id: svn://10.0.0.236/trunk@125527 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-20 01:18:52 +00:00
shrutiv%netscape.com
8e7d878186 Fix for bugscape bug 16676: Customized Sidebar tab not working on MacOS
(r=shannond)


git-svn-id: svn://10.0.0.236/trunk@125526 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-20 00:58:58 +00:00
stephend%netscape.com
3b89268071 Bug 158264. Prefix showOpenURLDialog() with http://. r=caillon@netscape.com, sr=hewitt@netscape.com (also Module Owner), a=asa@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@125525 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-20 00:40:49 +00:00
bzbarsky%mit.edu
544e250544 fix startup assertions, bug 154503, r=sicking, sr=dbaron, a=asa
git-svn-id: svn://10.0.0.236/trunk@125524 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-19 23:58:10 +00:00
bishakhabanerjee%netscape.com
8b20fbdd82 Setting number of tests to 252 to take out warnings on nightly QA reports -Bug 156959
git-svn-id: svn://10.0.0.236/trunk@125523 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-19 23:46:10 +00:00
pavlov%netscape.com
1da87a90e5 fixing bug 157202 r=dougt sr=tor@acm.org a=asa
git-svn-id: svn://10.0.0.236/trunk@125521 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-19 23:21:48 +00:00
leaf%mozilla.org
9f7cf37f8c updating to 1.1b
git-svn-id: svn://10.0.0.236/trunk@125520 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-19 23:08:41 +00:00
bzbarsky%mit.edu
993a541873 Tabbing to an <area> should scroll to it in addition to focusing it.
Bug 124769, r=sicking, sr=bryner, a=scc


git-svn-id: svn://10.0.0.236/trunk@125518 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-19 22:36:52 +00:00
varga%netscape.com
01fcfc5ac4 Fix for bug 128809 - Mail layout goes into infinite loop when "view headers all" is activated
r=kin, sr=bryner, a=scc


git-svn-id: svn://10.0.0.236/trunk@125517 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-19 22:36:46 +00:00
brendan%mozilla.org
615fd435f4 Don't return 1 cast to JSProperty* for a property found in a non-LiveConnect prototype object (155740, r=rogerl, sr=jband, a=chofmann/blizzard/scc).
git-svn-id: svn://10.0.0.236/trunk@125516 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-19 22:00:03 +00:00
leaf%mozilla.org
d71824c07d backout dataloss-causing fixes for 143862 and 156719, a=asa
git-svn-id: svn://10.0.0.236/trunk@125515 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-19 21:58:09 +00:00
shanjian%netscape.com
3816d9f036 #155175 Certain truetype fonts crash mozilla
correct a misuse of parenthesis.
p=Andrew Schultz  , r=bstell, sr=rbs, a=brendan


git-svn-id: svn://10.0.0.236/trunk@125513 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-19 21:21:23 +00:00
dougt%netscape.com
3560250015 compreg.tmp is written out on every startup. r=rjc, sr=alec, a=scc
git-svn-id: svn://10.0.0.236/trunk@125512 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-19 21:12:04 +00:00
sfraser%netscape.com
8bffb2130f Fix bug 155664 -- make URLs opened from the Services menu in another app behave like those opened via Apple Events etc, obeying the prefs to load in new tabs/windows, possibly in the background.
git-svn-id: svn://10.0.0.236/trunk@125511 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-19 21:08:25 +00:00
cltbld%netscape.com
87a19fce64 Adding ResetHomeDirForTests variable, some builds won't want to do this (chimera, etc.)
git-svn-id: svn://10.0.0.236/trunk@125510 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-19 21:03:01 +00:00
ducarroz%netscape.com
508651d4ca Fix for bug 158334. Fix memory corruption created by using PL_strcat on a buffer not wide enough. R=varada, SR=bienvenu
git-svn-id: svn://10.0.0.236/trunk@125509 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-19 20:58:32 +00:00
nhotta%netscape.com
e98305c34a Changed nsPlainTextSerializer to try NCR if CER conversion fails,
bug 40350, r=akkana, sr=kin, a=asa.


git-svn-id: svn://10.0.0.236/trunk@125508 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-19 20:50:14 +00:00
wtc%netscape.com
632cf0781e Bug 158339: we should not call secmod_freeParams if RNG_RNGInit fails.
git-svn-id: svn://10.0.0.236/trunk@125504 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-19 18:31:30 +00:00
despotdaemon%netscape.com
0ec1511934 Pseudo-automatic update of changes made by yxia@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@125503 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-19 18:26:38 +00:00
despotdaemon%netscape.com
d6e2febb61 Pseudo-automatic update of changes made by knous@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@125502 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-19 17:59:28 +00:00
timeless%mac.com
16c47f8a29 Bug 158202 crash opening venkman and closing navigator [@nsXULElement::GetOwnerDocument]
patch by sicking@bigfoot.com r=bz sr=jst a=scc checkin authorized by scc


git-svn-id: svn://10.0.0.236/trunk@125500 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-19 17:03:03 +00:00
aaronl%netscape.com
8305292a8a Not part of build. Bug 30088: typeaheadfind - make sure we're not enabled in mailnews message pane, because we conflict with shortcuts link n for next unread message
git-svn-id: svn://10.0.0.236/trunk@125499 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-19 16:07:23 +00:00
mikep%oeone.com
f55f8c3805 Integrating changes from OEone calendar.
git-svn-id: svn://10.0.0.236/trunk@125498 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-19 15:56:53 +00:00
bbaetz%student.usyd.edu.au
0aee0fe7f3 Bug 157074 - verify-new-product doubles comment linefeeds on Win32
r=myk, jouni


git-svn-id: svn://10.0.0.236/trunk@125497 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-19 14:04:15 +00:00
timeless%mac.com
295afaadb1 Bug 151770 Can't associate Mozilla with .XBM images
patch by ask@swva.net r=law sr=alecf a=scc


git-svn-id: svn://10.0.0.236/trunk@125496 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-19 10:12:16 +00:00
samuel%sieb.net
21b6c7ef39 Bug 146509 - allow tab completion to work with non-alphanumeric characters
r=rginda
a=asa


git-svn-id: svn://10.0.0.236/trunk@125495 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-19 05:56:29 +00:00
samuel%sieb.net
f144c703ef Bug 135937 - clean up connection status (limit decimal points)
r=rginda
a=asa


git-svn-id: svn://10.0.0.236/trunk@125494 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-19 05:53:27 +00:00
samuel%sieb.net
8600889897 Bug 152182 - allow multiple channels for /join
r=rginda
a=asa


git-svn-id: svn://10.0.0.236/trunk@125493 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-19 05:51:00 +00:00
pete.zha%sun.com
5f76121e77 [ps] CSS sans-serif prints as serif
bug=148411 r=dcone sr=bzbarsky a=asa
Correct some font name in map


git-svn-id: svn://10.0.0.236/trunk@125490 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-19 02:41:41 +00:00
sfraser%netscape.com
6e833ccc5b Making the Colors and Links tab the default (bug 158152).
git-svn-id: svn://10.0.0.236/trunk@125489 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-19 02:26:53 +00:00
sfraser%netscape.com
5df7b90ed4 Fix for bug 155560 -- renaming bookmark does not update menu/toolbar. Also fixes crash when deleting a toolbar bookmark (bug 157229). Patch from David Hass.
git-svn-id: svn://10.0.0.236/trunk@125488 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-19 02:20:30 +00:00
sfraser%netscape.com
877fb645db Fix bug 154904-- fixing [BookmarkItem url] to return the url instead of the name.
git-svn-id: svn://10.0.0.236/trunk@125486 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-19 01:47:15 +00:00
jshin%mailaps.org
f7c6fa9d21 Add two new characters(Euro and Registered trade mark sign) to
KS X 1001 based converters (EUC-KR, UHC, JOHAB, ISO-2022-KR):
bug 134749: r=yokoyama, sr=alecf, a=asa


git-svn-id: svn://10.0.0.236/trunk@125485 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-19 01:42:16 +00:00
bzbarsky%mit.edu
dbb888b255 Fix GetQuotedAttributeValue's parsing. Bug 106163, r=sicking, sr=jag, a=asa
git-svn-id: svn://10.0.0.236/trunk@125483 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-19 01:14:29 +00:00
jpierre%netscape.com
563706c60a Fix for 158221 - make crlutil save memory by using the new PK11_ImportCRL function with the CRL_DECODE_DONT_COPY_DER option
git-svn-id: svn://10.0.0.236/trunk@125482 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-19 01:07:27 +00:00
jpierre%netscape.com
a6c742786a 158005 - add new CRL decode and import functions . Benefits are :
- ability to import to any slot
- ability to specify decode options, such as "don't copy DER"
- ability to specify import options, such as "don't do CRL checks"
This patch also maps the existing functions SEC_NewCrl and CERT_ImportCRL
to this new function, eliminating the code duplication that existed


git-svn-id: svn://10.0.0.236/trunk@125481 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-19 00:59:34 +00:00
bryner%netscape.com
50f9170ec7 Enable full-screen mode for unix. Bug 126685, r=blizzard, sr=sfraser, a=asa.
git-svn-id: svn://10.0.0.236/trunk@125480 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-19 00:43:00 +00:00
nicolson%netscape.com
3c4986240c Fix 157998: unable to importCertToPerm
git-svn-id: svn://10.0.0.236/trunk@125478 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-19 00:20:24 +00:00
jpierre%netscape.com
66501867de Fix for 156802 - remove improper check in CRL decoding
git-svn-id: svn://10.0.0.236/trunk@125477 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-19 00:12:13 +00:00
jpierre%netscape.com
7f01d87246 Remove unreferenced variables
git-svn-id: svn://10.0.0.236/trunk@125476 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-18 23:50:03 +00:00
rginda%netscape.com
19d0492d88 - venkman only -
bug 158181, "this.tabs has no properties error when script is unloaded"
r=caillon, a=asa
null check for content before we actually try to use it (in source2 view)
also fixes spelling error, strict warning, and margin-clicking in the source2 view


git-svn-id: svn://10.0.0.236/trunk@125475 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-18 23:27:49 +00:00
jpierre%netscape.com
e635a3cd71 Fix for 139292 - NSS_NoDBInit regression
git-svn-id: svn://10.0.0.236/trunk@125474 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-18 23:08:55 +00:00
pavlov%netscape.com
9d33b5519d fix for bug 157202. r=dougt sr=tor@acm.org a=chofmann
git-svn-id: svn://10.0.0.236/trunk@125472 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-18 22:18:11 +00:00
shannond%netscape.com
1aac970cf4 Backing out bug 147978 - the copy of an existing config should use its own Workspace
since it causes regression
bug 157807 - Creating a new configuration in CCK duplicates fields ...
approval for backout from ariana and shrutiv


git-svn-id: svn://10.0.0.236/trunk@125469 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-18 20:15:02 +00:00
shannond%netscape.com
67dde85655 Backing out bug 147978 - The copy of an existing config should use its own Workspace
since it causes regression
bug 157807 - Creating a new configuration in CCK duplicates fields ...
approval for backout from ariana and shrutiv


git-svn-id: svn://10.0.0.236/trunk@125468 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-18 20:07:28 +00:00
aaronl%netscape.com
14aeefa20e Not part of build. Bug 30088: type ahead find. Support Accel+Shift+G for find previous
git-svn-id: svn://10.0.0.236/trunk@125467 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-18 19:11:54 +00:00
smeredith%netscape.com
9d364937d7 Disable the homepage buttons if the homepage pref is locked.
git-svn-id: svn://10.0.0.236/trunk@125466 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-18 18:42:44 +00:00
pschwartau%netscape.com
d61df3aa38 Initial add. Regression test for bug 141078.
git-svn-id: svn://10.0.0.236/trunk@125465 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-18 18:36:44 +00:00
aaronl%netscape.com
10b640ad3a Not part of build. Bug 30088 - type ahead find. Ctrl+G now respects linksonly setting
git-svn-id: svn://10.0.0.236/trunk@125464 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-18 18:32:54 +00:00
bienvenu%netscape.com
603ae8ef36 fix undo of delete of top level msg in thread r=cavin, antonio.xu@sun, sr=sspitzer, a=asa 157503
git-svn-id: svn://10.0.0.236/trunk@125463 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-18 14:48:38 +00:00
bienvenu%netscape.com
c15a216b07 fix crash selecting bogus line in thread pane for imap folder, r=cavin, sr=sspitzer 157503
git-svn-id: svn://10.0.0.236/trunk@125462 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-18 14:45:08 +00:00
dougt%netscape.com
4cb4da3135 attempting to fix the AIX bustage
git-svn-id: svn://10.0.0.236/trunk@125461 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-18 14:38:07 +00:00
aaronl%netscape.com
77c6e7b67c Not part of build. Bug 30088 - type ahead find. Fixes problem with type ahead find locking up
git-svn-id: svn://10.0.0.236/trunk@125460 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-18 14:19:31 +00:00
arougthopher%lizardland.net
1b134606f6 Bug#155404
File names generated in File Save As menu are incorrect in BeOS.

r=arougthopher
a=scc


git-svn-id: svn://10.0.0.236/trunk@125459 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-18 12:09:09 +00:00
rods%netscape.com
7d81f1b38d need to check BUSY_FLAGS_PAGE_LOADING before printing
Bug 157632 r=dcone sr=jst a=scc


git-svn-id: svn://10.0.0.236/trunk@125458 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-18 09:09:54 +00:00
jaggernaut%netscape.com
55af1e7936 Bug 107848: Wrong tab is closed when last but one tab is closed. r=caillon, sr=ben, a=asa
git-svn-id: svn://10.0.0.236/trunk@125457 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-18 07:31:10 +00:00
dougt%netscape.com
f7575b0db1 backout out change
git-svn-id: svn://10.0.0.236/trunk@125456 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-18 07:19:45 +00:00
dougt%netscape.com
e9d9254cc7 backing out
git-svn-id: svn://10.0.0.236/trunk@125454 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-18 06:58:27 +00:00
dougt%netscape.com
78e286b83d Dynamic loading is failing on linux. disabling
git-svn-id: svn://10.0.0.236/trunk@125453 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-18 06:49:48 +00:00
dougt%netscape.com
c2c2197ef6 fixing bustage
git-svn-id: svn://10.0.0.236/trunk@125452 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-18 06:49:05 +00:00
dougt%netscape.com
9a11c0aedc backing out that last change
git-svn-id: svn://10.0.0.236/trunk@125450 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-18 06:34:18 +00:00
dougt%netscape.com
eb41b992e3 best guess at how to fix gtk orangeness
git-svn-id: svn://10.0.0.236/trunk@125449 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-18 06:29:21 +00:00
sicking%bigfoot.com
c52d22c28d Reenable same-origin checks. Patch by me and jst.
b=156452 r=peterv/sicking/jst sr=bz/jst a=chofmann


git-svn-id: svn://10.0.0.236/trunk@125447 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-18 05:53:28 +00:00
henry.jia%sun.com
55ec460407 Fix bug 27002:
Cyrus IMAP: Send and Save as Draft/Template problems on Cyrus

Patch description:
Add personal namespace support for specific folders' uri. This patch can also solve the blocker bug 90494 which is related the same problems of Courier IMAP server.

patch by Henry.Jia@sun.com
r=cavin@netscape.com, sr=bienvenu@netscape.com, a=chofmann@netscape.com


git-svn-id: svn://10.0.0.236/trunk@125446 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-18 05:41:42 +00:00
despotdaemon%netscape.com
697f1a9465 Pseudo-automatic update of changes made by t_mutreja@yahoo.com.
git-svn-id: svn://10.0.0.236/trunk@125445 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-18 05:23:23 +00:00
dougt%netscape.com
ecdd8ab65f Fixes the following:
154047
This change cleans up the category manager in hopes to freeze it for 1.1 final.  This change removes dead and unsupported methods from the interface as well as removes the C++ code from the interface.  This should land for 1.1b since users of the current category manager will have to update their components.

157597
Make embedding base and examples use XPCOM Glue
This change makes our embedding samples use the XPCOM glue.

157625
nsLocalFile::Remove's file pointer is sometimes null afte...
This fixes a crash when we dereference null.  It is a bandaide fix as the real problems involves retooling the directory enumerator.

157801
This fixes a terrible state which you can get into whereby XPCOM will fail to startup regardless of what you do.  The fix is to cause autoreg to happen if the component registry (compreg.dat) is not found.

r/sr=alecf@netscape.com, rpotts@netscape.com.  a=scc@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@125444 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-18 05:09:10 +00:00
jaggernaut%netscape.com
dfa9bd5ea2 Bug 140673: Some Arabic/Hebrew bitmap fonts printed way too small with Xprint. Patch by Roland.Mainz@informatik.med.uni-giessen.de, r=smontagu, sr=dveditz, a=scc
git-svn-id: svn://10.0.0.236/trunk@125443 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-18 04:26:35 +00:00
leaf%mozilla.org
d34eba106d Automated update
git-svn-id: svn://10.0.0.236/trunk@125442 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-18 04:25:47 +00:00
seawood%netscape.com
df86a25798 Remove DARWIN define from osx builds as it cripples the feature set provided by
OSX headers.
Bug #154232 r=wtc sr=scc a=scc


git-svn-id: svn://10.0.0.236/trunk@125441 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-18 04:11:48 +00:00
seawood%netscape.com
5a25868f3a Remove DARWIN define from osx builds as it cripples the feature set provided by OSX headers.
Bug #154232 r=wtc sr=scc a=scc


git-svn-id: svn://10.0.0.236/trunk@125440 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-18 04:09:30 +00:00
varga%netscape.com
8e87af728a Fix for bug 82840 - need treecolgroups to have fixed="true" be as wide as the column header
and bug 72513 - column header text not shown: Enabled (in fitler dialog) and Subscribed (in subscribe dialog)

r=bienvenu
sr=sspitzer
a=scc


git-svn-id: svn://10.0.0.236/trunk@125439 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-18 04:09:11 +00:00
jaggernaut%netscape.com
e7ec69df4b Bug 142623: No reload of Language strings due to XUL FastLoad. Patch by John Morrison <jrgm@netscape.com>, r=ben, sr=brendan, a=chofmann.
git-svn-id: svn://10.0.0.236/trunk@125437 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-18 04:00:31 +00:00
caillon%returnzero.com
208a6f8e3c Checkin for Mike Kowalski <mikejk@ameritech.net>
Bug 126600 - Reword the turbo preference.  r=caillon sr=bryner a=scc


git-svn-id: svn://10.0.0.236/trunk@125435 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-18 03:22:29 +00:00
pete.zha%sun.com
d2cab5173e Freeing mismatched memory in delete
bug=157184 r=naving sr=bienvenu a=scc patch=antonio.xu@sun.com


git-svn-id: svn://10.0.0.236/trunk@125433 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-18 02:48:52 +00:00
jshin%mailaps.org
195409b999 Combining EUC-KR and UHC decoders into one (bug 131388)
r=yokoyama, sr=alecf, a=scc


git-svn-id: svn://10.0.0.236/trunk@125432 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-18 02:40:19 +00:00
kyle.yuan%sun.com
73d1262924 Bug 131883 All filenames of attachment disappeared by resizing attachment area;
r=hewitt, sr=scc, a=scc
Force listitem's rect to be recalculated when its parent was going wider.


git-svn-id: svn://10.0.0.236/trunk@125430 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-18 02:19:12 +00:00
kyle.yuan%sun.com
1c01d792f8 Bug 134916 left arrow to select parent of currently selected row does not scroll to parent
r=varga, sr=bzbarsky, a=scc
Add ensureRowIsVisible in keypress handler when keycode="left"


git-svn-id: svn://10.0.0.236/trunk@125429 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-18 02:16:54 +00:00
kyle.yuan%sun.com
00aca9ccd9 Bug 140227 Strange shift+click and ctrl+click behaviour in single-selection listbox
r=neil@parkwaycc.co.uk, sr=bzbarsky, a=scc
Check "selType" in mouse click handler


git-svn-id: svn://10.0.0.236/trunk@125428 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-18 02:16:32 +00:00
hwaara%chello.se
cc965819e8 #156074, processing-instructions should be better denoted.
r=caillon, tim <riceman+bmo@mail.rit.edu>
sr=bzbarsky
a=scc

#156072, DOM inspector omits the #document node, and also doesn't show any sibling nodes to the root element (comments, text nodes, etc.)
r=caillon, tim <riceman+bmo@mail.rit.edu>
sr=bzbarsky
a=scc


git-svn-id: svn://10.0.0.236/trunk@125427 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-18 02:04:12 +00:00
bzbarsky%mit.edu
1365591a1e Make sure that painting is properly unsuppressed in XML docs. Bugs
156985, 81546, 157487, r=dbaron, sr=rbs, a=scc


git-svn-id: svn://10.0.0.236/trunk@125425 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-18 01:49:47 +00:00
naving%netscape.com
64e02d9ae6 157809 r=cavin sr=bienvenu a=scc fixing can't delete imap folders when using "mark as deleted" delete model
git-svn-id: svn://10.0.0.236/trunk@125422 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-18 01:18:14 +00:00
jkeiser%netscape.com
b5ecb6dda7 Make select clear when last option is removed from it (bug 154410), r=bzbarsky@mit.edu, sr=dbaron@fas.harvard.edu, a=asa
git-svn-id: svn://10.0.0.236/trunk@125421 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-18 00:58:31 +00:00
rginda%netscape.com
a0e80802d0 - venkman only -
bug 157638, "Land VENKMAN_FLOATS_MY_BOAT branch", a=scc
Landing the 3 month old branch, which fixes the following bugs...
121409, 103898, 116102, 116099, 127750, 127099, 121501, 127102, 127737, 127733, 150481, 156776, 156769, 153381, 153066, 152946, 127752, 116286, 143682, 130398, 129692, 156111, 127736, 130050, 139565, 128604, 127751, 127732, 127727, 103425, 85634, 139557, 125394


git-svn-id: svn://10.0.0.236/trunk@125420 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-18 00:54:32 +00:00
sfraser%netscape.com
0a23433cb9 Adding code to make stdout and stderr unbuffered, depending on the MOZ_UNBUFFERED_STDIO environment variable. This is needed for tests to run correctly.
git-svn-id: svn://10.0.0.236/trunk@125419 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-18 00:26:49 +00:00
jkeiser%netscape.com
77550ff3b4 Make form submission behave better in low-mem situations (bug 126941), r=sicking@bigfoot.com, sr=bzbarsky@mit.edu, a=asa
git-svn-id: svn://10.0.0.236/trunk@125418 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-18 00:23:09 +00:00
leaf%mozilla.org
080c774ee3 bug 154840, r=cls, sr=brendan, a=jesup update localeVersion strings
git-svn-id: svn://10.0.0.236/trunk@125417 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-17 23:51:49 +00:00
morse%netscape.com
b97395f839 bug 155114, stealing cookies based on path attribute, r=mstoltz, sr=jag, a=chofmann
git-svn-id: svn://10.0.0.236/trunk@125415 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-17 23:38:28 +00:00
nhotta%netscape.com
3773761d91 Restore my previous changes with mach-o build fix,
bug 108029, r=pinkerton, sr=sfraser, a=asa.


git-svn-id: svn://10.0.0.236/trunk@125410 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-17 23:05:30 +00:00
alecf%netscape.com
6a0f892905 remove .cvsignore from this empty directory - not part of the build in any way!
git-svn-id: svn://10.0.0.236/trunk@125408 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-17 22:56:34 +00:00
jpierre%netscape.com
01d9d47333 Fix usage
git-svn-id: svn://10.0.0.236/trunk@125407 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-17 22:53:33 +00:00
jpierre%netscape.com
20b1f3fa86 Fix for 157996 - add support for SEC_NewCrl browser emulation mode in crlutil
git-svn-id: svn://10.0.0.236/trunk@125405 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-17 22:22:26 +00:00
brade%netscape.com
49ccc35a74 bug 157851, 157923, 157811, 157440, and probably some others; cleanup attribute adding for meta tags and fix table api
git-svn-id: svn://10.0.0.236/trunk@125401 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-17 21:32:20 +00:00
wtc%netscape.com
8fb7a6ccd5 Bug 157946: removed the unused -m option. Added the -v option to Usage().
git-svn-id: svn://10.0.0.236/trunk@125397 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-17 18:39:02 +00:00
gerv%gerv.net
02ee939574 Bug 151648 - QA Contact stuff displayed even if you aren't using QA Contacts. 2xr=jouni.
git-svn-id: svn://10.0.0.236/trunk@125394 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-17 18:28:37 +00:00
pschwartau%netscape.com
1c0c54a637 Skip testcase for bug 157652. Will not fix this in Rhino; the OOM error is reasonable.
git-svn-id: svn://10.0.0.236/trunk@125393 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-17 18:20:58 +00:00
sfraser%netscape.com
b5c586f6ef Adding the Appearance.prefPane to the static target build settings.
git-svn-id: svn://10.0.0.236/trunk@125389 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-17 17:37:44 +00:00
karnaze%netscape.com
79e5539aec new regression tests, not affecting the build.
git-svn-id: svn://10.0.0.236/trunk@125388 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-17 16:51:52 +00:00
despotdaemon%netscape.com
a16e42c146 Pseudo-automatic update of changes made by knous@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@125387 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-17 16:42:02 +00:00
rods%netscape.com
1e79bb6ab0 Add additional test to printing test files
git-svn-id: svn://10.0.0.236/trunk@125386 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-17 13:37:59 +00:00
timeless%mac.com
3f5cca095a Bug 140630 LDAP should be in capital letters
patch by neil@parkwaycc.co.uk r=dmose sr=bienvenu a=asa


git-svn-id: svn://10.0.0.236/trunk@125385 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-17 13:19:16 +00:00
timeless%mac.com
3e602a9f04 Bug 156368 quicksearch fails if focus was in threadpane before search box
patch by neil@parkwaycc.co.uk r=naving sr=bienvenu a=asa


git-svn-id: svn://10.0.0.236/trunk@125384 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-17 13:06:09 +00:00
bryner%netscape.com
ba5e37b831 We don't need pippki.xpt either.
git-svn-id: svn://10.0.0.236/trunk@125382 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-17 08:52:43 +00:00
rbs%maths.uq.edu.au
13627c98ae re-enabling MathML after peterv's fixup
git-svn-id: svn://10.0.0.236/trunk@125381 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-17 07:23:16 +00:00
peterv%netscape.com
58298ba6cd Fixing MathML packaging bustage on Mac.
git-svn-id: svn://10.0.0.236/trunk@125380 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-17 07:17:05 +00:00
axel%pike.org
d1e791d134 adding an id to the QA menupopup, so one can overlay that. bug 157382, r=neil@parkwaycc.co.uk, sr=alecf, a=asa
git-svn-id: svn://10.0.0.236/trunk@125379 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-17 07:04:30 +00:00
bryner%netscape.com
98bebf9f26 Remove libpippki. This is only needed for the XUL implementation of the security dialogs.
git-svn-id: svn://10.0.0.236/trunk@125378 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-17 06:22:42 +00:00
wtc%netscape.com
3c02768be9 Bug 141614: restored Matthew Zahorik's net_server nonblocking connect
logic, which accidentally got deleted when the BONE changes were checked
in. This patch was contributed by Arougthopher
<arougthopher@lizardland.net>.
Modified Files: bfile.c bmisc.c bnet.c


git-svn-id: svn://10.0.0.236/trunk@125377 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-17 06:04:42 +00:00
mkaply%us.ibm.com
d78fa03226 #157770
r=dougt, sr=blizzard, a=asa
OS/2 only - up the numbre of file handles when starting Moz, and handle specific error with DosCopy


git-svn-id: svn://10.0.0.236/trunk@125373 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-17 05:46:34 +00:00
mkaply%us.ibm.com
beb0c00835 #157758
r=pedemont, sr=blizzard, a=asa
OS/2 only - always use facename rather than familyname for DBCS fonts


git-svn-id: svn://10.0.0.236/trunk@125372 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-17 05:42:07 +00:00
mkaply%us.ibm.com
281419934a #157383
r=pedemont, sr=blizzard, a=asa
OS/2 only - truncate title bar text to 256 to workaround OS bug


git-svn-id: svn://10.0.0.236/trunk@125370 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-17 05:36:04 +00:00
despotdaemon%netscape.com
30cf0df97e Pseudo-automatic update of changes made by t_mutreja@yahoo.com.
git-svn-id: svn://10.0.0.236/trunk@125368 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-17 05:33:09 +00:00
bzbarsky%mit.edu
02fd13d54d Bug 114627 -- ESC should dismiss default plugin dialog. Patch by
Andre  Dahlqvist <anedah-9@student.luth.se>, r=serge, sr=blizzard, a=asa


git-svn-id: svn://10.0.0.236/trunk@125364 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-17 04:36:13 +00:00
leaf%mozilla.org
2b20d4bbf7 Automated update
git-svn-id: svn://10.0.0.236/trunk@125358 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-17 02:40:21 +00:00
leaf%mozilla.org
59f26094d7 bug 157558, r=cls. version string updates for upcoming 1.1b
git-svn-id: svn://10.0.0.236/trunk@125357 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-17 02:39:51 +00:00
pete.zha%sun.com
3d85f30820 Implementation the nsIAccessibleTable for XUL tree table
bug=155866, r=kyle, sr=jst, a=asa


git-svn-id: svn://10.0.0.236/trunk@125356 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-17 02:32:17 +00:00
karnaze%netscape.com
e1b0af4e1d bug 153785 - Added function to undo splitting floaters when the line they are on gets moved to the next page. Cached the break type of the last floater that gets split in the block reflow state so that the frame afterh the floater's continuation can combine that break type with its own. a=asa, sr=kin, r=alexsavulov
git-svn-id: svn://10.0.0.236/trunk@125355 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-17 01:48:56 +00:00
wtc%netscape.com
8db48c9761 Bug 157347: deleted the code that tried to escape the quotes around
command-line arguments. The patch was contributed by Michael Kaply
<mkaply@us.ibm.com>. r=wtc.


git-svn-id: svn://10.0.0.236/trunk@125353 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-17 01:45:57 +00:00
kyle.yuan%sun.com
54b0837973 Bug 154089 "My Sidebar" in Address Book can't show at the first time
r=morse, sr=alecf, a=asa
Thanks for Robin Lu (robin.lu@sun.com)'s fix


git-svn-id: svn://10.0.0.236/trunk@125351 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-17 01:36:37 +00:00
glen.beasley%sun.com
7f5a5a618a typecast for AIX build proper way
git-svn-id: svn://10.0.0.236/trunk@125349 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-17 01:14:58 +00:00
akkana%netscape.com
03e46541b4 Add a target to make the xpi. Not part of the normal build.
git-svn-id: svn://10.0.0.236/trunk@125348 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-17 01:04:10 +00:00
nhotta%netscape.com
fb56d1e2c0 Back out my last changes for the mach-o build problem.
git-svn-id: svn://10.0.0.236/trunk@125347 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-17 00:38:33 +00:00
rbs%maths.uq.edu.au
ea6e894339 Turn off the build of MathML to attempt to fix the bustage
git-svn-id: svn://10.0.0.236/trunk@125346 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-17 00:31:47 +00:00
jpierre%netscape.com
85c326e9c8 Fix for 153245
git-svn-id: svn://10.0.0.236/trunk@125345 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-17 00:21:09 +00:00
rbs%maths.uq.edu.au
21c0ccc330 Attempt to fix Mac bustage
git-svn-id: svn://10.0.0.236/trunk@125344 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-17 00:09:59 +00:00
glen.beasley%sun.com
24132ce4c9 typecast for AIX build
git-svn-id: svn://10.0.0.236/trunk@125343 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-16 23:52:45 +00:00
rbs%maths.uq.edu.au
b074819e6d Whitespace to add a=drivers, b=155703, r=peterv, sr=sfraser, a=asa
git-svn-id: svn://10.0.0.236/trunk@125342 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-16 23:29:54 +00:00
rbs%maths.uq.edu.au
b0b7a20bdb Turn on MathML in the Mac build, b=155703, r=peterv, sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@125340 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-16 23:25:55 +00:00
rbs%maths.uq.edu.au
178b6c2d5e Implement GetBoundingMetrics() on the Mac. p=schofield@wolfram.com, r=rbs, sr=sfraser, a=asa
git-svn-id: svn://10.0.0.236/trunk@125338 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-16 23:18:37 +00:00
curt%netscape.com
908b8255d4 Disabled functionality for refreshing icons because it was causing unacceptable
side effects.
  (Bug #154708, r=ssu, sr=dveditz, a=asa)


git-svn-id: svn://10.0.0.236/trunk@125336 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-16 23:07:24 +00:00
bryner%netscape.com
cab12511d4 Rework the x86 unix + gcc xptcall implementation to speed it up and allow it to work with gcc 3.1 (bug 140412). Patch by drepper@redhat.com, r=shaver, sr=blizzard.
git-svn-id: svn://10.0.0.236/trunk@125335 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-16 23:05:11 +00:00
bryner%netscape.com
9a806c60fe Implement activate and deactivate events for chimera (bug 157648). r=sfraser.
git-svn-id: svn://10.0.0.236/trunk@125334 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-16 22:55:36 +00:00
bryner%netscape.com
e7c2ffe30a Fix cookie chrome registration for embedding (bug 153581). r=pinkerton, sr=bzbarsky, a=asa.
git-svn-id: svn://10.0.0.236/trunk@125333 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-16 22:51:52 +00:00
bryner%netscape.com
6ada3edcd7 Implement nsIWidget::HideWindowChrome() for gtk (bug 157371). r=blizzard, sr=jag, a=asa.
git-svn-id: svn://10.0.0.236/trunk@125332 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-16 22:49:33 +00:00
jkeiser%netscape.com
701be434fb Make save/restore work for all forms, not just the first (bug 138892), r=rods@netscape.com, sr=attinasi@netscape.com, a=asa
git-svn-id: svn://10.0.0.236/trunk@125331 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-16 22:38:51 +00:00
aaronl%netscape.com
d4699db840 Not part of build. Bug 30088 - type ahead find. Fixes it so that you must type backspace to remove a character from the buffer.
git-svn-id: svn://10.0.0.236/trunk@125330 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-16 22:30:10 +00:00
jfrancis%netscape.com
50be087f7b fix for Bug 154932: Mozilla will not start on MacOS 8.6 if filesharing is on. Corrected the construction of an FSSpec in nsDirectoryService.cpp
r=ccarlen
sr=sfraser


git-svn-id: svn://10.0.0.236/trunk@125329 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-16 22:17:56 +00:00
aaronl%netscape.com
78ee60a834 Not part of build. Bug 30088 - type ahead find. Fixes it so that feature is not activated in isindex or input type=file. Typing / now indicates text only search, a quote now indicates link search. Fixes repeated character so it only cycles through links if the exact repeated characters cannot be found repeated like that in the text/links
git-svn-id: svn://10.0.0.236/trunk@125326 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-16 22:08:55 +00:00
pschwartau%netscape.com
bd64afa8ab Changing summary text.
git-svn-id: svn://10.0.0.236/trunk@125324 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-16 21:35:30 +00:00
nhotta%netscape.com
0c40fcbd93 For mailto URL, convert spec to UTF-8 (from origin charset) if necessary,
bug 141134, r=ducarroz, sr=bienvenu, a=asa.


git-svn-id: svn://10.0.0.236/trunk@125323 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-16 21:34:25 +00:00
pschwartau%netscape.com
223e70cbbd Initial add. Regression test for bug 157652.
git-svn-id: svn://10.0.0.236/trunk@125322 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-16 21:23:58 +00:00
ducarroz%netscape.com
71d5be248f Fix for bug 143882 (remaining problem). We need to remove internal headers when sending message as attachment. R=varada, SR=bienvenu, A=asa
git-svn-id: svn://10.0.0.236/trunk@125321 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-16 21:18:46 +00:00
igor%mir2.org
64213cbcf3 Serialization fixes to correctly restore members and related fields in NativeJavaClass.
git-svn-id: svn://10.0.0.236/trunk@125320 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-16 21:17:09 +00:00
igor%mir2.org
8b45eec30f Fixing the bug 157196: custom serialization of ScriptableObject not to save deleted/empty slot.
git-svn-id: svn://10.0.0.236/trunk@125319 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-16 21:15:51 +00:00
wtc%netscape.com
76a809a67c Bug 157750: handle the possibility that some certs do not have a label.
git-svn-id: svn://10.0.0.236/trunk@125316 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-16 21:13:40 +00:00
nhotta%netscape.com
f5796b5f71 Changed charset conversions for clipboard, D&D,
* copy from Mozilla, added fallback to try non system default scripts
* copy to Mozilla, check 'styl' and if available use that script instead of
using the system's default
bug 108029, r=pinkerton, sr=sfraser, a=asa.


git-svn-id: svn://10.0.0.236/trunk@125312 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-16 19:38:08 +00:00
despotdaemon%netscape.com
1b7caa10dc Pseudo-automatic update of changes made by knous@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@125308 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-16 18:45:22 +00:00
sfraser%netscape.com
111f6a2e8d Adding files for the Appearance prefs panel, and adding this panel to the static build target.
git-svn-id: svn://10.0.0.236/trunk@125305 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-16 17:47:23 +00:00
sfraser%netscape.com
01c46ae9cd Adding the Appearance prefs panel to the list of panels, fixing the prefs panel base class to use UTF-8 for prefs, and adding a changeFont handler on the window's controller that can forward changeFont() messages back to the current prefs pane (used by the Appearance pane).
git-svn-id: svn://10.0.0.236/trunk@125304 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-16 17:45:48 +00:00
sfraser%netscape.com
2a055af3f8 More changes for the fonts prefs panel.
git-svn-id: svn://10.0.0.236/trunk@125303 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-16 17:43:43 +00:00
igor%mir2.org
0b2c94950a Checking for 1.2 version in toString for objects and arrays is replaced by calling cx.hasFeature(Context.FEATURE_TO_STRING_AS_SOURCE) to allow to control toString from applications without switching on other JS 1.2 features.
git-svn-id: svn://10.0.0.236/trunk@125302 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-16 17:42:18 +00:00
igor%mir2.org
f3367c89e9 I removed startString/getString and their support code as TokenStream uses its own buffer and fixed the bug 151337 which was cause by incorrect getLine
git-svn-id: svn://10.0.0.236/trunk@125301 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-16 17:37:46 +00:00
relyea%netscape.com
48c6b9c1ce Automatically recover from database corruptions when importing new certs.
git-svn-id: svn://10.0.0.236/trunk@125299 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-16 16:44:22 +00:00
ian%hixie.ch
4dcb11a39f Some minor code fixups with no semantic change. Also, fixed the getArgumentsAsString method to not screw up the output when there are empty arrays in the arguments hash (as can happen when you call createArgument, which happens when getArgument is called and the argument is missing) and when the arguments hash contains scalars.
git-svn-id: svn://10.0.0.236/trunk@125298 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-16 15:50:14 +00:00
peterv%netscape.com
76b49d7465 Temporarily disable the code that caused the slowdown in Txul, Tp and Ts. Bug 156452.
git-svn-id: svn://10.0.0.236/trunk@125297 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-16 15:46:39 +00:00
ian%hixie.ch
690d2c0bef Add support for a command which does nothing but pass its argument to the output system. This is especially useful for templates that want to show other templates without actually doing anything else, and so the command is called 'showTemplate'.
git-svn-id: svn://10.0.0.236/trunk@125296 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-16 15:46:28 +00:00
dbaron%fas.harvard.edu
f9da4499fa Work around crashes at ChildIterator::get using bounds check on ChildIterator::seek. sr=waterson r=kin a=asa b=133219
git-svn-id: svn://10.0.0.236/trunk@125295 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-16 14:53:43 +00:00
sicking%bigfoot.com
7ef44d6e76 Add same-origin checks in a few DOM methods. Patch by me and jst.
b=156452, r=jst/me, sr=bz, a=pending


git-svn-id: svn://10.0.0.236/trunk@125294 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-16 13:09:15 +00:00
axel%pike.org
3495eca2d7 remove security checks from buster, it's chrome:// now. Not part of build
git-svn-id: svn://10.0.0.236/trunk@125293 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-16 11:58:26 +00:00
locka%iol.ie
4bd8981445 Move appstrings.properties into new docshell/resources dir. b=156988 r=brade@netscape.com sr=rpotts@netscape.com a=asa@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@125292 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-16 11:54:44 +00:00
kairo%kairo.at
7d69abde8e reorder/split strings in language/content pref panel to better remind users of restarting, bug 137324, r=axel@pike.org, sr=alecf, a=asa
git-svn-id: svn://10.0.0.236/trunk@125291 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-16 09:38:42 +00:00
despotdaemon%netscape.com
4b278d819a Pseudo-automatic update of changes made by bugreport@peshkin.net.
git-svn-id: svn://10.0.0.236/trunk@125275 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-16 03:26:59 +00:00
dveditz%netscape.com
f2f1b42a6b Correct preference escaping for bug 143459, r=bnesse,mstoltz sr=alecf, a=asa
git-svn-id: svn://10.0.0.236/trunk@125273 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-16 02:09:34 +00:00
kyle.yuan%sun.com
98c1392734 Sorry, my previous checkin is not the final one. Fixed!
git-svn-id: svn://10.0.0.236/trunk@125272 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-16 01:45:38 +00:00
jkeiser%netscape.com
d0f3fe54a4 Make form.submit() work in onSubmit in standards mode (bug 155453), r=bzbarsky@mit.edu, sr=jst@netscape.com
git-svn-id: svn://10.0.0.236/trunk@125270 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-16 01:43:21 +00:00
sdagley%netscape.com
23ed5d660d Fix #143543 - Work around Nav Services 1.0 flaw so Save File dialogs works on Mac OS 8.6. r/sr=sfraser, a=asa
git-svn-id: svn://10.0.0.236/trunk@125269 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-16 01:39:39 +00:00
kyle.yuan%sun.com
ac37835845 Bug 154929 Wrong behavior when dragging splitter in mail thread pane
r=varga, sr=bryner, a=asa
omitted hidden columns when dragging


git-svn-id: svn://10.0.0.236/trunk@125268 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-16 01:23:43 +00:00
jpierre%netscape.com
5a725d3799 Make certutil use the new CERT_VerifyCertificate function when verifying certs
git-svn-id: svn://10.0.0.236/trunk@125265 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-16 00:45:50 +00:00
despotdaemon%netscape.com
d3b242d8b6 Pseudo-automatic update of changes made by knous@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@125261 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-16 00:03:14 +00:00
dougt%netscape.com
44e616bb84 Fixing bug 157192. r=me, sr=dbaron, a=asa.
git-svn-id: svn://10.0.0.236/trunk@125259 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-15 23:32:36 +00:00
despotdaemon%netscape.com
be927b60f1 Pseudo-automatic update of changes made by knous@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@125258 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-15 23:31:05 +00:00
despotdaemon%netscape.com
b72e38951c Pseudo-automatic update of changes made by knous@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@125257 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-15 23:21:01 +00:00
pschwartau%netscape.com
be4875d3c7 Initial add. Regression test for bug 58274.
git-svn-id: svn://10.0.0.236/trunk@125256 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-15 23:20:15 +00:00
pschwartau%netscape.com
4c78026770 Initial add. Testing identifiers with double-byte names; see bug 58274.
git-svn-id: svn://10.0.0.236/trunk@125254 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-15 23:15:52 +00:00
nhotta%netscape.com
ead545266a Changed to return a result code for conversions so the caller can try fallback,
also changed convert from Unicode to try keyscript in addition to the system default,
bug 108029, r=pinkerton, sr=sfraser, a=asa.


git-svn-id: svn://10.0.0.236/trunk@125253 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-15 23:01:17 +00:00
nhotta%netscape.com
29ca846b8b Adding new files for utitily functions to convert between native script and Unicode,
bug 108029, r=pinkerton, sr=sfraser, a=asa.


git-svn-id: svn://10.0.0.236/trunk@125251 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-15 22:57:35 +00:00
nicolson%netscape.com
202ab4d6e1 fix 157622: cleanup javadoc warnings.
Have the build system automatically copy overview-summary.html over
index.html so we get a frame-free version.


git-svn-id: svn://10.0.0.236/trunk@125249 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-15 22:52:58 +00:00
jst%netscape.com
4a5f28b71e Checking in alexey@ihug.com.au's fix for bug 144040. Make sure the enabled column in about:plugins contains correct information. r=peterl@netscape.com, sr=jst@netscape.com
git-svn-id: svn://10.0.0.236/trunk@125248 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-15 22:50:49 +00:00
nicolson%netscape.com
8c3d311cb9 Fix 157622: cleanup javadoc warnings.
These changes should only affect documentation. There should be no
functional effect of the changes.


git-svn-id: svn://10.0.0.236/trunk@125247 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-15 22:48:06 +00:00
mjudge%netscape.com
2210006d15 r=akkana sr=sfrasier 125146 a=asa This patch will make the embedding API's a better friend to all. It eliminates the use of multibyte strings in command names and also allows for simple command to not require the nsICommandParams interface to be filled.
git-svn-id: svn://10.0.0.236/trunk@125242 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-15 22:04:13 +00:00
cltbld%netscape.com
c05cd73c0a updating for mozilla1.1b, kysmith checking in as cltbld, sr=leaf, bugzilla 157557
git-svn-id: svn://10.0.0.236/trunk@125241 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-15 21:40:28 +00:00
cltbld%netscape.com
1c29191311 updating for mozilla1.1b, sr=leaf, kysmith checking in as cltbld, bugzilla 157557
git-svn-id: svn://10.0.0.236/trunk@125238 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-15 21:13:59 +00:00
shrutiv%netscape.com
fe40cb95cb updating images
git-svn-id: svn://10.0.0.236/trunk@125237 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-15 21:00:59 +00:00
pavlov%netscape.com
6998788589 checking in fix for bug 155222 r=pavlov sr=tor@acm.org
git-svn-id: svn://10.0.0.236/trunk@125235 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-15 20:17:09 +00:00
axel%pike.org
b5574b2a89 chromeing XSLT QA app buster, not removing security checks yet, though. Plus, adding stats and test display by peterv. Not part of build.
git-svn-id: svn://10.0.0.236/trunk@125234 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-15 19:51:27 +00:00
sicking%bigfoot.com
f0e2529596 Add sameorigin checks to treewalker
b=156452, r=mstoltz, sr=jst, a=chofmann


git-svn-id: svn://10.0.0.236/trunk@125233 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-15 19:25:27 +00:00
sfraser%netscape.com
48ac123446 Add implementation of the Fonts pref panel, and add the contents of the .nib file
git-svn-id: svn://10.0.0.236/trunk@125232 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-15 19:14:08 +00:00
locka%iol.ie
1c9690aa38 Ensure load error pages don't end up in the session history. b=157004 r=radha sr=rpotts a=asa
git-svn-id: svn://10.0.0.236/trunk@125231 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-15 19:10:13 +00:00
igor%mir2.org
55ae98c99d I changed TokenStream to use internal buffer in place of LineBuffer#startString/getString to store currently read characters for identifiers, strings and numbers. For the price of yet another character coping it allows to simplify code logic especially regarding interaction with LineBuffer.
I also fixed http://bugzilla.mozilla.org/show_bug.cgi?id=157509


git-svn-id: svn://10.0.0.236/trunk@125229 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-15 18:49:42 +00:00
depstein%netscape.com
7d4747a04e new string handling for webProg notification flags.
a=asa for QA checkins that are not part of the default builds


git-svn-id: svn://10.0.0.236/trunk@125228 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-15 18:25:47 +00:00
mostafah%oeone.com
5a20737e37 Checking in patch for bug 132231 ( leaving out changes to description/categories/locations/url ): No support for International characters
git-svn-id: svn://10.0.0.236/trunk@125226 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-15 17:31:40 +00:00
pschwartau%netscape.com
d896129cde Correcting two sections of test.
git-svn-id: svn://10.0.0.236/trunk@125225 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-15 17:28:05 +00:00
pschwartau%netscape.com
5fb9b41f57 Expanding a comment for one section in greater detail.
git-svn-id: svn://10.0.0.236/trunk@125224 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-15 17:04:38 +00:00
mostafah%oeone.com
55dbf25c70 Checked in patch for bug 156495: VCALENDAR objects of TODO items don't have 'version' and 'prodid' properties.
git-svn-id: svn://10.0.0.236/trunk@125220 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-15 16:20:29 +00:00
pschwartau%netscape.com
4bb036ffe0 Initial add. Regression test for bug 157509.
git-svn-id: svn://10.0.0.236/trunk@125219 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-15 15:22:35 +00:00
karnaze%netscape.com
3ce2c0f149 new regression tests not affecting the build.
git-svn-id: svn://10.0.0.236/trunk@125218 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-15 15:18:28 +00:00
pschwartau%netscape.com
e2aaf6643f Comment edit.
git-svn-id: svn://10.0.0.236/trunk@125217 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-15 15:07:33 +00:00
pschwartau%netscape.com
cd52e68590 Added revision date + comment clean-up.
git-svn-id: svn://10.0.0.236/trunk@125216 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-15 15:06:37 +00:00
karnaze%netscape.com
ed50f0e383 bug 154741 - use macros instead of NS_FRAME_COMPLETE, a=asa, sr=kin, r=alexsavulov.
git-svn-id: svn://10.0.0.236/trunk@125215 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-15 14:46:01 +00:00
kaie%netscape.com
a87d01f430 b=153232 Add better error message for -8182
r=javi sr=alecf a=asa


git-svn-id: svn://10.0.0.236/trunk@125211 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-15 13:39:13 +00:00
kaie%netscape.com
55bf8b4f06 b=151250 False warning posting to https site from http site.
r=javi sr=alecf a=asa


git-svn-id: svn://10.0.0.236/trunk@125210 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-15 13:37:22 +00:00
kaie%netscape.com
7c8854f3d0 b=114893 Can't send encrypted mail if encryption cert has not been imported. Smartcard issue.
r=javi sr=alecf a=asa


git-svn-id: svn://10.0.0.236/trunk@125209 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-15 13:35:30 +00:00
rods%netscape.com
09fb40aa17 Forgot to initialize the arg to false, and th js code needs to finsih PP in the catch if an error is passed back.
Bug 157129 r=carlen sr=waterson a=asa


git-svn-id: svn://10.0.0.236/trunk@125207 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-15 11:44:42 +00:00
pete.zha%sun.com
ea278357db Implementation of nsIAccessibleValue
bug=150606 r=kyle.yuan@sun.com sr=jag patch=gilbert.fang@sun.com


git-svn-id: svn://10.0.0.236/trunk@125194 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-15 02:23:23 +00:00
pschwartau%netscape.com
aa9222e54c Correcting an error in the test. See bug 155291.
git-svn-id: svn://10.0.0.236/trunk@125193 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-15 00:40:14 +00:00
pschwartau%netscape.com
2aa4367266 Correcting errors in test. See bug 155289.
git-svn-id: svn://10.0.0.236/trunk@125192 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-15 00:29:37 +00:00
pschwartau%netscape.com
05b930589a Correcting errors in the test. See bug 155289.
git-svn-id: svn://10.0.0.236/trunk@125191 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-15 00:04:22 +00:00
pschwartau%netscape.com
5a05ebc498 Correcting errors in the test. See bug 155289.
git-svn-id: svn://10.0.0.236/trunk@125190 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-14 23:57:03 +00:00
pschwartau%netscape.com
970893aaaf Correcting an error in one section of the test. See bug 155285.
git-svn-id: svn://10.0.0.236/trunk@125189 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-14 23:42:23 +00:00
pschwartau%netscape.com
e7e5a1677a Rhino has also decided to conform with SpiderMonkey on this test. Adding early return for Rhino as well.
git-svn-id: svn://10.0.0.236/trunk@125187 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-14 22:34:50 +00:00
pschwartau%netscape.com
3dd30e325a Rhino has also decided to conform with SpiderMonkey on this test. Removing early return for Rhino.
git-svn-id: svn://10.0.0.236/trunk@125186 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-14 22:23:52 +00:00
jshin%mailaps.org
a1c1e34624 bug 133216 - make multibyte decoder more robust for invalid octet sequence.
r=yokoyama, sr=alecf, a=asa


git-svn-id: svn://10.0.0.236/trunk@125182 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-14 10:45:54 +00:00
jshin%mailaps.org
a2468389cc bug 135850 - Make Korean JOHAB encoder (Compatibility Jamo part) aligned with
Adobe CMap and XFree86 font encoding file for JOHAB.
r=yokoyama,sr=alecf,a=asa


git-svn-id: svn://10.0.0.236/trunk@125181 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-14 10:28:48 +00:00
sfraser%netscape.com
eb22c6a272 Adding Appearance pref pane files to project.
git-svn-id: svn://10.0.0.236/trunk@125170 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-14 02:15:14 +00:00
sfraser%netscape.com
d37a90f0b3 Changing the Navigation prefs pane to use the common base class. Also changed the wording of the 'load tabs in background' checkbox to indicate that this pref affects new windows too.
git-svn-id: svn://10.0.0.236/trunk@125169 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-14 02:13:13 +00:00
sfraser%netscape.com
ff6fec4d67 New files for Appearance pref pane. The tiff is temporary.
git-svn-id: svn://10.0.0.236/trunk@125168 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-14 02:11:32 +00:00
sfraser%netscape.com
42dc561f4c New base class for Preference Pane implementations, provides methods for getting and setting mozilla prefs.
git-svn-id: svn://10.0.0.236/trunk@125167 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-14 02:10:30 +00:00
bryner%netscape.com
069dbfb68c Fix full-page plugins on static builds by registering the docloader factory via nsIComponentRegistrar::RegisterFactory, so we don't have to depend on there being a plugin shared library in the components directory. r=peterl, sr=shaver, a=chofmann.
git-svn-id: svn://10.0.0.236/trunk@125164 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-14 00:39:35 +00:00
bryner%netscape.com
0941d2ecdb On second thought, only allocate the extra space when determining the element size; still paint the indicator at its "real" size. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@125160 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-13 23:27:16 +00:00
bryner%netscape.com
92c533513a Put a hardcoded min size of 14px on checkbox and radio button indicators, since many themes have indicators that are larger than the default 10px indicator_size, but don't bother setting the property. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@125156 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-13 22:05:38 +00:00
locka%iol.ie
fc56222620 Support client specific manifests. b=154878 r=chak@netscape.com sr=rpotts@netscape.com a=asa@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@125151 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-13 15:09:26 +00:00
locka%iol.ie
dd99f9e5bc Support client specific manifests. b=154878 r=chak@netscape.com sr=rpotts@netscape.com a=asa@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@125150 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-13 14:41:45 +00:00
caillon%returnzero.com
bfa2307cf1 Bug 157083. Smart Browsing Advanced window is sized too small when no checkboxes checked.
r=bzbarsky sr=blake a=asa


git-svn-id: svn://10.0.0.236/trunk@125149 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-13 11:30:09 +00:00
mstoltz%netscape.com
436a8b02f7 bug 125725, part 2 - pass nsIURIs instead of char* URL specs into nsCookies.
That way, we won't try to get or set cookies on protocols that don't support host.
r=morse, sr=dveditz, a=asa


git-svn-id: svn://10.0.0.236/trunk@125142 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-13 03:45:05 +00:00
relyea%netscape.com
9dc2692721 Fix solaris signed/unsigned warnings.
On updating nicknames, create a nickname record if one doesn't exist (that is
somehow the database got corrupted).


git-svn-id: svn://10.0.0.236/trunk@125140 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-13 02:45:04 +00:00
ccarlen%netscape.com
8fe2ca829c Fixing bustage on planetoid.
git-svn-id: svn://10.0.0.236/trunk@125139 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-13 01:07:57 +00:00
waldemar%netscape.com
b2fd32511a Obsolete
git-svn-id: svn://10.0.0.236/trunk@125137 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-13 00:52:10 +00:00
despotdaemon%netscape.com
f80ad3f50f Pseudo-automatic update of changes made by endico@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@125136 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-13 00:26:25 +00:00
ccarlen%netscape.com
96a6b4aa46 Bug 154883 - Use session printing APIs on Mac OSX. r=pinkerton/sr=sfraser/a=asa
git-svn-id: svn://10.0.0.236/trunk@125133 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-13 00:18:46 +00:00
ccarlen%netscape.com
71ffff784e Adding new files for bug 154883 - using session printing APIs on OSX. r=pinkerton/sr=sfraser/a=asa
git-svn-id: svn://10.0.0.236/trunk@125132 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-13 00:08:42 +00:00
shrutiv%netscape.com
7e2893cc71 Fix for bug 155468: Installation of c11n build crash due to incorrect
attributes for Viewpoint (r=smeredith)


git-svn-id: svn://10.0.0.236/trunk@125131 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-12 23:48:13 +00:00
cltbld%netscape.com
3f1b90e393 Adding default, blank string for BuildNameExtra. -mcafee
git-svn-id: svn://10.0.0.236/trunk@125129 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-12 22:45:41 +00:00
brade%netscape.com
3b0fc8bc5c bug 156918; cleanup QI usage and fix some recent regressions (r=Neil, Akkana, sr=Simon)
git-svn-id: svn://10.0.0.236/trunk@125128 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-12 22:28:30 +00:00
brade%netscape.com
0dde44ee8b fix typo (r=akkana, sr=sfraser)
git-svn-id: svn://10.0.0.236/trunk@125127 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-12 22:24:39 +00:00
leaf%mozilla.org
c8844accd0 Automated update
git-svn-id: svn://10.0.0.236/trunk@125126 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-12 21:40:22 +00:00
dmose%netscape.com
e8c3820f63 Add a configure option and hack for Linux x86 to make existing plugin binaries (eg flash, real, ...) work with gcc 3.1 builds (bug 154206). r=bryner@netscape.com, serge@netscape.com; sr=blizzard@mozilla.org; a=asa@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@125125 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-12 21:30:31 +00:00
rginda%netscape.com
175c89a2ea bug 155838, "Infinite loop caused by strange code", r=peterv, sr=brendan, a=roc+moz@cs.cmu.edu
don't leave gDeadScripts pointing at garbage.  May or may not fix the problem at hand, but is an improvement in either case.


git-svn-id: svn://10.0.0.236/trunk@125124 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-12 21:28:29 +00:00
shannond%netscape.com
a7311a64c7 Bug 147978 - The copy of an existing config should use its own Workspace
r=mitchf@netscape.com
This checkin to take into account if the administrator changed the path in the original configuration.


git-svn-id: svn://10.0.0.236/trunk@125123 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-12 21:27:34 +00:00
radha%netscape.com
8f44bb451e Fix for bug # 124245. javascript onload redirect breaks back button. r= rpotts sr=alecf, a=roc+moz
git-svn-id: svn://10.0.0.236/trunk@125122 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-12 21:15:51 +00:00
rbs%maths.uq.edu.au
7934fc0bf6 Align the bar of the radical on pixel boundaries to get a nicer & uniform spacing on stacked radicals, b=130282, r=roc+moz, sr=waterson, a=asa
git-svn-id: svn://10.0.0.236/trunk@125121 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-12 21:14:32 +00:00
nicolson%netscape.com
7a797251db put back the assertion check.
git-svn-id: svn://10.0.0.236/trunk@125119 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-12 21:12:22 +00:00
dougt%netscape.com
368181a95d nscore.h has unreachable MSVC #defines (mutually exclusive nested #if), r=dbaron sr=scc a=superfly asa
git-svn-id: svn://10.0.0.236/trunk@125118 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-12 21:08:56 +00:00
nicolson%netscape.com
0f1ab3ab0c Fix misspelled exception name.
git-svn-id: svn://10.0.0.236/trunk@125117 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-12 21:08:22 +00:00
nicolson%netscape.com
ad1a1e4c9c add default constructor
git-svn-id: svn://10.0.0.236/trunk@125116 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-12 21:07:40 +00:00
bzbarsky%mit.edu
050d8e8c55 Add some more Ethiopic list styles. Bug 154503, patch by yacob@geez.org
(Daniel Yacob), r=dbaron, rs=brendan, a=asa


git-svn-id: svn://10.0.0.236/trunk@125114 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-12 20:46:19 +00:00
nicolson%netscape.com
e8aaf9ad36 This test isn't working yet, but I may get it working at some point.
git-svn-id: svn://10.0.0.236/trunk@125113 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-12 20:33:39 +00:00
alecf%netscape.com
9abc7e5dc6 bug 156736 - reorganize basebrowser-* to make it easier for embeddors to pick & choose components
r=adamlock, sr=dveditz, a=asa


git-svn-id: svn://10.0.0.236/trunk@125112 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-12 20:33:12 +00:00
mkaply%us.ibm.com
1e8274b9b8 #67913
r=pedemont, sr=blizzard (platform specific code)
OS/2 only = 800x600 reports the workarea size incorrectly, so explictly use the height of warpcenter


git-svn-id: svn://10.0.0.236/trunk@125109 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-12 20:01:59 +00:00
igor%mir2.org
7368ef0536 Call to InterpretedFunction.construct is inlined to avoid argument array allocation.
git-svn-id: svn://10.0.0.236/trunk@125106 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-12 19:40:49 +00:00
igor%mir2.org
c95dcd43e0 Creation and initialization of new object in BaseFunction.construct is moved to a separated function createObject to simplify inlining of InterpretedFunction.construct in Interpreter
git-svn-id: svn://10.0.0.236/trunk@125105 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-12 19:39:57 +00:00
mikep%oeone.com
c9f6793cd8 Fixing bug 137513 for mouse wheel scrolling, and also fixing display time for alarms in alarm dialog (problme with repeating events.)
git-svn-id: svn://10.0.0.236/trunk@125104 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-12 19:39:37 +00:00
igor%mir2.org
63fd7c33bc Added ObjToIntMap.intern()
git-svn-id: svn://10.0.0.236/trunk@125103 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-12 19:37:20 +00:00
dmose%netscape.com
87d338aa27 Fix OSF/1 build bustage (bug 144280). Patch from shanmu@netscape.com; r=dmose@netscape.com, sr=bienvenu@netscape.com, a=roc+moz@cs.cmu.edu
git-svn-id: svn://10.0.0.236/trunk@125102 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-12 19:29:52 +00:00
alecf%netscape.com
2f59581288 bug 66759 - finally remove XPCOM_STANDALONE completely
r=dougt, rs=brendan, a=asa


git-svn-id: svn://10.0.0.236/trunk@125100 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-12 19:14:35 +00:00
dsirnapalli%netscape.com
5d8fa23aad Updated the test case.
git-svn-id: svn://10.0.0.236/trunk@125098 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-12 18:38:20 +00:00
mikep%oeone.com
38a5767562 Fixing bug 137513, problem with mouse scrolling after switching to week and day views.
git-svn-id: svn://10.0.0.236/trunk@125097 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-12 18:33:23 +00:00
naving%netscape.com
f44a2d8138 156368 patch by t.bugz@lament.cjb.net r=naving sr=bienvenu a=roc+moz fixing quicksearch fails if focus was in threadpane before search box
git-svn-id: svn://10.0.0.236/trunk@125093 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-12 17:57:02 +00:00
pinkerton%netscape.com
f1c996ad85 Replace the standard gecko 'image placeholder' with a more aqua-one from ugo
git-svn-id: svn://10.0.0.236/trunk@125092 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-12 15:22:28 +00:00
kaie%netscape.com
f8b44ebc4e b=135214 tentative fix for "signed icon in 3-pane isn't going away"
r=dbaron sr=mscott


git-svn-id: svn://10.0.0.236/trunk@125091 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-12 11:53:34 +00:00
rods%netscape.com
44a86dac88 changed all the DEVMODE allocating and freeing to native Windows calls HeapAlloc and HeapFree
nsPrintSettingsWin.cpp was creating and copying only the non-platform specific data by using the
"sizeof" of the DEVMODE struct, instead of checking the struct size with dmSize
and the size of the private (device-specific) data with dmDriverExtra. Now it
creates the correct size of memory and copies all the non-private data and private data.
Bug 156318 r=dcone sr=kin,waterson,rpotts a=asa


git-svn-id: svn://10.0.0.236/trunk@125089 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-12 11:48:38 +00:00
rods%netscape.com
e37e3dadbd Minor comment change
Bug 99619 r=kmcclusk sr=sspitzer a=jud adt=paw


git-svn-id: svn://10.0.0.236/trunk@125088 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-12 11:34:52 +00:00
aaronl%netscape.com
b992a26c12 Not part of build. Typeaheadfind: clean up emacsish/repeated character logic
git-svn-id: svn://10.0.0.236/trunk@125083 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-12 08:10:13 +00:00
aaronl%netscape.com
b8c854e6a8 Not part of build. Typeaheadfind (bug 30088): Prefer an exact match, if it exists, when the same character is repeated. Should make the emacs folks happy
git-svn-id: svn://10.0.0.236/trunk@125082 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-12 07:41:22 +00:00
aaronl%netscape.com
74eef6bba9 Not part of build. Fix for crash in typeaheadfind (bug 30088)
git-svn-id: svn://10.0.0.236/trunk@125081 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-12 07:23:09 +00:00
brendan%mozilla.org
90ad3b5df3 Emulate IE6 by making RegExp.prototype match the empty string (156355, r=rogerl, sr=shaver, a=dbaron).
git-svn-id: svn://10.0.0.236/trunk@125078 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-12 04:54:57 +00:00
bbaetz%student.usyd.edu.au
238bee30e8 Bug 155032 - Memory leak of 18 bytes from 1 block allocated in
nsSOCKSSocketInfo::GetProxyHost
r=smeredith, sr=alecf, a=roc+moz


git-svn-id: svn://10.0.0.236/trunk@125077 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-12 04:54:09 +00:00
bryner%netscape.com
5a608bcf5e Remove non-functional help menu item, add an Info menu item that goes to the download page.
git-svn-id: svn://10.0.0.236/trunk@125076 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-12 04:53:12 +00:00
pete.zha%sun.com
f8753fa9cf "Quote Message" menu item doesn't work on recently trunk. bug=156876 r=ducarroz sr=bienvenu a=roc+moz
git-svn-id: svn://10.0.0.236/trunk@125071 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-12 04:33:16 +00:00
nicolson%netscape.com
40b78d68bf Fix 98613: using SSLSocket after close causes crash.
Now the SSLSocket and SSLServerSocket close() methods only call PR_Close()
on the underlying fd. Freeing data structures is postponed until the
Java object is finalized.


git-svn-id: svn://10.0.0.236/trunk@125070 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-12 04:26:56 +00:00
nicolson%netscape.com
34f86dd48b clarify error message.
git-svn-id: svn://10.0.0.236/trunk@125069 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-12 04:09:14 +00:00
cltbld%netscape.com
5e83c9f0ea 154815 fixed, removing hack. -mcafee
git-svn-id: svn://10.0.0.236/trunk@125068 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-12 03:50:49 +00:00
mozilla.BenB%bucksch.org
67e2928527 same as previous. patch by Tuukka Tolvanen <t.bugz@lament.cjb.net>
git-svn-id: svn://10.0.0.236/trunk@125067 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-12 03:39:14 +00:00
mozilla.BenB%bucksch.org
2c5eb70b01 156984: Typo (missing "P"). r=rods, sr=kin, a=roc
git-svn-id: svn://10.0.0.236/trunk@125066 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-12 03:34:17 +00:00
relyea%netscape.com
52ca8acde6 Update the CERTDB_USER bits when our key gets imported through pkcs #12.
git-svn-id: svn://10.0.0.236/trunk@125064 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-12 03:27:44 +00:00
pete.zha%sun.com
ef2e3f111b mozilla1.1a core dump at PR_AtomicDecrement()
bug=154730 r=bryner sr=jst a=asa patch=antonio.xu@sun.com


git-svn-id: svn://10.0.0.236/trunk@125061 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-12 02:56:18 +00:00
jpierre%netscape.com
7b06b4f219 Make CERT_VerifyCertificate actually work . Oops.
git-svn-id: svn://10.0.0.236/trunk@125060 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-12 02:37:49 +00:00
dbaron%fas.harvard.edu
f397c8ab4e Fix crash when we do a ReconstructDocElementHierarchy on a XUL document, which destroys the nsDocElementBoxFrame (which constructs the popupset) but not the nsRootBoxFrame. b=156719 r=waterson sr=ben a=asa
git-svn-id: svn://10.0.0.236/trunk@125058 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-12 01:46:20 +00:00
bienvenu%netscape.com
051c35befa fix crash shutting down while offline r=dougt, sr=dveditz a=chofmann 156851
git-svn-id: svn://10.0.0.236/trunk@125055 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-12 01:00:08 +00:00
seawood%netscape.com
39c72e94a1 Create a symlink named "bin" in the dist/mozilla directory and then run pkgcp.pl using dist/mozilla as the srcdir. This will let us avoid accidentally stripping the files in dist/bin.
Thanks to Brian Ryner <bryner@netscape.com> for the patch.
Bug #156983 r=sgehani sr=leaf


git-svn-id: svn://10.0.0.236/trunk@125053 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-12 00:37:46 +00:00
caillon%returnzero.com
459e27115c New icons for composer and addressbook. Icons by marlon@netscape.com.
Bug 156822. Also see bugscape #16402.
moa=jag, a=asa.


git-svn-id: svn://10.0.0.236/trunk@125051 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-12 00:19:08 +00:00
dsirnapalli%netscape.com
79ae232008 Test Cases to test XUL Elements for Accessibility.
git-svn-id: svn://10.0.0.236/trunk@125049 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-11 23:33:04 +00:00
jkeiser%netscape.com
8dddb7432c Make mailto form submit work (bug 61893), r=alexsavulov@netscape.com, sr=dveditz@netscape.com, a=asa
git-svn-id: svn://10.0.0.236/trunk@125048 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-11 23:32:13 +00:00
shrutiv%netscape.com
57bf7291a9 Fix for bugscape bug 17654: Blank OS and Language-Region dropdown menu
using previous existing config files (r=mitchf)


git-svn-id: svn://10.0.0.236/trunk@125047 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-11 23:23:53 +00:00
oeschger%netscape.com
479087e18e added help content for http networking, brought over from ns help, bug=143590
git-svn-id: svn://10.0.0.236/trunk@125046 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-11 22:58:43 +00:00
edburns%acm.org
9ad9ff18de debug_options
git-svn-id: svn://10.0.0.236/trunk@125045 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-11 22:19:59 +00:00
edburns%acm.org
d2d0482cb1 debug_options
git-svn-id: svn://10.0.0.236/trunk@125044 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-11 22:15:46 +00:00
edburns%acm.org
89ce8241d1 debug_options
git-svn-id: svn://10.0.0.236/trunk@125043 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-11 22:12:10 +00:00
morse%netscape.com
ae7548953e bug 152694, cookies with spaces in the value get mangled, r=law, sr=jag, a=asa
git-svn-id: svn://10.0.0.236/trunk@125042 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-11 21:58:43 +00:00
alecf%netscape.com
60f9218f48 argh, forgot mac project file
git-svn-id: svn://10.0.0.236/trunk@125039 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-11 21:51:55 +00:00
alecf%netscape.com
c618262ae9 what a tangled web we weave - re-adding downloadProgress.dtd and downloadProgress.properties to the build, as they are in fact used by OTHER modules. *sigh*
git-svn-id: svn://10.0.0.236/trunk@125038 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-11 21:36:50 +00:00
ccarlen%netscape.com
1674f65ec6 Bug 147373 - Crash in nsProfileStruct::ExternalizeMigratedFromLocation. r=bnesse/sr=jag/a=asa
git-svn-id: svn://10.0.0.236/trunk@125037 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-11 21:36:34 +00:00
alecf%netscape.com
5853ea409d *sigh* re-add these two files, they are still used
git-svn-id: svn://10.0.0.236/trunk@125036 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-11 21:35:39 +00:00
alecf%netscape.com
4f9e6e6cb8 oops, remove xfer files from jar too
git-svn-id: svn://10.0.0.236/trunk@125035 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-11 21:31:50 +00:00
bienvenu%netscape.com
d49a164e15 fix 156967 using stand-alone msg window can cause memory corruption/crashes r=naving, sr=sspitzer, a=asa
git-svn-id: svn://10.0.0.236/trunk@125034 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-11 21:25:47 +00:00
igor%mir2.org
b1fd9a85ef When calling interpreted functions from Interpreter.interpret, pass current stack arrays to the callee to avoid creation of temporary argument arrays and wrapping double numbers into Double objects.
git-svn-id: svn://10.0.0.236/trunk@125033 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-11 21:17:34 +00:00
igor%mir2.org
9b1cfb6e2c Optimizing encode/decode not to allocate temporary buffers if the result equals the original string
git-svn-id: svn://10.0.0.236/trunk@125032 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-11 21:10:36 +00:00
alecf%netscape.com
aa10ff2640 bug 156723 - remove xfer and ucth from the build - no longer used
r=law, sr=blake, a=asa


git-svn-id: svn://10.0.0.236/trunk@125031 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-11 21:01:33 +00:00
locka%iol.ie
4f88d7ef1a Support for error pages. b=28586 r=radha@netscape.com sr=rpotts@netscape.com a=asa@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@125030 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-11 20:59:03 +00:00
dsirnapalli%netscape.com
a724a386cb Modified the name of the function to make it general.
git-svn-id: svn://10.0.0.236/trunk@125029 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-11 20:46:42 +00:00
seawood%netscape.com
df461dc44b Replace each backslash with multiple backslashes so that escaped chars are properly escaped when the shell scripts are run. This should fix the random shell/sed segfault that was killing the nightly automation too.
Bug #156838 r=leaf


git-svn-id: svn://10.0.0.236/trunk@125028 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-11 20:19:14 +00:00
serge%netscape.com
0eb5cb3c29 fix #156936, regression: crash using OBJECT tag with any plugin, r=peterl, sr=jag
git-svn-id: svn://10.0.0.236/trunk@125027 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-11 19:32:44 +00:00
jouni%heikniemi.net
7b9f5c6894 Bug 156426: Query interface had ´:s instead of ':s in "doesn't".
2xr=timeless


git-svn-id: svn://10.0.0.236/trunk@125024 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-11 19:29:27 +00:00
jouni%heikniemi.net
8e4855ea07 Bug 156680: "Undefined variable warning" in createaccount.cgi
2xr=bbaetz


git-svn-id: svn://10.0.0.236/trunk@125023 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-11 19:25:29 +00:00
igor%mir2.org
deb429400d Optimizing NativeGlobal.js_escape, ScriptRuntime.escapeString not to create StringBuffer if there are no character to escape in the initial string. Workaround for JDK 1.1 compiler bug in the initialization of ScriptRuntime.ComparableClass.
git-svn-id: svn://10.0.0.236/trunk@125021 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-11 18:45:16 +00:00
igor%mir2.org
3d6303bbd3 Fixing 136893: for(i in undefined), for(i in null) do not throw TypeError but treated as for(i in {})
git-svn-id: svn://10.0.0.236/trunk@125020 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-11 18:39:24 +00:00
oeschger%netscape.com
1891af1c3f updating info in help text: File->Import --> Tools->Import, bug=142111
git-svn-id: svn://10.0.0.236/trunk@125019 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-11 18:21:46 +00:00
ducarroz%netscape.com
ec3ad73494 Fix for bug 156772: Replace the pair NS_ADDREF_THIS/NS_RELEASE_THIS by nsCOMPtr<nsIDocumentViewer>
kungFuDeathGrip(this). R=rods, SR=jst


git-svn-id: svn://10.0.0.236/trunk@125018 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-11 18:11:12 +00:00
mikep%oeone.com
5624070d4e Adding in test code, and making it so that pressing return will active the search.
git-svn-id: svn://10.0.0.236/trunk@125015 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-11 14:00:37 +00:00
mostafah%oeone.com
47e65ff4c9 Added contact field to calendar event
git-svn-id: svn://10.0.0.236/trunk@125014 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-11 13:33:42 +00:00
bbaetz%student.usyd.edu.au
0412cce06c Bug 156844 - 'use of uninitialized value in string eq' warning
r=jouni x2


git-svn-id: svn://10.0.0.236/trunk@125013 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-11 11:46:08 +00:00
jouni%heikniemi.net
6483bbd8b1 Bug 117297: CC list mailing had case-sensitive dupe checking, making it possible to mail both "a@b.com" and
"a@B.com".
Patch by thomas+mozilla@stromberg.org (Thomas Stromberg), r=jouni,timeless


git-svn-id: svn://10.0.0.236/trunk@125008 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-11 08:05:05 +00:00
bryner%netscape.com
8e4a295cfc 0.4 splash from ugo
git-svn-id: svn://10.0.0.236/trunk@125004 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-11 03:33:12 +00:00
aaronl%netscape.com
8043bb0de2 Bug 30088. Not part of build. Typeaheadfind, fix for repeated character - could get stuck
git-svn-id: svn://10.0.0.236/trunk@125002 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-11 01:56:20 +00:00
myk%mozilla.org
461addf685 Fix for bug 156559: Changes to mysqld-watcher.pl to make it kill queries quicker, kill 'em all at once, give better notifications, and not include globals.pl, which is unnecessary.
r=dmose


git-svn-id: svn://10.0.0.236/trunk@125001 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-11 01:16:23 +00:00
bryner%netscape.com
834a62906f Fix file paths for debug static builds.
git-svn-id: svn://10.0.0.236/trunk@125000 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-11 01:01:16 +00:00
aaronl%netscape.com
4d08509b3d Bug 30088. Typeaheadfind fix, not part of build. Sometimes typeaheadfind would hang if the letter typed wasn't visible
git-svn-id: svn://10.0.0.236/trunk@124999 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-11 01:00:36 +00:00
rods%netscape.com
57777685b5 Reapplying original patch from Bug 156307 (which I just backed out)
This patch checks the subject to make sure it isn't null before escaping it
Bug 156650 r=varada sr=bienvenu a=dbaron


git-svn-id: svn://10.0.0.236/trunk@124998 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-11 01:00:21 +00:00
dsirnapalli%netscape.com
93e2e8ace2 Test Cases to test HTML Elements for Accessibility.
git-svn-id: svn://10.0.0.236/trunk@124997 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-11 00:56:08 +00:00
wtc%netscape.com
12d567be6b Bug 156633: the PR_CurrentThread nspr1.0 compatibility macro should be put
inside #ifndef NO_NSPR_10_SUPPORT.


git-svn-id: svn://10.0.0.236/trunk@124996 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-11 00:53:14 +00:00
dsirnapalli%netscape.com
c6f4158574 Updated with new test cases.
git-svn-id: svn://10.0.0.236/trunk@124995 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-11 00:51:06 +00:00
rods%netscape.com
0724a82efc Backing out previous checkin - Fixes regression Bug 156630
Reopening Bug 156307


git-svn-id: svn://10.0.0.236/trunk@124990 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 23:39:18 +00:00
aaronl%netscape.com
325641ca5e Bug 30088. Fixed pref handling of typeaheadfind so that it has it's own default preferences file. No need to se prefs manually anymore. Touched up rdf files so that installing via xpi can work. Not part of build
git-svn-id: svn://10.0.0.236/trunk@124989 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 23:34:52 +00:00
pschwartau%netscape.com
47d45b3c19 Initial add. Based on examples from ECMA-262 Ed.3 spec, Section 15.10.2
git-svn-id: svn://10.0.0.236/trunk@124984 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 23:09:48 +00:00
mkaply%us.ibm.com
540cbb8258 Fix OS/2 runtime bustage - appears to be a compiler bug - working on getting a testcase together
git-svn-id: svn://10.0.0.236/trunk@124981 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 22:20:36 +00:00
igor%mir2.org
ceccecffc0 With Roger's <rogerl@netscape.com> new RegExp implementation Rhino passes:
js1_2/regexp/regress-9141.js
ecma_3/String/regress-104375.js


git-svn-id: svn://10.0.0.236/trunk@124980 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 22:14:48 +00:00
pinkerton%netscape.com
26323cee6b Teach url dispatch about the referrer field so opening links in a new
tab/window works correctly in all cases (bug 156732)


git-svn-id: svn://10.0.0.236/trunk@124979 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 21:53:29 +00:00
relyea%netscape.com
54cdbde4f2 1) When looking for a trust token, return tokens in the following priority order:
1) r/w token with trust.
2) r/o token with trust.
3) r/w token
4) r/o token

Also, don't crash if we try to change the trust on a cert in temp storage, just return an error.


git-svn-id: svn://10.0.0.236/trunk@124978 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 21:34:01 +00:00
mostafah%oeone.com
bc04a8751f Applying patch for bug 132231: No support for International characters
git-svn-id: svn://10.0.0.236/trunk@124977 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 21:24:08 +00:00
bryner%netscape.com
2b8be81f6c Oops, I didn't mean to change the format of this file.
git-svn-id: svn://10.0.0.236/trunk@124976 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 21:11:12 +00:00
bryner%netscape.com
213d7b24f8 Version # -> 0.4.0
git-svn-id: svn://10.0.0.236/trunk@124974 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 21:06:28 +00:00
pschwartau%netscape.com
76021460f7 Skip testcase for bug 152646. Will not fix this in Rhino; too much of a corner case.
git-svn-id: svn://10.0.0.236/trunk@124973 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 21:03:07 +00:00
igor%mir2.org
d16d432af6 No more skiping of ecma/LexicalConventions/7.7.3.js, it works as DToA converts numbers to strings properly
git-svn-id: svn://10.0.0.236/trunk@124970 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 20:00:25 +00:00
shannond%netscape.com
bea6c23d55 Bug 147978 - The copy of an existing config should use its own Workspace
r=mitchf@netscape.com, shrutiv@netscape.com


git-svn-id: svn://10.0.0.236/trunk@124968 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 19:33:25 +00:00
mostafah%oeone.com
66a4990387 Checking in patch for bug 139490:repeated events don't work correctly without X RecurUnits property
git-svn-id: svn://10.0.0.236/trunk@124963 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 17:01:23 +00:00
myk%mozilla.org
9cfe0f9106 Fix for bug 156563: Adds URI of installation to RDF output of buglist.cgi.
2xr=bbaetz


git-svn-id: svn://10.0.0.236/trunk@124962 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 16:46:30 +00:00
wtc%netscape.com
7fd6321e89 Bug 155626: Handle the failure of ocsp_CreateCertID and use the new
CERT_GetOCSPResponseStatus function.


git-svn-id: svn://10.0.0.236/trunk@124961 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 15:16:10 +00:00
wtc%netscape.com
dfae7afdfb Sorted the NSS 3.6 symbols in alphabetical order.
git-svn-id: svn://10.0.0.236/trunk@124960 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 15:04:23 +00:00
pinkerton%netscape.com
772839f188 When the sidebar button is removed from the toolbar, nil out our ref so
we don't later crash trying to access it (bug 156485)


git-svn-id: svn://10.0.0.236/trunk@124959 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 14:38:54 +00:00
mostafah%oeone.com
d08c96cba0 Tuning code to work with new libical library (0.24?)
git-svn-id: svn://10.0.0.236/trunk@124958 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 14:03:53 +00:00
ian%hixie.ch
b119f11485 Fix a typo which confused older Perls, and fix a big error in the handling of uppercase channel names. b=MasterTLH (thanks dude), p=Hixie, r=justdave,bbaetz
git-svn-id: svn://10.0.0.236/trunk@124957 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 13:56:22 +00:00
mikep%oeone.com
5d8ab56bfa Partial fix for bug 137513 to enable mouse scrolling in day and week view.
git-svn-id: svn://10.0.0.236/trunk@124956 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 13:49:12 +00:00
bbaetz%student.usyd.edu.au
cc5235f818 Bug 155031 - search by votes is shown even when votes are turned off.
r=jouni x2


git-svn-id: svn://10.0.0.236/trunk@124955 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 13:16:02 +00:00
kaie%netscape.com
6750e9bdec b=156546 Fixing Windows bustage
git-svn-id: svn://10.0.0.236/trunk@124952 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 07:58:20 +00:00
aaronl%netscape.com
cba98b4813 Bug 30088. Type ahead find extension, fixing timeouts so that are reset on failed matches as well. Not part of build
git-svn-id: svn://10.0.0.236/trunk@124951 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 07:39:35 +00:00
jkeiser%netscape.com
7f58eb8a1e Stop silly people from recursing frames to death (bug 136580). adamlock's patch, r=jkeiser/adamlock, sr=jst
git-svn-id: svn://10.0.0.236/trunk@124950 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 06:48:10 +00:00
kaie%netscape.com
b7a9a88c22 b=156546 Forwarded inline: Incorrect signature/encryption status shown in header area
r=ducarroz sr=alecf


git-svn-id: svn://10.0.0.236/trunk@124948 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 06:36:06 +00:00
bbaetz%student.usyd.edu.au
9e19e30655 Bug 155793 - $::FORM is not tainted under perl 5.6.1
r=myk, jouni


git-svn-id: svn://10.0.0.236/trunk@124947 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 06:27:15 +00:00
sicking%bigfoot.com
a33d07cb8c fix linux bustage
git-svn-id: svn://10.0.0.236/trunk@124945 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 05:50:31 +00:00
bzbarsky%mit.edu
5f4a189a9e Fix part of bug 120327. Patch by Jonas Jorgensen <jonasj@jonasj.dk>,
r=bzbarsky, sr=brendan,ben, gladness=all


git-svn-id: svn://10.0.0.236/trunk@124944 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 05:42:11 +00:00
brendan%mozilla.org
cbbd425382 Oops, deal with PRInt64 operand to NS_SWAP64 (followup to last checkin).
git-svn-id: svn://10.0.0.236/trunk@124943 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 05:20:15 +00:00
caillon%returnzero.com
502aee4ad8 Bug 156554 - Remove a "helper" function which basically does a QI - we can just QI ourselves.
r=sicking sr=ben


git-svn-id: svn://10.0.0.236/trunk@124942 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 05:10:09 +00:00
sicking%bigfoot.com
5c0c3e89f7 Key template modes, template names, decimalformats, attributesets and keys on expanded name rather then qualified name.
b=96082 r=peterv sr=jst


git-svn-id: svn://10.0.0.236/trunk@124940 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 05:04:24 +00:00
jpierre%netscape.com
3de7d2a5ec Fix for 149832 :
do not check certUsageVerifyCA
clean-up comments
correctly check for signature after first try


git-svn-id: svn://10.0.0.236/trunk@124939 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 05:02:46 +00:00
jst%netscape.com
cb41e9e24f Fixing bug 156248. Remove pointless code that causes JS errors and fix up some comments. r=peterv@netscape.com, sr=heikki@netscape.com
git-svn-id: svn://10.0.0.236/trunk@124938 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 04:58:59 +00:00
stephend%netscape.com
129e2d832a Bug 132144. Quick Search: Needs mnemonics. r=stephend@netscape.com, sr=sspitzer@netscape.com
git-svn-id: svn://10.0.0.236/trunk@124936 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 04:11:23 +00:00
akkana%netscape.com
d116ada324 Backing out the fix for 154753, which caused a crash at shutdown. sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@124935 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 04:05:56 +00:00
sgehani%netscape.com
3c342a7ce4 Take user to their search engine homepage when they click the search button
next to the location bar but have not entered anything into it themselves.
b=156504; r=jess; sr=blake


git-svn-id: svn://10.0.0.236/trunk@124934 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 03:53:24 +00:00
jpierre%netscape.com
45cb059025 Back out last change
git-svn-id: svn://10.0.0.236/trunk@124933 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 03:41:02 +00:00
jpierre%netscape.com
b532ff98ea Fix bug in new CERT_VerifyCertificate function - fix for 149832
git-svn-id: svn://10.0.0.236/trunk@124932 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 03:30:15 +00:00
relyea%netscape.com
a2ce2ba8bb Handle the case where the cert is in both the built-ins and the internal module.
git-svn-id: svn://10.0.0.236/trunk@124931 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 03:24:14 +00:00
brendan%mozilla.org
3e01415843 Fix GC_MARK_DEBUG (DEBUG only, r/sr=dbaron).
git-svn-id: svn://10.0.0.236/trunk@124930 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 03:01:32 +00:00
bryner%netscape.com
baf23d4c45 Fix bug 156060, where a background pixmap was not aligned properly when a porting of it was invalidated. Also fixing a bug where a pixmap background for the toolbar did not draw. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@124929 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 02:25:04 +00:00
dbaron%fas.harvard.edu
38d0ce2531 Correctly process a framechange hint on the root element to prevent crashes. Prevent selects from triggering style reresolution before they're added to the document, and prevent a little bit more reresolution that's a performance hit. b=143862 r=bzbarsky, jkeiser sr=jst, waterson
git-svn-id: svn://10.0.0.236/trunk@124928 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 02:24:18 +00:00
dbaron%fas.harvard.edu
73afe397ff Make scrollbars be reflow roots so that moving the scrollbar in an element with 'overflow' that leads to scrollability doesn't cause a reflow from the top of a document. b=156522 r=waterson sr=kin
git-svn-id: svn://10.0.0.236/trunk@124927 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 02:17:54 +00:00
jst%netscape.com
b8fc085a5b Fixing regression caused by the fix for bug 134315. Don't clear scope when leaving about:blank in a chrome window. r=bzbarsky@mit.edu, sr=rpotts@netscape.com
git-svn-id: svn://10.0.0.236/trunk@124926 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 02:00:45 +00:00
morse%netscape.com
72fb529398 bug 155038, cookies are sent from sidebar, r=bbaetz, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@124925 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 01:58:49 +00:00
morse%netscape.com
48ac34d5f9 bug 138489, allow for space in cookie domain attribute, r=sgehani, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@124924 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 01:54:14 +00:00
relyea%netscape.com
bd3dc65b0e Don't crash if a pkcs #11 device gives us an invalid CRL (or even a valid CRL that we don't know how to parse).
git-svn-id: svn://10.0.0.236/trunk@124923 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 01:31:01 +00:00
timeless%mac.com
d5884a09a9 Bug 148671 function retrieveURLFromData() is triplicated (?) in the code with slight differences.
patch by pierrechanial@netscape.net r=rginda,timeless sr=jag


git-svn-id: svn://10.0.0.236/trunk@124922 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 01:23:56 +00:00
suresh%netscape.com
22f69ee5be Temporarily disabling the fix for bug 134315 since it caused a commercial blocker (bugscape bug 17487).
r-jkeiser


git-svn-id: svn://10.0.0.236/trunk@124921 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 01:22:35 +00:00
sfraser%netscape.com
e2a032fe22 Fix for bug 139802; slow certificate authentication on Mac OS X. This was caused by the application spending lots of time in WaitNextEvent, called from its main event loop (which is a good thing, in terms of CPU usage). The problem is that NSPR threads then don't get enough time. This patch give the process scheduler a kick in the pants when NSPR is going to switch to another of its threads. r=wtc, r=sdagley
git-svn-id: svn://10.0.0.236/trunk@124920 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 01:14:23 +00:00
akkana%netscape.com
c9b2ebecb5 Remove MANIFEST_IDL for bug 126312
git-svn-id: svn://10.0.0.236/trunk@124919 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 01:08:15 +00:00
relyea%netscape.com
2e752e038f Don't delete the nickname entry until we go to delete the subject entry as well.
git-svn-id: svn://10.0.0.236/trunk@124918 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 01:04:10 +00:00
akkana%netscape.com
02b11c8580 126312: Remove old find. r=brade, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@124917 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 01:02:16 +00:00
jpierre%netscape.com
e47cdb034a Fix for 154212
git-svn-id: svn://10.0.0.236/trunk@124916 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 00:56:16 +00:00
smontagu%netscape.com
b1d789fcb1 Fix regression with form controls on visual bidi pages. Bug 142233, r=jkeiser, sr=kin
git-svn-id: svn://10.0.0.236/trunk@124915 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 00:52:17 +00:00
timeless%mac.com
bbdd8e0b52 Bug 154753 nsExceptionService ignoring thread destruction after shutdown
r=dougt sr=smfr


git-svn-id: svn://10.0.0.236/trunk@124914 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 00:51:25 +00:00
myk%mozilla.org
f058a4042f Fix for bug 156564: flag bug IDs as integers in the RDF output of buglist.cgi.
2xr=bbaetz


git-svn-id: svn://10.0.0.236/trunk@124913 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 00:45:52 +00:00
bbaetz%student.usyd.edu.au
1d0c7d7e2c Bug 156568 - data dir is not correctly created
r=myk x2


git-svn-id: svn://10.0.0.236/trunk@124912 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 00:43:53 +00:00
tingley%sundell.net
846abc7419 Bustage fix for b=115342, courtesy of dbaron.
git-svn-id: svn://10.0.0.236/trunk@124911 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 00:32:48 +00:00
akkana%netscape.com
69cc527890 126312: Remove old find. r=brade, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@124910 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 00:24:08 +00:00
akkana%netscape.com
a7768470e8 126312, Fix build bustage
git-svn-id: svn://10.0.0.236/trunk@124909 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 00:20:43 +00:00
jpierre%netscape.com
fdc7963798 Fix for 154212 - update patch for CERT_SaveSMimeProfile based on Bob's comments
git-svn-id: svn://10.0.0.236/trunk@124907 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 00:07:39 +00:00
bbaetz%student.usyd.edu.au
8016c01e56 Bug 150829 - 'My Votes' link missing from footer
r=myk, jouni


git-svn-id: svn://10.0.0.236/trunk@124903 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-10 00:06:00 +00:00
alecf%netscape.com
0035e4b8b2 fix bug 154981
add windowds.xpt to the packaging files so that we stop getting JS exceptions for Components.interfaces.nsIWindowDataSource
r=caillon, sr=jag


git-svn-id: svn://10.0.0.236/trunk@124902 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 23:58:18 +00:00
tingley%sundell.net
b66dd4cca0 Reduce some unnecessary nsAutoString usage in the RDF Content Sink.
b=115342 r=bzbarsky sr=waterson


git-svn-id: svn://10.0.0.236/trunk@124901 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 23:44:58 +00:00
bbaetz%student.usyd.edu.au
70ec741585 bug 155861 - showdependancygraph.cgi fails taint check with local dot
installation
r=gerv, myk


git-svn-id: svn://10.0.0.236/trunk@124899 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 23:40:41 +00:00
akkana%netscape.com
65221c29bc Removing now-obsolete txtsvcIDL.xml
git-svn-id: svn://10.0.0.236/trunk@124898 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 23:20:24 +00:00
akkana%netscape.com
bd7293fefb Fix build bustage -- we have no more IDL files in txtsvc
git-svn-id: svn://10.0.0.236/trunk@124897 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 23:17:05 +00:00
mkaply%us.ibm.com
2540632077 #67913
r=pedemont, sr=blizzard (platform specific code)
OS/2 only - don't let Mozilla windows cover up the Warpcenter


git-svn-id: svn://10.0.0.236/trunk@124896 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 22:59:52 +00:00
mkaply%us.ibm.com
0be5ea680e #52458
r=pedemont, sr=blizzard (platform specific code)
OS/2 only - add a preference to enable trackpoint scrolling by creating invisible scrollbars on all windows


git-svn-id: svn://10.0.0.236/trunk@124895 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 22:54:34 +00:00
mkaply%us.ibm.com
41a593596e #56555
r=pedemont, sr=blizzard (platform specific code)
OS/2 only - don't draw any rectangles if width is 0


git-svn-id: svn://10.0.0.236/trunk@124894 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 22:51:37 +00:00
rayw%netscape.com
3c2079a839 Fix for bug 154971, r=harishd, sr=heikki, sr=jst, very safe fix to inheritance
of HTTPS transport in SOAP.  Duplicates functioning line above for HTTP.  Does
not affect any object used outside of HTTPS transport for SOAP which wa not working.


git-svn-id: svn://10.0.0.236/trunk@124892 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 22:30:14 +00:00
rogerl%netscape.com
8962e0aa5e Fixes for bugs #155285 - Array.join(undefined) should use ','
#155289 - String.prototype.XXX.length has some wrong values
 #155291 - RegExp properties should be DontEnum
Plus fix for matching against RegEXp captures with undefined value.


git-svn-id: svn://10.0.0.236/trunk@124891 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 22:28:52 +00:00
akkana%netscape.com
ad98a4938f 126312: brade and I hope this will cure the mac bustage
git-svn-id: svn://10.0.0.236/trunk@124888 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 21:57:16 +00:00
tao%netscape.com
36dc9083cb 93002: [distribution]Conn: Use dialup networking (.DUN) when launching
mozilla. (r=dougt, sr=rpotts), c/o smeredith. - bullet-proof mishave.


git-svn-id: svn://10.0.0.236/trunk@124887 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 21:53:06 +00:00
tao%netscape.com
9098d13d2f 93002: [distribution]Conn: Use dialup networking (.DUN) when launching
mozilla. - turning the pref on in the trunk (r,sr)=(tao,rpotts). c/o
smeredith.


git-svn-id: svn://10.0.0.236/trunk@124886 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 21:47:41 +00:00
locka%iol.ie
b98d9ca536 Fixup xml-stylesheet processing instructions. b=136718 r=heikki@netscape.com sr=kin@netscape.com
git-svn-id: svn://10.0.0.236/trunk@124885 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 21:40:19 +00:00
harishd%netscape.com
f3d30a54d4 ** DEBUG ONLY **
Initialize local variables ( were causing problems running parser regression tests )


git-svn-id: svn://10.0.0.236/trunk@124884 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 21:32:56 +00:00
locka%iol.ie
9c91f86746 Use proper weak refs over raw pointers to hold parent URI listeners. b=144887 r=radha@netscape.com sr=alecf@netscape.com
git-svn-id: svn://10.0.0.236/trunk@124883 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 21:30:13 +00:00
locka%iol.ie
76b7b4ab26 Use proper weak refs over raw pointers to hold parent URI content listeners. b=144887 r=radha@netscape.com sr=alecf@netscape.com
git-svn-id: svn://10.0.0.236/trunk@124882 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 21:25:12 +00:00
alecf%netscape.com
ff59a7771d REQUIRES update after find component cleanup
git-svn-id: svn://10.0.0.236/trunk@124881 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 21:21:37 +00:00
harishd%netscape.com
663d861d36 ** NOT PART OF THE BUILD **
Adding more testcases to the regression test suite


git-svn-id: svn://10.0.0.236/trunk@124880 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 21:19:20 +00:00
dcone%netscape.com
4fca0e23c6 b=14380 Garbage in GIF animation on startup. r=dcone sr=tor This speeds up pages with GIF's animations.. cuts down CPU usage.
git-svn-id: svn://10.0.0.236/trunk@124879 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 21:03:34 +00:00
akkana%netscape.com
fb8a01e1eb 126312: remove old find code. r=brade sr=alecf
git-svn-id: svn://10.0.0.236/trunk@124873 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 20:41:51 +00:00
akkana%netscape.com
9e317b4ccb 126312: remove old find code. r=brade sr=alecf
git-svn-id: svn://10.0.0.236/trunk@124872 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 20:29:50 +00:00
mostafah%oeone.com
1239d1c0e6 Making sure DTSTAMP property will have a value for all events
git-svn-id: svn://10.0.0.236/trunk@124871 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 20:24:43 +00:00
akkana%netscape.com
edb0a778de 126312: Remove the obsolete old find code. r=brade, sr=alecf.
git-svn-id: svn://10.0.0.236/trunk@124870 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 20:24:37 +00:00
akkana%netscape.com
170067993d 141524: Remove some obsolete code in mailnews that used the now-obsolete find. r=varada, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@124869 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 20:20:53 +00:00
jst%netscape.com
146b7940d3 Temporarily disabling the fix for bug 134315 since it caused a commercial blocker (bugscape bug 17487).
git-svn-id: svn://10.0.0.236/trunk@124868 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 20:11:16 +00:00
cavin%netscape.com
5252d940da Fix for 155491. In ExportDirectoryToDelimitedText(), concatenate all notes into a single line. R=ducarroz, sr=sspitzer.
git-svn-id: svn://10.0.0.236/trunk@124867 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 20:05:09 +00:00
aaronl%netscape.com
1371d58da9 Bug 30088. More checkins to extensions/typeaheadfind. Fixes assertion. Not part of build.
git-svn-id: svn://10.0.0.236/trunk@124862 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 19:49:23 +00:00
aaronl%netscape.com
b82d4ea04d Bug 30088. More checkins to extensions/typeaheadfind. Fixes assertion. Not part of build.
git-svn-id: svn://10.0.0.236/trunk@124861 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 19:46:10 +00:00
akkana%netscape.com
ff94f665cd Ignore Makefile
git-svn-id: svn://10.0.0.236/trunk@124860 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 19:39:33 +00:00
akkana%netscape.com
0a2ff36319 30088: Make typeahead find build, register and run on Linux as well as windows. Not part of the build yet.
git-svn-id: svn://10.0.0.236/trunk@124859 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 19:38:37 +00:00
timeless%mac.com
9453ed9295 Bug 144992 [FIX] BookmarksUtils.cloneFolder does not clone subfolders (hordes of separators created in bookmarks)
patch by pierrechanial@netscape.net r=blake sr=jag


git-svn-id: svn://10.0.0.236/trunk@124858 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 19:37:24 +00:00
aaronl%netscape.com
71845857df Bug 30088. More checkins to extensions/typeaheadfind. Fixes some gcc warnings. Not part of build.
git-svn-id: svn://10.0.0.236/trunk@124856 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 18:46:13 +00:00
aaronl%netscape.com
cf13cb59fa Bug 30088. More checkins to extensions/typeaheadfind. Support for docs with frames and iframes. Not part of build.
git-svn-id: svn://10.0.0.236/trunk@124855 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 18:38:41 +00:00
igor%mir2.org
250429589c Examples now uses try {} finally { Context.exit(); } to release Context even in case of errors
git-svn-id: svn://10.0.0.236/trunk@124854 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 17:49:16 +00:00
mostafah%oeone.com
3c73ec9fee Fixing typo and missing addproperty line
git-svn-id: svn://10.0.0.236/trunk@124853 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 17:12:57 +00:00
wtc%netscape.com
952d7bcc66 Removed README.TXT, which is just README with Windows line endings (CRLF).
git-svn-id: svn://10.0.0.236/trunk@124852 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 17:11:25 +00:00
wtc%netscape.com
6339db317a Added the README file, which explains how to add a root CA certificate to
the nssckbi loadable root certs module.


git-svn-id: svn://10.0.0.236/trunk@124851 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 17:00:30 +00:00
leaf%mozilla.org
ec8963c9a4 Automated update
git-svn-id: svn://10.0.0.236/trunk@124850 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 16:40:28 +00:00
mkaply%us.ibm.com
259b6f4456 OS/2 optimized build is totally broke with the THROW stuff - I've opened a bug with the compiler folks
git-svn-id: svn://10.0.0.236/trunk@124849 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 16:38:02 +00:00
mostafah%oeone.com
c7ea150cc9 Checkid in patch to fix bug 156113:Calendar should use VALUE=DATE parameter for all-day events instead of X prop
git-svn-id: svn://10.0.0.236/trunk@124848 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 15:38:55 +00:00
ccarlen%netscape.com
1609c42c84 Bug 149036 - Zoom button is not enabled, No min/max size contraints on resizing windows. r=pink/sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@124847 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 14:44:16 +00:00
rods%netscape.com
da88ff5ca7 fixing debug ifdef for myself
git-svn-id: svn://10.0.0.236/trunk@124846 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 14:25:11 +00:00
mostafah%oeone.com
a9609c2fc8 Checked in patches to fix bug 141280: iCalendar file must include DTSTAMP and METHOD property
Patch fixes bug 142613 as well: PRODID value has PROPID: tag in valuetext


git-svn-id: svn://10.0.0.236/trunk@124845 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 14:21:56 +00:00
mikep%oeone.com
81dcb08012 Fixing bug 156319, don't process search results on a letter by letter basis.
git-svn-id: svn://10.0.0.236/trunk@124844 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 13:55:30 +00:00
dp%netscape.com
5b33744d9b bug 156320 Acquire lock before checking not-used-list (not
after). Fixing topcrash. r=dbaron


git-svn-id: svn://10.0.0.236/trunk@124843 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 13:48:03 +00:00
rods%netscape.com
d7ed76a469 Somehow we all missed initializing this to false
Implement progress dialog for printing and PP that show before reflow
Bug 154136 r=dcone/sgehani sr=alecf


git-svn-id: svn://10.0.0.236/trunk@124842 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 12:48:39 +00:00
rods%netscape.com
c6fd9cf998 Missed this minor change
Implement progress dialog for printing and PP that show before reflow
Bug 154136 r=dcone/sgehani sr=alecf


git-svn-id: svn://10.0.0.236/trunk@124841 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 12:44:47 +00:00
rods%netscape.com
9712894a19 Implement progress dialog for printing and PP that show before reflow
Bug 154136 r=dcone/sgehani sr=alecf


git-svn-id: svn://10.0.0.236/trunk@124840 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 12:39:02 +00:00
bzbarsky%mit.edu
661cadbc5a Alphabetically order MIME types in the helper apps prefs. Part of bug
61009, patch by sgehani@netscape.com, r=bzbarsky, sr=alecf


git-svn-id: svn://10.0.0.236/trunk@124839 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 12:16:01 +00:00
jouni%heikniemi.net
84ff17dfed Bug 149246: Allow use of relative time units in query screen.
Patch by Michael Schindler <michael@compressconsult.com>, 2xr=jouni


git-svn-id: svn://10.0.0.236/trunk@124838 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 10:58:10 +00:00
bzbarsky%mit.edu
cc593fa8c5 "Textbox context menu generates spurious focus events.". Bug 155871,
patch by neil@parkwaycc.co.uk, r=dean_tessman@hotmail.com, sr=jag


git-svn-id: svn://10.0.0.236/trunk@124837 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 08:42:11 +00:00
bzbarsky%mit.edu
941afc1277 Fix use of :active in about:. Bug 155923, patch by
neil@parkwaycc.co.uk, r=dbaron, sr=rbs


git-svn-id: svn://10.0.0.236/trunk@124836 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 08:32:39 +00:00
bzbarsky%mit.edu
5181418b98 Bug 128629 -- speed up personal toolbar a bit. Patch by
neil@parkwaycc.co.uk, r=pierrechanial@netscape.net, sr=ben


git-svn-id: svn://10.0.0.236/trunk@124835 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 08:30:09 +00:00
bzbarsky%mit.edu
ac24e852ff add an additional one-slot global content list cache. Bug 140758 stuff
again, patch by jst@netscape.com, r=bzbarsky, sr=rbs


git-svn-id: svn://10.0.0.236/trunk@124834 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 07:10:41 +00:00
aaronl%netscape.com
d620ae0cc6 Bug 156301. Link focus outline ghosting during find next. r=bryner, sr=jst
git-svn-id: svn://10.0.0.236/trunk@124833 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 06:29:45 +00:00
stephend%netscape.com
935eb9fe8c Bug 155305. Update copyright information and domain name/company name for Support.com. r=namachi@netscape.com/mlemley@netscape.com, sr=leaf@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@124832 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 05:46:58 +00:00
tingley%sundell.net
abbb6cec3f Fix for bug 153480 - crash deleting download manager entries.
r=rjc sr=waterson


git-svn-id: svn://10.0.0.236/trunk@124831 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 05:21:33 +00:00
relyea%netscape.com
ccff9eabc4 treat lastTime of 0 as never having checked (not within the interval).
git-svn-id: svn://10.0.0.236/trunk@124830 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 04:40:35 +00:00
relyea%netscape.com
6d34b5d1ba 1) fix return type warning in pk11ListCertsCallback.
2) treat lastTime==0 as always outside the delay time. (removes spurious
prompts in FIPS mode on some platforms.)


git-svn-id: svn://10.0.0.236/trunk@124829 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 04:39:35 +00:00
dbaron%fas.harvard.edu
ed7d78f9fd Ensure that scroll position listeners are properly unregistered. b=114221 sr=waterson r=attinasi
git-svn-id: svn://10.0.0.236/trunk@124828 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 04:30:28 +00:00
dbaron%fas.harvard.edu
121b842e9f Turn on CSS parser error reporting in DEBUG builds. Make unexpected-EOF error messages more informative. b=155855 r=bzbarsky sr=ben
git-svn-id: svn://10.0.0.236/trunk@124827 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 04:28:58 +00:00
dbaron%fas.harvard.edu
437e73a04a Remove front-end for nglayout.debug.enable_xpcom_refcnt_log pref, which has no backend. r=ben sr=blake b=156157
git-svn-id: svn://10.0.0.236/trunk@124826 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 04:27:14 +00:00
dbaron%fas.harvard.edu
66ac586fc1 To make maintainance easier and allow more data-as-data rather than data-as-code, create a preprocessable list of style structs and use it in many places where we previously listed all (or half) of the style structs. b=155745 r=bzbarsky sr=waterson
git-svn-id: svn://10.0.0.236/trunk@124825 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 04:10:10 +00:00
bryner%netscape.com
345b926d51 Bug 121772 - implement NS_THEMECHANGED for gtk. Also includes some cleanup of unused functions and member variables. r=akkana, sr=blizzard.
git-svn-id: svn://10.0.0.236/trunk@124824 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 04:08:37 +00:00
jst%netscape.com
b53d1997de Fixing bug 146143. Make sure the JS scope is cleared when leaving a full-page plugin. r=bzbarsky@mit.edu, sr=jaggernaut@netscape.com
git-svn-id: svn://10.0.0.236/trunk@124823 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 03:43:15 +00:00
brendan%mozilla.org
c835c835d1 Avoid aliasing differently-typed pointers in NS_SWAP64 (142869, r=dbaron, sr=ben).
git-svn-id: svn://10.0.0.236/trunk@124822 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 03:37:50 +00:00
jst%netscape.com
2f101871cb Fixing security bug 134315. Make sure we clear the JS scope in cases where it's needed. r=mstoltz@netscape.com, sr=brendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@124821 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 03:23:56 +00:00
jay.yan%sun.com
910f1bd62f bug 151107 bug 151114 bug 151139 Support nsIAccessibleHyperlink, nsIAccessibleHyperText, nsIAccessibleValue in MAI(mozilla ATK Implmentation) patch=bolian.yin, r=aaronl, sr=jst, this checkin is not part of default build
git-svn-id: svn://10.0.0.236/trunk@124820 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 03:18:40 +00:00
jst%netscape.com
ce2c73b7b7 Fixing security bug 134315. Make sure we clear the JS scope in cases where it's needed. r=mstoltz@netscape.com, sr=brendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@124818 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 02:49:58 +00:00
pete.zha%sun.com
8291b6d5c8 fix returned error code for nsIAccessibleHyperText implementation with nsIFrameAccessible
bug=155873 r=aaronl sr=jst patch=gilbert.fang@sun.com


git-svn-id: svn://10.0.0.236/trunk@124817 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 02:48:20 +00:00
morse%netscape.com
c93acea7f0 bug 152696, cookie - bad check for https, r=dougt, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@124816 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 02:40:35 +00:00
despotdaemon%netscape.com
4056a4ddc0 Pseudo-automatic update of changes made by dbaron@fas.harvard.edu.
git-svn-id: svn://10.0.0.236/trunk@124815 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 02:35:17 +00:00
despotdaemon%netscape.com
ca5cb0ece6 Pseudo-automatic update of changes made by dbaron@fas.harvard.edu.
git-svn-id: svn://10.0.0.236/trunk@124814 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 02:34:34 +00:00
despotdaemon%netscape.com
caac08dd79 Pseudo-automatic update of changes made by dbaron@fas.harvard.edu.
git-svn-id: svn://10.0.0.236/trunk@124813 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 02:34:00 +00:00
rods%netscape.com
c856a8ba1d use the title unless empty then use URL instead. And change
the progress dialog to display title intead of url
Bug 156305 r=dcone sr=waterson


git-svn-id: svn://10.0.0.236/trunk@124812 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 02:33:29 +00:00
brendan%mozilla.org
dbf788b8a5 Null-check prop before dropping it (156354, r=khanson, sr=shaver).
git-svn-id: svn://10.0.0.236/trunk@124811 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 02:24:51 +00:00
despotdaemon%netscape.com
d80da32ea5 Pseudo-automatic update of changes made by dbaron@fas.harvard.edu.
git-svn-id: svn://10.0.0.236/trunk@124810 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 02:20:35 +00:00
despotdaemon%netscape.com
879abb16c5 Pseudo-automatic update of changes made by dbaron@fas.harvard.edu.
git-svn-id: svn://10.0.0.236/trunk@124809 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 02:19:40 +00:00
rods%netscape.com
458402cb98 simply creates a "title" tag with the subject in it. This enables the printed
mail msgs to display the subject as the title in the progress dialog and on the
printed page
Bug 156307 r=ducarroz sr=spitzer


git-svn-id: svn://10.0.0.236/trunk@124808 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 02:19:33 +00:00
myk%mozilla.org
537f75ea7e Fix for bug 150925: make email address changes work.
2xr=bbaetz


git-svn-id: svn://10.0.0.236/trunk@124804 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 02:16:56 +00:00
brendan%mozilla.org
8c024b9f0a Eliminate broken old pre-ECMA switch case compile-time evaluation (144834, r=khanson, sr=shaver).
git-svn-id: svn://10.0.0.236/trunk@124803 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 02:15:49 +00:00
despotdaemon%netscape.com
45b80ace65 Pseudo-automatic update of changes made by brendan@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@124802 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 01:50:47 +00:00
bbaetz%student.usyd.edu.au
72691b43f8 Recheckin fix for bug 150798 which I accidentaly broke in the fix for bug
150770
r=myk x2 on the new patch


git-svn-id: svn://10.0.0.236/trunk@124801 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 01:47:23 +00:00
rbs%maths.uq.edu.au
0842619afb support <msqrt> and <mroot> with Mathematica fonts in addition to TeX fonts, b=121493, r=roc+moz, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@124800 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 01:41:52 +00:00
rbs%maths.uq.edu.au
96700ff7a9 crash if position: absolute applied to <math>, b=151054, r=roc+moz, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@124799 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 01:34:12 +00:00
bbaetz%student.usyd.edu.au
37577d6ad7 Bug 151714 - user with no canconfirm permission should not get option to
mark bugs they reported as NEW
r=jouni, myk


git-svn-id: svn://10.0.0.236/trunk@124798 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 01:17:59 +00:00
alecf%netscape.com
ae41b6b04b argh, also patch universal char det
similar to patch by bzbarsky@mit.edu that I had in my tree
fixes extensions bustage


git-svn-id: svn://10.0.0.236/trunk@124796 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 01:10:42 +00:00
jst%netscape.com
3ebc871217 Fixing one more part of bug 126212. Make nsLoadGroup store the requests in a pldhash in stead of in a linear array for better performance when dealing with *lots* of requests. r=bzbarsky@mit.edu, sr=rpotts@netscape.com
git-svn-id: svn://10.0.0.236/trunk@124795 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 01:03:45 +00:00
naving%netscape.com
6765ccee5e 155668 r=cavin sr=bienvenu Don't set the prettyName as mailboxName from db, causes problems for japanese local folder names.
git-svn-id: svn://10.0.0.236/trunk@124794 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 00:55:23 +00:00
jst%netscape.com
b3c1960bee Fixing part of bug 126212. Make nsDocLoader store the requests in a pldhash in stead of in a linear array for better performance when dealing with *lots* of requests. r=bzbarsky@mit.edu, sr=rpotts@netscape.com
git-svn-id: svn://10.0.0.236/trunk@124793 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 00:54:41 +00:00
myk%mozilla.org
f3dec055c0 Fix for bug 150804: makes "allwords" the default when searching for keywords.
2xr=bbaetz


git-svn-id: svn://10.0.0.236/trunk@124791 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 00:48:25 +00:00
pschwartau%netscape.com
bb8f63af01 Trivial whitespace edit.
git-svn-id: svn://10.0.0.236/trunk@124790 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 00:48:13 +00:00
bzbarsky%mit.edu
e31abc7df2 Bug 153519 -- parent ContentLists to their root elements. r=peterv, sr=jst
git-svn-id: svn://10.0.0.236/trunk@124789 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 00:44:20 +00:00
pschwartau%netscape.com
3320591662 Initial add. Regression test for bug 152646.
git-svn-id: svn://10.0.0.236/trunk@124788 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 00:43:15 +00:00
pschwartau%netscape.com
199945ec0e Fixing mistake. Can't call printStatus(), etc. in js1_2 test directory, because js1_2/shell.js doesn't contain them.
git-svn-id: svn://10.0.0.236/trunk@124787 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 00:29:41 +00:00
shliang%netscape.com
8bef1a4fa1 155647 - spacing problems in addressbook card view pane. r=bhuvan, sr=sspitzer.
git-svn-id: svn://10.0.0.236/trunk@124786 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 00:22:38 +00:00
shanjian%netscape.com
17e9bee4ca #70507 New Windows opened via Javascript do not inherit their parent's character set
pass default charset from parent window to new window.
r=jag, sr=brendan


git-svn-id: svn://10.0.0.236/trunk@124785 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 00:14:48 +00:00
aaronl%netscape.com
8515abc672 Bug 30088. Type ahead find feature (extension). See bug for the prefs that need to be set for it to work. Not part of build
git-svn-id: svn://10.0.0.236/trunk@124784 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 00:13:13 +00:00
ssu%netscape.com
a051d9944e checking patch for walk84@yahoo.com. fixes bug 114464 - No (access keys) mnemonics in Subscribe dialog. r=ssu, sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@124782 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 00:10:16 +00:00
mstoltz%netscape.com
58a849eae5 Bug 154930 - If one page has explicitly set document.domain and another has not,
do not consider them to be of the same origin for security checks. r=dveditz, sr=jst


git-svn-id: svn://10.0.0.236/trunk@124781 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 00:10:02 +00:00
wtc%netscape.com
90c687bb0b Bug 119098: fixed the problem building NSPR tests on OS/2. The patch is
contributed by Michael Kaply <mkaply@us.ibm.com> and Julien Pierre
<jpierre@netscape.com>.


git-svn-id: svn://10.0.0.236/trunk@124780 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 00:09:32 +00:00
alecf%netscape.com
3f0f919e44 final fix for bug 125617 - make the charset detectors use the category manager rather than the registry
and make extensible bundles use the category manager as well
r=dougt, sr=dveditz


git-svn-id: svn://10.0.0.236/trunk@124779 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 00:07:09 +00:00
morse%netscape.com
efbebd6a84 bug 155679, mapi with turbo and multiple profile doesn't work, r=rdayal, sr=jag
git-svn-id: svn://10.0.0.236/trunk@124778 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 00:03:37 +00:00
dmose%netscape.com
e6da9c3d6e Fix message filter matching failures on Message-ID and Content-Type: charset (bug 152468); r=naving@netscape.com, sr=bienvenu@netscape.com
git-svn-id: svn://10.0.0.236/trunk@124777 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-08 23:58:42 +00:00
stephend%netscape.com
ffe30e3b83 Bug 155282. I'm adding a comment referencing the bug number to implement drag and drop again. r=racham@netscape.com, sr=sspitzer@netscape.com
git-svn-id: svn://10.0.0.236/trunk@124776 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-08 23:55:59 +00:00
stephend%netscape.com
d5720e367e Bug 148495. Download Manager's grippy displays an empty tooltip. Original patch by Mike Kowalski <pepperxn@netscape.net>. Latter work by yours truly. r=db48x, sr=jag
git-svn-id: svn://10.0.0.236/trunk@124775 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-08 23:45:55 +00:00
ducarroz%netscape.com
7689923a5e Fix for bug 152014. Better detection of end of input buffer when we fold one character before the end and the last character is either a space or a tab. R=cavin, SR=bienvenu
git-svn-id: svn://10.0.0.236/trunk@124774 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-08 23:39:00 +00:00
stephend%netscape.com
bacc7b5067 Bug 156111 - prefix Open Web Location with http://. r=rginda@netscape.com
git-svn-id: svn://10.0.0.236/trunk@124773 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-08 23:36:39 +00:00
ducarroz%netscape.com
9b95f57e39 Fix for bug 16925. Add support for multiple custom headers. Patch submitted by James Nord<teilo+bugzilla@teilo.net. R=ducarroz, SR=bienvenu
git-svn-id: svn://10.0.0.236/trunk@124772 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-08 23:31:52 +00:00
dmose%netscape.com
f653bbd2e8 Backing out the patch for bug 87902; a one-line change that caused an SSL/SMTP regression (bug 155431)
git-svn-id: svn://10.0.0.236/trunk@124771 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-08 23:24:30 +00:00
bryner%netscape.com
d2da46a654 Add Asian Unicode converters to the static build.
git-svn-id: svn://10.0.0.236/trunk@124769 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-08 20:03:17 +00:00
suresh%netscape.com
6c0439dcd1 fix for bugscape blocker bug 17487 - IM and Chat compose windows not displaying text (can't type message), sr-jag
git-svn-id: svn://10.0.0.236/trunk@124768 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-08 19:21:10 +00:00
pinkerton%netscape.com
09220e2060 Use CFBundleName string key wherever we refer to the app name in strings.
git-svn-id: svn://10.0.0.236/trunk@124767 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-08 19:20:33 +00:00
pinkerton%netscape.com
ebf6af088f Fix "can't launch 2 copies" strings so the branding can be swapped out
git-svn-id: svn://10.0.0.236/trunk@124766 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-08 18:56:57 +00:00
pinkerton%netscape.com
df53d70e10 oops, remove asian char converters from the wrong place
git-svn-id: svn://10.0.0.236/trunk@124765 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-08 18:54:34 +00:00
pinkerton%netscape.com
b3b36af5d1 Patch so auto-downloads at least start and complete, though there
is currently no visible progress. (bug 150984)


git-svn-id: svn://10.0.0.236/trunk@124764 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-08 18:25:17 +00:00
pinkerton%netscape.com
0ac819f64a Pull in the asian charset converters for the dylib build
git-svn-id: svn://10.0.0.236/trunk@124763 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-08 17:40:23 +00:00
rods%netscape.com
80a2868a29 check to make sure we have a non-null print settings arg
Bug 154191 R=ducarroz sr=spitzer


git-svn-id: svn://10.0.0.236/trunk@124760 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-08 13:48:43 +00:00
jay.yan%sun.com
d69fb55142 bug 151107, bug 151114, bug 151139, Support nsIAccessibleHyperLink, nsIAccessibleHyperText,nsIAccessibleValue for MAI(Mozilla ATK Implementation), this is in order to remove files, I uploaded files with wrong newline format. remove them first, will checkin new files with good format soon, this operation does not intefere with default build.
git-svn-id: svn://10.0.0.236/trunk@124759 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-08 11:07:03 +00:00
axel%pike.org
952ba93bdc removing deprecated samples, r=peterv,sicking; NOT PART OF BUILD
git-svn-id: svn://10.0.0.236/trunk@124758 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-08 10:42:33 +00:00
peterv%netscape.com
3f2d766fa7 Fix OS2 bustage.
git-svn-id: svn://10.0.0.236/trunk@124757 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-08 09:40:20 +00:00
bryner%netscape.com
d63c986f4d Fix all of the warnings about member initializer ordering in constructors (bug 156135). r=timeless, sr=jag.
git-svn-id: svn://10.0.0.236/trunk@124756 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-08 07:56:50 +00:00
timeless%mac.com
1b722e9746 Bug 125411 [NuBus] Mac installer crashes with a type 12 error (SleepQInstall)
r=dmose sr=jst


git-svn-id: svn://10.0.0.236/trunk@124755 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-08 07:26:41 +00:00
caillon%returnzero.com
d17b0d8424 * Implement CSSValueLists and computed -moz-border-{side}-colors
* Get the computed -moz-binding directly from the style context which is faster than getComputedStyle
* Speed up computed style by not QI'ing so much
* Cache the computed style object so we don't keep re-alloc'ing memory for it.
* Shrink ROCSSPrimitiveValue.
* Don't get computed style of non-existant properties.
* Use nsSize instead of nsRect when we only care about height and width
* Other random code cleanup of computed style

Bug 155525
r=bzbarsky
sr=jst


git-svn-id: svn://10.0.0.236/trunk@124754 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-08 07:11:59 +00:00
jaggernaut%netscape.com
c856b13142 Bug 111086: Location Bar address [URL] not restored after closing or switching tab. Restrict matching property names against window/frame names from crossing the chrome-content boundary. r=peterv, sr=jst
git-svn-id: svn://10.0.0.236/trunk@124753 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-08 06:56:43 +00:00
caillon%returnzero.com
98b3a49ba8 Bug 155748 - "Can't use a global variable named 'parent'"
r=bzbarsky sr=jst


git-svn-id: svn://10.0.0.236/trunk@124752 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-08 06:51:54 +00:00
peterlubczynski%netscape.com
280a471a47 Fixing regression: Default plugin shows for ActiveX controls and hides Netscape plugin (users sent to PFS to fetch plugin for application/x-oleobject), bug 151074 r=bryner sr=jst
git-svn-id: svn://10.0.0.236/trunk@124751 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-08 06:26:44 +00:00
hwaara%chello.se
a1bcd5a6a9 #110945, "Shouldn't refer to a menu in a window on Mac OS"
patch by Andy Lyttle <mozilla@phroggy.com>
r=hwaara, sr=jst


git-svn-id: svn://10.0.0.236/trunk@124750 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-08 06:23:23 +00:00
caillon%returnzero.com
0ae5f12de9 Bug 39210 - document.bgcolor reported as 'white' instead of '#ffffff'
r=sicking
sr=jst


git-svn-id: svn://10.0.0.236/trunk@124749 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-08 06:22:53 +00:00
caillon%returnzero.com
68d9b6b4a1 Bug 141717 - Context menus break if a website defines its own "getSelection" variable/function
r=biesi
sr=jst


git-svn-id: svn://10.0.0.236/trunk@124748 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-08 06:19:28 +00:00
bbaetz%student.usyd.edu.au
2e29da5498 Bug 105472 - expectbigqueries unnecessary with mysql >=3.23.2
r=jouni x2


git-svn-id: svn://10.0.0.236/trunk@124746 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-08 06:10:47 +00:00
blakeross%telocity.com
0e4b4e7250 143072 - no way to close the properties window without cancelling the dialog. r=law sr=ben
git-svn-id: svn://10.0.0.236/trunk@124745 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-08 04:22:14 +00:00
pschwartau%netscape.com
cf1188e327 Initial add. Testing JS RegExp engine against results from Perl 5.
git-svn-id: svn://10.0.0.236/trunk@124744 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-08 04:03:11 +00:00
pschwartau%netscape.com
724a995e78 Correcting the year in the copyright.
git-svn-id: svn://10.0.0.236/trunk@124743 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-08 03:58:27 +00:00
pschwartau%netscape.com
40556f4624 Adding reference to bug 85721.
git-svn-id: svn://10.0.0.236/trunk@124742 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-08 03:36:34 +00:00
pschwartau%netscape.com
c8df3e52f1 Initial add. Testing JS RegExp engine against results from Perl 5.
git-svn-id: svn://10.0.0.236/trunk@124741 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-08 03:27:21 +00:00
bryner%netscape.com
abcc88d4d1 Fix jiggling layout when focusing a checkbox caused by my checkin for bug 156048. r=hixie, rs=ben.
git-svn-id: svn://10.0.0.236/trunk@124740 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-07 21:26:16 +00:00
ian%hixie.ch
656de70be3 Let's try a different tactic in a scalar context. If there's no data, return undef.
git-svn-id: svn://10.0.0.236/trunk@124739 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-07 15:42:57 +00:00
tor%cs.brown.edu
9a32b7e198 Backout of 155923
git-svn-id: svn://10.0.0.236/trunk@124738 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-07 08:50:07 +00:00
bryner%netscape.com
9901b85357 Add the ability to filter on applications to nsIFilePicker (bug 97321). r=law, sr=blake.
git-svn-id: svn://10.0.0.236/trunk@124737 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-07 07:21:45 +00:00
bryner%netscape.com
8af72f6bbb Fork the classic skin button, checkbox, radio, and toolbarbutton css files for unix and make them look more like native GTK widgets. In particular, remove the inner dotted focus border and tweak some borders and margins (bug 156048). r=hixie, sr=ben.
git-svn-id: svn://10.0.0.236/trunk@124736 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-07 06:45:37 +00:00
ian%hixie.ch
17e6ebaa70 Update the string data source to use the new input metadata APIs
git-svn-id: svn://10.0.0.236/trunk@124734 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-07 00:13:29 +00:00
bryner%netscape.com
dd19da27ff Don't send mouse enter events every time we have a key press (bug 156052). r=dbaron, sr=blake.
git-svn-id: svn://10.0.0.236/trunk@124733 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-06 23:25:20 +00:00
cbiesinger%web.de
be0685b6f7 bug 155923 r=neil@parkwaycc.co.uk sr=tor
about: should not use :active


git-svn-id: svn://10.0.0.236/trunk@124732 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-06 21:02:33 +00:00
seawood%netscape.com
8243227c59 Add generated files to GARBAGE.
git-svn-id: svn://10.0.0.236/trunk@124731 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-06 20:00:45 +00:00
myk%mozilla.org
cd4f79f96a Fix for bug 155700: detaints bug ID in ValidateBugID so it doesn't fail taint checks.
2rx=bbaetz


git-svn-id: svn://10.0.0.236/trunk@124730 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-06 18:27:18 +00:00
ian%hixie.ch
0981f17395 Typo: adddress should be address. Doesn't make any particular difference to anything unless someone has already written automated installation scripts...
git-svn-id: svn://10.0.0.236/trunk@124729 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-06 17:59:10 +00:00
ian%hixie.ch
985fdefa99 Change the 'row' method of the ResultsFrame API to return an array in an array context, a hashref in a scalar context, and the value on its own if there is only one returned value. (Controversial change. This could introduce hard to spot regressions, and might be backed out at some point.)
git-svn-id: svn://10.0.0.236/trunk@124728 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-06 17:52:21 +00:00
ian%hixie.ch
87f64c60c5 Introduce the service.uaStringInterpreter.<protocol> service, which takes a UA string and splits it into name, version, manufacturer, platform and comment. This is the HTTP implementation of that service.
git-svn-id: svn://10.0.0.236/trunk@124727 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-06 17:49:22 +00:00
ian%hixie.ch
ea199f9e7f Added the following filters to the Template Toolkit toolbox: htmlcomment, xmlcomment, xml, cdata, htmljs, js, css. Added support for named [% BLOCK %], which had been removed when the template processing code was overridden.
git-svn-id: svn://10.0.0.236/trunk@124726 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-06 16:14:58 +00:00
ian%hixie.ch
a741fa90cd Remove XXX comment about needing an API to enable or disable UI elements, since that need has disappeared now that we use provide that information reliably in the user object. Also split a long line into two for no particular reason.
git-svn-id: svn://10.0.0.236/trunk@124725 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-06 16:12:42 +00:00
ian%hixie.ch
d829df69c0 Changed the default handling of the generic output module. Now, if there's no generic dispatcher for an output command, it'll effectively synthesise one on the fly, using the method name as the string name and the arguments as an array of values for a 'data' variable. This means that applications can skip out on implementing a generic dispatcher now. Anyone using strings with dot separators (i.e. anyone writing libraries) still need to have generic output dispatcher methods though, to map the method call to a string name.
git-svn-id: svn://10.0.0.236/trunk@124724 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-06 16:05:48 +00:00
ian%hixie.ch
d56912f37e Made the SMTP 'timeout' value configurable at setup time (defaults to 5 seconds)
git-svn-id: svn://10.0.0.236/trunk@124723 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-06 16:02:07 +00:00
ian%hixie.ch
f436c3ecbc Implement getArgumentsTree(), which returns a hash tree representing the first value of each unique argument name in a branch, using dots as the separator. Finally replaced the hardcoded non-extensible meta data stuff with a proper getMetaData() API. Implemented that in the various Input modules. Renamed 'parameter' to 'property' in the CGI Input module. Added '--batch-force-defaults' as an argument handled by the CommandLine Input module. Made CommandLine derive from Default instead of Arguments, so that it can pick up the default handling of metadata and default output protocol.
git-svn-id: svn://10.0.0.236/trunk@124722 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-06 15:59:56 +00:00
bryner%netscape.com
c84f8e935b Fix NATIVE_THEME_SUPPORT=1 with gtk+ < 1.2.9. Not part of the default build.
git-svn-id: svn://10.0.0.236/trunk@124721 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-06 09:55:33 +00:00
jouni%heikniemi.net
34fcc85176 Bug 155388: <link> elements for next/prev/first/last in buglists didn't appear post-templatization.
r=gerv,bbaetz


git-svn-id: svn://10.0.0.236/trunk@124720 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-06 09:33:39 +00:00
sfraser%netscape.com
a06e7b1db7 Fixing bugs 154906 and 149670, and lots of other drag and drop bugs. Drags from the proxy icon are now droppable in the Finder, in the content area, and on tabs, and do the right thing. Single bookmarks are also draggable to the Finder. Page links can also now be dragged onto tabs.
git-svn-id: svn://10.0.0.236/trunk@124718 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-06 06:44:14 +00:00
jaggernaut%netscape.com
7fe283e16d Fix typo.
git-svn-id: svn://10.0.0.236/trunk@124717 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-06 05:58:50 +00:00
pschwartau%netscape.com
fc95521bb7 Initial add. Regression test for bug 144834.
git-svn-id: svn://10.0.0.236/trunk@124716 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-06 03:44:58 +00:00
sfraser%netscape.com
ee782fdffc Fix for bug 154735; removing unused method, patch from David Haas.
git-svn-id: svn://10.0.0.236/trunk@124714 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-06 00:24:11 +00:00
sfraser%netscape.com
fad3a72e1c Fix for bug 155617: make sure we show the location dialog if the user removed the location field from their toolbar. Patch from David Haas.
git-svn-id: svn://10.0.0.236/trunk@124713 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-06 00:00:50 +00:00
sfraser%netscape.com
5adfa6aacb We have to manually update items on the Bookmarks menu and its submenus, because we turn auto-enabling of items off for this menu (presumably, for performance with lots of bookmarks).
git-svn-id: svn://10.0.0.236/trunk@124712 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-05 23:50:08 +00:00
sfraser%netscape.com
542c5d80db We have to manually update items on the Bookmarks menu and its submenus, because we turn auto-enabling of items off for this menu (persumably, for performance with lots of bookmarks).
git-svn-id: svn://10.0.0.236/trunk@124711 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-05 23:48:36 +00:00
sfraser%netscape.com
593d8584e1 Just cleaning up some cruft left over from my import bookmarks changes (unused #define, comment)
git-svn-id: svn://10.0.0.236/trunk@124710 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-05 23:47:33 +00:00
smontagu%netscape.com
f244dc4c50 Bug 140608 ("Bookmarks menu goes offscreen with 3rd level menu when UI aligned to the right"), r=dean_tessman@hotmail.com, sr=jst
git-svn-id: svn://10.0.0.236/trunk@124709 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-05 23:12:51 +00:00
timeless%mac.com
2b5ea0bab9 Bug 155349 WARNING: the property cp1256 already exists
r=caillon sr=tor


git-svn-id: svn://10.0.0.236/trunk@124708 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-05 19:12:06 +00:00
mikep%oeone.com
462cd27a46 Bug fixing for to do items, adding in tooltips for bug 155885.
git-svn-id: svn://10.0.0.236/trunk@124707 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-05 18:41:18 +00:00
axel%pike.org
5dbe8dcceb not part of build, test UI.
XUL interface for xsltmark, http://www.datapower.com/XSLTMark/.
Joint work with peterv, thanx for the work.
I tried to clean his stuff up, and make it non-block. I succeeded in the latter. I'm not happy with the UI yet, but that may come later.


git-svn-id: svn://10.0.0.236/trunk@124705 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-05 12:36:13 +00:00
kyle.yuan%sun.com
6fb70f9b1d Bug 153852 Accessibility: Support selection_changed, text_changed and text_selection_changed events for ATK
r=aaronl, sr=jst


git-svn-id: svn://10.0.0.236/trunk@124704 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-05 06:20:15 +00:00
dbaron%fas.harvard.edu
7425c47120 Turn on Ramiro's code to stack-trace and suspend when we crash, for DEBUG builds. b=14989 r=bryner sr=brendan
git-svn-id: svn://10.0.0.236/trunk@124703 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-05 05:31:04 +00:00
jay.yan%sun.com
c040734998 bug 151139, support nsIAccessibleValue in MAI (Mozilla ATK Implementation), patch=silvia.zhao, r=aaronl, this is for mozilla accessibility on unix, not a part of default build.
git-svn-id: svn://10.0.0.236/trunk@124701 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-05 03:50:56 +00:00
jay.yan%sun.com
1435808314 bug 151107, Support nsIAccessibleHyperText in MAI(Mozilla ATK Implementation) patch=bolian.yin, r=arronl, sr=jst. this patch is for mozilla accessibility on unix, not a part of default build.
git-svn-id: svn://10.0.0.236/trunk@124699 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-05 03:44:40 +00:00
jay.yan%sun.com
227549c687 bug 121262, gtk2 needs to have constrain position hooked up, patch=jeff.qiu, r=blizzard. this is a gtk2 related bug, not a part of default build.
git-svn-id: svn://10.0.0.236/trunk@124698 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-05 03:23:59 +00:00
sfraser%netscape.com
f41531d34c Fix bug 148841: make sure the url autocomplete widget doesn't cover menus by putting it in the floating window layer, rather than the popup layer.
git-svn-id: svn://10.0.0.236/trunk@124697 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-05 01:54:18 +00:00
sfraser%netscape.com
07e12fc292 Changing printfs to NSLog, and #ifdeffing many of them to be DEBUG only. bug 147615.
git-svn-id: svn://10.0.0.236/trunk@124696 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-05 01:32:00 +00:00
sfraser%netscape.com
b29d9cf731 Making a prefs window grouping
git-svn-id: svn://10.0.0.236/trunk@124695 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-05 01:11:14 +00:00
sfraser%netscape.com
f66a698c39 Fixing bug 152622: moving Close Window and Close Tab to the File menu, and making Command-W close tabs then windows, as appropriate. Also giving MainController members more concrete types, rather than 'id'.
git-svn-id: svn://10.0.0.236/trunk@124694 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-05 01:10:13 +00:00
sfraser%netscape.com
78ad394687 Fixing bug 152622: moving Close Window and Close Tab to the File menu, and making Command-W close tabs, then windows, as appropriate.
git-svn-id: svn://10.0.0.236/trunk@124693 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-05 01:08:42 +00:00
sfraser%netscape.com
ece9f73a82 Fixing keyboard navigation
git-svn-id: svn://10.0.0.236/trunk@124692 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-05 00:58:13 +00:00
ducarroz%netscape.com
c0bafc4f18 Fix build bustage.
git-svn-id: svn://10.0.0.236/trunk@124691 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-05 00:14:32 +00:00
ducarroz%netscape.com
3c78e284ce Fix for bug 155671. Pass the originalMsgURI received by message compose service to msgDraft down to mime and back to the compose window. Did some cleanup too which fix some memory leak. R=kaie, SR=bienvenu
git-svn-id: svn://10.0.0.236/trunk@124690 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-04 23:28:07 +00:00
sfraser%netscape.com
09f6a15165 Stretching the status bar across to the progress meter
git-svn-id: svn://10.0.0.236/trunk@124689 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-04 22:21:24 +00:00
sfraser%netscape.com
5e045655d2 Fixing keyboard navigation in the prefs panes by setting up the _initialKeyView etc, and the keyboard loop in each panel.
git-svn-id: svn://10.0.0.236/trunk@124688 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-04 22:15:26 +00:00
sfraser%netscape.com
f2fe76b504 Whitespace and formatting changes only
git-svn-id: svn://10.0.0.236/trunk@124687 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-04 22:14:27 +00:00
igor%mir2.org
f176c10a35 New security implementation.
git-svn-id: svn://10.0.0.236/trunk@124686 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-04 21:40:12 +00:00
tor%cs.brown.edu
034e604aa7 Bug 76776 - incremental display of progressive jpegs. r=biesi, sr=jag
git-svn-id: svn://10.0.0.236/trunk@124685 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-04 20:31:18 +00:00
timeless%mac.com
6f14d44f09 Bug 155805 doeditcheckin.cgi still has an unported TCL line(!!)
r=justdave


git-svn-id: svn://10.0.0.236/trunk@124684 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-04 18:24:19 +00:00
timeless%mac.com
585baa0803 Bug 155466 clean up test consumers to correctly use NS_ShutdownXPCOM
r=dmose, sr=scc, moa: dougt, dbradley, gagan, harish, akk


git-svn-id: svn://10.0.0.236/trunk@124683 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-04 14:29:25 +00:00
mostafah%oeone.com
c8967dfdcb Fixed bug 155757: Parse error in ics file for TODO's because DTSTART is invalid
git-svn-id: svn://10.0.0.236/trunk@124682 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-04 14:00:10 +00:00
timeless%mac.com
e3fd4dd936 Bug 153272 Can't drag anymore a link menus on the personal toolbar (Windows only)
patch=pierrechanial@netscape.net, r=timeless, sr=blake


git-svn-id: svn://10.0.0.236/trunk@124681 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-04 12:28:55 +00:00
timeless%mac.com
8a1d3b6f40 Bug 155446 change mime to use NS_ASSERTIONs instead of PR_ASSERTs
R=ducarroz sr=jst


git-svn-id: svn://10.0.0.236/trunk@124680 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-04 11:51:54 +00:00
jouni%heikniemi.net
9e04981107 Bug 155343: header template interface comment correction: extra parameter renamed to header_html.
2xr=bbaetz


git-svn-id: svn://10.0.0.236/trunk@124678 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-04 11:16:02 +00:00
jouni%heikniemi.net
a803887481 Bug 145795: editcomponents had error messages referring to products where it should've been components.
r=bbaetz,afranke


git-svn-id: svn://10.0.0.236/trunk@124677 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-04 11:13:50 +00:00
jouni%heikniemi.net
5ddddc3cab Bug 155744: fix a used only once warning in tinderbox caused by myk's checkin of bug 99203.
2xr=bbaetz


git-svn-id: svn://10.0.0.236/trunk@124676 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-04 11:06:59 +00:00
bzbarsky%mit.edu
32f4172c4b Fix scrollbar disappearing when many tabs are open. Bug 106927, patch by
neil@parkwaycc.co.uk, r=timeless, sr=jag


git-svn-id: svn://10.0.0.236/trunk@124675 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-04 09:46:01 +00:00
bzbarsky%mit.edu
18bd36d2ff Fix NS_WildCardMatch to actually pay attention to the case_insensitive
arg.  Bug 146187, r=sicking, sr=shaver


git-svn-id: svn://10.0.0.236/trunk@124674 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-04 09:33:52 +00:00
jouni%heikniemi.net
7a90a48d77 Bug 62000: File attachments don't work on Windows. Note: only the code from the patch was checked in, the
documentation issue was split to bug 155743.
2xr=bbaetz


git-svn-id: svn://10.0.0.236/trunk@124673 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-04 09:12:33 +00:00
henry.jia%sun.com
2186fde8e5 Fixing Bug 15424: old versions of files that were renamed after migration should be removed.
Instead of deleting the files unused, this patch solve this problem by just copying the files needed.
patch by Henry.Jia@sun.com, r=ccarlen, sr=scc


git-svn-id: svn://10.0.0.236/trunk@124672 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-04 08:46:04 +00:00
bzbarsky%mit.edu
eb31338393 Will this fix the compiler badness?
git-svn-id: svn://10.0.0.236/trunk@124671 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-04 05:33:22 +00:00
bzbarsky%mit.edu
6a8f9c9ec2 fix windows bustage
git-svn-id: svn://10.0.0.236/trunk@124668 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-04 05:04:40 +00:00
kyle.yuan%sun.com
55a02ec46a Bug 147168 Implementation of nsIAccessibleHyperText
r=kyle, sr=jst
Check in for Gilber Fang's (gilbert.fang@sun.com) fix


git-svn-id: svn://10.0.0.236/trunk@124667 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-04 04:58:54 +00:00
bzbarsky%mit.edu
5483f8d08e Fix innerHTML on some special elements to suck less; refactor some
code.  Bug 125746, r=sicking, sr=jst


git-svn-id: svn://10.0.0.236/trunk@124666 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-04 04:30:25 +00:00
jpierre%netscape.com
f29a33f656 Add new CERT_VerifyCertificate function - fix for 149832
git-svn-id: svn://10.0.0.236/trunk@124664 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-04 03:09:49 +00:00
depstein%netscape.com
dad895d2f7 cosmetic changes, changed some urls in the url table.
a=asa for QA checkins that are not part of the default builds


git-svn-id: svn://10.0.0.236/trunk@124662 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-04 01:37:04 +00:00
dean_tessman%hotmail.com
7d8a95f6c1 1. 62495 - clickSelectsAll should not trigger if you're selecting text
2. 96446 - Right-clicking location bar selects entire URL even if location bar already has focus

r=walk84@yahoo.com, sr=blaker@netscape.com


git-svn-id: svn://10.0.0.236/trunk@124661 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-04 01:34:53 +00:00
seawood%netscape.com
6ae98c1445 compaq cxx doesn't like exception declarations when exceptions are disabled.
More fallout from bug #149032


git-svn-id: svn://10.0.0.236/trunk@124660 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-04 01:31:05 +00:00
jfrancis%netscape.com
86a10335a7 fix for 155629: deletion horked: cant delete br nodes. r=fm; sr=kin
git-svn-id: svn://10.0.0.236/trunk@124659 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-04 01:12:49 +00:00
racham%netscape.com
d3302daa75 Fixing bug 80035. Patch in here allows Administrators to control the migration behavior wrt IMAP and Local Folders files. Today, during migration, we copy all those (IMAP & Local Folders) besides others into the newly created dierctory for the migrated profile. Some external parties have expressed concern over this approach due the large amount of mails they have in 4.x folders and all of those getting copied again wasting the disk space and also failing to do migration properly sometimes. So, a hidden pref mail.migration.copyMailFiles is introduced (which can be set to false) for those who those interested to share the 4.x IMAP and Local Folders. Please see the bug report for the possible side effects and other discussion points wrt the sharing folders with 4.x. The pref is set to true by default which means we will continue to do the migration the way we have always done. Patch by henry.jia@sun.com. r=racham, sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@124658 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-04 00:56:33 +00:00
bryner%netscape.com
ab32c97e63 Add a feedback link to the help menu. r=smfr.
git-svn-id: svn://10.0.0.236/trunk@124657 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-04 00:51:44 +00:00
glen.beasley%sun.com
d0fcf231eb verify certificate in memory method
git-svn-id: svn://10.0.0.236/trunk@124656 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-04 00:36:52 +00:00
nicolson%netscape.com
d46f156b48 Fix 120785: SSLSocket does not throw java.net.BindException.
git-svn-id: svn://10.0.0.236/trunk@124655 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-04 00:29:24 +00:00
nicolson%netscape.com
2d08ff27bf need to include nspr.h.
git-svn-id: svn://10.0.0.236/trunk@124654 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-04 00:25:46 +00:00
glen.beasley%sun.com
89572a0902 verify cert in memory
git-svn-id: svn://10.0.0.236/trunk@124653 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-04 00:10:48 +00:00
nicolson%netscape.com
31fcae953a Fix 121710: throw better SSL exceptions.
git-svn-id: svn://10.0.0.236/trunk@124652 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-04 00:03:47 +00:00
nicolson%netscape.com
d82896150d Print subject name instead of issuer name.
git-svn-id: svn://10.0.0.236/trunk@124651 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 23:58:58 +00:00
nicolson%netscape.com
5baf9991e4 Update documentation for these functions.
git-svn-id: svn://10.0.0.236/trunk@124650 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 23:57:12 +00:00
nicolson%netscape.com
c55ccb9962 deprecate old classes in favor of the JCA.
git-svn-id: svn://10.0.0.236/trunk@124649 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 23:51:20 +00:00
nicolson%netscape.com
d06636185b moved JSSSecureRandomSpi into provider/java/security directory.
git-svn-id: svn://10.0.0.236/trunk@124648 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 23:49:32 +00:00
nicolson%netscape.com
242d9c13cd Provider classes have been moved into the java/security and javax/crypto
subdirectories.


git-svn-id: svn://10.0.0.236/trunk@124647 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 23:48:53 +00:00
dprice%netscape.com
c4c9c9b75b 153291 - r=curt sr=dveditz
add mechanism to create custom config files for installed components


git-svn-id: svn://10.0.0.236/trunk@124646 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 23:48:06 +00:00
nicolson%netscape.com
4f9bc9bf2e Fix 106846: Version strings in CryptoManager need updating.
git-svn-id: svn://10.0.0.236/trunk@124645 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 23:46:02 +00:00
mostafah%oeone.com
45717b792c Disabling daylight saving time for years before 1970 in the backend. ( Fixes bug 155442 )
git-svn-id: svn://10.0.0.236/trunk@124643 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 23:18:31 +00:00
myk%mozilla.org
0240d83d88 Fix for bug 99203: Implements bug aliases feature.
r=bbaetz,jouni


git-svn-id: svn://10.0.0.236/trunk@124640 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 23:07:14 +00:00
locka%iol.ie
52e174162e Remove nsDOMWalker & nsIDOMWalker. b=155066 r=sicking@bigfoot.com sr=jst@netscape.com
git-svn-id: svn://10.0.0.236/trunk@124638 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 22:16:35 +00:00
locka%iol.ie
74db7ff3c4 Obseleted by DOM TreeWalker. b=155066 r=sicking@bigfoot.com sr=jst@netscape.com
git-svn-id: svn://10.0.0.236/trunk@124637 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 22:13:59 +00:00
mkaply%us.ibm.com
0e0ceb1e09 #127741
r=saari, sr=blizzard, a=chofmann
OS/2 only - 82534 fix for OS/2


git-svn-id: svn://10.0.0.236/trunk@124636 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 22:13:00 +00:00
locka%iol.ie
c5532ad19d Remove nsDOMWalker & nsIDOMWalker altogether. b=155066 r=sicking@bigfoot.com sr=jst@netscape.com
git-svn-id: svn://10.0.0.236/trunk@124635 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 22:12:29 +00:00
brendan%mozilla.org
fd861e3a1e rogerl's fix to conform to ECMA by not enumerating regexp instance properties (155291, r=khanson, sr=brendan).
git-svn-id: svn://10.0.0.236/trunk@124633 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 21:07:53 +00:00
peterlubczynski%netscape.com
f760c5576b Fixing bug 148458: Netscape Radio crashes using Real Player if another plugin is being installed in another window because scripting any plugin in other window after plugins.refresh(1) causes this crash when plugin has been unloaded - N70PR1 [@ NPPL3260.DLL - XPTC_InvokeByIndex] r=av, sr=jst
git-svn-id: svn://10.0.0.236/trunk@124632 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 21:03:51 +00:00
brendan%mozilla.org
d05d2dcdd8 rogerl's patch to fix some ECMA arity glitches (155289, r=khanson, sr=brendan).
git-svn-id: svn://10.0.0.236/trunk@124630 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 21:03:02 +00:00
brendan%mozilla.org
916b19a61f khanson's fix for Function.prototype.apply.length ECMA glitch (145779, r=rogerl, sr=brendan).
git-svn-id: svn://10.0.0.236/trunk@124628 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 21:00:15 +00:00
locka%iol.ie
49eaed02f5 winEmbed window sizing fixes on behalf of steve-w@dircon.co.uk. b=152853 r/a=adamlock@netscape.com
git-svn-id: svn://10.0.0.236/trunk@124627 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 20:52:05 +00:00
sfraser%netscape.com
5c2862abfa Adding Navigator.scriptTerminology to the English.lproj directory. Note that we only ever need an English version of this file; Apple advise that you don't localize it, since you can only write Apple Scripts in English.
git-svn-id: svn://10.0.0.236/trunk@124626 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 20:44:27 +00:00
sfraser%netscape.com
ff911dd557 Updated with Suite Modeller; just minor wording changes.
git-svn-id: svn://10.0.0.236/trunk@124625 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 20:40:18 +00:00
sfraser%netscape.com
72a0669999 Adding a .scriptTerminology file to fix bug 155649. This allows AppleScript apps to read our scripting suite. Note that this file does not need to be localized; it's advised that apps only have a version in English.lproj.
git-svn-id: svn://10.0.0.236/trunk@124624 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 20:37:51 +00:00
rods%netscape.com
f98d2b5ed4 The problem is the print for a mail msg is started when the first notification
of the document (mail msg) is done loading. This is wrong because if the mail
msg has attachments they may not be loaded and then the msgPrintEngine gets
additional notification for when the attachments have started to load and since
it has already started toprint error dialogs appear AND the attachments don't get printed.
The solution here is to cache a pointer to the DOM Window for the msg(s) being
printed. Then as the "stop" notifications come in we can ignore any documents
(which would be the attachments) where the dom window doesn't match the msg's
dom window. Then when they match which is the last notifiaction we can call print.
The notification that comes thru where the docLoader is NULL means the previous
document has completed printing and the engine should print the next msg.
Bug 155430 r=cavin sr=kin


git-svn-id: svn://10.0.0.236/trunk@124623 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 20:33:24 +00:00
harishd%netscape.com
6147487ae6 ** NOT PART OF THE BUILD **
Removing unncessary files pertaining to parser tests


git-svn-id: svn://10.0.0.236/trunk@124622 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 20:25:29 +00:00
javi%netscape.com
d6d8281aef Go back to the lower case mechanism for the ocspResponse_* flags.
git-svn-id: svn://10.0.0.236/trunk@124621 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 20:22:27 +00:00
harishd%netscape.com
6453edb2dd ** NOT PART OF THE BUILD **
Removing unnecessary files


git-svn-id: svn://10.0.0.236/trunk@124620 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 20:18:53 +00:00
javi%netscape.com
d5ab5f8b0f Final patch for Bug 155626 which enables 3rd party apps to use the NSS
libraries to encode/decode OCSP responses/requests on their own.


git-svn-id: svn://10.0.0.236/trunk@124619 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 20:18:10 +00:00
harishd%netscape.com
d496989f33 ** NOT PART OF THE BUILD ** | Moving parser test cases from logparse dir. to html dir.
git-svn-id: svn://10.0.0.236/trunk@124618 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 20:12:28 +00:00
pinkerton%netscape.com
df70e74ac3 Make autocomplete behave like mozilla in that it won't fill in the textfield
unless you select something from the list and tab tabs into the list. This
is preffed in the defaults system so you can go back to the old way.


git-svn-id: svn://10.0.0.236/trunk@124616 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 20:04:30 +00:00
cbiesinger%web.de
4a861b19fe bug 57652 r=timeless sr=tor
strict warning


git-svn-id: svn://10.0.0.236/trunk@124615 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 19:30:41 +00:00
cbiesinger%web.de
3e3847b616 bug 146974 r=hwaara sr=tor
js strict warnings


git-svn-id: svn://10.0.0.236/trunk@124614 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 19:16:45 +00:00
sfraser%netscape.com
9360f1b06c Add the 'mozProfileDirName' key to the Info.plist for the static target.
git-svn-id: svn://10.0.0.236/trunk@124613 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 18:48:02 +00:00
mikep%oeone.com
c38f367a90 Adding text for tabs to cvs.
git-svn-id: svn://10.0.0.236/trunk@124612 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 18:15:28 +00:00
mikep%oeone.com
b81bf94cb9 Ok, we'll allow people to delete events again...
git-svn-id: svn://10.0.0.236/trunk@124611 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 18:10:07 +00:00
mikep%oeone.com
0c193e2a0c Fixing bug 154155, problem with not allowed to select correct repeatition for events.
git-svn-id: svn://10.0.0.236/trunk@124610 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 18:09:50 +00:00
cbiesinger%web.de
03acfc85fd bug 139176 patch by paper r=biesi sr=tor
Animated gif with no global palette puts garbage in transparent area on first loop


git-svn-id: svn://10.0.0.236/trunk@124609 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 17:56:09 +00:00
mikep%oeone.com
b4fecff35d Fixing bug 152856.
git-svn-id: svn://10.0.0.236/trunk@124608 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 17:42:10 +00:00
seawood%netscape.com
d52d1cc987 Use empty exception handler for mac builds.
git-svn-id: svn://10.0.0.236/trunk@124606 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 17:19:04 +00:00
seawood%netscape.com
6248c8f39c Remove CPP_THROW_NEW workaround for all non-gnu compilers except MIPSPro, which doesn't like exception handling code when exceptions have been disabled via the compiler switch.
Bug #149032


git-svn-id: svn://10.0.0.236/trunk@124605 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 17:18:04 +00:00
seawood%netscape.com
08f53dff2a The c++ standard requires that the throw list be used when declaring functions as well as defining them.
commercial compiler fixes for bug #149032


git-svn-id: svn://10.0.0.236/trunk@124604 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 17:14:41 +00:00
mikep%oeone.com
54697924df Fixing bug 155443, problem with no close window in calendar.
git-svn-id: svn://10.0.0.236/trunk@124603 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 17:10:50 +00:00
waterson%netscape.com
4cebc25c5a Bug 132905. Wallpaper to avoid crash when we can't find a match. r=rjc, sr=alecf.
git-svn-id: svn://10.0.0.236/trunk@124602 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 16:59:29 +00:00
mostafah%oeone.com
6c3f9c2f31 Adding 'msgcompose' to REQUIRES part of makefiles
git-svn-id: svn://10.0.0.236/trunk@124601 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 16:49:30 +00:00
aaronl%netscape.com
d2b241f746 Bug 154691. Active Accessibility: support accTakeFocus() on link's children, as it is supported for link. r=kyle, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@124600 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 16:38:20 +00:00
aaronl%netscape.com
5c3fc92dc0 Bug 132489. Caret still blinking when entering menus. r=bryner, sr=hewitt. Bug 154704. No accessibility events fired as menus exit. r=jgaunt, sr=jag. Bug 154721. Active accessibility: No accessible focus events fired for documents. r=kyle, sr=jst
git-svn-id: svn://10.0.0.236/trunk@124599 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 16:38:15 +00:00
mostafah%oeone.com
180c9eeca1 Added first stage of supprt for attachments
git-svn-id: svn://10.0.0.236/trunk@124598 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 16:18:36 +00:00
pinkerton%netscape.com
1b1acdabc1 Return correct values from Confirm[Check]Ex (int, not bool) and fix up
the buttons for the unknown cert in accordance with new constants for the
buttons (bug 155287)


git-svn-id: svn://10.0.0.236/trunk@124597 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 14:42:18 +00:00
mkaply%us.ibm.com
c4e44b6b00 No bug - get viewer working on OS/2
git-svn-id: svn://10.0.0.236/trunk@124596 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 14:41:10 +00:00
locka%iol.ie
297a73672a Added DO NOT USE comment, pending removal for bug 155066
git-svn-id: svn://10.0.0.236/trunk@124595 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 11:19:53 +00:00
kyle.yuan%sun.com
b21fe8c889 Bug 154914 Press Enter on collapsed history tree item causes page load.
r=timeless, sr=blake


git-svn-id: svn://10.0.0.236/trunk@124593 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 09:38:47 +00:00
axel%pike.org
ffc0001734 these files are obsolete, and mostly wrong these days. We use bugzilla for this, so cvs rm them. Not part of the build
git-svn-id: svn://10.0.0.236/trunk@124592 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 09:20:45 +00:00
rogerl%netscape.com
be683bfd2a Bug #155285. Array.join(undefined) should use ',' - ECMA compatibility.
r=scole, sr=brendan.


git-svn-id: svn://10.0.0.236/trunk@124590 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 07:22:14 +00:00
dean_tessman%hotmail.com
be44b81f3a Bug 112308 - "2M history.dat file adds 30% to startup time and 1MB or more to RAM"
Check-in for jrgm@netscape.com, r=blaker@netscape.com, sr=bienvenu@netscape.com


git-svn-id: svn://10.0.0.236/trunk@124589 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 06:39:33 +00:00
bzbarsky%mit.edu
9937942286 Make the JS console use a monospace font. Bug 124332, patch by
neil@parkwaycc.co.uk, r=bzbarsky, sr=hewitt


git-svn-id: svn://10.0.0.236/trunk@124588 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 06:35:48 +00:00
sfraser%netscape.com
bafe03cd02 Changing the home page behaviour. Now, if no user pref is set, we get the default home page from a .strings file, and set this in the user pref. Also using values from CHUserDefaults.h
git-svn-id: svn://10.0.0.236/trunk@124587 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 06:22:15 +00:00
sfraser%netscape.com
9054337392 Using values from CHUserDefaults.h
git-svn-id: svn://10.0.0.236/trunk@124586 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 06:20:42 +00:00
sfraser%netscape.com
3fdcf45af4 New file containing #defines for various NSUserDefaults entries. Documents which entries we use, and their formats.
git-svn-id: svn://10.0.0.236/trunk@124585 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 06:19:39 +00:00
sfraser%netscape.com
7fa26eb60a Adding CHUserDefaults.h to project
git-svn-id: svn://10.0.0.236/trunk@124584 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 06:19:03 +00:00
sfraser%netscape.com
6b35f4e4cb Whitespace change
git-svn-id: svn://10.0.0.236/trunk@124583 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 06:17:20 +00:00
bernd.mielke%snafu.de
8d6dd23a24 bug153718 remove nsTableBorderCollapse.cpp from build r=karnaze sr=waterson
git-svn-id: svn://10.0.0.236/trunk@124582 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 04:59:55 +00:00
jaggernaut%netscape.com
5f7111a373 Bug 153834: crash when changing Window's windows colors (e.g. Win XP theme change); Patch by Adam Lock <adamlock@netscape.com>, r=saari, sr=jag
git-svn-id: svn://10.0.0.236/trunk@124580 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 04:03:20 +00:00
shanjian%netscape.com
e81fefd3a4 #152056 Uninitialized memory read in nsTextFrame::GetPosition
relocate a line to prevent i from reaching contentLength.
r=mjudge, sr=dveditz


git-svn-id: svn://10.0.0.236/trunk@124579 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 03:47:53 +00:00
bbaetz%student.usyd.edu.au
b29b23da3f Bug 151871 - rewrite quoteUrls to fix major performance problems, and a
few other misc bugs too.
r=myk x2


git-svn-id: svn://10.0.0.236/trunk@124578 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 02:45:13 +00:00
timeless%mac.com
a73f2504b4 Bug 154737 String(NaN) crashes JS Engine if JS_THREADSAFE is set
r=dbradley sr=brendan


git-svn-id: svn://10.0.0.236/trunk@124577 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 02:14:51 +00:00
karnaze%netscape.com
a60fc067fa bug 154924 - use NS_FRAME_COMPLETE rather than macro as it was before bug 145305 was checked in. sr=kin
git-svn-id: svn://10.0.0.236/trunk@124575 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 01:44:51 +00:00
sfraser%netscape.com
4571d35cc5 Fixing default position of new browser windows
git-svn-id: svn://10.0.0.236/trunk@124574 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 01:41:34 +00:00
kyle.yuan%sun.com
094a915347 Bug 154729 replace C-style casts with C++ static casts in MAI code
r=kyle, sr=jst
Checkin for Bolian Yin's (bolian.yin@sun.com) fix.


git-svn-id: svn://10.0.0.236/trunk@124573 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 01:22:34 +00:00
nhotta%netscape.com
4be148e091 Do not set the default charset to nsIMsgWindow if forward inline or edit as new,
bug 155253, r=ducarroz, sr=bienvenu.


git-svn-id: svn://10.0.0.236/trunk@124571 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 01:01:55 +00:00
morse%netscape.com
29fcdbd9fe bug 155114, cookie stealing based on path, r=mstoltz, sr=jst
git-svn-id: svn://10.0.0.236/trunk@124570 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 00:56:34 +00:00
yokoyama%netscape.com
1731dce854 Bug 9449
Unicode API conversion for Windows Platforms
#ifdef MOZ_UNICODE'ed for now.
No impact unless environment variable
MOZ_UNICODE is defined.
/r=shanjian;/sr=kin


git-svn-id: svn://10.0.0.236/trunk@124569 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 00:55:47 +00:00
harishd%netscape.com
dc7a145d57 ** NOT PART OF THE BUILD **
Pertaining to parser regerssion testing


git-svn-id: svn://10.0.0.236/trunk@124568 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 00:47:07 +00:00
sfraser%netscape.com
ace61dd488 Put profile directories in ~/Library/Application Support now
git-svn-id: svn://10.0.0.236/trunk@124567 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 00:46:59 +00:00
sfraser%netscape.com
d08a04e409 Use the 'mozProfileDirName' key from the Info.plist to decide the name of the profile directory.
git-svn-id: svn://10.0.0.236/trunk@124566 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 00:46:07 +00:00
sfraser%netscape.com
75b2167fe7 Adding mozProfileDirName key to the Info.plist, which we use to get the name of the profile directory
git-svn-id: svn://10.0.0.236/trunk@124565 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 00:45:08 +00:00
sfraser%netscape.com
e0ca296b59 Adding strings for bookmarks warnings. Why is this file binary?
git-svn-id: svn://10.0.0.236/trunk@124564 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 00:44:18 +00:00
sfraser%netscape.com
0c646666a7 Localizing the 'OK' button in bookmarks import warning dialogs, and detabbing.
git-svn-id: svn://10.0.0.236/trunk@124563 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 00:41:05 +00:00
bienvenu%netscape.com
4bb87c3c19 fix crash selecting folder after deleting messages in another folder 121240 r=naving, sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@124562 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 00:40:55 +00:00
sfraser%netscape.com
b7c06dd457 Check in an interim fix for bug 154442: warn before deleting bookmarks.
git-svn-id: svn://10.0.0.236/trunk@124561 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 00:38:37 +00:00
smontagu%netscape.com
cb54c2c9cf Bug 154287: [Freetype] Spaces not displayed between glyphs missing from the selected font. r=bstell@ix.netcom.com, sr=dveditz.
git-svn-id: svn://10.0.0.236/trunk@124560 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 00:37:43 +00:00
bzbarsky%mit.edu
c95e2a1f34 Minor cleanup of the fix for bug 122557. r=dbaron, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@124558 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 00:18:33 +00:00
bzbarsky%mit.edu
e03ea9c661 Fix bug 106843, r=dbaron, sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@124557 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 00:17:14 +00:00
javi%netscape.com
34954b96d1 Use the newly exported symbol names.
git-svn-id: svn://10.0.0.236/trunk@124556 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 00:13:25 +00:00
naving%netscape.com
67ef248c4f 155281 r=robinf alert wording
git-svn-id: svn://10.0.0.236/trunk@124555 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 00:07:01 +00:00
naving%netscape.com
b6aaf74f0a 155281 r=cavin, robinf sr=bienvenu Prevent loss on moving msgs to local folders when there is not sufficient
disk space. Throw an alert and abort the copy/move operation.


git-svn-id: svn://10.0.0.236/trunk@124554 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 00:05:29 +00:00
javi%netscape.com
044ae6008c Break up OCSP so that 3rd party apps can send off an OCSP request and parse
it.


git-svn-id: svn://10.0.0.236/trunk@124553 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 00:02:39 +00:00
sfraser%netscape.com
6b0d6beb03 Fixing capitalization of 'Command' key.
git-svn-id: svn://10.0.0.236/trunk@124551 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 23:45:07 +00:00
harishd%netscape.com
eec4e16e84 Disable script on the requested docshell and the containing docshells. b=154647, r=mstoltz, sr=jst
git-svn-id: svn://10.0.0.236/trunk@124550 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 23:26:08 +00:00
seawood%netscape.com
2e4fa7754c Don't set CPP_THROW_NEW for non-gnu compilers until I figure out why every commercial compiler (except MSVC) dies on this.
git-svn-id: svn://10.0.0.236/trunk@124549 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 22:59:34 +00:00
pinkerton%netscape.com
e9614e28f4 Fix updating of stop menu item and a crash when a popup with the personal
toolbar hidden was the frontmost and the menubar was clicked. Fixed some
warnings as well (bug 155461)


git-svn-id: svn://10.0.0.236/trunk@124548 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 22:48:04 +00:00
dp%netscape.com
ed288aa832 Trying to fix Irix and HPUX bustage. Defining CPP_THROW_NEW at point
of declaration too.


git-svn-id: svn://10.0.0.236/trunk@124547 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 22:38:16 +00:00
despotdaemon%netscape.com
dc0ba809e6 Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@124546 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 22:32:33 +00:00
mkaply%us.ibm.com
ec7eb2808b #145040
r=rods, sr=hewitt
Num copies not mirrored to print dialog from printer settings


git-svn-id: svn://10.0.0.236/trunk@124544 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 22:30:13 +00:00
myk%mozilla.org
efd25a3752 Fix for bug 122900: implements email preference for unconfirmed bugs.
r=jouni


git-svn-id: svn://10.0.0.236/trunk@124543 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 22:18:49 +00:00
cavin%netscape.com
09aad9178d Fix for 149759. Commit the db changes in ConvertLDIFtoMAB() only if 'db' is not null. r=naving, sr=bienvenu.
git-svn-id: svn://10.0.0.236/trunk@124542 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 22:17:34 +00:00
caillon%returnzero.com
7f8fe98bf7 Bug 155062. View background image fails/works incorrectly when things have a background attribute, but a different specified style. We should always get the computed background-image and ignore what
the background attribute says.  r=bzbarsky sr=blake


git-svn-id: svn://10.0.0.236/trunk@124541 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 22:06:59 +00:00
harishd%netscape.com
46d322f36a ** NOT PART OF THE BUILD **
Removing unnecessary files


git-svn-id: svn://10.0.0.236/trunk@124540 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 22:01:04 +00:00
smontagu%netscape.com
2d3ec44ee8 Fix crash on adding images to right-to-left mail messages. Bug 155096, r=mjudge, sr=kin
git-svn-id: svn://10.0.0.236/trunk@124539 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 21:53:18 +00:00
harishd%netscape.com
dca861bd0b ** NOT PART OF THE BUILD **Restoring parser regression testing
git-svn-id: svn://10.0.0.236/trunk@124538 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 21:51:42 +00:00
bryner%netscape.com
88aa88eb26 Bug 152482 - fix handling of script popup windows by not loading about:blank or the user homepage when they are opened, since we'll race with gecko's document loading. Also, localized the "Loading" and "Untitled" strings. r=pinkerton, sr=sfraser.
git-svn-id: svn://10.0.0.236/trunk@124537 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 21:45:09 +00:00
myk%mozilla.org
7122e26142 Fix for bug 149347: Corrects interface comment to refer to "javascript" parameter instead of "jscript" parameter.
2xr=jouni


git-svn-id: svn://10.0.0.236/trunk@124535 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 21:40:30 +00:00
curt%netscape.com
f55468e75c Set the GeckoVer value in the Windows registry.
(Bug 109402, r=syd, sr=dveditz)


git-svn-id: svn://10.0.0.236/trunk@124530 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 21:03:15 +00:00
locka%iol.ie
de008e9c95 Turn nsDOMWalker into an XPCOM object. b=155066 r=ccarlen sr=kin
git-svn-id: svn://10.0.0.236/trunk@124529 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 20:54:13 +00:00
pinkerton%netscape.com
f6935d6b59 turn on CG metrics for quartz rendering if 10.1.5 is present. bug 149427, r=ccarlen/rs=hyatt
git-svn-id: svn://10.0.0.236/trunk@124528 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 20:28:43 +00:00
seawood%netscape.com
f9158cea97 Add CPP_THROW_NEW macro to the build system. This macro should be used when def
ining a local |operator new| function.  It will be set to an empty throw functio
n by default on all platforms except mac CW builds.  This will allow us to not c
rash on systems that expect |operator new| to throw an exception by default and
will suppress compiler warnings about how |operator new| should throw an excepti
on instead of returning NULL.
Bug 149032 r=timeless sr=scc


git-svn-id: svn://10.0.0.236/trunk@124527 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 20:26:10 +00:00
seawood%netscape.com
a7c7e77b8b Add CPP_THROW_NEW macro to the build system. This macro should be used when defining a local |operator new| function. It will be set to an empty throw function by default on all platforms except mac CW builds. This will allow us to not crash on systems that expect |operator new| to throw an exception by default and will suppress compiler warnings about how |operator new| should throw an exception instead of returning NULL.
Bug 149032 r=timeless sr=scc


git-svn-id: svn://10.0.0.236/trunk@124526 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 20:25:30 +00:00
pinkerton%netscape.com
2e8b6b11c8 Wait for the all-stop from Necko before closing down the controller on
a cancelled download. Prevents a crash where we'd continue to get left-over
progress events after the controller had gone away (bug 154913)


git-svn-id: svn://10.0.0.236/trunk@124525 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 20:24:29 +00:00
nhotta%netscape.com
13560f5cae Move ASCII check before the Unicode conversion,
label charset as "us-ascii" if the body is ASCII only,
bug 86255, r=ducarroz, sr=bienvenu.


git-svn-id: svn://10.0.0.236/trunk@124524 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 20:21:00 +00:00
relyea%netscape.com
559d453790 Handle the case where we don't get the Token object from NewToken (It gets converted from a session object in handleobjects).
git-svn-id: svn://10.0.0.236/trunk@124523 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 19:58:49 +00:00
ccarlen%netscape.com
ca5efe9921 Bug 154880 - dropdown lists don't go away on a click outside of them. r=pink/sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@124520 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 19:01:34 +00:00
dp%netscape.com
19a7435907 bug 144884 Necko buffer cache. r=rjc, sr=darin
git-svn-id: svn://10.0.0.236/trunk@124518 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 18:15:19 +00:00
rogerl%netscape.com
7ca34430e3 Bug #154338, r=khanson,sr=jag. Misuse of string length field, when string
was dependent, extracted bad value for subsequent memory request.


git-svn-id: svn://10.0.0.236/trunk@124517 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 18:14:01 +00:00
dp%netscape.com
e5438144fe bug 146532 Making Init() non-virtual (thanks dbaron for suggestion)
git-svn-id: svn://10.0.0.236/trunk@124516 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 18:11:53 +00:00
pinkerton%netscape.com
35236ca9ac Use string table for website defaults rather than moz prefs
git-svn-id: svn://10.0.0.236/trunk@124515 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 18:08:12 +00:00
mstoltz%netscape.com
8946598190 Bug 152725 - Get URL passed to cookie module from document principal, not document URL.
THis ensures that cookies set by javascript URL pages are set in the correct domain.
r=morse, sr=dveditz.


git-svn-id: svn://10.0.0.236/trunk@124514 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 17:58:24 +00:00
jgaunt%netscape.com
515e16e79d bug 78390 accessible support for full page PDFs
r=aaronl,peterl
sr=jst


git-svn-id: svn://10.0.0.236/trunk@124512 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 17:39:40 +00:00
bernd.mielke%snafu.de
b3356503cf bug153718 remove nsTableBorderCollapse.cpp from build r=karnaze sr=waterson
git-svn-id: svn://10.0.0.236/trunk@124511 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 17:35:37 +00:00
pinkerton%netscape.com
24a6e1ca01 Use a string table for throbber, search, and home pages rather than
hardcoding them into the app


git-svn-id: svn://10.0.0.236/trunk@124510 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 17:31:32 +00:00
pinkerton%netscape.com
accb5b1067 Add a toolbar default plist and a string table for various websites
git-svn-id: svn://10.0.0.236/trunk@124509 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 17:30:58 +00:00
pinkerton%netscape.com
5ad3f1b494 Use a string table for where buttons on the toolbar go when clicked
git-svn-id: svn://10.0.0.236/trunk@124508 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 17:30:21 +00:00
mikep%oeone.com
beda83c802 Code clean up and small bug fixes from OEone.
git-svn-id: svn://10.0.0.236/trunk@124507 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 17:07:38 +00:00
mikep%oeone.com
7580d87e60 Adding in sorting for to do events.
git-svn-id: svn://10.0.0.236/trunk@124506 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 17:07:22 +00:00
peterv%netscape.com
b6a46a5d60 Readding file that accidentaly got removed in a merge.
git-svn-id: svn://10.0.0.236/trunk@124505 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 16:59:05 +00:00
pinkerton%netscape.com
cdaeb6ad4b use a plist for toolbar defaults instead of hardcoding. make throbber do
something when clicked than just spin.


git-svn-id: svn://10.0.0.236/trunk@124504 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 16:13:38 +00:00
peterv%netscape.com
a2d00d8e35 Bustage fix.
git-svn-id: svn://10.0.0.236/trunk@124503 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 16:04:23 +00:00
pinkerton%netscape.com
c6c289fb6e allows us to set toolbar defaults from text file
git-svn-id: svn://10.0.0.236/trunk@124502 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 15:42:28 +00:00
peterv%netscape.com
edfb2f49b9 Bustage fix.
git-svn-id: svn://10.0.0.236/trunk@124501 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 15:29:05 +00:00
relyea%netscape.com
ff3a4be02e More performance improvements in listing certs:
1) reduce more short term memory allocate/frees.
	2) remove sha1 hash calculations from critical paths.
	3) when listing user certs, skip decoding of non-user certs.


git-svn-id: svn://10.0.0.236/trunk@124499 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 15:11:29 +00:00
peterv%netscape.com
6ccc54e579 Bustage fix. Sigh.
git-svn-id: svn://10.0.0.236/trunk@124498 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 15:04:55 +00:00
peterv%netscape.com
96663aab15 Bustage fix.
git-svn-id: svn://10.0.0.236/trunk@124497 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 14:59:24 +00:00
karnaze%netscape.com
6d087c9706 bug 150652 - find correct containing block in nsBlockFrame::DoRemoveOutOfFlowFrame. sr=kin, r=alexsavulov.
git-svn-id: svn://10.0.0.236/trunk@124496 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 14:56:18 +00:00
axel%pike.org
e46f8f1ce2 bustage fix for standalone, not part of build
git-svn-id: svn://10.0.0.236/trunk@124495 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 14:54:15 +00:00
peterv%netscape.com
b3514f68fb Bustage fix.
git-svn-id: svn://10.0.0.236/trunk@124494 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 14:42:04 +00:00
mikep%oeone.com
2e48ddff3e Fixing bug 155191, moving import / export to tasks menu.
git-svn-id: svn://10.0.0.236/trunk@124493 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 14:15:39 +00:00
peterv%netscape.com
2cd6ed3ec9 Fix for bug 146967 (Clean up Transformiix strings). r=Pike, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@124492 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 14:15:01 +00:00
mikep%oeone.com
6009c8b31c Fixing bug 154600.
git-svn-id: svn://10.0.0.236/trunk@124491 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 14:07:17 +00:00
mkaply%us.ibm.com
c4fe672cd9 #154161
r=pedemont, sr=blizzard
OS/2 only - get NPNULL plugin working on OS/2


git-svn-id: svn://10.0.0.236/trunk@124490 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 14:02:41 +00:00
mikep%oeone.com
44f7ee448c Adding in styles for completed items, as per bug 155187.
git-svn-id: svn://10.0.0.236/trunk@124489 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 13:52:07 +00:00
peterlubczynski%netscape.com
d1b72e6736 Fixing bug 152978, problem on Mac platforms where Flash "drags" like an image would, r=bnesse, sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@124488 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 13:52:05 +00:00
kmcclusk%netscape.com
a1abaaf6e3 Place position:absolute, fixed, relative elements above non positioned elements. b=137853 r=roc+moz sr=kin
git-svn-id: svn://10.0.0.236/trunk@124486 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 12:50:14 +00:00
rginda%netscape.com
49e74dc5a1 - not part of the build -
fix column sorting


git-svn-id: svn://10.0.0.236/trunk@124482 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 07:31:48 +00:00
bryner%netscape.com
b2531ff1ba Don't choke if the directory name has spaces in it.
git-svn-id: svn://10.0.0.236/trunk@124480 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 06:32:37 +00:00
sfraser%netscape.com
26fd0811b2 Checking in patch from David Haas in bug 155048, with modifications to improve the 'is there a browser window' logic. This also fixes bug 152026 (2 windows when launched with a GetURL AE), and my changes fix bugs 155309 (dragging multiple files onto the icon works now) and 155147 ("browser.always_reuse_window" always works for GetURL events now).
git-svn-id: svn://10.0.0.236/trunk@124479 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 06:08:51 +00:00
sfraser%netscape.com
f126f999d3 Fixing signage of the chromeMask flag, and putting an unused function inside the QUICKTIME_THROBBER #ifdef
git-svn-id: svn://10.0.0.236/trunk@124478 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 05:58:38 +00:00
kyle.yuan%sun.com
fac146fac7 Bug 150603 Implementation of nsIAccessibleHyperLink
r=kyle, aaronl, sr=jst
Thanks for Gilbert Fang's (gilbert.fang@sun.com) fix


git-svn-id: svn://10.0.0.236/trunk@124477 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 05:37:35 +00:00
dougt%netscape.com
1d576b40e3 Making autodial block occur on the socket transport thread - no thread proxying. r=me, sr=rpotts, patch by smeredith@netscape.com. bug 93002
git-svn-id: svn://10.0.0.236/trunk@124474 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 04:51:40 +00:00
bernd.mielke%snafu.de
38f87f8a57 bug 131687 Take into acount MIN_adj width as it has been included in totals before r=karnaze sr=waterson
git-svn-id: svn://10.0.0.236/trunk@124473 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 04:39:16 +00:00
kmcclusk%netscape.com
0c52be1f09 backing out change to see if pageload times go back to normal (Don't place position:absolute, fixed, relative elements above non positioned elements) b=137853
git-svn-id: svn://10.0.0.236/trunk@124472 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 04:38:35 +00:00
mkaply%us.ibm.com
967c8ec974 Os/2 bustage
git-svn-id: svn://10.0.0.236/trunk@124471 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 04:26:18 +00:00
dbaron%fas.harvard.edu
f3b021ab55 Attempt to fix BeOS bustage. b=148046
git-svn-id: svn://10.0.0.236/trunk@124470 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 04:07:20 +00:00
dbaron%fas.harvard.edu
8b645001a0 Guess at fixing orange builds. b=148046
git-svn-id: svn://10.0.0.236/trunk@124467 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 03:56:08 +00:00
dbaron%fas.harvard.edu
155ff91722 Attempt to fix Sun WorkShop bustage. b=146532
git-svn-id: svn://10.0.0.236/trunk@124466 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 03:43:33 +00:00
dbaron%fas.harvard.edu
9dca0f7ac7 Attempt to fix HP-UX and OS/2 bustage. b=146532
git-svn-id: svn://10.0.0.236/trunk@124465 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 03:42:11 +00:00
mkaply%us.ibm.com
5a9c285acb Fix Os/2 bustage for now - I've no idea why. I need to build a testcase
git-svn-id: svn://10.0.0.236/trunk@124464 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 03:34:12 +00:00
dbaron%fas.harvard.edu
1cdecd3237 Increase max stack crawl from 100 to 500. r=jim_nance sr=waterson b=154752
git-svn-id: svn://10.0.0.236/trunk@124463 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 03:17:23 +00:00
dbaron%fas.harvard.edu
9eaaec0438 Print the library name when the library has no symbols. b=154752 r=jim_nance@yahoo.com sr=waterson
git-svn-id: svn://10.0.0.236/trunk@124462 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 03:16:44 +00:00
dbaron%fas.harvard.edu
d829c90453 For stylesheet loads with text/css or empty advisory type, end error message to error console when we don't load a stylesheet (standards mode) or warning message when we do load it (quirks mode). b=154942 r=bzbarsky sr=waterson
git-svn-id: svn://10.0.0.236/trunk@124461 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 03:11:57 +00:00
kmcclusk%netscape.com
16fa19c5d5 Place position:absolute, fixed, relative elements above non positioned elements. b=137853 r=roc+moz sr=kin
git-svn-id: svn://10.0.0.236/trunk@124460 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 02:53:35 +00:00
pete.zha%sun.com
43e0182718 bug 152279:Transport shouldn't fire status and progress after stop button been clicked for stopping a document load
patch=antonio.xu@sun.com r=jkeiser@netscape.com sr=darin@netscape.com


git-svn-id: svn://10.0.0.236/trunk@124459 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 02:52:22 +00:00
dbaron%fas.harvard.edu
a2358254b9 Allow page to display when @import-ing a malformed URL by incrementing mPendingChildren only if LoadSheet succeeds. b=148046 r=bzbarsky sr=waterson
git-svn-id: svn://10.0.0.236/trunk@124457 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 02:34:57 +00:00
sicking%bigfoot.com
a085cb323a Bug 133250: "Transferring data from..." remains on status bar. Checkin for antonio.xu@sun.com
r=jkeiser sr=rpotts


git-svn-id: svn://10.0.0.236/trunk@124456 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 02:17:15 +00:00
rods%netscape.com
b2e652332c to fix the bustage
git-svn-id: svn://10.0.0.236/trunk@124455 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 02:05:54 +00:00
kyle.yuan%sun.com
16173d539c Bug 154196 nsIAccessible's accState returns wrong value for XUL Treeitem node
r=aaronl, sr=jag
override acctakefocus, acctakeselection, accremoveselection for treeitem


git-svn-id: svn://10.0.0.236/trunk@124454 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 02:01:00 +00:00
kyle.yuan%sun.com
bd575c3a9a Bug 154285 Mozilla crashes when i try to get HTML Radio button accessible node
r=aaronl, sr=jag
move nsLayoutAtoms::AddRefAtoms() from nsRootAccessible to nsAccessibilityService


git-svn-id: svn://10.0.0.236/trunk@124453 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 01:53:16 +00:00
rogerl%netscape.com
f1d54c2188 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@124452 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 01:26:33 +00:00
bzbarsky%mit.edu
3aea8ccfdb Fix debug-only crash. Bug 155259, r=harishd, sr=jag
git-svn-id: svn://10.0.0.236/trunk@124451 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 01:25:23 +00:00
pschwartau%netscape.com
7e2732bbd5 Adding new section authored by martin.honnen@t-online.de from bug 150859.
git-svn-id: svn://10.0.0.236/trunk@124450 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 01:24:34 +00:00
pinkerton%netscape.com
7021de3468 Moved Import Bookmarks to bottom of submenu (bug 154178)
git-svn-id: svn://10.0.0.236/trunk@124447 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 00:28:53 +00:00
bzbarsky%mit.edu
819a2aa815 Expose document.referrer for image documents. Bug 155052, r=sicking, sr=jst
git-svn-id: svn://10.0.0.236/trunk@124446 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 00:08:46 +00:00
shrutiv%netscape.com
8dbb19be55 Fix for bug 104107: Avoid manually changing persmission of files in
customized linux tar file (r=mitchf)


git-svn-id: svn://10.0.0.236/trunk@124444 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-01 23:54:05 +00:00
dp%netscape.com
800aebd000 bug 146532 Improving recycling allocator
- Uses freelist
- 1 int overhead to store size
- nsIMemory wrapping
r=dougt, sr=darin


git-svn-id: svn://10.0.0.236/trunk@124443 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-01 23:36:03 +00:00
pinkerton%netscape.com
690c519c0a adding some include dirs for the d/l bug and adding many new types to
our plist so the finder will let you drag documents to the app icon. (bug 149218)


git-svn-id: svn://10.0.0.236/trunk@124442 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-01 23:17:10 +00:00
bzbarsky%mit.edu
58aef136eb Fix bug 154346 the right way. r=law, sr=jag
git-svn-id: svn://10.0.0.236/trunk@124440 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-01 23:14:07 +00:00
sfraser%netscape.com
2910b2cdb3 Change the checkboxes for loaing in new windows and tabs to use positive sense (bug 153081) and put back the button that opens the System Preferences.
git-svn-id: svn://10.0.0.236/trunk@124439 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-01 23:13:09 +00:00
bzbarsky%mit.edu
e9887172a9 Make the scriptloader check the HTTP status and not load 404 pages and
such as scripts.  Bug 139040, r=jst, sr=rpotts


git-svn-id: svn://10.0.0.236/trunk@124438 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-01 23:12:13 +00:00
naving%netscape.com
9d5043ea35 155269 r=ducarroz sr=bienvenu Made it so that send progress dialog shows folder pretty name instead of uri
leaf name


git-svn-id: svn://10.0.0.236/trunk@124437 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-01 23:07:04 +00:00
dougt%netscape.com
3d7a05cab8 More XPCOM Glue changes and fixes. Makefile change which can land since 154319 is fixed. r=waterson, sr=rpotts. bug 154319
git-svn-id: svn://10.0.0.236/trunk@124435 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-01 22:22:06 +00:00
dougt%netscape.com
69732c6053 XPCOM_GLUE nsTraceRefcnt problems. r=dp, sr=jag. bug 154319
git-svn-id: svn://10.0.0.236/trunk@124434 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-01 22:19:01 +00:00
pinkerton%netscape.com
dbf420da66 updated corporate branded toolbar defaults
git-svn-id: svn://10.0.0.236/trunk@124431 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-01 21:56:08 +00:00
dougt%netscape.com
9fd584fc27 Damn the nmake build system and the mac.
git-svn-id: svn://10.0.0.236/trunk@124428 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-01 21:39:18 +00:00
bienvenu%netscape.com
14f060c60c fix offline move of imap message when delete model is delete immdediately r=naving, sr=sspitzer 154938
git-svn-id: svn://10.0.0.236/trunk@124427 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-01 21:17:26 +00:00
dougt%netscape.com
725fc2aaf9 backing out last makefile change
git-svn-id: svn://10.0.0.236/trunk@124426 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-01 21:13:22 +00:00
dougt%netscape.com
0cb58d5613 More XPCOM Glue changes and fixes. r=waterson, sr=rpotts, 154262. missed this.
git-svn-id: svn://10.0.0.236/trunk@124425 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-01 21:11:47 +00:00
naving%netscape.com
27365bdb65 155157 r=cavin sr=bienvenu Make Search messages and search addresses work again
git-svn-id: svn://10.0.0.236/trunk@124424 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-01 21:08:47 +00:00
chak%netscape.com
1607649be1 Fix for #126869 - MfcEmbed OpenNewWindow opens Editor
r=adamlock, sr=rpotts


git-svn-id: svn://10.0.0.236/trunk@124422 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-01 20:45:48 +00:00
taka%netscape.com
8ea5186a8e Remove unexpected space inserted between Chinese and Japanese characters as a result of unfolding lines. These scripts don't use space as a word boundary. b=135323 r=shanjian sr=waterson
git-svn-id: svn://10.0.0.236/trunk@124421 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-01 20:43:16 +00:00
dougt%netscape.com
d65d49c1a2 More XPCOM Glue changes and fixes. r=waterson, sr=rpotts, 154262.
git-svn-id: svn://10.0.0.236/trunk@124420 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-01 20:37:17 +00:00
peterlubczynski%netscape.com
79776cb2e2 Fixing plugins needs to cause XPTI to be refreshed when pluigins change, bug 154272 r=av sr=jband
git-svn-id: svn://10.0.0.236/trunk@124419 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-01 20:36:57 +00:00
rods%netscape.com
6c87171d9e Implement nsPrintingPromptService for MfcEmbed
Bug 154244 r=chak sr=rpotts


git-svn-id: svn://10.0.0.236/trunk@124418 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-01 20:30:18 +00:00
pinkerton%netscape.com
264c3d6c83 fix a warning
git-svn-id: svn://10.0.0.236/trunk@124415 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-01 20:08:59 +00:00
bryner%netscape.com
0bd793ec63 Hook up "Bookmark this link" context menu item (bug 154856). r=pinkerton.
git-svn-id: svn://10.0.0.236/trunk@124414 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-01 19:10:14 +00:00
bryner%netscape.com
82e0e6b328 Add command-line URL handling via the switch -url (bug 148887). r=pinkerton.
git-svn-id: svn://10.0.0.236/trunk@124413 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-01 19:07:16 +00:00
pinkerton%netscape.com
15c1b89acb Reverse logic on personal toolbar hiding state so that if no pref is
found, that corresponds to showing the personal toolbar, which is what
we want as the default.


git-svn-id: svn://10.0.0.236/trunk@124412 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-01 18:36:29 +00:00
pinkerton%netscape.com
ed1b7ae84d HomePage is primary tab
git-svn-id: svn://10.0.0.236/trunk@124411 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-01 18:32:01 +00:00
sfraser%netscape.com
79c0d720c2 Hook up preferences to load URLs from GetURL in new tabs or windows, and make UI for the 'load new tabs in background' pref (bug 150242). Also clarified the wording of the 'command-click opens new tab' pref.
git-svn-id: svn://10.0.0.236/trunk@124410 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-01 18:23:21 +00:00
cbiesinger%web.de
bbae640797 bug 147938 patch by paper r=dbaron sr=waterson
Don't Invalidate nsImageFrame area if it's hidden


git-svn-id: svn://10.0.0.236/trunk@124409 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-01 18:17:35 +00:00
cbiesinger%web.de
71058ed532 bug 137128 patch by paper@animecity.nu r=Roland.Mainz@informatik.med.uni-giessen.de sr=tor
animated gif crashes mozilla


git-svn-id: svn://10.0.0.236/trunk@124408 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-01 18:10:21 +00:00
bernd.mielke%snafu.de
c67e5d2a21 bug 154979 - use gNoisyMaxElementSize instead of NOISY_MAX_ELEMENTSIZE r=karnaze sr=waterson
git-svn-id: svn://10.0.0.236/trunk@124405 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-01 17:43:02 +00:00
rods%netscape.com
12d81dd955 Set style in media print to turn off blinking
Bug 153092 r=rods sr=kin


git-svn-id: svn://10.0.0.236/trunk@124401 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-01 14:45:50 +00:00
pinkerton%netscape.com
8dd05b8809 unix linefeeds
git-svn-id: svn://10.0.0.236/trunk@124400 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-01 13:57:51 +00:00
ian%hixie.ch
87df0846e3 Hide embedded semantic MathML content (as opposed to presentational content, which we render). b=154931, p=rbs, moa=dbaron, r=hixie, sr=roc+moz
git-svn-id: svn://10.0.0.236/trunk@124397 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-01 09:51:32 +00:00
bryner%netscape.com
5bddc7d47e Remove a deleted Makefile.
git-svn-id: svn://10.0.0.236/trunk@124395 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-01 05:43:05 +00:00
bryner%netscape.com
59858e8dac We don't need to copy the preference panes to Contents/Resources, they are only used from Contents/PreferencePanes.
git-svn-id: svn://10.0.0.236/trunk@124393 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-01 05:07:50 +00:00
sfraser%netscape.com
440db5455b Clean up build warnings and detab files
git-svn-id: svn://10.0.0.236/trunk@124392 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-01 04:54:28 +00:00
bryner%netscape.com
a238423458 Hook up "Do not load home page when opening new tab" pref (bug 154288). r=pinkerton.
git-svn-id: svn://10.0.0.236/trunk@124391 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-01 04:36:49 +00:00
sfraser%netscape.com
3e22f0d1cc Checking in fix for bug 145815 for bnesse. Hook up 'Search' button in toolbar to use mozilla pref, if it exists, or the IC preference. r=me
git-svn-id: svn://10.0.0.236/trunk@124388 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-01 03:48:42 +00:00
sfraser%netscape.com
772b968658 Fixing bug 154203 -- implement a checkbox to use the system home page preference (Internet Config), but keep this preference separate from mozilla's home page pref.
git-svn-id: svn://10.0.0.236/trunk@124387 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-01 03:38:34 +00:00
bbaetz%student.usyd.edu.au
3c350cfa09 Bug 150770 - Lost <nobr> arround query results
r=jouni, justdave


git-svn-id: svn://10.0.0.236/trunk@124385 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-01 03:30:23 +00:00
cavin%netscape.com
19ac1c3583 Fix for 149759. Commit the db changes in ConvertLDIFtoMAB(). r=naving, sr=sspitzer.
git-svn-id: svn://10.0.0.236/trunk@124384 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-01 03:01:26 +00:00
seawood%netscape.com
8acdd77a02 Remove intermediate SIMPLE_PROGRAMS object files during a clean.
git-svn-id: svn://10.0.0.236/trunk@124383 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-01 02:34:57 +00:00
seawood%netscape.com
c58a02b604 Remove generated tmreader.$(OBJ_SUFFIX)
git-svn-id: svn://10.0.0.236/trunk@124382 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-01 02:15:11 +00:00
bryner%netscape.com
7c25744dc3 Hooking up enabling/disabling of back and forward context menu items (bug 154296). r=ben.
git-svn-id: svn://10.0.0.236/trunk@124381 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-30 23:47:48 +00:00
naving%netscape.com
8e64a4b61a 154412 r=cavin sr=bienvenu. Setting local folder pretty name on the window title.
git-svn-id: svn://10.0.0.236/trunk@124380 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-30 23:23:51 +00:00
ian%hixie.ch
f3e5816d55 Update to TemplateToolkit format
git-svn-id: svn://10.0.0.236/trunk@124378 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-30 21:35:27 +00:00
ian%hixie.ch
58bb3b645b Include character set information in the HTTP headers
git-svn-id: svn://10.0.0.236/trunk@124377 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-30 21:34:57 +00:00
ian%hixie.ch
69bf58fca3 HTTP needs RFC822 dates for its Date: line
git-svn-id: svn://10.0.0.236/trunk@124376 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-30 21:33:21 +00:00
ian%hixie.ch
93eb72753c Primitive POST support (work in progress)
git-svn-id: svn://10.0.0.236/trunk@124375 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-30 21:30:43 +00:00
ian%hixie.ch
1956e9cdc2 Oops, wrong repository...
git-svn-id: svn://10.0.0.236/trunk@124374 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-30 21:05:35 +00:00
ian%hixie.ch
0fd128e862 Initial checkin
git-svn-id: svn://10.0.0.236/trunk@124373 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-30 21:02:35 +00:00
bbaetz%student.usyd.edu.au
7f0844c63f Bug 155033 - standardizing on <a>NAME</a>: vs. <a>NAME:</a>
patch by davef@tetsubo.com, r=kiko x2


git-svn-id: svn://10.0.0.236/trunk@124365 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-30 04:24:57 +00:00
stephend%netscape.com
90d91be9d8 Bug 145671. JS Strict warnings in addressingWidgetOverlay.js. Patch by Henrik Gemal <gemal@gemal.dk> r=ducarroz@netscape.com, sr=hewitt@netscape.com
git-svn-id: svn://10.0.0.236/trunk@124364 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-30 03:10:16 +00:00
jfrancis%netscape.com
c54d33f095 updating 83378 work with the correct patch this time
git-svn-id: svn://10.0.0.236/trunk@124363 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-30 02:52:56 +00:00
tor%cs.brown.edu
6160a4f8fd Backout of 76776 - Tp regression.
git-svn-id: svn://10.0.0.236/trunk@124359 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-29 22:14:10 +00:00
tor%cs.brown.edu
bddfd612b4 Bug 154996 - PNGs with invalid IHDR can crash/hang browser. rs=tor
git-svn-id: svn://10.0.0.236/trunk@124357 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-29 20:11:33 +00:00
tor%cs.brown.edu
ef9b5e0a82 Bug 76776 - incremental display of progressive jpegs. r=pavlov, sr=jag
git-svn-id: svn://10.0.0.236/trunk@124356 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-29 19:38:17 +00:00
ere%atp.fi
c62f04697e Fix for bug 152280, avoid flashing title bar of a foreground window when a
dialog is displayed on Windows. r=dean_tessman@hotmail.com,
sr=jaggernaut@netscape.com


git-svn-id: svn://10.0.0.236/trunk@124352 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-29 12:31:15 +00:00
dbaron%fas.harvard.edu
e7b640d60f Fix excessive fastload file invalidation with some versions of gcc by fixing aliasing bug in NS_SWAP64. Patch by me, with tweaks by brendan. b=142869 r=bryner sr=brendan
git-svn-id: svn://10.0.0.236/trunk@124351 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-29 05:13:59 +00:00
bryner%netscape.com
75524fd24d Making the popup window prompt localizable.
git-svn-id: svn://10.0.0.236/trunk@124350 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-29 04:40:13 +00:00
law%netscape.com
a796a3a14e Bug 154238; adjust code so it checks whether we're really handling http Internet shortcuts rather than the user having just told us to; r=blaker@netscape.com, sr=ben@netscape.com
git-svn-id: svn://10.0.0.236/trunk@124344 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-29 01:58:59 +00:00
tao%netscape.com
4854b34102 Fix HPux bustage; add eol at the end.
git-svn-id: svn://10.0.0.236/trunk@124341 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-29 01:26:53 +00:00
cavin%netscape.com
5373385be8 Fix for 119992. Always disable the Back button in the last dialog. r=ducarroz, sr=sspitzer.
git-svn-id: svn://10.0.0.236/trunk@124340 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-29 01:20:33 +00:00
bzbarsky%mit.edu
6c102e57b0 Bug 154346 (bogus error message when saving application/octet-stream
files).  r=law, sr=jag


git-svn-id: svn://10.0.0.236/trunk@124338 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-29 01:04:59 +00:00
wtc%netscape.com
768aad2447 Set NSPR version to 4.2.1.
git-svn-id: svn://10.0.0.236/trunk@124333 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-29 00:33:08 +00:00
cltbld%netscape.com
2a3342acec Adding cleanprofile stuff for chimera. checking in workaround for bug 154815 for now, will yank later. -mcafee
git-svn-id: svn://10.0.0.236/trunk@124328 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-29 00:08:17 +00:00
tao%netscape.com
820439dde2 smeredith found a problem with the patch for (93002). Disabling it now.
git-svn-id: svn://10.0.0.236/trunk@124326 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-28 23:57:20 +00:00
rods%netscape.com
fa888a1fe1 Change status to "frozen"
Bug 99619 r=kmcclusk sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@124325 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-28 23:52:18 +00:00
sfraser%netscape.com
3c12cbcae0 Fix several bookmarks issues. Bug 154698 -- avoid nuking all existing bookmarks when importing a bad html bookmarks file. We now validate the imported bookmarks before saving, warn the user if they are bad, and don't import them. We also now validate the bookmarks.xml file when it is read in. Bug 154853 -- we were adding new items to the main bookmarks menu in the wrong place, since we failed to take the static items into account. Fixed.
git-svn-id: svn://10.0.0.236/trunk@124324 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-28 23:47:49 +00:00
rogerl%netscape.com
9bd7986348 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@124323 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-28 23:43:16 +00:00
bzbarsky%mit.edu
6072ff780e Bug 144479 (crash changing display prefs on pages with position:fixed
stuff), r=dbaron, sr=jst


git-svn-id: svn://10.0.0.236/trunk@124320 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-28 23:25:57 +00:00
smontagu%netscape.com
682cca7d64 Bug 125403: nsconv does not work. Author=katakai@japan.sun.com, r=yokoyama, sr=roc+moz
git-svn-id: svn://10.0.0.236/trunk@124317 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-28 23:16:19 +00:00
rogerl%netscape.com
142ffb6385 Fixed matching of un-matched paren contents (e.g. /(a)\1/("x") ).
git-svn-id: svn://10.0.0.236/trunk@124316 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-28 23:04:55 +00:00
curt%netscape.com
179bdd69fa Refresh icons on upgrade.
(Bug #154708, r=curt, sr=dveditz)


git-svn-id: svn://10.0.0.236/trunk@124315 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-28 23:04:40 +00:00
tao%netscape.com
bbe078f6ae 93002: [distribution]Conn: Use dialup networking (.DUN) when launching
mozilla. r=dougt,sr=rpotts. Help Windows NT, 2000, and XP dialup a RAS
connection when a network address is unreachable. (c/osmeredith)
the controlling pref is "network.autodial-helper.enabled".


git-svn-id: svn://10.0.0.236/trunk@124314 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-28 23:03:52 +00:00
curt%netscape.com
a5064d775f Refresh icons on upgrade
(Bug #154708, r=curt, sr=deveditz)


git-svn-id: svn://10.0.0.236/trunk@124313 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-28 23:03:41 +00:00
tao%netscape.com
e250d0bd93 93002: [distribution]Conn: Use dialup networking (.DUN) when launching
mozilla. r=dougt,sr=rpotts. Help Windows NT, 2000, and XP dialup a RAS
connection when a network address is unreachable. (c/osmeredith)


git-svn-id: svn://10.0.0.236/trunk@124312 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-28 22:58:25 +00:00
cltbld%netscape.com
d3cba11f38 Cleaning up tests stuff. -mcafee
git-svn-id: svn://10.0.0.236/trunk@124308 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-28 22:27:32 +00:00
mcs%netscape.com
7ef88eeb85 Do not try to package LDAP command line tools if they were
not built (that is, if BUILDCLU != 1).


git-svn-id: svn://10.0.0.236/trunk@124302 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-28 20:43:47 +00:00
mkaply%us.ibm.com
931db3bc2f #154680
r=mkaply, sr=jag
Wrong default offset passed into RFind - should be -1


git-svn-id: svn://10.0.0.236/trunk@124301 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-28 20:31:09 +00:00
nicolson%netscape.com
53aad51abf typo in error message
git-svn-id: svn://10.0.0.236/trunk@124298 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-28 20:14:47 +00:00
ducarroz%netscape.com
8bbe090b5c Fix for bug 154734. We need to unsecape the original message uri else IMAP will have trouble to deal with it. R=cavin, SR=bienvenu
git-svn-id: svn://10.0.0.236/trunk@124297 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-28 20:12:34 +00:00
gerv%gerv.net
c149516850 Bug 152693 - added "resolution" to the INTERFACE comment.
git-svn-id: svn://10.0.0.236/trunk@124295 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-28 20:06:32 +00:00
gerv%gerv.net
426eb6f081 Bug 151281 - change duplicates.cgi to make one query instead of several thousand. Patch by gerv; r=myk, bbaetz.
git-svn-id: svn://10.0.0.236/trunk@124293 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-28 20:02:09 +00:00
locka%iol.ie
97220d8a12 Display error message for unregistered protocols instead of fixing them up. b=100176 sr=darin@netscape.com r=brade@netscape.com
git-svn-id: svn://10.0.0.236/trunk@124287 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-28 18:47:20 +00:00
mitchf%netscape.com
1a7e160ca7 fixed some field lengths and URLDisplayLengths to maximize available space and fix a clipping problem.
Fixes bug 154843


git-svn-id: svn://10.0.0.236/trunk@124285 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-28 18:31:14 +00:00
ssaux%netscape.com
d1c2743135 b=154624 Cannot change master password r=javi sr=mscott
git-svn-id: svn://10.0.0.236/trunk@124284 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-28 18:08:19 +00:00
jj%netscape.com
71fc30310d bugscape #16581: new artwork for the NS installer wizard
git-svn-id: svn://10.0.0.236/trunk@124283 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-28 17:57:55 +00:00
timeless%mac.com
e2dbb2c75c Bug 153272 Can't drag anymore a link menus on the personal toolbar (Windows only)
patch=pierrechanial@netscape.net, r=timeless, sr=blake


git-svn-id: svn://10.0.0.236/trunk@124282 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-28 17:55:48 +00:00
av%netscape.com
fae79aad48 Bug 150761 -- scroll button causes crash with windowless plugins, r=peterl, sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@124279 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-28 17:43:38 +00:00
ccarlen%netscape.com
4a7fe047d3 Bug 145827 - window.focus and window.blur not implemented in PPEmbed. r=adamlock/sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@124278 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-28 14:32:13 +00:00
rods%netscape.com
692772b640 If the user or JS requests to print while the document is still loading the DV
will print it in the LoadComplete
Bug 137739 r=dcone sr=jst


git-svn-id: svn://10.0.0.236/trunk@124276 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-28 13:39:44 +00:00
rods%netscape.com
f01814830a Minor fix up for improved dialog the min should have 30 to match mozilla
& in UI should have been &&
Implementing a better setup dialog
Bug 154239 r=chak rs=alecf


git-svn-id: svn://10.0.0.236/trunk@124275 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-28 13:29:06 +00:00
bryner%netscape.com
6af4a9e4af Adding a simple shell script to create a DMG disk image from a folder's contents (used for mach-o nightly builds). Not part of the regular build.
git-svn-id: svn://10.0.0.236/trunk@124272 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-28 09:31:28 +00:00
dprice%netscape.com
9fa1b91220 140104 r=curt sr=dveditz
blow away chrome.rdf and overlayinfo


git-svn-id: svn://10.0.0.236/trunk@124271 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-28 07:55:06 +00:00
law%netscape.com
b25de230e2 Bug 154238; tweak http\shell\open\ddeexec registry keys while running so that Acrobat plugin can converse with us via DDE; r=blythe@netscape.com, sr=ben@netscape.com
git-svn-id: svn://10.0.0.236/trunk@124270 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-28 07:31:23 +00:00
dbaron%fas.harvard.edu
ee63eedd77 Correcting comment. r=bzbarsky b=153032
git-svn-id: svn://10.0.0.236/trunk@124269 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-28 06:31:30 +00:00
leaf%mozilla.org
3ab8902748 Automated update
git-svn-id: svn://10.0.0.236/trunk@124268 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-28 06:25:47 +00:00
pete.zha%sun.com
d0f489236e bug 151388:To add a new compile switch to distinguish Windows and ATK code
patch=john.sun@sun.com r=cls(seawood@netscape.com)
So that we can use
#ifdef ACCESSIBILITY_ATK
//ATK code here
#else
//Windows code here
#endif
to keep the binaries smaller.


git-svn-id: svn://10.0.0.236/trunk@124267 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-28 06:24:43 +00:00
mkaply%us.ibm.com
9c996db925 #154161
r=cls
Turn on building of the NPNULL plugin on OS/2


git-svn-id: svn://10.0.0.236/trunk@124265 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-28 05:39:00 +00:00
blakeross%telocity.com
12fe395654 106092 - trunk m1br m100 n70pr1 topcrash @nsMenuFrame::OpenMenu. r=brade sr=ben
git-svn-id: svn://10.0.0.236/trunk@124261 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-28 03:10:08 +00:00
relyea%netscape.com
87e98bd000 Initialize type fields to supress purify uninitialized reference warnings.
git-svn-id: svn://10.0.0.236/trunk@124260 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-28 03:00:10 +00:00
caillon%returnzero.com
4417f20d9a Bug 154535. Don't depend on the sidebar overlay for context menu code.
r=sgehani
sr=jag


git-svn-id: svn://10.0.0.236/trunk@124256 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-28 01:55:48 +00:00
sfraser%netscape.com
b9749b23b6 Fix include paths for static target to include commandhandler
git-svn-id: svn://10.0.0.236/trunk@124255 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-28 01:50:09 +00:00
bzbarsky%mit.edu
866c407033 Allow embeddors to override helper apps. Bug 147142, patch by
philipl@mail.utexas.edu (Philip Langdale), r=bzbarsky, sr=blake


git-svn-id: svn://10.0.0.236/trunk@124254 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-28 01:35:57 +00:00
bzbarsky%mit.edu
7c94c072e9 Make content lists lazy. Bug 104603, r=jkeiser, sr=jst
git-svn-id: svn://10.0.0.236/trunk@124253 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-28 01:30:09 +00:00
jpierre%netscape.com
76ae2acfd8 Add VISA root cert - bug 139874
git-svn-id: svn://10.0.0.236/trunk@124251 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-28 01:07:37 +00:00
harishd%netscape.com
f549f2420d Putting back the idl change that was backed out in my previous checkin
git-svn-id: svn://10.0.0.236/trunk@124250 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-28 00:57:03 +00:00
naving%netscape.com
084a40dd7d 154501 r=cavin sr=bienvenu fixing regression can't save as draft/templates when using an imap acct that
doesn't already have Drafts or Templates folder


git-svn-id: svn://10.0.0.236/trunk@124247 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-28 00:39:10 +00:00
bbaetz%student.usyd.edu.au
1873bc6ab1 Bug 148488 - more HTML validation fixes
r=jouni, gerv


git-svn-id: svn://10.0.0.236/trunk@124240 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-28 00:18:32 +00:00
yokoyama%netscape.com
f8bc79285c bug 153470
Need to process WM_CHAR with (wParam > 0xff)
for CJK characters.
/r=shanjian; /sr=kin


git-svn-id: svn://10.0.0.236/trunk@124239 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-28 00:08:26 +00:00
harishd%netscape.com
6a17a8cbac Backing out my checkin to see if it fixes the Txul breakage
git-svn-id: svn://10.0.0.236/trunk@124236 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 23:32:51 +00:00
morse%netscape.com
5664835ece check in new image for lori, a=lorikaplan
git-svn-id: svn://10.0.0.236/trunk@124234 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 23:02:00 +00:00
mkaply%us.ibm.com
05443b36d2 #118546
r=pedemont, sr=blizzard
OS/2 only - bullet proof unicode stuff, better default fonts


git-svn-id: svn://10.0.0.236/trunk@124232 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 22:37:30 +00:00
mkaply%us.ibm.com
92e616c8ab #154161
r=pedemont, sr=blizzard
OS/2 only - get NPNULL plugin working on OS/2


git-svn-id: svn://10.0.0.236/trunk@124231 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 22:26:41 +00:00
bryner%netscape.com
c6d67052ab Bug 151607 - fix an uninitialized variable in DocumentViewerImpl::PrintDocContent that was causing a later crash. r=rods, sr=sspitzer.
git-svn-id: svn://10.0.0.236/trunk@124230 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 22:20:59 +00:00
mkaply%us.ibm.com
ccaf9ebef4 #149365
r=mkaply, sr=blizzard
OS/2 only from jblanco - only set number of copies in one place


git-svn-id: svn://10.0.0.236/trunk@124229 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 22:20:44 +00:00
mkaply%us.ibm.com
4acd61aeec #151536
r=pedemont, sr=blizzard
OS/2 only - display Euro using current font, not Unicode font


git-svn-id: svn://10.0.0.236/trunk@124228 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 22:16:22 +00:00
pinkerton%netscape.com
12d6686d3a Fix crash clicking on url schemes we don't understand (bug 154538)
git-svn-id: svn://10.0.0.236/trunk@124227 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 22:16:09 +00:00
mkaply%us.ibm.com
7e004ae22a #62322
r=naving, sr=bienvenu
Hookup preference for displaying confirmation on deleting folders


git-svn-id: svn://10.0.0.236/trunk@124225 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 22:07:10 +00:00
pinkerton%netscape.com
50a39fafc8 Put up dialog to let users know when posting secure data from insecure site
(bug 151653).


git-svn-id: svn://10.0.0.236/trunk@124224 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 22:06:20 +00:00
sfraser%netscape.com
a22f40a4d3 Fixing history tab in sidebar to show history. Also hiding history tab by default.
git-svn-id: svn://10.0.0.236/trunk@124223 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 22:03:30 +00:00
varada%netscape.com
66f1f4f5bb fix for 147889;sending mail progress window gets longer with size of url attachment;r=ducarroz;sr=bienvenue
git-svn-id: svn://10.0.0.236/trunk@124222 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 21:56:25 +00:00
aaronl%netscape.com
b40993301a Bug 154340. Active Accessibility: name attribute should not map to nsIAccessible::GetAccName(). r=kyle, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@124218 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 21:18:56 +00:00
nicolson%netscape.com
95f38fdaf0 remove spurious println.
git-svn-id: svn://10.0.0.236/trunk@124217 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 21:16:42 +00:00
naving%netscape.com
f8d56c599a 154000 r=cavin sr=bienvenu fixing imap drag and drop of folders using non-ascii names.
git-svn-id: svn://10.0.0.236/trunk@124216 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 21:15:56 +00:00
sfraser%netscape.com
0a2126cb7a Fix for bug 146322; make Undo/Redo/Delete work correctly, and make menu items properly enable. r=pinkerton
git-svn-id: svn://10.0.0.236/trunk@124215 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 21:07:30 +00:00
sfraser%netscape.com
e1ec163df1 Fix for bug 146322; make Undo/Redo/Delete work correctly, and make menu items properly enable. Adding search patch to dist/include/commandhandler r=pinkerton
git-svn-id: svn://10.0.0.236/trunk@124214 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 21:06:36 +00:00
sfraser%netscape.com
f8d9f69304 Fix bug 146322; make Undo/Redo/Delete work, and menu items enable correctly. r=pinkerton.
git-svn-id: svn://10.0.0.236/trunk@124212 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 21:02:51 +00:00
dcone%netscape.com
c3dfc5ba55 b-153927 r=rods sr=waterson. Fixed comment. Should not effect build at all.
git-svn-id: svn://10.0.0.236/trunk@124211 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 21:01:15 +00:00
harishd%netscape.com
270da5e314 ** checking in for mstoltz **
Disable scripts on the requested docshell and containing docshells. Also, made setCurrentURI() scriptable ( approved by Adam Lock ). b=154647, r=harishd, sr=jst


git-svn-id: svn://10.0.0.236/trunk@124210 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 20:58:42 +00:00
pete%alphanumerica.com
81c2b5fa2b b=88049 r=bzbarsky sr=jst
[RFE] Support .selectionStart & friends for textareas

Enjoy

--pete


git-svn-id: svn://10.0.0.236/trunk@124209 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 20:22:28 +00:00
pinkerton%netscape.com
93c88c666f update windows when the bit depth changes (bug 153651)
git-svn-id: svn://10.0.0.236/trunk@124208 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 19:58:49 +00:00
mitchf%netscape.com
45900873d6 Added RequiredTools value to check existence of needed .exe's on startup.
Fixes bug 102537


git-svn-id: svn://10.0.0.236/trunk@124206 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 19:46:02 +00:00
mcs%netscape.com
b7046746c2 Fix bug # 153250 - need a way to set SSL options when using libssldap.
Added two new libssldap public functions: ldapssl_set_option() and
		ldapssl_get_option().
	Also fixed a bug in ldapsinit:do_ldapssl_connect() that sometimes
		caused PR_Close() to be called twice on an SSL file descriptor
		if an error occurred (once in do_ldapssl_connect() itself and
		once in the libprldap close function that is called from
		do_ldapssl_connect()).
	Also updated the NSPR and NSS "error code to string" mapping
		tables that are used by ldapssl_err2string().
	Also fixed a bug in common.c:ldaptool_print_lderror (LDAP command
		line tools) where we did not check for SSL errors when the
		error code was "can't connect."  We were only checking on
		"server down" errors.


git-svn-id: svn://10.0.0.236/trunk@124204 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 19:26:38 +00:00
shrutiv%netscape.com
031ef4a0d2 Fix for bugscape bug 13928: Extract file associated with help menu from
the XPI directory (r=mitchf)


git-svn-id: svn://10.0.0.236/trunk@124203 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 19:18:09 +00:00
shrutiv%netscape.com
782b31d708 renaming file as MailNews.cpp
git-svn-id: svn://10.0.0.236/trunk@124202 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 19:16:29 +00:00
shrutiv%netscape.com
3f5db2bdf8 Fix for bugscape bug 13928: Extract file associated with help menu from
the XPI directory (r=mitchf)


git-svn-id: svn://10.0.0.236/trunk@124201 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 19:11:37 +00:00
mikep%oeone.com
f734273127 Trying to get selection and checkbox checking working together.
git-svn-id: svn://10.0.0.236/trunk@124200 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 19:09:24 +00:00
cavin%netscape.com
81d0a1472a Fix for 149759. Carry fixes in nsTextAddress for ldif import problems to AddressBookParser. r=ducarroz, sr=sspitzer.
git-svn-id: svn://10.0.0.236/trunk@124199 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 18:58:55 +00:00
pinkerton%netscape.com
8dd10215ba fix method name so we correctly load urls again (bug 154514)
git-svn-id: svn://10.0.0.236/trunk@124198 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 18:40:17 +00:00
wtc%netscape.com
93888c771e Bugzilla bug 154656: changed "softoken" to "softokn" to match the file
name.


git-svn-id: svn://10.0.0.236/trunk@124197 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 18:34:17 +00:00
pinkerton%netscape.com
56fecb2acf Reinstate dragging the proxy to the personal toolbar and the outliner as
well as fixing a crasher dragging to the end of the bookmarks list (bug 154460)


git-svn-id: svn://10.0.0.236/trunk@124194 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 18:07:56 +00:00
locka%iol.ie
1a423ebcd7 Fix for opening javascript: popup windows in embedding. b=149307 r=adamlock@netscape.com sr=jst@netscape.com
git-svn-id: svn://10.0.0.236/trunk@124193 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 18:07:32 +00:00
mostafah%oeone.com
064711676a Removing multiple variable definitions caused by previous checkin
git-svn-id: svn://10.0.0.236/trunk@124192 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 18:00:42 +00:00
mikep%oeone.com
f18d3fbb72 Adding in to do items for the calendar.
git-svn-id: svn://10.0.0.236/trunk@124191 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 17:59:51 +00:00
mostafah%oeone.com
a55c7eaa4a Added seperate observer for Todos
git-svn-id: svn://10.0.0.236/trunk@124190 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 16:51:51 +00:00
pinkerton%netscape.com
e2d22de650 commented about broken window cascading on multiple monitors with
radar bug number


git-svn-id: svn://10.0.0.236/trunk@124181 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 14:53:20 +00:00
pinkerton%netscape.com
d8db107b1d Fix crash when deleting a folder and some of its subitems were selected
(bug 151901)


git-svn-id: svn://10.0.0.236/trunk@124180 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 13:33:19 +00:00
pinkerton%netscape.com
970c5fe1a6 Only stop the download when the network flag is set, not any time
we get a stop message on the listener. (bug 154277)


git-svn-id: svn://10.0.0.236/trunk@124179 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 13:09:30 +00:00
rods%netscape.com
8871a2fa92 Implementing a better setup dialog
Bug 154239 r=chak rs=alecf


git-svn-id: svn://10.0.0.236/trunk@124177 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 12:01:30 +00:00
jay.yan%sun.com
5006863a28 bug 151136 support nsIAccessibleSelection in MAI, patch=silvia, r=aaronl, this patch is not a part of the default build.
git-svn-id: svn://10.0.0.236/trunk@124174 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 08:26:39 +00:00
jay.yan%sun.com
c68338e04f bug 151134 support nsIAccessibleEditableText in MAI, patch=bolian,r=aaronl, this patch is not a part of default build.
git-svn-id: svn://10.0.0.236/trunk@124173 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 08:22:53 +00:00
jay.yan%sun.com
9434ebafc9 bug 151133, support nsIAccessibleText in MAI, patch=bolian, r=aaronl, this patch is not a part of default build.
git-svn-id: svn://10.0.0.236/trunk@124172 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 08:20:27 +00:00
timeless%mac.com
6f6688d9f7 Bug 148334 when autoHide pref is disabled, tabbrowser duplicates listeners for first browser
patch by neil@parkwaycc.co.uk r=timeless sr=jag


git-svn-id: svn://10.0.0.236/trunk@124171 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 08:19:28 +00:00
jay.yan%sun.com
7759f2b6a1 bug 151111 support nsIAccessibleTable in MAI, patch=bolian, r=aaronl, this patch is not a part of default build
git-svn-id: svn://10.0.0.236/trunk@124170 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 08:18:06 +00:00
timeless%mac.com
6e154e7cee Bug 149974 javascript strict warnings in mailCommands.js
patch by neil@parkwaycc.co.uk r=ssu sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@124169 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 08:17:06 +00:00
jay.yan%sun.com
c02bd0de60 bug 151108 support nsIAccessibleAction in MAI, patch=bolian, r=aaronl, not a part of default build
git-svn-id: svn://10.0.0.236/trunk@124168 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 08:14:45 +00:00
jkeiser%netscape.com
c214de3745 Keep background images from sending progress events (bug 133250, checkin #1). From Antonio.Xu@sun.com. r=bbaetz, sr=darin
git-svn-id: svn://10.0.0.236/trunk@124167 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 06:46:25 +00:00
ssu%netscape.com
eaa18c1fcd fixing bug 42604 - Windows shortcuts shouldn't be created with comments on Win2000. r=curt,syd sr=dveditz
git-svn-id: svn://10.0.0.236/trunk@124166 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 06:12:23 +00:00
dbaron%fas.harvard.edu
6bc536c9f5 Fix OS/2 bustage.
git-svn-id: svn://10.0.0.236/trunk@124165 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 05:12:25 +00:00
timeless%mac.com
a482d110b4 Bug 32239 rebuildcvshistory fails on files whose rlog date are in mm/dd/yyyy format.
patch by mgstahl@sonalysts.com r=tara


git-svn-id: svn://10.0.0.236/trunk@124162 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 04:31:28 +00:00
bzbarsky%mit.edu
62d8c48876 No need to CompressWhitespace here... Bug 154345, r=peterv, sr=jst
git-svn-id: svn://10.0.0.236/trunk@124161 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 04:22:45 +00:00
tara%tequilarista.org
e3c70a6bae Landing fix for bug #153744, enabling proper branch handling for diff and blame
git-svn-id: svn://10.0.0.236/trunk@124158 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 03:41:42 +00:00
jj%netscape.com
c6210a335b bug 139815: Fix for depend builds: delete the plugin directory structure if it already exists under dist before copying it again. by sfraser, r=jj
git-svn-id: svn://10.0.0.236/trunk@124156 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 02:39:12 +00:00
jj%netscape.com
68cac7cd8d forgot to set the postlinker to "Output Flags Post Linker" and set the "HasBundle" bit
git-svn-id: svn://10.0.0.236/trunk@124154 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 01:52:58 +00:00
peterlubczynski%netscape.com
bb8b77bf2b Fixing some plugins don't understand the DATA attribute on the OBJECT tag so in those cases copy that value to an appened "SRC" entry to the array of attributes/parameters plugins are passed. Bug 152334 r=av sr=waterson
git-svn-id: svn://10.0.0.236/trunk@124153 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 01:51:34 +00:00
harishd%netscape.com
cba309a0c0 Make marquee tag a block level element. b=154173, r=heikki, sr=jst
git-svn-id: svn://10.0.0.236/trunk@124152 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 01:49:38 +00:00
jst%netscape.com
203901ab68 Fixing potential crasher introduced by the original fix for bug 150087. The weak docshell pointer in the navigator object must be cleared when it's released. r=sicking@netscape.com, sr=alecf@netscape.com
git-svn-id: svn://10.0.0.236/trunk@124151 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 01:27:00 +00:00
alecf%netscape.com
9a41c0163b yay remove appshell -> rdf now that bug 132175 is fixed
not part of build


git-svn-id: svn://10.0.0.236/trunk@124148 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 00:29:10 +00:00
jpierre%netscape.com
080a53305e Fix for 154212 - make CERT_SaveSMimeProfile copy the cert to the database if it comes from an external source
git-svn-id: svn://10.0.0.236/trunk@124144 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 00:18:35 +00:00
dbaron%fas.harvard.edu
72fa987cbf Fix nmake bustage. b=132175
git-svn-id: svn://10.0.0.236/trunk@124143 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-27 00:06:49 +00:00
alecf%netscape.com
5e8f5af9e5 argh, I'm having a bad day - just noticed at the last second that the values of PR_FALSE and PR_TRUE were reversed here, so we only could hit the first window from the window menu
git-svn-id: svn://10.0.0.236/trunk@124142 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 23:57:59 +00:00
alecf%netscape.com
a0da5f8a04 oops, more files for bug 132175 (don't worry, these aren't bustage-inducing)
finish implementation of GetWindowForResource
r=bnesse, rs=waterson


git-svn-id: svn://10.0.0.236/trunk@124141 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 23:54:31 +00:00
pinkerton%netscape.com
9bfc5fdcd0 Change profile name back to chimera
git-svn-id: svn://10.0.0.236/trunk@124139 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 23:41:16 +00:00
alecf%netscape.com
6e63b2898f argh, add nsIWindowMediatorListener.idl to the nmake build
git-svn-id: svn://10.0.0.236/trunk@124138 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 23:36:46 +00:00
alecf%netscape.com
104fdb252d argh, now re-remove the line that I was originally intending to remove!
git-svn-id: svn://10.0.0.236/trunk@124137 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 23:34:42 +00:00
alecf%netscape.com
a5a2431862 back out these two files until I get the #ifdef situation cleared up
git-svn-id: svn://10.0.0.236/trunk@124136 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 23:32:09 +00:00
naving%netscape.com
b1bcf6fb22 153982 r=cavin sr=bienvenu Making drag and drop of imap to local and local to local folders work for non-ascii
and special ascii chars folder names work.


git-svn-id: svn://10.0.0.236/trunk@124135 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 23:21:28 +00:00
sicking%bigfoot.com
1bf6d687de Bug 88623: Remove the txList::iterator function and the ListIterator typedef
r=peterv sr=jst


git-svn-id: svn://10.0.0.236/trunk@124134 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 23:09:13 +00:00
alecf%netscape.com
5afc1a8426 final part of fix for bug 132175 - switch consumers over to new interface
r=bnesse, rs=waterson


git-svn-id: svn://10.0.0.236/trunk@124133 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 22:55:49 +00:00
alecf%netscape.com
9345c5817f add deprecation comment - now that we have a new guide.
doc only, no code, no review


git-svn-id: svn://10.0.0.236/trunk@124132 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 22:53:36 +00:00
alecf%netscape.com
da39ef1fe1 part of fix for bug 132175 - add nsWindowMediatorDataSource to the build
r=bnesse, rs=waterson


git-svn-id: svn://10.0.0.236/trunk@124131 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 22:34:39 +00:00
alecf%netscape.com
7fd62c0521 rest of fix for bug 132175 - move windowlist part of the window mediator into a seperate object (nsWindowDataSource) so that appshell is no longer dependent on RDF.
r=bnesse, sr=waterson


git-svn-id: svn://10.0.0.236/trunk@124130 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 22:34:09 +00:00
alecf%netscape.com
71d739a51e more stuff for bug 132175, add nsIWindowMediatorListener.idl to build
r=bnesse, rs=waterson


git-svn-id: svn://10.0.0.236/trunk@124129 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 22:25:31 +00:00
alecf%netscape.com
b6c2e7d426 part of fix for bug 132175 - add nsIWindowDataSource to the build r=bnesse rs=waterson
git-svn-id: svn://10.0.0.236/trunk@124128 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 22:22:01 +00:00
pinkerton%netscape.com
a32d343c85 Landing file rewrite changes for conrad
git-svn-id: svn://10.0.0.236/trunk@124127 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 21:59:47 +00:00
sicking%bigfoot.com
aeb31e27bc Bug 153600: Make <script>s with neither src attribute or childNodes not block the parser.
r=bz sr=jst


git-svn-id: svn://10.0.0.236/trunk@124123 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 21:07:37 +00:00
pinkerton%netscape.com
d00025748d don't enable 'find again' unless the user has done a 'find' first. (bug 153643)
git-svn-id: svn://10.0.0.236/trunk@124122 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 21:06:17 +00:00
caillon%returnzero.com
a57921536a Bug 154401. Cannot paste HTML on clipboard into composition or editor windows.
r=bzbarsky, sr=kin


git-svn-id: svn://10.0.0.236/trunk@124121 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 21:05:00 +00:00
pinkerton%netscape.com
42302ee9b4 Fix command updating in edit menu. (bug 154291)
git-svn-id: svn://10.0.0.236/trunk@124120 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 20:52:38 +00:00
cltbld%netscape.com
7c16f21282 Adding chimera_build_static, chimera_build_opt to help minimize script hacking.
git-svn-id: svn://10.0.0.236/trunk@124118 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 20:39:43 +00:00
blizzard%redhat.com
47cd6ed172 Bug #154348. Clipboard hangs when pasting to another application. Don't double free a string. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@124117 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 20:26:21 +00:00
leaf%mozilla.org
1e7e092b20 Automated update
git-svn-id: svn://10.0.0.236/trunk@124116 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 20:25:44 +00:00
dougt%netscape.com
fb1af816bd missing quote mark on XPCOM_GLUE_LIBS
git-svn-id: svn://10.0.0.236/trunk@124115 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 20:16:12 +00:00
shanjian%netscape.com
5d4ba0c34e #153980 Always display SimpChinese font as bold looking face
add simsun to simplied chinese default font name.
r=ftang, sr=blizzard


git-svn-id: svn://10.0.0.236/trunk@124114 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 20:09:14 +00:00
nhotta%netscape.com
b6d6d1447f Change default font size for Traditional and Simplifiled Chinese to 15
which let gfx to use 12 point instead of 13 for Quickdraw calls,
bug 143557, r=ftang, sr=sfraser.


git-svn-id: svn://10.0.0.236/trunk@124113 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 19:59:47 +00:00
nhotta%netscape.com
f253e32fcf Remove the unintended check in by rev=1.33,
bug 151907, r=ftang, sr=sfraser.


git-svn-id: svn://10.0.0.236/trunk@124112 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 19:57:28 +00:00
pinkerton%netscape.com
4787211262 Remove view->page info since it's not hooked up to anything
git-svn-id: svn://10.0.0.236/trunk@124111 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 19:54:07 +00:00
pinkerton%netscape.com
0cebb32e16 Remove personal prefs from list since they're not implemented
git-svn-id: svn://10.0.0.236/trunk@124110 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 19:52:16 +00:00
alecf%netscape.com
d8f4cf294a cleanup after the first fix for bug 154275 - handle errors better and get rid of mCount entirely
sr=jst, r=peterv


git-svn-id: svn://10.0.0.236/trunk@124109 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 19:36:24 +00:00
pschwartau%netscape.com
41c58a87db Correcting grammar in comment.
git-svn-id: svn://10.0.0.236/trunk@124108 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 19:16:53 +00:00
pschwartau%netscape.com
267cfc6c79 Initial add. Regression test for bug 154338.
git-svn-id: svn://10.0.0.236/trunk@124106 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 19:04:00 +00:00
mostafah%oeone.com
c0d269dc29 Adding parse of calendar file for VTODOs in the setserver function
git-svn-id: svn://10.0.0.236/trunk@124105 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 18:45:19 +00:00
mostafah%oeone.com
ad5dce3502 Adding new JS files
git-svn-id: svn://10.0.0.236/trunk@124104 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 18:44:27 +00:00
pinkerton%netscape.com
9608d2da6f Make viewSource work again. (bug 154413)
git-svn-id: svn://10.0.0.236/trunk@124103 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 17:30:22 +00:00
mikep%oeone.com
d67027bf10 Fixing bug 149291, problem with help menu for calendar.
git-svn-id: svn://10.0.0.236/trunk@124102 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 17:08:40 +00:00
pinkerton%netscape.com
ec1887864a booboo fix, fixes 152629 and 152903
git-svn-id: svn://10.0.0.236/trunk@124099 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 15:18:51 +00:00
mostafah%oeone.com
cd0a2db6d2 Adding URL property
git-svn-id: svn://10.0.0.236/trunk@124098 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 14:39:21 +00:00
kaie%netscape.com
ca7f2b6bb4 b=154240 security fix
r=javi sr=alecf


git-svn-id: svn://10.0.0.236/trunk@124097 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 14:15:11 +00:00
dcone%netscape.com
1ca2958b88 b=153456 r=kmmclusk sr=waterson. Took out a realizepalette call to stop some performance problems on windows. This
will effect only 256 color mode.


git-svn-id: svn://10.0.0.236/trunk@124096 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 13:43:23 +00:00
peterv%netscape.com
aa5f72e822 Bustage fix.
git-svn-id: svn://10.0.0.236/trunk@124095 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 13:17:12 +00:00
peterv%netscape.com
043c260894 Fix for bug 88623 (Cleanup Transformiix code). r=Pike, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@124094 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 12:42:13 +00:00
bbaetz%student.usyd.edu.au
2b8bfc61e5 Bug 154036 - ccing an invalid user on a bug posts the bug anyway
r=jouni, gerv


git-svn-id: svn://10.0.0.236/trunk@124093 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 12:17:25 +00:00
peterv%netscape.com
20ddec95d1 New files for bug 88623 (Cleanup Transformiix code). r=Pike, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@124090 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 10:37:02 +00:00
timeless%mac.com
b0d4d06151 Bug 126343 Can't drag attachment file into a new message
patch by antonio.xu@sun.com R=ducarroz sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@124084 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 07:36:59 +00:00
darin%netscape.com
72c614c38d fixes bug 149943 "prevent princeton exploit" r=dougt,mstoltz sr=dveditz
git-svn-id: svn://10.0.0.236/trunk@124083 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 06:35:38 +00:00
ben%netscape.com
ddd541db47 Fix for 86501 - bookmarks truncated when disk full
Make bookmarks check on the success of the file stream write before overwriting the old bookmarks file with the new one.
r=darin, sr=brendan


git-svn-id: svn://10.0.0.236/trunk@124082 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 05:18:41 +00:00
ben%netscape.com
86cd372634 Fix for 86501 - bookmarks truncated when disk full
allow file streams to store and report on the status of the write operation.
r=darin, sr=brendan


git-svn-id: svn://10.0.0.236/trunk@124081 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 05:17:54 +00:00
jj%netscape.com
e12af3346a bugscape #16402: new icons for Netscape installer, including 32-bit icns (custom icon)
git-svn-id: svn://10.0.0.236/trunk@124080 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 05:12:31 +00:00
jj%netscape.com
524eac8eff setting "custom icon" Finder flag to enable 32-bit icon for the installer
git-svn-id: svn://10.0.0.236/trunk@124079 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 05:10:46 +00:00
racham%netscape.com
57b8574438 Fixing bug 154274. When certificate is pre-configured, other elements associated with it should be lockable. This patch provides that ability. r=naving, sr=mscott
git-svn-id: svn://10.0.0.236/trunk@124078 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 05:09:39 +00:00
av%netscape.com
a5938760b0 Bug 148889 -- unloading XPConnected plugin DLLs may cause crash [ViewPoint], r=peterl, sr=beard
git-svn-id: svn://10.0.0.236/trunk@124077 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 04:32:49 +00:00
alecf%netscape.com
2a546013ba bug 154280 - remove unimplemented operators from nsISupportsArray
r=dougt, sr=dveditz


git-svn-id: svn://10.0.0.236/trunk@124076 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 03:48:08 +00:00
alecf%netscape.com
8a015a6cb7 make nsStaticNameTable use PLDHash rather than nsHashtable, to reduce startup allocations from 1315 to 2
r=dougt, sr=dveditz
bug 154275


git-svn-id: svn://10.0.0.236/trunk@124075 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 03:46:39 +00:00
alecf%netscape.com
1a0216d3f1 ack! fix check of entries to use PL_DHASH_ENTRY_IS_FREE() from my previous checkin to prevent tree closure tomorrow!
git-svn-id: svn://10.0.0.236/trunk@124074 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 03:43:43 +00:00
dbaron%fas.harvard.edu
7e821aaa94 Convert handwritten GetIID methods to use NS_DEFINE_STATIC_IID_ACCESSOR and add |const| to GetCID methods so that static |nsID|s are declared as |const|. b=153525 sr=jag r=bryner
git-svn-id: svn://10.0.0.236/trunk@124073 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 03:38:55 +00:00
kyle.yuan%sun.com
433814b965 Bug 152786 The framework of new event interface between nsIAccessible and ATK
forgot to check in this file.


git-svn-id: svn://10.0.0.236/trunk@124072 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 03:33:16 +00:00
leaf%mozilla.org
d64bccb371 Automated update
git-svn-id: svn://10.0.0.236/trunk@124070 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 03:10:34 +00:00
dbaron%fas.harvard.edu
617f00d148 Build changes to build mach-o on gcc3: use -install_name option only when linking using -dynamiclib option, since with gcc3 it causes an error when used with -bundle or -execute. r=bryner sr=beard b=153525
git-svn-id: svn://10.0.0.236/trunk@124069 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 03:09:32 +00:00
dbaron%fas.harvard.edu
011a3b99d5 Build changes to build mach-o on gcc3: link asdecode with $(CXX) instead of $(CC). r=bryner sr=beard b=153525
git-svn-id: svn://10.0.0.236/trunk@124068 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 03:07:16 +00:00
dbaron%fas.harvard.edu
834cab4048 Cast for a conditional expression that won't otherwise compile on gcc3. r=bryner sr=beard b=153525
git-svn-id: svn://10.0.0.236/trunk@124067 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 03:02:38 +00:00
dbaron%fas.harvard.edu
841e7fcc0e xptcall porting changes for Darwin gcc3: account for different vtable layout and different symbol mangling, in ifdefs. r=bryner sr=beard b=153525
git-svn-id: svn://10.0.0.236/trunk@124066 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 03:01:02 +00:00
shanjian%netscape.com
e920908386 #149417 Auto-detect Chinese doesn't work
Eliminate gb18030 when considering apply frequence analysis.
r=ftang, sr=jst


git-svn-id: svn://10.0.0.236/trunk@124065 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 02:10:15 +00:00
kyle.yuan%sun.com
418bf748bc Bug 149856 [XBLFC] Active Accessibility: support XBL-based HTML button
r=aaronl, sr=jst


git-svn-id: svn://10.0.0.236/trunk@124064 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 01:53:11 +00:00
alecf%netscape.com
91708c91f6 remove a bunch more dead code from XPCOM - stringstream stuff that nobody was using anyway
r=dougt, sr=dveditz


git-svn-id: svn://10.0.0.236/trunk@124063 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 01:40:31 +00:00
alecf%netscape.com
b39a907034 fix for bug 153754 - make nsPersistentProperties (and thus string bundles) use PLDHash, saving some 1100+ allocations at startup.
r=dougt, sr=dveditz


git-svn-id: svn://10.0.0.236/trunk@124062 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 01:33:07 +00:00
arougthopher%lizardland.net
57d889d6b1 Bug#152097
"Windows" key not handled

isMeta was always false on keyboard events.  we can now use the "windows" key

r=serget@fi.tartu.ee


git-svn-id: svn://10.0.0.236/trunk@124061 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 01:31:06 +00:00
mkaply%us.ibm.com
9ebb13e6eb IRIX bustage - this is a C file
git-svn-id: svn://10.0.0.236/trunk@124060 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 01:20:20 +00:00
waldemar%netscape.com
c34c4debd7 Removed abstract methods
git-svn-id: svn://10.0.0.236/trunk@124059 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 01:12:09 +00:00
bryner%netscape.com
8814e22684 Removing files that really don't need to be in Contents/Resources.
git-svn-id: svn://10.0.0.236/trunk@124058 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 00:56:15 +00:00
serge%netscape.com
78d913a97d fix for 153547 crashed on page view - Trunk [@ nsPluginInstancePeerImpl::GetOwner] r=av,sr=beard
git-svn-id: svn://10.0.0.236/trunk@124056 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 00:42:25 +00:00
dveditz%netscape.com
2f0dcf4edc InstallTrigger.compareVersion() returns correct answer for directories (bug 136779) r=curt,sr=alecf
git-svn-id: svn://10.0.0.236/trunk@124055 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 00:41:06 +00:00
naving%netscape.com
2be4abd701 154000 r=cavin sr=bienvenu fixing can't move non-ascii imap subfolders and one assertion in AddSubfolderWithPath
on doing such a move.


git-svn-id: svn://10.0.0.236/trunk@124054 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 00:39:50 +00:00
shrutiv%netscape.com
b36b8f83f6 Fix for bugscape bug 11275: Update CCK version strings to 7.0 (r=mitchf)
git-svn-id: svn://10.0.0.236/trunk@124052 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 00:05:32 +00:00
akkana%netscape.com
f9a0b8ae70 126259: don't force a linebreak after img tags. Patch from burpmaster@truffula.net, r=akkana, sr=kin
git-svn-id: svn://10.0.0.236/trunk@124051 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 00:04:53 +00:00
timeless%mac.com
d82a6cb235 Bug 125090 Bad tag enum passed to CNavDTD::IntTagToStringTag()!!: 'str_ptr',
r=bz sr=jst
so much for consistency, the bug fix was errant in its parallelism and caused a crash
thanks to jonsmirl@yahoo.com for pointing out the correct index var


git-svn-id: svn://10.0.0.236/trunk@124050 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 23:49:02 +00:00
ssu%netscape.com
563a25a8b3 fixing bug 152895 - msg header pane loses focus. r=ducarroz, sr=mscott
git-svn-id: svn://10.0.0.236/trunk@124049 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 23:46:43 +00:00
katakai%japan.sun.com
0c61f042fd bug 152790
tis620-2 is not defined as th language group
added tis620-2=th into charsetData.properties
r=ftang,sr=sfraser


git-svn-id: svn://10.0.0.236/trunk@124048 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 23:37:38 +00:00
kaie%netscape.com
d189f67974 b=154084 entering/leaving secure site alert pops up incessantly
r=javi sr=alecf


git-svn-id: svn://10.0.0.236/trunk@124047 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 23:32:42 +00:00
bzbarsky%mit.edu
b2c75a6476 Fix stretched icon. Bug 110456, patch by Chris Brien
<christopher_brien@hotmail.com>, r=bzbarsky,ssaux, sr=alecf


git-svn-id: svn://10.0.0.236/trunk@124046 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 23:29:48 +00:00
katakai%japan.sun.com
1de7967a25 bug 146658
unable to load ./libmozpango-thaix.so
modified pango.modules
r=Roland.Mainz@informatik.med.uni-giessen.de,sr=sfraser


git-svn-id: svn://10.0.0.236/trunk@124045 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 23:27:48 +00:00
shrutiv%netscape.com
3591cf3a12 Fix for bug 112977: CCK Linux installer will not run on Linux when
config.ini size is at 12388 bytes (r=mitchf)


git-svn-id: svn://10.0.0.236/trunk@124042 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 23:05:10 +00:00
relyea%netscape.com
424861117d Initialize type field to clear off purify warnings.
git-svn-id: svn://10.0.0.236/trunk@124041 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 23:00:59 +00:00
cavin%netscape.com
bc5d579da8 Fix for 119992. Enable the Back button when canceling out of the ldif file selection dialog. Also enable the Back and Next buttons when canceling out of the 4.x profile file list dialog. r=naving, sr=sspitzer.
git-svn-id: svn://10.0.0.236/trunk@124040 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 22:58:50 +00:00
relyea%netscape.com
2e45089ac4 Don't force the update if the cert doesn't already exist.
git-svn-id: svn://10.0.0.236/trunk@124038 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 22:58:13 +00:00
aaronl%netscape.com
faaa4a7e41 Bug 142549. After find, spacebar doesn't scroll page. r=bryner, sr=kin. Bug 102679. Composer loses focus after image delete. r=kyle, sr=kin
git-svn-id: svn://10.0.0.236/trunk@124037 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 22:57:48 +00:00
relyea%netscape.com
ca3e3c1b06 Collect the full names of the certs, not just the stan names.
git-svn-id: svn://10.0.0.236/trunk@124036 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 22:57:22 +00:00
aaronl%netscape.com
5d57884434 Bug 153196. Active Accessibility: support MSAA caret object and events. r=kyle, sr=kin
git-svn-id: svn://10.0.0.236/trunk@124034 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 22:54:23 +00:00
morse%netscape.com
49be84943d bug 153581, move cookie properties file from wallet directory to cookie directory, r=brade, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@124033 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 22:33:44 +00:00
relyea%netscape.com
ca4e1df93c Add new function which returns the NSS 3.4 style nickname directly from a
NSSCertificate structure.


git-svn-id: svn://10.0.0.236/trunk@124032 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 22:33:37 +00:00
sfraser%netscape.com
bf14218920 Undoing objects.nib corruption caused by checking in using MacCVS Pro
git-svn-id: svn://10.0.0.236/trunk@124031 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 22:31:36 +00:00
dprice%netscape.com
83f5fd8286 154220 r=curt sr=dveditz
don't show 'setup paused' dialog when invalid http response code


git-svn-id: svn://10.0.0.236/trunk@124030 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 22:24:03 +00:00
jst%netscape.com
11fd8b4a06 Fixing bug 129622. Make comparing an XPConnect wrapped native object to a number (<, >, ==, ...) in JS always return falase. r=dbradley@netscape.com, sr=jband@netscape.com
git-svn-id: svn://10.0.0.236/trunk@124028 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 22:14:58 +00:00
rods%netscape.com
d5d3234fab We do not want to skip page ejects when printing the selection
BUg 153964 r=dcone sr=kin


git-svn-id: svn://10.0.0.236/trunk@124026 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 22:11:56 +00:00
sfraser%netscape.com
b4fd9a92a1 Fixing bug 154069; hooking up additional find options. Also did some file detabbing. r=ccarlen/pinkerton.
git-svn-id: svn://10.0.0.236/trunk@124025 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 22:08:33 +00:00
pinkerton%netscape.com
2a4abd365d Added ability to show/hide personal toolbar and persist (bug 149725)
git-svn-id: svn://10.0.0.236/trunk@124024 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 22:06:09 +00:00
sfraser%netscape.com
fac1614754 Fixing bug 154069; hooking up additional find options. Also did some file detabbing. r=ccarlen/pinkerton.
git-svn-id: svn://10.0.0.236/trunk@124022 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 21:53:27 +00:00
dbaron%fas.harvard.edu
b1b9817c5d Set up preference style rules before any frame creation happens. b=148414 r=bryner sr=waterson
git-svn-id: svn://10.0.0.236/trunk@124020 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 21:21:48 +00:00
dbaron%fas.harvard.edu
7c4652cc16 Split strict mode into almost-standards and full-standards mode, where the only quirk in almost standards mode is the quirky inline box model. Remove previous fix for bug 151620. Tweak mode detection to use almost-standards for XHTML Transitional, HTML 4.01 transitional with system ID, and for IBM system DOCTYPE. b=153032 r=karnaze, bzbarsky, harishd sr=waterson
git-svn-id: svn://10.0.0.236/trunk@124017 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 21:16:17 +00:00
bnesse%netscape.com
acbe281411 Fix for bug 153622. Remove macxprefs (no longer used) from the build. r=ccarlen, sr=sfraser.
git-svn-id: svn://10.0.0.236/trunk@124013 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 20:05:48 +00:00
caillon%returnzero.com
fd710e312e Speed up and move the helper functions in nsRange to nsContentUtils and make compareTreePosition() faster.
Bug 144014 r=bzbarsky sr=jst


git-svn-id: svn://10.0.0.236/trunk@124012 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 20:03:06 +00:00
mkaply%us.ibm.com
237c9d2ad9 No bug - fix scrollbar regressions caused by remove of nsCanvas
git-svn-id: svn://10.0.0.236/trunk@124011 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 19:46:21 +00:00
ian.mcgreer%sun.com
5bbb4298d4 two more places to dump templates
git-svn-id: svn://10.0.0.236/trunk@124010 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 19:40:16 +00:00
timeless%mac.com
96eae3a010 Bug 125411 [NuBus] Mac installer crashes with a type 12 error (SleepQInstall)
r=sfraser sr=beard
thanks to tim@maroney.org (see bug 138156)


git-svn-id: svn://10.0.0.236/trunk@124009 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 19:39:08 +00:00
bryner%netscape.com
815bc9a462 Fixing the problem where URL's containing certain characters won't load, by removing uses of NSURL (which has escaping conventions that are incompatible with nsIURI) internally, replacing it with NSString. Bug 147914, r=pink.
git-svn-id: svn://10.0.0.236/trunk@124008 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 19:25:27 +00:00
pinkerton%netscape.com
6b6816d5c4 Fix crash when trying to save page source, though it still doesn't work (bug 15204)
git-svn-id: svn://10.0.0.236/trunk@124007 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 19:23:16 +00:00
tor%cs.brown.edu
9aa3dc8721 Bug 150041 - turn on do_fancy_upsampling for higher quality decoding.
r=pavlov, sr=blizzard


git-svn-id: svn://10.0.0.236/trunk@124006 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 18:28:09 +00:00
pinkerton%netscape.com
e307ff1bc0 Fix a slew of bookmark dnd bugs in the sidebar and personal toolbar. (bug 143094)
git-svn-id: svn://10.0.0.236/trunk@124005 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 18:21:07 +00:00
mostafah%oeone.com
5ba1277bc6 Renaming "category" field to "categories" to reflect the standard usage
git-svn-id: svn://10.0.0.236/trunk@124004 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 18:09:18 +00:00
ian.mcgreer%sun.com
d59ab30e97 fix AIX builds, 64-bit compiler chokes on large switches in debug builds
git-svn-id: svn://10.0.0.236/trunk@124003 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 16:57:40 +00:00
timeless%mac.com
3a461afe2b Bug 154086 Want /css to display current css setting
patch by neil@parkwaycc.co.uk r=rginda


git-svn-id: svn://10.0.0.236/trunk@124002 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 14:32:39 +00:00
mostafah%oeone.com
118af15fda Adding filter functionality for getTodos
git-svn-id: svn://10.0.0.236/trunk@124001 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 13:50:39 +00:00
bbaetz%student.usyd.edu.au
c1b2445e4e Bug 157085 - verify-new-product doesn't set defaults
r=jouni, gerv


git-svn-id: svn://10.0.0.236/trunk@124000 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 10:08:57 +00:00
bbaetz%student.usyd.edu.au
2ea1819330 Bug 154030 - Handle directory index page title correctly
r=dougt, sr=darin


git-svn-id: svn://10.0.0.236/trunk@123999 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 07:51:05 +00:00
jay.yan%sun.com
735b4e8efd bug 153805, Gtk2 double buffer makes carets misbehave in mozilla(gtk2) patch=robin.lu, r=blizzard, this part is not part of default build.
git-svn-id: svn://10.0.0.236/trunk@123998 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 07:07:18 +00:00
bernd.mielke%snafu.de
95201415ad bug 151888 - use SafeElementAt as we use it in all other places r=karnaze sr=kin
git-svn-id: svn://10.0.0.236/trunk@123997 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 06:58:49 +00:00
timeless%mac.com
c865cd2a92 Bug 125090 Bad tag enum passed to CNavDTD::IntTagToStringTag()!!: 'str_ptr',
r=bz sr=jst


git-svn-id: svn://10.0.0.236/trunk@123996 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 06:47:53 +00:00
stephend%netscape.com
ee9c9b6cc4 Bug 149201. Center text in bookmark properties dialog. Patch by Stephen Walker <walk84@yahoo.com> r=caillon@netscape.com, sr=alecf@netscape.com
git-svn-id: svn://10.0.0.236/trunk@123994 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 06:06:46 +00:00
curt%netscape.com
675f88fdcf Support for Screen Reader
(Bug #104477, r=price, sr=dveditz)


git-svn-id: svn://10.0.0.236/trunk@123991 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 05:39:36 +00:00
curt%netscape.com
f0514d9184 Support in the listbox for Screen Readers
(Bug 10477, r=ssu, sr=dveditz, mozilla1.0.1+)


git-svn-id: svn://10.0.0.236/trunk@123990 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 05:36:22 +00:00
kyle.yuan%sun.com
0477aaf57b Bug 152786 The framework of new event interface between nsIAccessible and ATK
r=aaronl, sr=jst


git-svn-id: svn://10.0.0.236/trunk@123989 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 05:04:17 +00:00
bryner%netscape.com
eac3accf28 Don't set an initial title on the browser window, since we re-set it when a page loads.
git-svn-id: svn://10.0.0.236/trunk@123988 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 04:53:49 +00:00
jaggernaut%netscape.com
1d2361804a Bug 150099: Hide the tab bar when clicking the close box, add show/hide menuitem for tabbar. r=bryner, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@123986 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 04:52:46 +00:00
bryner%netscape.com
294c6fce96 Don't hardcode the number of frames in the throbber animation.
git-svn-id: svn://10.0.0.236/trunk@123985 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 04:47:58 +00:00
dougt%netscape.com
5fa0efb987 status ignored on OnDataWritable. 153414. r=me, sr=darin
git-svn-id: svn://10.0.0.236/trunk@123980 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 02:57:00 +00:00
aaronl%netscape.com
9240563bd9 Active Accessibility: XUL property pages (tab panels) should not report themselves as STATE_FOCUSABLE
git-svn-id: svn://10.0.0.236/trunk@123978 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 02:41:44 +00:00
serge%netscape.com
eb675ba4c8 fix for #149336 Linux Flash crashes and causes stack curruption in NPP_New when swLiveconnect=TRUE, r=av/Roland.Mainz,sr=darin
git-svn-id: svn://10.0.0.236/trunk@123974 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 01:29:59 +00:00
naving%netscape.com
e2a7130e41 151699 r=cavin sr=bienvenu If copying berkeley mailbox or summary file fails, bail out. This fixes losing
local folders when we try to move them and have insufficient disk space


git-svn-id: svn://10.0.0.236/trunk@123973 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 01:14:31 +00:00
naving%netscape.com
5c3cb24f7a 153943 r=cavin sr=bienvenu Increasing width of filterEditor dialog by 50 pixels, so that cancel|help
buttons don't get truncated.


git-svn-id: svn://10.0.0.236/trunk@123972 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 01:10:35 +00:00
depstein%netscape.com
06ea59bc4b added support for webProgress flags for AddWebProgressListener()
git-svn-id: svn://10.0.0.236/trunk@123971 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-25 00:41:01 +00:00
relyea%netscape.com
db66460cc5 Fix solaris compiler error/warning. Fix prototype to return correct value (PRBool not PRStatus).
git-svn-id: svn://10.0.0.236/trunk@123969 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-24 23:54:16 +00:00
kaie%netscape.com
cd78156f1e b=87902 Cannot reach TLS intolerant servers through SSL proxy.
r=javi sr=darin


git-svn-id: svn://10.0.0.236/trunk@123965 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-24 23:02:08 +00:00
yokoyama%netscape.com
df515d1752 Bug 153470
Use IsDBCSLeadByteEx() instead of IsDBCSLeadByte()
to allow specifying the current IME code point.
IME input method improvement
/r=shanjian;/sr=kin


git-svn-id: svn://10.0.0.236/trunk@123964 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-24 22:49:25 +00:00
relyea%netscape.com
b64d478e29 Don't decode or extract trust for certs if we are just getting the nicknames -- particularly for user certs.
git-svn-id: svn://10.0.0.236/trunk@123959 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-24 22:36:59 +00:00
ian.mcgreer%sun.com
d4431cf4c6 fix broken AIX builds
git-svn-id: svn://10.0.0.236/trunk@123958 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-24 22:29:12 +00:00
ian.mcgreer%sun.com
2346e1ae15 log more mechanisms and templates
git-svn-id: svn://10.0.0.236/trunk@123957 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-24 22:22:57 +00:00
cavin%netscape.com
a8e09c3c68 Fix for 153220. Back out the patch of bug 144141 (a dup of bug 123719). r=naving, sr=mscott.
git-svn-id: svn://10.0.0.236/trunk@123956 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-24 22:20:10 +00:00
pschwartau%netscape.com
8f331d44a3 Adjusting FAST constant upward again, so that test can pass in Rhino. 100 ms seems like a reasonable value.
git-svn-id: svn://10.0.0.236/trunk@123955 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-24 22:14:48 +00:00
relyea%netscape.com
e75b9bf3b7 Copy the type value as well as the rest.
git-svn-id: svn://10.0.0.236/trunk@123954 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-24 21:57:27 +00:00
relyea%netscape.com
aa413cb2ba More performance improvements for PK11ListCerts/ CERT_GetUserCertByUsage().
git-svn-id: svn://10.0.0.236/trunk@123953 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-24 21:54:41 +00:00
blakeross%telocity.com
caa7c66928 132027 - no menus work when download manager window has focus. patches by bryner and I. r=bryner/blake sr=ben/dveditz
git-svn-id: svn://10.0.0.236/trunk@123952 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-24 21:48:24 +00:00
mscott%netscape.com
d65d08cc92 Bug #153500 --> fix a regression caused by Bug #146559. Don't set the performing biff flag to true
when the user hits get new mail. It causes windows biff notifications to come up when the user initiated
the fetch which is annoying.

r=ere@atp.fi
sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@123950 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-24 21:44:58 +00:00
hewitt%netscape.com
ba1de533d0 151716 - fixing some annoying autocomplete problems, most importantly that escape should work to undo typing, and fixes some situations where the popup would appear and not go away, r=pink
git-svn-id: svn://10.0.0.236/trunk@123947 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-24 21:20:55 +00:00
kin%netscape.com
5817b5739c Fix for bug 152435 (Memory leak of 36 bytes from 1 block allocated in TypeInState::ClearProp)
Call Reset() in ~TypeInState() to release any data that may be in mClearedArray and mSetArray.

r=jfrancis@netscape.com  sr=sfraser@netscape.com


git-svn-id: svn://10.0.0.236/trunk@123932 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-24 20:02:25 +00:00
heikki%netscape.com
7bafc16ab3 Bug 151933, xml:base should call CheckLoadURI like HTML base. r=harishd, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@123931 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-24 19:53:50 +00:00
bryner%netscape.com
c4ea7ee755 Removing this file, it's dead. r=sfraser.
git-svn-id: svn://10.0.0.236/trunk@123930 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-24 19:45:41 +00:00
pinkerton%netscape.com
7893c66a21 Break cycle with throbber so that we no longer crash when animating the
throbber and closing a window, or continue loading the page after the
window has gone away. (bug 153421)


git-svn-id: svn://10.0.0.236/trunk@123929 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-24 19:33:45 +00:00
ashishbhatt%netscape.com
3fb8d58b92 Updated testEmbed for MRE application support. Changed files testembed.cpp, winfilelocprovider.cpp & .h
git-svn-id: svn://10.0.0.236/trunk@123928 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-24 19:32:18 +00:00
pinkerton%netscape.com
e5f2c53ab4 add kathy and conrad
git-svn-id: svn://10.0.0.236/trunk@123925 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-24 17:10:29 +00:00
blizzard%redhat.com
f450e08565 Mai is fixed. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@123924 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-24 14:35:43 +00:00
blizzard%redhat.com
5fbf79f7bb Bug #153788. Unscrew the gtk2 build. r=bryner,sr=jst
git-svn-id: svn://10.0.0.236/trunk@123923 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-24 14:16:03 +00:00
colin%theblakes.com
baebc923ae Initial publish support for OpenVMS. b=22299 r=bbaetz sr=scc
git-svn-id: svn://10.0.0.236/trunk@123922 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-24 14:00:45 +00:00
peterv%netscape.com
9145988f99 Fix for bug 153757 (hasAttribute on a HTML label crashes). r=caillon, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@123921 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-24 11:07:07 +00:00
timeless%mac.com
870dbacfc0 Bug 138019 radio form control images should have flex="1"
r=andreww sr=jst


git-svn-id: svn://10.0.0.236/trunk@123920 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-24 07:44:04 +00:00
dveditz%netscape.com
3df1d271c4 Don't reveal full plugin pathname (bug 88183) r=peterl, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@123919 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-24 07:17:42 +00:00
khanson%netscape.com
e76ec12e0a patch 88484 for bug 14044. checks for out of memory conditon in jsdtoa.c. sr=brendan, r=khanson
git-svn-id: svn://10.0.0.236/trunk@123918 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-24 06:14:02 +00:00
timeless%mac.com
7fb41ca544 Bug 95295 If imap server is named "imap" you can't emtpy your trash.
patch by jk@tools.de r=morten@nilsen.com sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@123916 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-24 04:31:41 +00:00
bryner%netscape.com
403f29b5fd Fixing a crash resulting from my checkin for bug 138237. Instead of causing an initial reflow so that we can dispatch the focus event, just update the focus controller's state. r=alexsavulov, sr=blake.
git-svn-id: svn://10.0.0.236/trunk@123915 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-24 04:16:49 +00:00
jay.yan%sun.com
ee13affff3 bug 145864, Implementation of Basic Object interface for MAI patch=bolian missing modification of nsMaiHook.h Not part of default build
git-svn-id: svn://10.0.0.236/trunk@123913 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-24 03:05:39 +00:00
kyle.yuan%sun.com
86dfb17197 Bug 151048 Implemetation of nsIAccessibleText
second step: other files


git-svn-id: svn://10.0.0.236/trunk@123910 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-24 01:22:35 +00:00
kyle.yuan%sun.com
924b21f4ac Bug 151048 Implemetation of nsIAccessibleText
r=aaronl, sr=jst
first step: the new files


git-svn-id: svn://10.0.0.236/trunk@123909 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-24 01:13:56 +00:00
blizzard%redhat.com
8e616b1053 Bug #122429. Use packed bitfields in nsWindow class. Patch from Brian Tarricone <bjt23@cornell.edu>. Not part of the default build.
git-svn-id: svn://10.0.0.236/trunk@123907 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-23 23:35:19 +00:00
blizzard%redhat.com
8d305598c6 Turn off MAI until it builds again. Not part of the default build.
git-svn-id: svn://10.0.0.236/trunk@123906 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-23 23:33:53 +00:00
alecf%netscape.com
20b069df40 fix really strange btek bustage
git-svn-id: svn://10.0.0.236/trunk@123905 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-23 18:42:50 +00:00
jouni%heikniemi.net
9a84dddba5 Bug 152632: My bugs query doesn't use the mybugstemplate parameter. Also removes the My Bugs query from the index page.
Patch by m@lcolm.org.uk (Malcolm Scott), r=jouni,gerv


git-svn-id: svn://10.0.0.236/trunk@123902 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-23 17:34:14 +00:00
alecf%netscape.com
0aa661f605 fix pending OS/2 bustage
git-svn-id: svn://10.0.0.236/trunk@123901 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-23 17:08:31 +00:00
alecf%netscape.com
53a6a0a100 argh, fix pending mac bustage
git-svn-id: svn://10.0.0.236/trunk@123900 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-23 17:07:54 +00:00
alecf%netscape.com
dd97fa24d4 fix unix bustage
git-svn-id: svn://10.0.0.236/trunk@123899 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-23 17:04:46 +00:00
alecf%netscape.com
6e5f467c6a fix for bug 148180 - untangle intl dependencies by removing redundant code to load .properties files
instead, go through the string bundle service.
all intl libraries except the string bundle service are now free of necko dependencies
r=ftang, sr=jag


git-svn-id: svn://10.0.0.236/trunk@123898 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-23 16:05:35 +00:00
gerv%gerv.net
1648440ff0 Bug 152772 - buglist.cgi truncates emails at 45 characters. Patch by gerv; 2xr=bbaetz.
git-svn-id: svn://10.0.0.236/trunk@123897 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-23 15:14:13 +00:00
timeless%mac.com
0ee4d3d7c9 Bug 153431 Bug 127784 introduced doubles of lines in navigator.properties
r=mkaply, sr=dveditz


git-svn-id: svn://10.0.0.236/trunk@123896 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-23 14:48:34 +00:00
naving%netscape.com
5969e90906 152713 r=racham sr=mscott Made it so that "Unsent Messages" folder cannot be deleted from Edit | Delete folder
git-svn-id: svn://10.0.0.236/trunk@123894 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-23 04:25:44 +00:00
kyle.yuan%sun.com
a257201203 For Bug 146400 To merge nsIAccessibleSelectable and nsIAccessibleSelection.
I forgot to remove nsIAccessibleSelection.idl. We don't need this file any more.


git-svn-id: svn://10.0.0.236/trunk@123892 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-23 03:41:40 +00:00
jaggernaut%netscape.com
3574a5f2c0 Bug 112769: better "new tab" button for classic theme. r=bryner, sr=blake
git-svn-id: svn://10.0.0.236/trunk@123890 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-23 02:30:12 +00:00
blakeross%telocity.com
3b48ad6bcf 152387 - prefs for location bar autocomplete don't stick. r=caillon sr=ben
git-svn-id: svn://10.0.0.236/trunk@123889 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-23 02:05:17 +00:00
bbaetz%student.usyd.edu.au
465a750add Bug 150153 - ConnectToDatabase/quietly_check_login issues pt 2
r=jouni x2


git-svn-id: svn://10.0.0.236/trunk@123888 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-23 00:46:08 +00:00
alecf%netscape.com
f01f613a74 fix for bug 125617 - use the category manager instead of the registry to keep our list of encoders/decoders
r=dougt, sr=dveditz


git-svn-id: svn://10.0.0.236/trunk@123886 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-23 00:05:20 +00:00
jouni%heikniemi.net
6eefdb02ac Bug 153629: Clean up the HTML in the remembered query option knob section of the query page.
2xr=kiko


git-svn-id: svn://10.0.0.236/trunk@123884 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-22 23:56:00 +00:00
pinkerton%netscape.com
e282cfc306 use mac prefs instead of unix ones
git-svn-id: svn://10.0.0.236/trunk@123882 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-22 21:52:35 +00:00
pinkerton%netscape.com
09b9b08e16 Remap cookie prefs to be something chimera understands before we
get to the pref panel. Ignore p3p and foreign cookies.


git-svn-id: svn://10.0.0.236/trunk@123881 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-22 21:21:44 +00:00
alecf%netscape.com
c6574552b4 fix for bug 125617 - use the category manager instead of the registry to keep our list of encoders/decoders
r=dougt, sr=dveditz


git-svn-id: svn://10.0.0.236/trunk@123880 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-22 21:08:00 +00:00
jouni%heikniemi.net
b472d71283 Bug 150778: Remove an extraneous linefeed above initial bug comments (not visible in all browsers).
2xr=bbaetz


git-svn-id: svn://10.0.0.236/trunk@123879 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-22 21:03:21 +00:00
blakeross%telocity.com
85271a01ac 152910 - setting global history expiration to 0 doesn't actually disable global history. r=adamlock sr=alecf
git-svn-id: svn://10.0.0.236/trunk@123877 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-22 20:06:37 +00:00
blakeross%telocity.com
cb3c931d7b 142310 - topcrash quitting while downloading @ nsHashTable::Exists. r=bryner sr=ben
git-svn-id: svn://10.0.0.236/trunk@123876 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-22 19:47:14 +00:00
rogerl%netscape.com
1ef77d8221 Fixed whitespace testing. Fixed bug 122167 - $nn handling in replace.
git-svn-id: svn://10.0.0.236/trunk@123874 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-22 19:38:02 +00:00
dougt%netscape.com
53a062e477 Removing extra XPCOM_GLUE_LIBS define. Thanks dbaron for point this out r=me
git-svn-id: svn://10.0.0.236/trunk@123873 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-22 19:05:08 +00:00
dougt%netscape.com
f38d95f12c Fixing Mismatched new [] / delete []. r=me. bug=153584. patch from pj@ludd.luth.se.
git-svn-id: svn://10.0.0.236/trunk@123872 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-22 19:03:11 +00:00
wtc%netscape.com
cb4e9d6cca Bug 150157: DosWrite is not returning an error when the disk is full.
We can tell the write failed if we did a partial write.  The patch is
contributed by Michael Kaply <mkaply@us.ibm.com>.


git-svn-id: svn://10.0.0.236/trunk@123870 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-22 14:39:43 +00:00
bryner%netscape.com
31a0f0b03e Bump version string to 0.3.1.
git-svn-id: svn://10.0.0.236/trunk@123868 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-22 10:48:57 +00:00
jouni%heikniemi.net
38c487570e Bug 152283: Show votes by bug -list has a logged out footer.
2xr=bbaetz


git-svn-id: svn://10.0.0.236/trunk@123867 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-22 10:35:09 +00:00
dprice%netscape.com
02440b06f9 fixing bustage on the ports page
see 153524 for details


git-svn-id: svn://10.0.0.236/trunk@123866 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-22 08:43:24 +00:00
bryner%netscape.com
a5fa9e3d05 Enable prebinding (and automatic prebind updating at runtime) for static builds. r=pinkerton.
git-svn-id: svn://10.0.0.236/trunk@123865 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-22 06:28:20 +00:00
jay.yan%sun.com
2f09b1be65 bug 145864 Implementation of Basic Object Interface for MAI patch=bolian.yin r=aaronl sr=jst this change is not included in default build.
git-svn-id: svn://10.0.0.236/trunk@123862 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-22 04:52:38 +00:00
depstein%netscape.com
d966ee4185 updated some urls in nsIWebNav.cpp
git-svn-id: svn://10.0.0.236/trunk@123861 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-22 03:25:39 +00:00
nelsonb%netscape.com
9b6375ccb6 Fix bug 135261. Create symbolic names for the values 2 and 3 for the
SSL_REQUIRE_CERTIFICATE option.  Value 2 has always been the default.
New Value 3 is appropriate for servers that want to re-request, but
still not require, client-auth from a client with whom an SSL session
is already established.


git-svn-id: svn://10.0.0.236/trunk@123859 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-22 01:40:32 +00:00
sicking%bigfoot.com
47a022a475 Remove obsolete and potentially harmfull ctor from ProcessorState.
b=88623 r=peterv sr=jst


git-svn-id: svn://10.0.0.236/trunk@123858 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-22 01:27:40 +00:00
sicking%bigfoot.com
ffba89f8d6 Make us evaluate a <script> as soon as it's in the main tree and it either contains children or has the "src" attribute set. Also make sure that the same <script> is never evaluated twice.
Bug 26790, r=peterv, sr=jst


git-svn-id: svn://10.0.0.236/trunk@123856 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-22 01:16:14 +00:00
shrutiv%netscape.com
4a1fbdf8b6 Fix for bug 96916: Support easy way to add a few bookmarks via CCK
(r=smeredith)


git-svn-id: svn://10.0.0.236/trunk@123854 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-22 01:07:18 +00:00
cltbld%netscape.com
dda7fed28f Static build comment
git-svn-id: svn://10.0.0.236/trunk@123853 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-22 00:53:41 +00:00
rdayal%netscape.com
1f2d98ea0e bug # 104931 - moved LDAP modules to be installed with the browser instead of mail
r=dmose, sr=dveditz


git-svn-id: svn://10.0.0.236/trunk@123852 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-22 00:49:06 +00:00
depstein%netscape.com
7a1a30c84e updated webBrowserFind tests
a=asa for QA checkins that are not part of the default builds


git-svn-id: svn://10.0.0.236/trunk@123850 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-22 00:24:55 +00:00
despotdaemon%netscape.com
7f32c25ed0 Pseudo-automatic update of changes made by jouni@heikniemi.net.
git-svn-id: svn://10.0.0.236/trunk@123849 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-22 00:21:12 +00:00
shrutiv%netscape.com
007d2a0244 Fix for bug 96916: Support easy way to add a few bookmarks via CCK
(r=smeredith)


git-svn-id: svn://10.0.0.236/trunk@123848 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-22 00:20:48 +00:00
shrutiv%netscape.com
1ff6a2d8d0 Fix for bug 96916: Support easy way to add a few bookmarks via CCK
(r=smeredith)


git-svn-id: svn://10.0.0.236/trunk@123847 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-22 00:15:05 +00:00
despotdaemon%netscape.com
74a304ed3a Pseudo-automatic update of changes made by knous@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@123845 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-22 00:12:17 +00:00
bryner%netscape.com
6348ad392d Reorganize the Darwin xptcall code so that it works correctly with prebinding:
- Move all functions into the text section.
 - Use m4 to generate the StubNNN() functions in the .s file, so that we don't have to use an indirect call to SharedStub (which would clobber r12, where we pass the method index).
 - Use indirect calls for calling invoke_count_words and invoke_copy_to_stack from inside XPTC_InvokeByIndex.

Bug 151978, r=pavlov, sr=beard.


git-svn-id: svn://10.0.0.236/trunk@123843 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-22 00:09:55 +00:00
cltbld%netscape.com
1bd51431df Wrapping pull & build with TestOnly, now --testonly flag will skip this for chimera build also.
git-svn-id: svn://10.0.0.236/trunk@123842 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-22 00:00:43 +00:00
nicolson%netscape.com
822dbf177a Fix 128259: Cannot get SSL trust for a CA residing on PKCS#11 module.
git-svn-id: svn://10.0.0.236/trunk@123840 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 23:53:58 +00:00
dprice%netscape.com
017b3b9a47 144288 - r=sgehani sr=dveditz
make libxpnet understand http response codes


git-svn-id: svn://10.0.0.236/trunk@123837 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 23:43:26 +00:00
tor%cs.brown.edu
abecd7cc82 Bug 153280 - backout of pjpeg (bug 76776) due to Tp regression.
git-svn-id: svn://10.0.0.236/trunk@123836 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 23:42:49 +00:00
dprice%netscape.com
3abcdbccd4 151947 - r=curt sr=dveditz
let config.ini control what registry keys are cleaned up during upgrades


git-svn-id: svn://10.0.0.236/trunk@123835 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 23:40:58 +00:00
mstoltz%netscape.com
e600c92777 Bug 149777 - Do not clone images and other embeds into the pageInfo window;
just copy the src and other relevant attributes over. r=bzbarsky, sr=jag,
patch by jrgm.


git-svn-id: svn://10.0.0.236/trunk@123830 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 23:31:41 +00:00
shrutiv%netscape.com
1ac6d64fd5 Fix for bug 96916: Support easy way to add a few bookmarks via CCK
(r=smeredith)


git-svn-id: svn://10.0.0.236/trunk@123829 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 23:20:19 +00:00
naving%netscape.com
c186b96637 153101 r=cavin sr=bienvenu. fixing regression on copying mail to local folders after sending mail.
git-svn-id: svn://10.0.0.236/trunk@123828 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 23:15:21 +00:00
timeless%mac.com
36cbd28e05 Bug 153144 we don't need 'The return value is 3' outputed to the console form jsconsole
r=bzbarsky a=dcone (viewerApp)


git-svn-id: svn://10.0.0.236/trunk@123827 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 23:08:27 +00:00
rpotts%netscape.com
3b84d785bc bug #147741 (r=jst, sr=darin) Call nsIContentPolicy for toplevel and subdocuments.
git-svn-id: svn://10.0.0.236/trunk@123825 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 22:47:42 +00:00
bzbarsky%mit.edu
bcded6ff42 Save background images on tables/rows/cells. Bug 115532, r=adamlock, sr=jst
git-svn-id: svn://10.0.0.236/trunk@123824 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 22:33:50 +00:00
bzbarsky%mit.edu
8703400ee9 Fix dynamic changes to generated content. Bug 57226, r=dbaron, sr=kin
git-svn-id: svn://10.0.0.236/trunk@123823 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 22:31:19 +00:00
relyea%netscape.com
408808e54d Need to preserve non-modifiable trustbits.
git-svn-id: svn://10.0.0.236/trunk@123822 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 22:28:03 +00:00
bzbarsky%mit.edu
d998270f22 Fix build bustage
git-svn-id: svn://10.0.0.236/trunk@123821 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 22:25:28 +00:00
naving%netscape.com
6f431b6b1b 129540 r=robinf fixing help buttons to point to correct page for filterEditor.xul and pref-directoryadd.xul
git-svn-id: svn://10.0.0.236/trunk@123820 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 22:22:54 +00:00
cavin%netscape.com
acc08e7f30 Fix for 153465. In nsImapService::DeleteFolder(), if it's an aol server then use the new 'deletefolder' url to remove all msgs and the folder itself. r=naving, sr=bienvenu.
git-svn-id: svn://10.0.0.236/trunk@123819 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 21:55:10 +00:00
shanjian%netscape.com
e48b4e3b6f #149692 Japanese font is displayed ugly on linux RH7.2
use ffre name instead of only family name to better pass around
system font.
r=rbs, sr=waterson


git-svn-id: svn://10.0.0.236/trunk@123813 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 21:18:26 +00:00
alecf%netscape.com
580560b300 not part of build
move mContainer and mInner to be non-static members, and release them with the xpcom shutdown observer, to prevent leaks


git-svn-id: svn://10.0.0.236/trunk@123812 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 21:17:55 +00:00
jst%netscape.com
0a4d4ff021 Fixing bug 150824. Don't crash if initialization of an XBL JS class fails. r=dbradley@netscape.com, sr=alecf@netscape.com
git-svn-id: svn://10.0.0.236/trunk@123810 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 20:55:17 +00:00
pavlov%netscape.com
66a8b12322 fix for bug 148879. patch from balleysson@bigfoot.com. r=pavlov sr=tor
git-svn-id: svn://10.0.0.236/trunk@123808 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 20:32:48 +00:00
relyea%netscape.com
1be964d42e zero structure before we fill it in, not after
git-svn-id: svn://10.0.0.236/trunk@123807 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 20:25:49 +00:00
suresh%netscape.com
3fb09c9303 fix for bugscape 16611. crash in InMemoryDataSource::Assert. Checks for obs pointer before calling the app. function. r=rjc, sr=alecf.
git-svn-id: svn://10.0.0.236/trunk@123806 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 20:14:12 +00:00
mcs%netscape.com
b451b16592 Fix bug # 152852 - referrals: port 0 used by default instead of port 389.
git-svn-id: svn://10.0.0.236/trunk@123805 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 20:14:02 +00:00
dougt%netscape.com
3aebd6125f 151604 - XPCOM Glue standalone stupport of dynamically loading symbols. r=dp/rpotts sr=alecf
git-svn-id: svn://10.0.0.236/trunk@123802 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 19:58:54 +00:00
peterlubczynski%netscape.com
df1ebcf430 Reset the navigator object for each new document -- plugins may have changed, bug 150087 r=av sr=jst
git-svn-id: svn://10.0.0.236/trunk@123801 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 19:34:54 +00:00
pinkerton%netscape.com
2d383e548c pull the search button out of the default toolbar, move it to the left of
the url bar if it's there at all, and change the icon.


git-svn-id: svn://10.0.0.236/trunk@123800 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 19:33:59 +00:00
cltbld%netscape.com
31312aaabc Explicitly deleting binary. Removed install from pbxbuild line. Increased AliveTestTimeout to 60 seconds from 45. New URL for test8. (mcafee)
git-svn-id: svn://10.0.0.236/trunk@123799 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 19:18:49 +00:00
cltbld%netscape.com
a84796793f Explicitly set cwd to home directory after setting /u/cltbld, apparently MacOSX/Darwin needs this. -mcafee
git-svn-id: svn://10.0.0.236/trunk@123798 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 19:14:13 +00:00
rogerl%netscape.com
fbf3c70b40 Bug #112626 - setting RegExp static field 'input', making sure the paren
capture substring contents aren't gc'd. r=rginda, sr=brendan.


git-svn-id: svn://10.0.0.236/trunk@123797 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 18:38:45 +00:00
nicolson%netscape.com
ba6f6e9e4f fix a build error in JDK 1.2.
git-svn-id: svn://10.0.0.236/trunk@123796 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 18:31:36 +00:00
heikki%netscape.com
c7d4ac8120 Bug 133654, param attribute not recognized in XHTML. Patch from jst, r=peterv, sr=heikki.
git-svn-id: svn://10.0.0.236/trunk@123795 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 18:28:46 +00:00
wtc%netscape.com
c1bd73527f Bug 153380: TLS is enabled by default now.
git-svn-id: svn://10.0.0.236/trunk@123794 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 18:25:46 +00:00
rogerl%netscape.com
05f75c5206 Fixing bug 153223; - 'flat' input may be null. 'isWhiteSpace' does not
return true for non-break spaces, use 'isSpaceChar' instead. Bytes are
signed so needed to extract char values more carefully.


git-svn-id: svn://10.0.0.236/trunk@123793 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 18:19:25 +00:00
mostafah%oeone.com
6475015586 Second phase of TODO integration into calendar
git-svn-id: svn://10.0.0.236/trunk@123792 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 17:16:30 +00:00
despotdaemon%netscape.com
3a1e51ce13 Pseudo-automatic update of changes made by martinl@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@123791 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 16:57:55 +00:00
despotdaemon%netscape.com
d7a885939f Pseudo-automatic update of changes made by knous@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@123790 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 16:49:42 +00:00
ducarroz%netscape.com
3b9467c589 Fix for bug 153354. Syntax error
git-svn-id: svn://10.0.0.236/trunk@123789 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 16:03:15 +00:00
cmanske%netscape.com
fde673846b Fixed retaining text attributes when using 'end' key. b=113613, fix=mjudge, r=blythe, sr=kin
git-svn-id: svn://10.0.0.236/trunk@123788 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 14:22:30 +00:00
kaie%netscape.com
98ff642747 b=137071 [UE] Replies to or forwarding S/MIME encrypted mail should default to encrypt
Additional required patch, to fix "forward inline".
Patch created by ducarroz.
r=kaie sr=mscott


git-svn-id: svn://10.0.0.236/trunk@123787 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 14:04:57 +00:00
leaf%mozilla.org
153338799c Automated update
git-svn-id: svn://10.0.0.236/trunk@123786 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 13:55:42 +00:00
leaf%mozilla.org
f24e3636f2 update the mre mozilla version to 1.1a+, r=cls
git-svn-id: svn://10.0.0.236/trunk@123785 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 13:52:59 +00:00
varga%utcru.sk
393768688e Fix for bug 127842 - Reload the Bookmark and History tab context menu in
sidebar crashes mozilla
r=bryner, sr=shaver


git-svn-id: svn://10.0.0.236/trunk@123784 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 12:18:48 +00:00
locka%iol.ie
d71d2b2f3a Remove MozillaControl.html b=150618
git-svn-id: svn://10.0.0.236/trunk@123783 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 11:57:07 +00:00
dmose%netscape.com
aa87dbcb0f Workaround so that older versions of Mozilla will not erase LDAP bind DN from the prefs (bug 148900); r=srilatha@netscape.com, sr=bienvenu@netscape.com
git-svn-id: svn://10.0.0.236/trunk@123778 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 07:01:42 +00:00
caillon%returnzero.com
6584856e59 Bug 153044. Computed style implementation for some -moz-border-radius properties.
r=bzbarsky
sr=jst


git-svn-id: svn://10.0.0.236/trunk@123776 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 06:42:21 +00:00
cmanske%netscape.com
8e324f78b9 Allow drag&drop of image from browser. b=146299 [checking in for mjudge] r=cmanske, sr=jag
git-svn-id: svn://10.0.0.236/trunk@123775 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 06:16:14 +00:00
aaronl%netscape.com
af2cd6c3ea Missing part of checkin. Fixes breakage
git-svn-id: svn://10.0.0.236/trunk@123774 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 05:54:47 +00:00
cotter%netscape.com
b894ded1da help content updates per bugzilla 122806 & ADT, r=oeschger; a few final corrections, search db update
git-svn-id: svn://10.0.0.236/trunk@123772 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 05:45:21 +00:00
seawood%netscape.com
7178b77e33 Use the proper file paths when generating dependencies on win32.
Fallout from bug #141834.


git-svn-id: svn://10.0.0.236/trunk@123770 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 05:06:47 +00:00
jaggernaut%netscape.com
b50de5df02 Bug 151807: New Tab button and New Tab context menu items don't set focus to urlbar after opening the new tab. r=bryner, sr=blake
git-svn-id: svn://10.0.0.236/trunk@123769 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 05:06:31 +00:00
aaronl%netscape.com
d8ba960367 Bug 151298. Correct accessible state for XUL radio buttons -should have STATE_FOCUSED when radio button is focused. r=jgaunt, sr=jst
git-svn-id: svn://10.0.0.236/trunk@123768 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 04:54:34 +00:00
aaronl%netscape.com
aa351de483 Bug 151914. Correct accessible state for XUL menubar - should not have STATE_FOCUSABLE bit set. r=kyle, sr=jst
git-svn-id: svn://10.0.0.236/trunk@123767 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 04:47:13 +00:00
aaronl%netscape.com
5ef4b427f4 Bug 152370. Active Accessibility: correct accessible value for XUL listbox and combobox. r=kyle, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@123766 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 04:44:26 +00:00
aaronl%netscape.com
2b3b345631 Bug 152425. Active accessibility: correct use of STATE_FOCUSABLE for XUL tabs. r=jgaunt, sr=kyle
git-svn-id: svn://10.0.0.236/trunk@123765 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 04:41:28 +00:00
jaggernaut%netscape.com
f3e6ac1869 Bug 147720: M1RC3 crash in nsMetaCharsetObserver.cpp. r=dbaron, sr=blake.
git-svn-id: svn://10.0.0.236/trunk@123764 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 04:12:29 +00:00
pinkerton%netscape.com
103ea1da45 Do better error checking to prevent crashing trying to show a JS dialog
when loading a tab in the background (bug 152945)


git-svn-id: svn://10.0.0.236/trunk@123763 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 03:36:44 +00:00
pinkerton%netscape.com
47d66db957 add separate "expired cert" alert (bug 150731)
git-svn-id: svn://10.0.0.236/trunk@123760 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 03:25:35 +00:00
blakeross%telocity.com
6fada4d97a 142310 - top crash if quitting while downloading [@nsHashTable::Exists]. r=bryner sr=ben
git-svn-id: svn://10.0.0.236/trunk@123759 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 03:25:21 +00:00
depstein%netscape.com
48bb8ab7af Adding test cases for nsIWebBrowserFind. New url for simple text search.
git-svn-id: svn://10.0.0.236/trunk@123755 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 02:31:36 +00:00
bzbarsky%mit.edu
48b10a682c Change ToInteger to not silently drop '+' and '#' in mid-string. Bug
54142, r=timeless, sr=jag


git-svn-id: svn://10.0.0.236/trunk@123754 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 02:22:48 +00:00
timeless%mac.com
042f32d6d7 Bug 143903 crash if I close the mail window while a save as dialog is open for a message attachment
patch by antonio.xu@sun.com r=dbaron sr=waterson


git-svn-id: svn://10.0.0.236/trunk@123751 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 01:55:14 +00:00
timeless%mac.com
1ebb7a8a84 Bug 143515 Compose:Attachment field context menu:Select All doesn't work
antonio.xu@sun.com r=varada sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@123750 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 01:52:02 +00:00
mcafee%netscape.com
dff99286a0 oops, didn't mean to uncomment delete binary part
git-svn-id: svn://10.0.0.236/trunk@123748 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 00:58:21 +00:00
curt%netscape.com
c0733fbd6c Looks like the disk space is negative.
(Bug #82448, r=dprice, sr=dveditz)


git-svn-id: svn://10.0.0.236/trunk@123747 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 00:46:59 +00:00
pinkerton%netscape.com
6b39ba9eda Hack for external protocol handlers. serious hack. oh my god it's a hack. (bug 145807)
git-svn-id: svn://10.0.0.236/trunk@123746 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 00:46:05 +00:00
kaie%netscape.com
df04878acc b=153243 Error in recipient certificate availability checking, causing unreadable mail
r=ssaux sr=jag


git-svn-id: svn://10.0.0.236/trunk@123745 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 00:43:18 +00:00
naving%netscape.com
2686facd07 151056 r=cavin sr=bienvenu making mdn work for large imap messages. The fix is to ignore read(\seen) flag changes
on nsImapMsgFetch.


git-svn-id: svn://10.0.0.236/trunk@123744 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 00:25:42 +00:00
pinkerton%netscape.com
9c2b39a976 a bunch of fixes that didn't land when i wanted them to.
git-svn-id: svn://10.0.0.236/trunk@123743 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 00:24:51 +00:00
naving%netscape.com
ad178ae388 152713 r=ssu sr=mscott made it so we cannot delete special folders dratfs, templates and sent using Edit menu.
git-svn-id: svn://10.0.0.236/trunk@123742 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 00:13:48 +00:00
ssu%netscape.com
a45162abb5 fixing bug 152456 - mail header To: field shows duplicate address. r=varada, sr=mscott
git-svn-id: svn://10.0.0.236/trunk@123741 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 00:06:53 +00:00
srilatha%netscape.com
959c2a0a72 Fix for bug # 130403. When teh new card dialog is opened from selected addresses dialog,
there is no selectedab. Make personal addressbook selectedab, if there is no selected addressbook.
r=varada, sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@123738 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 23:48:54 +00:00
tor%cs.brown.edu
c1831076be Bug 76776 - incremental display of progressive jpegs. r=pavlov, sr=jag
git-svn-id: svn://10.0.0.236/trunk@123737 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 23:44:24 +00:00
dougt%netscape.com
e55242b0aa 153164. removed embed_base_s from XPCOM_GLUE_LIBS r/sr=seawood
git-svn-id: svn://10.0.0.236/trunk@123736 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 23:43:00 +00:00
mcafee%netscape.com
dd04539698 Fixing tab whitespace.
git-svn-id: svn://10.0.0.236/trunk@123735 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 23:41:33 +00:00
kaie%netscape.com
533c0e05ad b=90956 Dot (.) instead of localized characters in pipnss module
r=ssaux sr=alecf


git-svn-id: svn://10.0.0.236/trunk@123734 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 23:41:02 +00:00
leaf%mozilla.org
537d020e5d Automated update
git-svn-id: svn://10.0.0.236/trunk@123733 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 23:40:39 +00:00
kaie%netscape.com
351b59c701 https surfing: Clicking on a link early leads to "mixed/broken" lock icon
r=javi sr=rpotts


git-svn-id: svn://10.0.0.236/trunk@123732 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 23:36:48 +00:00
bryner%netscape.com
71b78df80d Don't crash if NSSDialogs doesn't implement nsICertificateDialogs (bug 150862). r=kaie, sr=blake.
git-svn-id: svn://10.0.0.236/trunk@123731 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 23:31:47 +00:00
timeless%mac.com
b840633886 backing out bug 128750
git-svn-id: svn://10.0.0.236/trunk@123729 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 23:02:31 +00:00
myk%mozilla.org
c6868cfe74 Fix for bgu 153114: Files bugs about changes (that the user can't make herself because she doesn't have CVS access) into the mozilla.org product, webmaster@mozilla.org component instead of the Documentation product. Also, adds a link to the document's change log so users can figure out to whom to assign the bug.
git-svn-id: svn://10.0.0.236/trunk@123728 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 22:56:23 +00:00
timeless%mac.com
966a773582 Bug 153146 makecopy.exe's error output is foobared
r=cls


git-svn-id: svn://10.0.0.236/trunk@123727 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 22:38:40 +00:00
javi%netscape.com
60969cbdf3 Make the file C++ friendly.
git-svn-id: svn://10.0.0.236/trunk@123725 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 22:32:38 +00:00
pschwartau%netscape.com
1de03ef582 Removing 6 skips. All pass now that the new Rhino RegExp engine has been checked in.
git-svn-id: svn://10.0.0.236/trunk@123724 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 22:31:47 +00:00
radha%netscape.com
392fbcdca7 Fix for bug # 35011. r=jst sr=kin. window.onscroll and element.onscroll don't fire.
git-svn-id: svn://10.0.0.236/trunk@123722 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 21:47:59 +00:00
bryner%netscape.com
e61f69bb3f Oops, forgot to add libjsj.dylib to the non-static target when I added liboji.
git-svn-id: svn://10.0.0.236/trunk@123721 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 21:46:21 +00:00
mkaply%us.ibm.com
7e4d76ba50 #149422
r=bnesse, sr=jst
OS/2 only - skip over EOF character on JS files in prefs


git-svn-id: svn://10.0.0.236/trunk@123720 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 21:37:21 +00:00
locka%iol.ie
4990bc8a8d Remove MozillaControl.html. b=150618 r=chak@netscape.com sr=rpotts@netscape.com
git-svn-id: svn://10.0.0.236/trunk@123719 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 21:33:59 +00:00
alecf%netscape.com
86b6d45c5d fix for bug 152929 - we were leaking 900+ nsFactoryEntry objects because they were not always allocated in an arena
(fixes a 75k leak on my system)
r=dougt, sr=dveditz


git-svn-id: svn://10.0.0.236/trunk@123718 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 21:22:50 +00:00
rpotts%netscape.com
3f2463d7dd bug #148981 (r=kaie, sr=darin). STATE_TRANSFERRING notifications are not fired if theunderlying channel does not provide nsIProgressEventSink notifications...
git-svn-id: svn://10.0.0.236/trunk@123717 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 21:16:46 +00:00
pschwartau%netscape.com
ce59881ff5 Adjusting FAST constant upward so that test can pass in Rhino -
git-svn-id: svn://10.0.0.236/trunk@123716 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 20:53:10 +00:00
pinkerton%netscape.com
95023ed66d Fix to switch window title when tab becomes primary and not switch url
when a bg tab refreshes its url. (bugs 150805, 152626)


git-svn-id: svn://10.0.0.236/trunk@123715 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 20:45:29 +00:00
dbaron%fas.harvard.edu
e76d62fd17 Fix accesskey regression for text inputs and textareas. b=148249 r=aaronl sr=jst
git-svn-id: svn://10.0.0.236/trunk@123714 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 20:44:27 +00:00
alecf%netscape.com
eb193c5571 fix bug 149102 - stop exporting some old unused methods from XPCOM, and get rid of nsOutputConsoleStream and consumers
also removing FilesTest from the build because its outdated, doesn't test anything useful anymore, and is the last consumer of nsOutputConsoleStream
r=dougt, sr=jag


git-svn-id: svn://10.0.0.236/trunk@123713 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 20:35:37 +00:00
bzbarsky%mit.edu
e045622d4e Bug 152979, r=dbaron,chak, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@123712 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 20:34:37 +00:00
jst%netscape.com
6cf6add6c0 Fixing the DOM part of bug 59686. DOM properties not accessable on liveconnect wrapped Java applet due to the DOM applet element's prototype not being correctly set up. r=bzbarsky@mit.edu, sr=brendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@123711 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 20:32:46 +00:00
jst%netscape.com
e7622066bd Fixing bug 143782. Don't double release the content pointers in mCurrentEventContentStack when a presshell is destroyed from within an event handler called through the presshell. r=dbaron@fas.harvard.edu, sr=protts@netscape.com
git-svn-id: svn://10.0.0.236/trunk@123710 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 20:14:59 +00:00
varga%utcru.sk
800eb0e544 Fix for bug 123719 - Default account is not placed at the top of the folder pane
r=bryner, sr=blake


git-svn-id: svn://10.0.0.236/trunk@123709 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 20:06:25 +00:00
mitchf%netscape.com
5f6b3aaff9 Changed default URLDisplayLen to 47 if non found in the widget definition
Part of fix for bug 119400


git-svn-id: svn://10.0.0.236/trunk@123706 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 19:46:43 +00:00
relyea%netscape.com
0a5dcbb6de Reduce the cost of decoding a certificate.
git-svn-id: svn://10.0.0.236/trunk@123701 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 18:53:16 +00:00
relyea%netscape.com
1c8eb7a37f reduce the calls to get the login state as these calls seem to be pretty expensive
for some tokens.


git-svn-id: svn://10.0.0.236/trunk@123700 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 18:49:45 +00:00
relyea%netscape.com
d80230e4aa Patches to reduce the cost of getting attributes on certs or finding certs in lists.
git-svn-id: svn://10.0.0.236/trunk@123699 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 18:46:47 +00:00
wtc%netscape.com
30e77d7c98 Updated for NSPR 4.2.1.
git-svn-id: svn://10.0.0.236/trunk@123697 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 18:13:10 +00:00
shannond%netscape.com
d60d9f439a Bug 102190 - Allow customization fo Tooltip text for Animated Logo
r=shrutiv@netscape.com


git-svn-id: svn://10.0.0.236/trunk@123696 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 18:11:06 +00:00
peterv%netscape.com
ac30d3738a Remove unnecessary includes.
git-svn-id: svn://10.0.0.236/trunk@123694 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 14:35:17 +00:00
peterv%netscape.com
6aad9f8005 Fix Transformiix standalone bustage (does not affect Mozilla build). r=Pike.
git-svn-id: svn://10.0.0.236/trunk@123693 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 14:10:48 +00:00
cmanske%netscape.com
7fe128322b New Publish icon for modern theme, r=cmanske, sr=jst
git-svn-id: svn://10.0.0.236/trunk@123692 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 13:59:07 +00:00
peterv%netscape.com
9fd72b9ba8 Fix for bug 146966 (Standalone Transformiix outputs HTML with XML prolog). r=Pike, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@123690 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 13:25:48 +00:00
seawood%netscape.com
6a4588d35f Removing the extraneous dos newline that's killing the irix build.
git-svn-id: svn://10.0.0.236/trunk@123689 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 12:50:21 +00:00
peterv%netscape.com
473737daaa Fix for bug 142108 (Crash when reloading XML+XSLT Trunk, M100, N70PR1, M11A [@ nsXMLContentSink::Observe][@ 0x00000001]). r=Pike, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@123686 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 12:04:22 +00:00
peterv%netscape.com
c7e9e858d1 Fix for bug 94475 (if first whitespace in line in textarea is a tab it is changed to a new line). Patch by t_mutreja@yahoo.com, r=bratell@lysator.liu.se, sr=heikki.
git-svn-id: svn://10.0.0.236/trunk@123685 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 11:45:09 +00:00
rods%netscape.com
5a2025b86f check in for jblanco,, returns is no printers are available
Bug 152936 r=rods sr=jst


git-svn-id: svn://10.0.0.236/trunk@123684 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 11:44:34 +00:00
cotter%netscape.com
d0b0433757 ongoing help content updates per bugzilla 122806 & ADT, r=oeschger; final corrections and search db update
git-svn-id: svn://10.0.0.236/trunk@123682 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 06:58:49 +00:00
henry.jia%sun.com
d879cfff92 Bug 105385 Cyrus IMAP: Server directory has / appended always
Patch description: Make this function more flexible and support other imap servers such as Cyrus and Courier besides UW server
r=bienvenu
sr=mscott


git-svn-id: svn://10.0.0.236/trunk@123680 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 06:11:50 +00:00
darin%netscape.com
4c00f288d2 secondary fix for bug 146094 "Stealing third-party cookies through a proxy"
r=dougt sr=rpotts


git-svn-id: svn://10.0.0.236/trunk@123679 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 05:49:04 +00:00
darin%netscape.com
000d05b462 pseudo fix for bug 140472 "No escape for non ASCII host name"
r=dougt sr=rpotts


git-svn-id: svn://10.0.0.236/trunk@123678 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 05:45:57 +00:00
mcafee%netscape.com
2b5f93b089 find, commandhandler need to be built before embedcomponents (152516). r=cls, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@123676 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 05:08:19 +00:00
saari%netscape.com
eecbbc3392 win32 only fix for 82534. focus goes wonky after minimizing a window. r=bryner, sr=jag
git-svn-id: svn://10.0.0.236/trunk@123675 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 04:55:13 +00:00
kyle.yuan%sun.com
92d37b3380 Bug 152469 DefAction does not work for tree column node.
r=aaronl, sr=jst
Bug 152472 nsIAccessible's accValue returns NS_ERROR_ILLEGAL_VALUE instead of return NS_ERROR_NOT_IMPLEMENTED for XUL Tree Node
r=aaronl, sr=jst


git-svn-id: svn://10.0.0.236/trunk@123672 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 02:51:55 +00:00
serge%netscape.com
7e3e5f670d fix for #85958 Shockwave/Flash pages cause crash under Solaris [x-server/bit-depth], patch by sep@sparc.spb.su,r=serge,sr=blizzard
git-svn-id: svn://10.0.0.236/trunk@123666 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 01:50:54 +00:00
dmose%netscape.com
a70407e6e2 If authentication fails during LDAP autocomplete, bring up a new password dialog rather than showing an obscure error message (bug 150723); r=ducarroz@netscape.com, sr=hewitt@netscape.com
git-svn-id: svn://10.0.0.236/trunk@123665 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 01:50:04 +00:00
ducarroz%netscape.com
d60661b832 Fix for bug 143882. We should not add dummy headers when saving a message as file. R=naving, SR=bienvenu
git-svn-id: svn://10.0.0.236/trunk@123664 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 01:49:18 +00:00
srilatha%netscape.com
15401e27bb Fix for bug # 148939. Updating the card does not update addresslists.
r=varada, sr=bienvenu.


git-svn-id: svn://10.0.0.236/trunk@123662 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 01:22:14 +00:00
morse%netscape.com
226b2f6a13 change p3p icon, r=kerz, sr=blake, a=lorikaplan
git-svn-id: svn://10.0.0.236/trunk@123661 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 01:17:56 +00:00
dmose%netscape.com
9ef8e7e0a0 Fix incorrect array length calculation + add temporary variable to work around egcs compiler bug which was causing bogus text to appear in the LDAP auth dialog on linux (bug 148897); r=bryner@netscape.com, sr=bienvenu@netscape.com
git-svn-id: svn://10.0.0.236/trunk@123660 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 01:07:32 +00:00
dmose%netscape.com
dfabf75f97 Fix incorrect array length calculation + add temporary variable to work around egcs compiler bug which was causing bogus text to appear in the LDAP auth dialog on linux (bug 148897); r=bryner@netscape.com, sr=bienvenu@netscape.com
git-svn-id: svn://10.0.0.236/trunk@123659 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 00:58:52 +00:00
nhotta%netscape.com
70c4e1fc68 MIME decode headers when creating nsMsgCompFields for sendlater,
bug 152690, r=ducarroz, sr=bienvenu.


git-svn-id: svn://10.0.0.236/trunk@123658 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 00:36:44 +00:00
timeless%mac.com
cc00cc5f7c Bug 125689 Mozinvaders crashes Mozilla! [@ nsGrid::FindRowsAndColumns]
r=varga sr=kin
<grid></grid> with no rows or collumns


git-svn-id: svn://10.0.0.236/trunk@123655 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 00:14:29 +00:00
bryner%netscape.com
e2a912e048 Make -autoRegister mode also perform chrome registration, so that this can be done during packaging. r=jag.
git-svn-id: svn://10.0.0.236/trunk@123654 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-20 00:08:02 +00:00
yokoyama%netscape.com
9eacd46b90 146844
Adding IME text input handling
for special cases (punctuation, period chars)
/r=shanjian;/sr=kin


git-svn-id: svn://10.0.0.236/trunk@123650 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 23:56:28 +00:00
karnaze%netscape.com
6ff33d9292 bug 127022 - make sure the desired width is at least as big as the max element width. sr=kin, r=alexsavulov
git-svn-id: svn://10.0.0.236/trunk@123642 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 23:16:33 +00:00
karnaze%netscape.com
6b987491e8 new regression tests, not affecting the build.
git-svn-id: svn://10.0.0.236/trunk@123638 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 23:07:11 +00:00
nicolson%netscape.com
505baf58aa catch a null pointer and throw it back to Java, instead of crashing in C.
git-svn-id: svn://10.0.0.236/trunk@123636 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 22:59:08 +00:00
nicolson%netscape.com
197d5ae79d upgrade to NSS 3.4.2.
git-svn-id: svn://10.0.0.236/trunk@123635 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 22:58:40 +00:00
gerv%gerv.net
55f576c6a6 Bug 151217 - buglist references the wrong priority field. Patch by gerv; 2xr=bbaetz.
git-svn-id: svn://10.0.0.236/trunk@123634 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 22:53:25 +00:00
naving%netscape.com
ece872da0f 129540 r=racham sr=alecf Adding help buttons in some cases and making them point to the right page (in all cases).
git-svn-id: svn://10.0.0.236/trunk@123633 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 22:53:04 +00:00
naving%netscape.com
972fe006e3 129540 r=racham sr=alecf making help buttons point to the right page
git-svn-id: svn://10.0.0.236/trunk@123632 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 22:52:54 +00:00
nicolson%netscape.com
83079a7bee add SSLClientAuth test.
remove obsolete socketTest.
Get passwords from a file so we can run in batch mode.


git-svn-id: svn://10.0.0.236/trunk@123631 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 22:50:47 +00:00
karnaze%netscape.com
e7dfc78299 bug 114706 - only use last height as desired size if a special reflow occurred during an incremental reflow. sr=kin
git-svn-id: svn://10.0.0.236/trunk@123627 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 22:42:41 +00:00
rginda%netscape.com
977eaa489e fix build bustage, NS_IF_RELEASE the raw pointer, not the COM pointer.
git-svn-id: svn://10.0.0.236/trunk@123626 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 22:40:19 +00:00
karnaze%netscape.com
6b5f0435d2 bug 127544 - fixed asserts when there are no cells in a row group and there is a column. sr=kin, r=alexsavulov.
git-svn-id: svn://10.0.0.236/trunk@123625 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 22:35:59 +00:00
karnaze%netscape.com
f849232aae bug 151620 - always use quirk line-height inside a td. sr=waterson, r=dbaron.
git-svn-id: svn://10.0.0.236/trunk@123624 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 22:28:47 +00:00
leaf%mozilla.org
6df33ab0e0 updating the user agent string, a=asa
git-svn-id: svn://10.0.0.236/trunk@123621 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 22:20:49 +00:00
rods%netscape.com
5dbadfe64a Need to call EndObservingDocument before destroy of PresShell
Bug 152536 r=dcone sr=jst


git-svn-id: svn://10.0.0.236/trunk@123620 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 22:18:43 +00:00
seawood%netscape.com
69ece6e75d Add generated header file to generated list so that files don't sit in the srcdir and mask bustage caused by a missing include path.
Not exactly fallout from bug #141834 but it's going in anyway.


git-svn-id: svn://10.0.0.236/trunk@123619 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 22:17:27 +00:00
rogerl%netscape.com
05e5562d17 New RegExp engine implementation.
git-svn-id: svn://10.0.0.236/trunk@123614 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 21:57:57 +00:00
rginda%netscape.com
de73e0dbca Bug 151803, "Debugger is leaking JSDValues", r=peterv, sr=jst
Stop caching jsdIValues, it doesn't seem to be worth the lookup cost.  This has the side effect of plugging the leak, as described in the bug.
also...
* Convert a few raw pointers to nsCOMPtrs
* Fix a bug where removing the last filter did not null out the list head,
causing a crash the next time filters were used.
* Track live jsdStackFrames, so we can invalidate them all when execution
continues.  Without this, only the top frame is properly invalidated, and any
other frame accessed after a continue will do Bad Things.
* Add some debugging prints to GetInitAtService, which seems to be failing at
random times.


git-svn-id: svn://10.0.0.236/trunk@123613 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 21:56:23 +00:00
rods%netscape.com
b9882159d7 Add PR_LOGGING for printing
Bug 121622 r=dcone sr=kin


git-svn-id: svn://10.0.0.236/trunk@123612 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 21:51:13 +00:00
mkaply%us.ibm.com
61740cd4da Back out the extra crap code I added with 147702 - just fix the bug, don't try anything fancy
git-svn-id: svn://10.0.0.236/trunk@123607 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 21:22:22 +00:00
leaf%mozilla.org
75555da65c Automated update
git-svn-id: svn://10.0.0.236/trunk@123606 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 20:55:43 +00:00
seawood%netscape.com
ec5eaef329 Fixing build bustaged caused by absolute path assumptions.
Fallout from bug #141834


git-svn-id: svn://10.0.0.236/trunk@123605 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 20:45:57 +00:00
nicolson%netscape.com
105074a197 Fix 112227: set SSL server without nickname
Specify the certificate to use for both server and client auth directly,
rather than by nickname.


git-svn-id: svn://10.0.0.236/trunk@123604 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 20:33:28 +00:00
stephend%netscape.com
35887f441f Bug 151418. Polish Page Info & Certificate Details. Patch by Stephen Walker <walk84@yahoo.com> r=kaie@netscape.com, sr=jaggernaut@netscape.com
git-svn-id: svn://10.0.0.236/trunk@123603 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 20:32:54 +00:00
shaver%mozilla.org
56496de266 Followup to checkin for 116653 (openURL(,new-tab) support). Seems that the
observer service doesn't implement classinfo, and some people were reporting
a strict warning (?) related to this.  This is a more correct approach anyway,
so here we go. r=blizzard, sr=jag.


git-svn-id: svn://10.0.0.236/trunk@123602 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 20:29:54 +00:00
bryner%netscape.com
ee0246f4a9 Adding OJI library to the static build target.
git-svn-id: svn://10.0.0.236/trunk@123601 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 20:15:54 +00:00
blakeross%telocity.com
329221d5ba 149357 - excess bloat in cookie prefs. r=morse sr=ben
git-svn-id: svn://10.0.0.236/trunk@123600 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 19:56:25 +00:00
blakeross%telocity.com
8d2bb87fb0 142824 - downloads.rdf keeps on growing. patch by jrgm@netscape.com. r=blake sr=ben
git-svn-id: svn://10.0.0.236/trunk@123599 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 19:53:58 +00:00
bryner%netscape.com
982a96dc4a Adding OJI library to the non-static build target.
git-svn-id: svn://10.0.0.236/trunk@123598 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 19:31:10 +00:00
ian.mcgreer%sun.com
dfe71a1368 bug 98926, PKCS#11 session logging
git-svn-id: svn://10.0.0.236/trunk@123597 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 18:32:57 +00:00
rangansen%netscape.com
00563fcd57 exporting CERT_VerifyCertChain. r=relyea
git-svn-id: svn://10.0.0.236/trunk@123595 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 15:58:51 +00:00
ian.mcgreer%sun.com
cc6d866e92 missed part of last patch (bug 145322)
git-svn-id: svn://10.0.0.236/trunk@123594 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 15:26:55 +00:00
ian.mcgreer%sun.com
662cdbc0f1 bug 145322, second patch, clean up pk11_saveContextHelper
git-svn-id: svn://10.0.0.236/trunk@123593 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 15:22:54 +00:00
ian.mcgreer%sun.com
d5ba19e9d7 bug 145322, reduce the number of PKCS#11 sessions used in SSL connections, implement new function PK11_SaveContextAlloc
r=relyea


git-svn-id: svn://10.0.0.236/trunk@123592 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 15:21:37 +00:00
leaf%mozilla.org
f6c4ac0d13 Automated update
git-svn-id: svn://10.0.0.236/trunk@123591 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 15:11:18 +00:00
mikep%oeone.com
95d5bd9fa3 Updating code, doing a little bit of clean up.
git-svn-id: svn://10.0.0.236/trunk@123590 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 15:00:38 +00:00
ian.mcgreer%sun.com
0dc85d2a26 bug 150704, PK11_Finalize can crash because softoken does not implement C_XXXFinal correctly
git-svn-id: svn://10.0.0.236/trunk@123589 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 14:59:24 +00:00
seawood%netscape.com
818b8f50de Add --disable-activex to turn off building of activex component (win32 only).
Thanks to Stephen Walker  <walk84@yahoo.com> for the patch.
Bug #141376 r=cls


git-svn-id: svn://10.0.0.236/trunk@123588 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 14:59:05 +00:00
locka%iol.ie
b7ef813c10 Sample code changed to use MIT licence. b=82339
git-svn-id: svn://10.0.0.236/trunk@123587 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 14:48:07 +00:00
locka%iol.ie
2dc724b259 Sample code changed to use MIT licence. b=82339
git-svn-id: svn://10.0.0.236/trunk@123586 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 14:38:39 +00:00
dcone%netscape.com
cfb63b946a added an installer for the debug plugin. Not part of build.
git-svn-id: svn://10.0.0.236/trunk@123585 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 14:35:40 +00:00
locka%iol.ie
614fe5d123 Sample code changed to use MIT licence. b=82339
git-svn-id: svn://10.0.0.236/trunk@123584 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 14:25:27 +00:00
kaie%netscape.com
1f3848c479 b=137071 [UE] Replies to or forwarding S/MIME encrypted mail should default to encrypt
r=ducarroz sr=mscott


git-svn-id: svn://10.0.0.236/trunk@123583 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 13:46:10 +00:00
karnaze%netscape.com
21b23754fb bug 149436 - shanmu's patch to fix crash on OSF/1, sr=kin, r=karnaze
git-svn-id: svn://10.0.0.236/trunk@123582 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 13:43:19 +00:00
karnaze%netscape.com
c982f01623 bug 151956 - make sure child of row group is a row in CalcRowHeights. sr=kin, r=bernd.
git-svn-id: svn://10.0.0.236/trunk@123581 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 13:37:18 +00:00
varga%utcru.sk
8d7b5f2cd2 Checking in for Neil.
Bug 151565 - JS strict warning in nsHelperAppDlg.js
r=varga, sr=jag


git-svn-id: svn://10.0.0.236/trunk@123580 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 12:59:20 +00:00
kaie%netscape.com
486242ccde b=137071 [UE] Replies to or forwarding S/MIME encrypted mail should default to encrypt
r=ducarroz sr=mscott


git-svn-id: svn://10.0.0.236/trunk@123579 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 12:49:29 +00:00
kaie%netscape.com
007764bf32 b=137071 [UE] Replies to or forwarding S/MIME encrypted mail should default to encrypt
r=ducarroz sr=mscott
(need to rename file because it is too long for Mac)


git-svn-id: svn://10.0.0.236/trunk@123578 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 12:47:44 +00:00
kaie%netscape.com
d83288e41b b=137071 [UE] Replies to or forwarding S/MIME encrypted mail should default to encrypt
r=ducarroz sr=mscott


git-svn-id: svn://10.0.0.236/trunk@123577 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 12:43:06 +00:00
jaggernaut%netscape.com
b506de82e7 Back out changes for bug 35011 (context menu, ctrl+key, page-up/down all stopped working in browser).
git-svn-id: svn://10.0.0.236/trunk@123576 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 12:37:57 +00:00
kaie%netscape.com
90aecc35e5 b=137071 [UE] Replies to or forwarding S/MIME encrypted mail should default to encrypt
r=ducarroz sr=mscott


git-svn-id: svn://10.0.0.236/trunk@123575 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 12:24:27 +00:00
locka%iol.ie
672184db5f Added nsIEmbeddingSiteWindow2 implementation. b=149307 r=rpotts@netscape.com sr=alecf@netscape.com
git-svn-id: svn://10.0.0.236/trunk@123574 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 11:41:25 +00:00
racham%netscape.com
5d5c91435f Fixing bug 144562. Allow ISPs and vendors to set up pre-configured mailnews accounts via prefs. Adding global version prefs which provide ISP/vendors the flexibility of adding new accounts/servers to the existing set of accounts/servers by increasing the default version number. r=srilatha, sr=bienvenu
git-svn-id: svn://10.0.0.236/trunk@123573 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 07:44:30 +00:00
racham%netscape.com
0cf2bf774a Fixing bug 144562. Allow ISPs and vendors to set up pre-configured mailnews accounts via prefs. When a proper set of prefs area added to the global prefs file, accounts are set up automatically. On launching mailnews app, Account Wizard will be brought up on identifying invalid accounts so that user information like name and email address can be entered. Please see the bug for set of prefs used as an example. r=srilatha, sr=bienvenu
git-svn-id: svn://10.0.0.236/trunk@123572 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 07:38:53 +00:00
timeless%mac.com
90d599f0f6 Bug 12180 Menu overlaps filenames
Bug 88759 improperly nested tags break links
r=tara


git-svn-id: svn://10.0.0.236/trunk@123571 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 07:00:18 +00:00
bzbarsky%mit.edu
6d7d25fd32 add an ID to the separator so things can go on the right side of it.
Bug 151479, r=bzbarsky, sr=blake


git-svn-id: svn://10.0.0.236/trunk@123569 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 06:42:27 +00:00
bzbarsky%mit.edu
89964087df Not all URIs are URLs. Bug 143987, r=law, sr=jag
git-svn-id: svn://10.0.0.236/trunk@123568 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 05:13:59 +00:00
bzbarsky%mit.edu
c2aaa714fc use oncommand, not onclick, for the link toolbar. Bug 139157,
r=sballard@netreach.net, sr=jag


git-svn-id: svn://10.0.0.236/trunk@123567 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 05:11:02 +00:00
dbaron%fas.harvard.edu
4f49013024 Oops.
git-svn-id: svn://10.0.0.236/trunk@123566 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 04:31:43 +00:00
dbaron%fas.harvard.edu
841cdced78 Correct documentation of initial/inherit values and of last boolean in CheckPropertyData. Note that document misses modifications to nsDOMCSSDeclaration and relevant interfaces. Massive formatting cleanup (especially <br> overuse), but not enough.
git-svn-id: svn://10.0.0.236/trunk@123565 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 04:29:07 +00:00
caillon%returnzero.com
438ada5443 Bug 152256, honor the pref to prevent sites from hiding the statusbar in the window.statusbar.visible=false case also. r=bzbarsky sr=jst
git-svn-id: svn://10.0.0.236/trunk@123564 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 04:09:57 +00:00
mkaply%us.ibm.com
3513f4811b #70141
r=timeless, sr=jag
Windows - map + on numpad to + character


git-svn-id: svn://10.0.0.236/trunk@123563 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 03:33:12 +00:00
katakai%japan.sun.com
902cca8ec9 bug 152260
AMPM order needs to be cared in time format
UNIX/Linux only: check AMPM order at strftime("%X")
r=yokoyama,sr=blizzard


git-svn-id: svn://10.0.0.236/trunk@123561 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 02:32:43 +00:00
jelwell%netscape.com
49c06cb235 Fix for bugzilla bug 152434
Need id's on the some menuitems so Other apps can hide unneeded ones.
r=cmanske, sr=dveditz


git-svn-id: svn://10.0.0.236/trunk@123560 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 02:11:04 +00:00
kyle.yuan%sun.com
0dbcd6e661 Bug 149858 [XBLFC] Active Accessibility: support XBL-based HTML radio
r=aaronl, sr=jst
Add nsIAccessibleProvider in radio.xml, create accessible object for XBL radio button


git-svn-id: svn://10.0.0.236/trunk@123559 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 02:00:38 +00:00
seawood%netscape.com
d02a1e6aa1 Yet another fix for the srcdir race problem. We'll just remove the srcdir copies whenever we regenerate the files.
Fallout from bug 141834


git-svn-id: svn://10.0.0.236/trunk@123557 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 01:31:47 +00:00
jruderman%hmc.edu
996e95ed25 86063 and 134614. add ctrl+shift+f shortcut for "search the web" and make "search the web" go to the user's selected search engine. r=aaronl,sgehani, sr=hewitt.
git-svn-id: svn://10.0.0.236/trunk@123554 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 00:50:20 +00:00
caillon%returnzero.com
d20e1a3975 Bug 149474, Implement preventdefault="true" on XBL handlers, so that bindings are able to prevent the default action even if JavaScript is disabled. r=bryner sr=jag
git-svn-id: svn://10.0.0.236/trunk@123553 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 00:43:46 +00:00
jst%netscape.com
d24a4a75b0 Fixing bug 123273. Don't let JS timeouts run with 0 delay, always force at least a 10ms delay. r=bzbarsky@mit.edu, sr=rpotts@netscape.com
git-svn-id: svn://10.0.0.236/trunk@123552 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 00:42:23 +00:00
pschwartau%netscape.com
cd7a709a52 Correcting Section 1 to test execution as well as compilation of function.
git-svn-id: svn://10.0.0.236/trunk@123551 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 00:23:43 +00:00
bzbarsky%mit.edu
861ed47bd4 Bug 126725, patch by Travis Crump <pretzalz@techhouse.org>, r=bzbarsky,
sr=alecf.


git-svn-id: svn://10.0.0.236/trunk@123549 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 00:17:18 +00:00
pschwartau%netscape.com
49b06a0ae3 Adding extra comments -
git-svn-id: svn://10.0.0.236/trunk@123548 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 00:13:04 +00:00
pschwartau%netscape.com
46de850836 Initial add. Regression test for bug 146596.
git-svn-id: svn://10.0.0.236/trunk@123546 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 00:02:29 +00:00
timeless%mac.com
c6da77a30d Bug 114121 miFindCSSRules.accesskey definied as "Find CSS Rules..."
r=hwaara sr=jst


git-svn-id: svn://10.0.0.236/trunk@123545 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-19 00:02:27 +00:00
myk%mozilla.org
84497df0ef Fix for bug 152688: HTML-escape CVS error messages before they are output.
git-svn-id: svn://10.0.0.236/trunk@123543 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-18 23:33:26 +00:00
cotter%netscape.com
d45cdeb9ad ongoing help content updates per bugzilla 122806 & ADT, r=oeschger; latest formatting & editorial updates
git-svn-id: svn://10.0.0.236/trunk@123541 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-18 23:22:13 +00:00
naving%netscape.com
2b8574558e 134076 original patch=wilson r=oscheger sr=alecf Made it so that Help search engine should let user know that no matches were found
git-svn-id: svn://10.0.0.236/trunk@123538 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-18 23:08:38 +00:00
cavin%netscape.com
50352c57e2 Fix for 144141. Force folder pane to open if it's collapsed at startup. r=naving, sr=mscott.
git-svn-id: svn://10.0.0.236/trunk@123537 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-18 23:04:04 +00:00
radha%netscape.com
374aa80972 Fix for bug # 35011. window.onscroll and element.onscroll don't fire. r=joki sr=jst
git-svn-id: svn://10.0.0.236/trunk@123536 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-18 23:01:48 +00:00
robinf%netscape.com
a1a66f6c6c routine help updates per bug 122806, r=oeschger
git-svn-id: svn://10.0.0.236/trunk@123535 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-18 23:01:28 +00:00
radha%netscape.com
18e3f5da82 Fix for bug # 35011 r=joki sr=jst. window.onscroll and element.onscroll don't fire.
git-svn-id: svn://10.0.0.236/trunk@123534 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-18 23:00:50 +00:00
bzbarsky%mit.edu
1747596e9d Remove an unneeded flex. Bug 128750, r=law,sr=alecf
git-svn-id: svn://10.0.0.236/trunk@123533 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-18 22:36:27 +00:00
dbaron%fas.harvard.edu
211d1d0454 Add perl script for splitting jprof profiles into segments.
git-svn-id: svn://10.0.0.236/trunk@123532 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-18 22:35:05 +00:00
bishakhabanerjee%netscape.com
442e627ebf correcting init_mcom function to enable "nssqa" to run at Netscape - 150752
git-svn-id: svn://10.0.0.236/trunk@123531 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-18 21:45:31 +00:00
pinkerton%netscape.com
c5023cf92e Adding impl of nsIEmbeddingSiteWindow2 so certain QI's don't fail
git-svn-id: svn://10.0.0.236/trunk@123530 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-18 21:43:56 +00:00
leaf%mozilla.org
f3c2c57f2f Automated update
git-svn-id: svn://10.0.0.236/trunk@123529 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-18 21:40:40 +00:00
chak%netscape.com
817969dd8b Fix for #151574 - Add MRE packaging make target to embedding/config
r=adamlock,  sr=darin


git-svn-id: svn://10.0.0.236/trunk@123528 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-18 21:37:05 +00:00
seawood%netscape.com
dbbecbf41b Explicitly use sh when calling the cygwin-wrapper script as some developers are reporting that their shell can't call the script directly.
Fallout from bug #141834


git-svn-id: svn://10.0.0.236/trunk@123527 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-18 21:36:45 +00:00
locka%iol.ie
456fc59036 Add application launcher dialog to activex control, plus some member variable cleanup. b=126245 r=chak@netscape.com sr=rpotts@netscape.com
git-svn-id: svn://10.0.0.236/trunk@123525 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-18 21:31:41 +00:00
alexsavulov%netscape.com
0027d9c146 patch for bug 148199 - Images that are "broken" during document editing
don't redisplay using broken image icon.
added a request proxy removal from the mLoads to get the broken icon
when paint.
r=glazman, sr=waterson


git-svn-id: svn://10.0.0.236/trunk@123524 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-18 21:28:53 +00:00
darin%netscape.com
869750bcd2 fixes bug 133286 "Windows Media Player in full-page plugin mode may not repaint window"
patch=av r=dougt sr=darin


git-svn-id: svn://10.0.0.236/trunk@123523 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-18 21:21:47 +00:00
pinkerton%netscape.com
7039a328ba Check hidden attribute when creating separators. r=saari/sr=sfraser. bug#151693
git-svn-id: svn://10.0.0.236/trunk@123522 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-18 20:54:41 +00:00
locka%iol.ie
7ad7793c14 Add application launcher dialog to activex control, plus some member variable cleanup. b=126245 r=chak@netscape.com sr=rpotts@netscape.com
git-svn-id: svn://10.0.0.236/trunk@123520 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-18 20:47:41 +00:00
mitchf%netscape.com
3d1a4a6118 Added support for URLDisplayLength to DynamicText widgets.
Fixes bug 119400


git-svn-id: svn://10.0.0.236/trunk@123517 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-18 20:36:09 +00:00
ducarroz%netscape.com
7a2eba2709 Fix for bug 146584. We need to convert plain text data to HTML before inserting it into a HTML compose window. R=varada, SR=mscott
git-svn-id: svn://10.0.0.236/trunk@123516 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-18 20:34:10 +00:00
jst%netscape.com
e8443d3679 Adding new file for shared container elements. Not part of the build yet.
git-svn-id: svn://10.0.0.236/trunk@123513 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-18 20:03:54 +00:00
leaf%mozilla.org
83a9ba6026 adding java webclient for edburns (does not include blackwood)
git-svn-id: svn://10.0.0.236/trunk@123512 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-18 19:41:19 +00:00
pinkerton%netscape.com
5f466ecfab Add broken-image and loading-image gifs from dist/Embed/res
git-svn-id: svn://10.0.0.236/trunk@123511 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-18 19:07:34 +00:00
dougt%netscape.com
2842a2dd18 adding compreg.dat to package list. bug 152383 r=jj
git-svn-id: svn://10.0.0.236/trunk@123510 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-18 18:56:44 +00:00
pinkerton%netscape.com
f5a9707f87 Localize text and buttons (bug 148556)
git-svn-id: svn://10.0.0.236/trunk@123509 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-18 17:44:22 +00:00
pinkerton%netscape.com
648ccbb0bb add some strings
git-svn-id: svn://10.0.0.236/trunk@123508 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-18 17:43:39 +00:00
relyea%netscape.com
6414650fe0 1) Map flags both coming and going.
2) Finish transaction of the target database not the source database.


git-svn-id: svn://10.0.0.236/trunk@123507 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-18 16:41:41 +00:00
pinkerton%netscape.com
38a3814bbf Fix a warning
git-svn-id: svn://10.0.0.236/trunk@123506 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-18 14:35:12 +00:00
kaie%netscape.com
499a61f3ab b=145730 Avoid unnecessary repeated "encrypted page" alerts on JavaScript links.
r=jst sr=darin


git-svn-id: svn://10.0.0.236/trunk@123505 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-18 14:17:10 +00:00
pinkerton%netscape.com
62a1d41544 make us open url's as a service (bug 150860)
git-svn-id: svn://10.0.0.236/trunk@123504 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-18 13:52:17 +00:00
pinkerton%netscape.com
07377a75e2 Hookup more of the d/l progress dialog. change around the layout to get
rid of the dreaded groupboxes. remove a global variable.


git-svn-id: svn://10.0.0.236/trunk@123503 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-18 13:23:33 +00:00
rods%netscape.com
dbd287ce00 to fix breakage, using static cast.
git-svn-id: svn://10.0.0.236/trunk@123502 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-18 10:36:07 +00:00
bzbarsky%mit.edu
971edca6b3 layout tests, not part of build
git-svn-id: svn://10.0.0.236/trunk@123501 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-18 10:31:16 +00:00
bbaetz%student.usyd.edu.au
5c988c2ba0 Bug 152541 - After deleting remembered query it is still in page footer
r=jouni x2


git-svn-id: svn://10.0.0.236/trunk@123500 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-18 10:26:34 +00:00
racham%netscape.com
029d6ccdd3 Fixing bug 144563. Disable AccountManager panel elements and account setting preferences when the corresponding preferences are locked. This is a useful feature for Administrators and vendors. Special configuration tool to be used for generating a config file to feed the locked prefs to the app. r=srilatha, sr=bienvenu
git-svn-id: svn://10.0.0.236/trunk@123499 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-18 09:29:15 +00:00
glazman%netscape.com
0aa2a089cd nsHTMLEditor::GetInlinePropertyBase() was not detecting when the selection ends before first char of a text node; b=128401, r=brade, sr=kin
git-svn-id: svn://10.0.0.236/trunk@123498 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-18 09:20:07 +00:00
wtc%netscape.com
d642c6edd5 Bug 151940: SEC_PKCS12DecoderVerify should call SEC_ASN1DecoderFinish first
to detect insufficient input data error.


git-svn-id: svn://10.0.0.236/trunk@123497 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-18 05:00:39 +00:00
caillon%returnzero.com
ef6c5b4b10 Bug 152278, opening a groupmark shouldn't load about:blank into the active tab. r=blake sr=jag
git-svn-id: svn://10.0.0.236/trunk@123496 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-18 04:39:43 +00:00
arougthopher%lizardland.net
28efd0adf4 Bug#126843
Occasionally unable to get Focus set to URL bar and other text fields

fixed an ASSERTION when run with DEBUG enabled

r=serget@fi.tartu.ee


git-svn-id: svn://10.0.0.236/trunk@123495 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-18 04:11:07 +00:00
bzbarsky%mit.edu
fbbceb9ba0 Comments should match reality. No bug, r=jst, sr=jag
git-svn-id: svn://10.0.0.236/trunk@123494 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-18 02:55:09 +00:00
bzbarsky%mit.edu
adea31703d Check the status code of HTTP channels before blindly loading the
sheet.  Bug 112644, r=bbaetz, sr=darin


git-svn-id: svn://10.0.0.236/trunk@123493 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-18 02:46:11 +00:00
bzbarsky%mit.edu
8e8e728a62 fix rendering of <font size="+0">. Bug 150022, r=doron, sr=jst
git-svn-id: svn://10.0.0.236/trunk@123492 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-18 02:42:40 +00:00
kyle.yuan%sun.com
8057b841d9 Bug 133853 why always add <HTML> token into Tokenizer even there is an <HTML> token already?
r=harishd, sr=jst
Check in for Jerry Tan(jerry.tan@sun.com)'s fix.


git-svn-id: svn://10.0.0.236/trunk@123490 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-18 02:06:29 +00:00
srilatha%netscape.com
e02c16a0cb Fix for bug # 118804. Setting the width attribute on the directories List box
r=varada, andreww sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@123489 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-18 01:48:27 +00:00
mcafee%netscape.com
6989005c97 Adding xpcomsample to module map (152312). r=hwaara, sr=alecf. does not affect main seamonkey build.
git-svn-id: svn://10.0.0.236/trunk@123488 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-18 01:24:26 +00:00
rods%netscape.com
405c5bf75e Needs to be virtual (from sr's comments)
Implement the assign method with an "=" operator
Bug 151628 r=ccarlen sr=jst


git-svn-id: svn://10.0.0.236/trunk@123487 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-18 01:23:39 +00:00
mcafee%netscape.com
703b1a82b1 Explicitly call configure with sh, fixes windows (152312). r/code=hwaara, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@123486 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-18 01:18:46 +00:00
bzbarsky%mit.edu
9d76728323 fix build bustage -- views are not refcounted
git-svn-id: svn://10.0.0.236/trunk@123485 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-18 01:01:54 +00:00
seawood%netscape.com
da6eccbfc8 Bump lgot buffer again for MIPS builds.
Thanks to Nick Blievers <nickb@adacel.com.au> for the patch.
Bug #152453 r=cls


git-svn-id: svn://10.0.0.236/trunk@123484 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-18 01:01:07 +00:00
akkana%netscape.com
e38e444584 148713: prevent infinite loop when doing replace all backwards. r=brade sr=kin
git-svn-id: svn://10.0.0.236/trunk@123481 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-18 00:16:58 +00:00
rods%netscape.com
6eb9ee9ff3 Implement the assign method with an "=" operator
Bug 151628 r=ccarlen sr=jst
BUg CVS: ----------------------------------------------------------------------


git-svn-id: svn://10.0.0.236/trunk@123479 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-18 00:06:32 +00:00
alecf%netscape.com
c99c85379f add first-window case - when the window with the new title hasn't been seen, add it to the hashtable
git-svn-id: svn://10.0.0.236/trunk@123478 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-17 23:46:29 +00:00
bzbarsky%mit.edu
bd8809da27 NS4 measures image.x/image.y from the enclosing layer, not from the
body.  Bug 130415, r=jkeiser, sr=jst


git-svn-id: svn://10.0.0.236/trunk@123477 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-17 23:45:21 +00:00
cavin%netscape.com
b5784ffa5f Fix for 152449. Remember the CRC checksum for the updated card info in PatchHistoryTableWithNewID(). r=naving, sr=bienvenu.
git-svn-id: svn://10.0.0.236/trunk@123476 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-17 23:45:10 +00:00
alecf%netscape.com
2a4f3b2290 Not part of build
backing out my last change - totally unnecessary


git-svn-id: svn://10.0.0.236/trunk@123475 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-17 23:41:42 +00:00
kmcclusk%netscape.com
ecf379665c Save and restore transformation matrix translation components instead of setting a negative translation while painting to eliminate off by one pixel rendering errors in 120DPI display mode. bug=80530 r=dbaron sr=waterson
git-svn-id: svn://10.0.0.236/trunk@123474 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-17 23:35:15 +00:00
alecf%netscape.com
007d15c142 Not part of build
add category name to nsIWindowMediatorListener so listeners are created at startup


git-svn-id: svn://10.0.0.236/trunk@123473 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-17 23:25:21 +00:00
bzbarsky%mit.edu
7310cb4070 Bug 136670, bug 132688, add PR_LOG capability. r=jkeiser,sr=darin
git-svn-id: svn://10.0.0.236/trunk@123472 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-17 23:20:46 +00:00
mkaply%us.ibm.com
ef03642949 #128127
r=peterl, sr=beard
Add framework for plugin and java windowtypes


git-svn-id: svn://10.0.0.236/trunk@123471 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-17 22:52:48 +00:00
gerv%gerv.net
d223c17039 Bug 150955 - confirmation doesn't propagate when reassigning to new product/component. Patch by gerv; 2xr=bbaetz.
git-svn-id: svn://10.0.0.236/trunk@123470 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-17 21:52:19 +00:00
ssu%netscape.com
4f10888532 fixing bug 134745 - mail notification icon in system tray is the wrong icon (yellow triangle). r=bhuvan, sr=mscott
git-svn-id: svn://10.0.0.236/trunk@123469 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-17 21:51:50 +00:00
nhotta%netscape.com
21b9094220 Check null pointer for arguments of Unicode conversion util functions,
bug 151769, r=ducarroz, sr=bienvenu.


git-svn-id: svn://10.0.0.236/trunk@123468 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-17 21:44:51 +00:00
seawood%netscape.com
1f965bacc3 Fix srcdir copy race condition by explicitly doing a cmp between the srcfile and the target.
Fixing tinderbox bustage.


git-svn-id: svn://10.0.0.236/trunk@123467 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-17 21:39:35 +00:00
tor%cs.brown.edu
8b077e2524 Bug 135579 - small interlaced PNGs not decoded correctly.
Patch from randeg@alum.rpi.edu, rs=tor.


git-svn-id: svn://10.0.0.236/trunk@123466 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-17 21:32:03 +00:00
ducarroz%netscape.com
543c79bf90 Fix for bug 151954. Fix bogus PR_Malloc check. Patch submitted by dbradley@netscape.com. R=ducarroz, SR=bienvenu
git-svn-id: svn://10.0.0.236/trunk@123465 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-17 21:22:29 +00:00
ducarroz%netscape.com
02934f0cd2 Fix for bug 150440. Change strings to be conform to spec. Patch submitted by mybugzilla@juima.org. R=ducarroz, SR=bienvenu
git-svn-id: svn://10.0.0.236/trunk@123464 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-17 21:16:48 +00:00
darin%netscape.com
65faf62727 fixes bug 140107 "HTTP headers show in frame [when server pipelines chunked
responses]" r=dougt sr=rpotts


git-svn-id: svn://10.0.0.236/trunk@123463 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-17 21:08:46 +00:00
ducarroz%netscape.com
beab16ccef Fix for bug 145291. We must generate the headers of all the children of an multipart/appledouble attachment when doing parts-on-demand in order to have all the needed information to generate the attachment entry in the UI. R=cavin, SR=bienvenu
git-svn-id: svn://10.0.0.236/trunk@123461 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-17 21:07:55 +00:00
mkaply%us.ibm.com
9d5e412a70 #150735
r=jeffreyj@us.ibm.com, sr=blizzard
OS/2 only - remove unnecessary class nsCanvas


git-svn-id: svn://10.0.0.236/trunk@123460 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-17 21:06:09 +00:00
shaver%mozilla.org
e97285d861 Bug 76968: expand ~/ into NS_OS_HOME_DIR in nsLocalFileUnix. r=bzbarsky,
sr=blizzard.


git-svn-id: svn://10.0.0.236/trunk@123459 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-17 21:03:43 +00:00
mkaply%us.ibm.com
b53a33b90f #147702
r=jeffreyj@us.ibm.com, sr=blizzard
OS/2 only - rewrite window proc to better handle things happening during deletion


git-svn-id: svn://10.0.0.236/trunk@123457 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-17 20:54:08 +00:00
naving%netscape.com
adb51ca23c bugscape 15244 r=cavin sr=bienvenu Make webmail folder "Draft" show Recipient instead of Sender
git-svn-id: svn://10.0.0.236/trunk@123455 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-17 20:49:44 +00:00
bzbarsky%mit.edu
93a8587b78 Don't send HEAD to FTP servers behind HTTP proxies. Bug 148813,
r=bbaetz, sr=darin


git-svn-id: svn://10.0.0.236/trunk@123454 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-17 20:49:42 +00:00
mkaply%us.ibm.com
2369ac1bcb #150679
r=jeffreyj@us.ibm.com, sr=mscott
OS/2 only - add OS mail integration


git-svn-id: svn://10.0.0.236/trunk@123451 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-17 20:49:26 +00:00
cmanske%netscape.com
3404165b95 Fixed crash when inserting column in table, b=152320, r=brade, sr=kin
git-svn-id: svn://10.0.0.236/trunk@123450 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-17 20:40:47 +00:00
shaver%mozilla.org
c2d949e101 Bug 116653: Teach x-remote about openURL(,new-tab). r=blizzard, sr=jag.
git-svn-id: svn://10.0.0.236/trunk@123449 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-17 20:39:54 +00:00
relyea%netscape.com
d3c91087e3 Standardize the open flags as 'enums' when using multiaccess databases, no matter
if we are using PR_ versions of the flags or O_ versions of the flags.


git-svn-id: svn://10.0.0.236/trunk@123448 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-17 18:46:27 +00:00
seawood%netscape.com
b795045d2a Re-adding with executable bit set.
git-svn-id: svn://10.0.0.236/trunk@123445 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-17 17:30:26 +00:00
seawood%netscape.com
5701b22ce4 Oops. These need to be executable by default
git-svn-id: svn://10.0.0.236/trunk@123444 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-17 17:28:39 +00:00
pinkerton%netscape.com
86ce5fd16c Hookup copy/paste/etc context menus for text areas. (bug 151662)
git-svn-id: svn://10.0.0.236/trunk@123443 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-17 17:14:51 +00:00
leaf%mozilla.org
b6af887650 Automated update
git-svn-id: svn://10.0.0.236/trunk@123442 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-17 17:10:43 +00:00
seawood%netscape.com
d401003cfc Fixing win32 gmake builds lack of debugging information problem by working around a combination MSVC & cygwin make deficiencies:
* We must use the full path to the source file when calling MSVC so that debugging information shows up in the object files.
* Because of cygwin's use of /cygdrive when using full paths, we must use a cygwin-wrapper script in some cases to allow native win32 programs to use a fully qualified cygwin path.
* We have to call configure using the full path so that $(srcdir) contains the
full path in the Makefiles. The rules have been changed for win32 so that it
always use $(srcdir)/$*.{c,cpp} as the sourcefile name even when the file is in
the cwd.  This works around both the /cygdrive issue and the msvc's path info
optimization.
* We still use the wrapper when calling rc.exe & nsinstall.  nsinstall
frequently takes multiple args and is called all over the tree so changing each
calling site is going to be expensive.	(I'll have to check  the logs again but
I think the rc wrapping can go.)
* nspr & ldap still use the wrappers for all native win32 progs.  Neither nspr
nor ldap uses the acoutput-fast.pl script to speed up the substitution of
@srcdir@ into their Makefiles so, makefile substitution will break if we use
dos-paths.
* In the handful of directories where we copy srcfiles from another directory
in lieu of using VPATHs, we have to now copy those files to $(srcdir) so that
the default rules can find them.
Bug #141834 r=leaf,wtc,dmose,mcs


git-svn-id: svn://10.0.0.236/trunk@123440 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-17 17:09:57 +00:00
seawood%netscape.com
77e5bb115a Fixing win32 gmake builds lack of debugging information problem by working around a combination MSVC & cygwin make deficiencies:
* We must use the full path to the source file when calling MSVC so that debugging information shows up in the object files.
* Because of cygwin's use of /cygdrive when using full paths, we must use a cygwin-wrapper script in some cases to allow native win32 programs to use a fully qualified cygwin path.
* We have to call configure using the full path so that $(srcdir) contains the
full path in the Makefiles. The rules have been changed for win32 so that it
always use $(srcdir)/$*.{c,cpp} as the sourcefile name even when the file is in
the cwd.  This works around both the /cygdrive issue and the msvc's path info
optimization.
* We still use the wrapper when calling rc.exe & nsinstall.  nsinstall
frequently takes multiple args and is called all over the tree so changing each
calling site is going to be expensive.	(I'll have to check  the logs again but
I think the rc wrapping can go.)
* nspr & ldap still use the wrappers for all native win32 progs.  Neither nspr
nor ldap uses the acoutput-fast.pl script to speed up the substitution of
@srcdir@ into their Makefiles so, makefile substitution will break if we use
dos-paths.
* In the handful of directories where we copy srcfiles from another directory
in lieu of using VPATHs, we have to now copy those files to $(srcdir) so that
the default rules can find them.
Bug #141834 r=leaf,wtc,dmose,mcs


git-svn-id: svn://10.0.0.236/trunk@123439 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-17 17:07:17 +00:00
myk%mozilla.org
a3473a60eb Fix for bug 150792: Locks profiles table so adding a CC while creating a bug doesn't fail.
2xr=bbaetz


git-svn-id: svn://10.0.0.236/trunk@123438 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-17 15:56:09 +00:00
pinkerton%netscape.com
bc31c14df0 Strip whitespace around url (bug 149082)
git-svn-id: svn://10.0.0.236/trunk@123437 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-17 15:24:29 +00:00
pinkerton%netscape.com
432946917c fixing up locked profile error text.
git-svn-id: svn://10.0.0.236/trunk@123436 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-17 15:16:46 +00:00
pinkerton%netscape.com
734cfd7f6b Fix for crash launching when another version is already running. bug 148556
git-svn-id: svn://10.0.0.236/trunk@123435 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-17 15:10:37 +00:00
dcone%netscape.com
a3cd5903f0 b=142513 r=kmmclusk sr=waterson Fixed blue text, used correct type for calculation.
git-svn-id: svn://10.0.0.236/trunk@123434 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-17 14:03:39 +00:00
mikep%oeone.com
fa0a102368 Adding in check for calendar window to remove js error.
git-svn-id: svn://10.0.0.236/trunk@123433 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-17 13:39:29 +00:00
mikep%oeone.com
0df4786fe7 Adding fix from bug 146212, allowing silent import of events.
git-svn-id: svn://10.0.0.236/trunk@123432 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-17 13:38:57 +00:00
mostafah%oeone.com
5f93e66fd4 Fixed bug 152274: Calling fetchEvent with null parameter crashes Mozilla
git-svn-id: svn://10.0.0.236/trunk@123431 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-17 12:42:24 +00:00
bbaetz%student.usyd.edu.au
63a996279d Bug 151529 - No list of votes shown if there is a + sign in the address
r=jouni x2


git-svn-id: svn://10.0.0.236/trunk@123430 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-17 11:29:51 +00:00
kaie%netscape.com
4ecef3845e b=148610 Lock icon should be updated as early as possible.
r=javi sr=rpotts


git-svn-id: svn://10.0.0.236/trunk@123429 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-17 09:56:14 +00:00
bbaetz%student.usyd.edu.au
4403bbe04e Bug 151053, ConnectToDatabase/quietly_check_login sometimes not called
early enough
r=mattyt, jouni


git-svn-id: svn://10.0.0.236/trunk@123428 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-17 09:39:48 +00:00
rogerl%netscape.com
6799a03665 Start.
git-svn-id: svn://10.0.0.236/trunk@123427 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-17 06:40:50 +00:00
shanjian%netscape.com
d2b36ef7f5 #84668 Ugly Chinese font in dialogs and menu on simplified chinese windows
Force system font to be 9 when default is 8. This only applies to simplified
chinese system.
r=ftang, sr=alecf


git-svn-id: svn://10.0.0.236/trunk@123426 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-17 05:22:34 +00:00
henry.jia%sun.com
cbd4179771 Bug 150627 inconsistant between display and action(modifier) of short cut key for function 'Select All'
r=Akkana
sr=hewitt


git-svn-id: svn://10.0.0.236/trunk@123422 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-17 01:43:29 +00:00
nboyd%atg.com
c048ebabbe Patch from morten@nvg.org :
I keep getting syntax errors with no line numbers as well.

That happens when I use Context.compileReader(..) to compile the script. The
DefaultErrorReporter will throw an exception with only the message and not the
line it happened on.

It is of course easy to workaround using your own error reporter, but I've
attached a patch to add on the line and source name so the DefaultErrorReporter
gives the similar output as EcmaError if that is wanted.


git-svn-id: svn://10.0.0.236/trunk@123421 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-17 00:49:47 +00:00
nboyd%atg.com
1eac87dfa5 Update last qualified release statement.
git-svn-id: svn://10.0.0.236/trunk@123420 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-16 23:51:15 +00:00
stephend%netscape.com
1fdca35cb1 Bug145409. JS strict warnings in certManager.js. Patch by Stephen Walker <walk84@yahoo.com> r=kaie@netscape.com, sr=jaggernaut@netscape.com
git-svn-id: svn://10.0.0.236/trunk@123419 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-16 21:19:25 +00:00
sicking%bigfoot.com
1a730ed138 Attribute axis should not include namespace declarations.
b=123357 r=peterv sr=jst


git-svn-id: svn://10.0.0.236/trunk@123417 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-16 16:58:13 +00:00
bernd.mielke%snafu.de
9843d9afab running the layout regression tests - a description not part of any build
git-svn-id: svn://10.0.0.236/trunk@123415 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-16 10:38:06 +00:00
cbiesinger%web.de
624f81eece bug 150002 r=paper sr=tor
make XBM images transparent


git-svn-id: svn://10.0.0.236/trunk@123414 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-16 08:27:25 +00:00
samuel%sieb.net
695cf90960 Bug 143039 - Typo in nsXmlRpcClient.js
r=samuel@sieb.net
sr=heikki


git-svn-id: svn://10.0.0.236/trunk@123413 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-16 06:17:54 +00:00
samuel%sieb.net
7db2a571f4 Bug 137171 - XML-RPC bug handling dates with months 10 and over
r=rginda
sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@123412 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-16 06:14:31 +00:00
bbaetz%student.usyd.edu.au
7ff16f42c2 Bug 151369 - need to trim the entered assignee's email address
r=mattyt x2


git-svn-id: svn://10.0.0.236/trunk@123411 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-16 05:28:17 +00:00
arougthopher%lizardland.net
7ee08a9607 Bug#149332
Mozilla doesn't save its windows position when closed.

adds an implementation of GetScreemBounds, and registers frame movements, so they are saved and used when reopenning the window.

r=serget@fi.tartu.ee


git-svn-id: svn://10.0.0.236/trunk@123410 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-16 02:58:49 +00:00
arougthopher%lizardland.net
3e4a538051 Bug#152085
nsSound not being registered as a component under BeOS

The nsSound component was not being registerred, causing ChatZilla to not work properly.

r=serget@fi.tartu.ee


git-svn-id: svn://10.0.0.236/trunk@123409 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-16 02:51:27 +00:00
waterson%netscape.com
40294bf2aa Bug 146125. Zero top- and bottom-margin for <th> in same cases we zero for <td>. r=dbaron, sr=kin
git-svn-id: svn://10.0.0.236/trunk@123407 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-16 00:51:55 +00:00
waterson%netscape.com
f601d73d1d Bug 146797. Bullet-proof RDF containers so that uninitialized use (e.g., from script) won't cause a crash. r=tingley, sr=shaver
git-svn-id: svn://10.0.0.236/trunk@123406 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-16 00:44:06 +00:00
bryner%netscape.com
b848d573e1 Fix crasher 151568 caused by my checkin for focus bug 131651. r=dbaron, sr=blake.
git-svn-id: svn://10.0.0.236/trunk@123405 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-15 23:38:06 +00:00
arougthopher%lizardland.net
cc45d84576 Bug#126843
Occasionally unable to get Focues set to URL bar and other widgets

fixes a long standing focus issue under the BeOS port

r=arougthopher


git-svn-id: svn://10.0.0.236/trunk@123404 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-15 23:31:00 +00:00
caillon%returnzero.com
922782efff Bug 134800, Clicking on a groupmark shouldn't clobber all open tabs. r=jag sr=blake
git-svn-id: svn://10.0.0.236/trunk@123401 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-15 22:30:06 +00:00
bzbarsky%mit.edu
900c1c5529 Fixing strict js warning. Bug 79825, patch by neil@parkwaycc.co.uk, r=varada,sr=jag
git-svn-id: svn://10.0.0.236/trunk@123400 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-15 22:21:51 +00:00
cbiesinger%web.de
f805641c10 bug 144488 patch by leaf r=timeless sr=tor
Change get new themes link to http://mozilla.org/themes/download/ instead of xulplanet


git-svn-id: svn://10.0.0.236/trunk@123396 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-15 21:29:52 +00:00
ere%atp.fi
4ec4085cab Bug 146559 New mail indicator does not work for non-inbox imap folders
r=bienvenu@netscape.com, sr=brendan@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@123391 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-15 20:07:49 +00:00
ere%atp.fi
0e191b52d4 Bug 120106 IMAP: Empty mail when disconnected
r=bienvenu@netscape.com, sr=brendan.mozilla.org


git-svn-id: svn://10.0.0.236/trunk@123390 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-15 19:51:47 +00:00
beard%netscape.com
1720b469d4 added #if QUICKTIME_THROBBER to conditionally use Quicktime Movie to implement throbber.
git-svn-id: svn://10.0.0.236/trunk@123389 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-15 16:34:48 +00:00
peterlubczynski%netscape.com
6d32e25bf6 Fixing IPIX for Mac Classic: SetWindow needed to be called and nsObjectFrame::DidReflow() needed to complete on Mac as well, bug 144896 r=av sr=beard
git-svn-id: svn://10.0.0.236/trunk@123388 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-15 16:05:09 +00:00
bryner%netscape.com
82cb05e5d3 Fix a crash on cbs.com in Mac mach-o builds by making sure to check the return value from initializing the image frame (which fails on mac for images wider that 4096 pixels or so). Bug 149091, r=saari, sr=ben.
git-svn-id: svn://10.0.0.236/trunk@123387 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-15 06:40:15 +00:00
seawood%netscape.com
eee428afe5 Use macros to declare static callback functions to make OS/2 happy.
Fixing tinderbox bustage.


git-svn-id: svn://10.0.0.236/trunk@123385 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-15 05:56:20 +00:00
bbaetz%student.usyd.edu.au
4e72d39123 Bug 148712 - add component with error/invalid initial owner results in
double header output
patch by stu@xanboo.com (Stu Tomlinson), r=jouni, bbaetz


git-svn-id: svn://10.0.0.236/trunk@123384 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-15 05:35:59 +00:00
dougt%netscape.com
3d5dfe1810 fixing a uninitialized var
git-svn-id: svn://10.0.0.236/trunk@123381 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-15 03:58:10 +00:00
bbaetz%student.usyd.edu.au
c07589174d Bug 151695 - assignee/qa contact can't access secure bugs
r=myk x2


git-svn-id: svn://10.0.0.236/trunk@123380 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-15 01:56:14 +00:00
beard%netscape.com
2f4e57a199 Bare bones "Search" toolbar button. Need a real icon, using the Finder's for now.
git-svn-id: svn://10.0.0.236/trunk@123379 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-15 01:42:05 +00:00
oeschger%netscape.com
3a70743e87 additions to search db for help, dispensaton per 122806
git-svn-id: svn://10.0.0.236/trunk@123378 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-15 00:49:43 +00:00
beard%netscape.com
39a9d51262 Only run the throbber timer if the throbber toolbar item is visible, and increase the timer interval to 1/5 second to use less CPU.
git-svn-id: svn://10.0.0.236/trunk@123376 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-15 00:41:03 +00:00
mstoltz%netscape.com
3cba7a04ae 133170 - Need to re-check host for security on a redirect after a call to
XMLHttpRequest.open(). For xmlextras, r=heikki, sr=jband. For caps,
r=bzbarsky, sr=jst
147754 - Add same-origin check to XMLSerializer. Patch by jst. r=mstoltz,
sr=jband
113351 - Add same-origin check to XSL Include. Patch by peterv and jst,
r=mstoltz, sr=rpotts
135267 - Add same-origin check to stylesheets included via LINK tags.
r=dveditz, sr=scc


git-svn-id: svn://10.0.0.236/trunk@123373 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 23:54:18 +00:00
rbs%maths.uq.edu.au
65cf3c1192 Treat the attributes of <mpadded> correctly, b=148326, r=roc+moz, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@123366 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 23:20:03 +00:00
heikki%netscape.com
67bca4fa92 Forgot to remove extra addref.
git-svn-id: svn://10.0.0.236/trunk@123365 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 23:19:59 +00:00
beard%netscape.com
7ed0e8f76a Added throbber images to static target.
git-svn-id: svn://10.0.0.236/trunk@123364 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 23:18:14 +00:00
naving%netscape.com
3e45f6cfa0 15244 r=cavin sr=bienvenu Make aol "Sent Mail" and netscape webmail "Sent" folders show "Recipient" column instead of "Sender" column in thread pane.
git-svn-id: svn://10.0.0.236/trunk@123363 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 23:03:49 +00:00
naving%netscape.com
4d6a8f11a0 136721 r=bhuvan sr=bienvenu. fixing bug where news server should be prepopulated in account wizard after running auto-subscribe urls.
git-svn-id: svn://10.0.0.236/trunk@123362 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 22:53:15 +00:00
cmanske%netscape.com
2769794194 Forgot contributor line for b=150915, fix by r=ask@swva.net, r=cmanske, sr=kin
git-svn-id: svn://10.0.0.236/trunk@123361 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 22:52:06 +00:00
beard%netscape.com
170982670e Replace throbber-NN.tif with throbber-NN.gif.
git-svn-id: svn://10.0.0.236/trunk@123360 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 22:50:25 +00:00
naving%netscape.com
dc4de4894a 136721 r=bhuvan sr=bienvenu. fixing bug where news server should be prepopulated in account wizard after running auto-subscribe urls.
git-svn-id: svn://10.0.0.236/trunk@123359 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 22:49:22 +00:00
beard%netscape.com
c28831166e Fix broken throbber images. Switch to smaller .gif format.
git-svn-id: svn://10.0.0.236/trunk@123358 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 22:47:46 +00:00
dougt%netscape.com
0fa36f3315 strdup is not defined on the mac...
git-svn-id: svn://10.0.0.236/trunk@123356 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 22:25:24 +00:00
akkana%netscape.com
8c220f972c 145727: use nsString.FindChar, clean up conflicting string usages. Patch from skamio@netscape.net (Shotaro Kamio), r=akkana, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@123355 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 22:10:56 +00:00
bnesse%netscape.com
ee70597270 Fix for bug 141035. Missing autoconfig file in packaging. r=alecf, sr=dveditz.
git-svn-id: svn://10.0.0.236/trunk@123354 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 21:57:18 +00:00
mcafee%netscape.com
e4120d8a6c Fix REQUIRES-built TestGtkEmbed, missing directories for webbrwsr module. Adding some missing dirs to embedcomponents map as well. (149624) r=blythe, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@123353 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 21:51:37 +00:00
dougt%netscape.com
90166a6762 48888 missing makefile.win change
git-svn-id: svn://10.0.0.236/trunk@123352 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 21:50:50 +00:00
pinkerton%netscape.com
1ac239a535 Null params are allowed to be passed to GetDimensions. Just check when
they're being accessed. bug 151885


git-svn-id: svn://10.0.0.236/trunk@123351 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 21:40:04 +00:00
dougt%netscape.com
dffd6e4f8a Fixes 48888 - xpcom flat file backend. r=dp@netscape.com sr=waterson@netscape.com
git-svn-id: svn://10.0.0.236/trunk@123350 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 21:33:05 +00:00
oeschger%netscape.com
e9bfb59882 fixing help button in offline dialog, bug=129540, attachment 86751, r=andreww, sr=alecf, a=dbaron
git-svn-id: svn://10.0.0.236/trunk@123349 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 21:03:16 +00:00
tor%cs.brown.edu
8872709129 Bug 149743 - remove dead gfx2 files from the tree. rs=blizzard
git-svn-id: svn://10.0.0.236/trunk@123348 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 20:46:40 +00:00
peterlubczynski%netscape.com
3f4bbe0254 Fixing a crash with Java [@nsPluginHostImpl::AddInstanceToActiveList][@ jpins32.dll] where it doesn't addref the peer or returns error from Initialize, bug 140931 r=serge sr=beard
git-svn-id: svn://10.0.0.236/trunk@123347 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 20:45:29 +00:00
varga%utcru.sk
2a0ec34be8 Part of fix for bug 123719.
- using sort variables instead of cycleHeader()

r=neil, sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@123346 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 20:37:03 +00:00
alecf%netscape.com
496227a070 not part of build
add windowds to windows nmake build


git-svn-id: svn://10.0.0.236/trunk@123345 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 20:31:44 +00:00
pinkerton%netscape.com
adff61483a Update number of throbber images
git-svn-id: svn://10.0.0.236/trunk@123344 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 20:20:43 +00:00
pinkerton%netscape.com
2134ab0795 Throbber that needs some work.
git-svn-id: svn://10.0.0.236/trunk@123343 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 20:19:09 +00:00
heikki%netscape.com
0e9d23116e Bug 151745, need to stabilize XPCOM object before using (prevents a crash in SVG). Patch from alex.fritze@crocodile-clips.com, r=peterv, sr=heikki.
git-svn-id: svn://10.0.0.236/trunk@123342 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 20:02:29 +00:00
mitchf%netscape.com
ab9c3caa7a enlarged DynamicText widget lengths for longer pathnames
half of fix for bug 119400


git-svn-id: svn://10.0.0.236/trunk@123341 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 19:30:32 +00:00
mitchf%netscape.com
8e1853b8b8 Changed length of pathname trimming
Half of fix for bug 119400


git-svn-id: svn://10.0.0.236/trunk@123340 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 19:28:57 +00:00
cmanske%netscape.com
749479c013 Support 'file://' as destination protocol in Publishing, b=142171, r=brade, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@123339 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 19:17:57 +00:00
ftang%netscape.com
533691a6eb fix bug 15004. r=yokoyama sr=kin carry the member data correctly into the merged function.
git-svn-id: svn://10.0.0.236/trunk@123338 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 19:05:11 +00:00
cmanske%netscape.com
0f3c61e24e Fix font names in sans-serif font group, b=150915, fix by r=ask@swva.net, r=cmanske, sr=kin
git-svn-id: svn://10.0.0.236/trunk@123337 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 19:04:15 +00:00
bzbarsky%mit.edu
27c460e18b Remove UI for the target="_blank" blocking for now. Bug 78037, patch by
jonasj@jonasj.dk (Jonas Jorgensen), r=doron,bzbarsky, sr=jag


git-svn-id: svn://10.0.0.236/trunk@123336 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 18:56:19 +00:00
heikki%netscape.com
76e55d41f0 Bug 125583, disable automatic XLinks in mail, and make it so that pref dom.disable_open_during_load also disables all automatic XLinks that try to open in new window. r=harishd, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@123335 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 18:52:16 +00:00
pinkerton%netscape.com
85a1996b1f Fix throbber placement and label, fix Delete menu item
git-svn-id: svn://10.0.0.236/trunk@123334 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 18:44:52 +00:00
varada%netscape.com
a939fef597 fix for bug#144569;should import smtp username from eudora,oe and outlook;r=srilatha;sr=bienvenu
git-svn-id: svn://10.0.0.236/trunk@123332 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 18:32:21 +00:00
pavlov%netscape.com
eba5f529b4 checking in bug 101018 for paper@animecity.nu. r=pavlov sr=tor@acm.org.
git-svn-id: svn://10.0.0.236/trunk@123331 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 18:25:33 +00:00
nicolson%netscape.com
a9e7516ae5 add new tests.
git-svn-id: svn://10.0.0.236/trunk@123330 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 18:15:45 +00:00
nicolson%netscape.com
d785948113 remove broken code until bug is fixed.
git-svn-id: svn://10.0.0.236/trunk@123329 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 18:15:21 +00:00
nicolson%netscape.com
77c0f2a80a remove bogus comment.
git-svn-id: svn://10.0.0.236/trunk@123328 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 18:13:27 +00:00
beard%netscape.com
e2febf0616 Added calls to start/stop the throbber while pages load.
git-svn-id: svn://10.0.0.236/trunk@123327 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 18:10:26 +00:00
beard%netscape.com
fb3b5090df Added throbber images and Quicktime.framework
git-svn-id: svn://10.0.0.236/trunk@123326 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 18:09:40 +00:00
alecf%netscape.com
6623fb67f1 not part of build
update window datasource for bug 132175 - remove debugging, kill intaskslist support (nobody uses it anyway)


git-svn-id: svn://10.0.0.236/trunk@123325 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 18:08:23 +00:00
beard%netscape.com
9d067b2d3c Added Throbber toolbar item.
git-svn-id: svn://10.0.0.236/trunk@123324 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 18:07:08 +00:00
ducarroz%netscape.com
47dbeb95ff Fix for bug 80819. Do not automatically generate a message ID for news posting. Patch provided by frank.schoenheit@sun.com. R=ducarroz, SR=bienvenu
git-svn-id: svn://10.0.0.236/trunk@123323 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 18:07:07 +00:00
pinkerton%netscape.com
7d64dcef9e fix pref to turn off cg metrics. bug 149427, r=ccarlen/sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@123322 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 17:50:24 +00:00
peterlubczynski%netscape.com
866d996c57 Fixing NS_MakeAbsoluteURI so it doesn't crash on default parameters, bug 148233 r=serge, sr=darin
git-svn-id: svn://10.0.0.236/trunk@123321 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 17:44:20 +00:00
relyea%netscape.com
e85aa158d5 check version of the existing DB, not the updatedb.
git-svn-id: svn://10.0.0.236/trunk@123320 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 17:29:56 +00:00
myk%mozilla.org
af3f6a837f Fix for bug 151658: get UI for moving bugs showing again.
r=gerv,bbaetz


git-svn-id: svn://10.0.0.236/trunk@123319 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 16:56:20 +00:00
karnaze%netscape.com
e519a40b96 new regression tests, not affecting the build.
git-svn-id: svn://10.0.0.236/trunk@123318 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 14:56:54 +00:00
karnaze%netscape.com
54191082bf bug 148399 - fix places where patch in bug 145305 incorrectly changed checks for NS_FRAME_COMPLETE to use NS_FRAME_IS_NOT_COMPLETE macro. sr=kin, r=alexsavulov
git-svn-id: svn://10.0.0.236/trunk@123317 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 14:40:02 +00:00
karnaze%netscape.com
924ea247db bug 148245 - only split floaters when printing if the height is constrained, never split floating first letters. sr=waterson
git-svn-id: svn://10.0.0.236/trunk@123316 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 14:30:33 +00:00
karnaze%netscape.com
9f770f5106 bug 151230 - consider style width when calculating avail width for a cell only during initial reflow. sr=kin, r=alexsavulov
git-svn-id: svn://10.0.0.236/trunk@123315 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 14:21:03 +00:00
karnaze%netscape.com
e241f72315 bug 148338 - fixed optimization in nsTableRowGroupFrame::CalculateRowHeights to only process the newly added rows. sr=waterson, r=bernd
git-svn-id: svn://10.0.0.236/trunk@123314 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 14:17:01 +00:00
glazman%netscape.com
fa208cf299 Making nsCSSDeclaration::GetValue() call itself to respond !important values when needed was making the CSS Parser choke in nsCSSParserImpl::AppendValue()
b=148501, r=brade, r=bzbarsky, sr=jst


git-svn-id: svn://10.0.0.236/trunk@123313 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 12:36:43 +00:00
ccarlen%netscape.com
a7e7d2a7c2 Bug 134448 - xpti needs to scan OS-defined plugin dirs. r=peterl, sr=beard
git-svn-id: svn://10.0.0.236/trunk@123312 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 12:30:44 +00:00
rods%netscape.com
99a9d007bd Add an interface to nsDataObjectCollection so we can QI to check to make sure
it is one of our objects before doing the static cast.
Bug 106211 r=pink sr=jst


git-svn-id: svn://10.0.0.236/trunk@123311 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 11:28:13 +00:00
ssu%netscape.com
9b174da0a3 fixing bug 134745 - mail notification icon in system tray is the wrong icon (yellow triangle). r=varada, sr=mscott
git-svn-id: svn://10.0.0.236/trunk@123310 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 08:38:29 +00:00
gerv%gerv.net
627b67ed9c Bug 151122 - Email prefs: Reporter / Owner messed up. Patch by jouni; r=gerv, bbbaetz.
git-svn-id: svn://10.0.0.236/trunk@123309 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 07:20:22 +00:00
jkeiser%netscape.com
cf0eaecfb1 Make enter fire onChange for non-dropped-down select. bug 150759, r=rods@netscape.com, sr=kin@netscape.com
git-svn-id: svn://10.0.0.236/trunk@123308 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 06:50:22 +00:00
jkeiser%netscape.com
be99cc147f Make form within table or tr not create a cell frame and screw up layout. bug 149282, r=dbaron@fas.harvard.edu, sr=waterson@netscape.com
git-svn-id: svn://10.0.0.236/trunk@123307 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 06:47:35 +00:00
kin%netscape.com
e85d2ba2cf Fix for bug 150566 (Readonly text fields aren't read-only)
Use kNameSpaceID_None when calling GetAttr() so that the
backend find attribute code in the content module matches
against atoms.

Removed calls to GetNameSpaceID().

r=jkeiser@netscape.com  sr=jst@netscape.com


git-svn-id: svn://10.0.0.236/trunk@123306 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 06:01:29 +00:00
wtc%netscape.com
f6ea2a23b1 The previous checkin didn't work. Backed it out.
git-svn-id: svn://10.0.0.236/trunk@123305 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 05:37:41 +00:00
seawood%netscape.com
0785c0f7d3 Use ftp.mozilla.org for the ftp test as ftp.netscape.com is ironicly unreachable from inside the Netscape firewall.
git-svn-id: svn://10.0.0.236/trunk@123302 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 05:29:20 +00:00
wtc%netscape.com
3e4310c8c8 Bug 151722: addr is in shared memory and is modified by another process, so
it needs to be declared volatile.


git-svn-id: svn://10.0.0.236/trunk@123300 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 05:25:52 +00:00
seawood%netscape.com
87c856e6bd Use the same name for the application profile directory in the registry as the profile manager does.
Bug #146150 r=arougthopher


git-svn-id: svn://10.0.0.236/trunk@123299 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 05:08:05 +00:00
wtc%netscape.com
6dfc18db5c Bug 151711: gcc on OSF1 needs to use the -mieee flag.
git-svn-id: svn://10.0.0.236/trunk@123298 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 05:05:59 +00:00
dprice%netscape.com
6cbca3a38a 149791 r=curt sr=dveditz
make superseded components invisible in selection list


git-svn-id: svn://10.0.0.236/trunk@123297 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 04:59:38 +00:00
dprice%netscape.com
968e75d5b8 137384 r=curt sr=dveditz
license file included with saved setup files


git-svn-id: svn://10.0.0.236/trunk@123296 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 04:56:39 +00:00
joki%netscape.com
bbd30f7c20 Fix for bug 123700, send synthetic mouseenter/out messages to IFRAME elements to allow tracking when mouse is inside IFRAME. r:harishd, sr:jst
git-svn-id: svn://10.0.0.236/trunk@123295 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 04:14:55 +00:00
jay.yan%sun.com
1ab12e40c7 bug 137106 need to move changes to nsPlatformToDOMKeyCOde into gtk2,r=akk,sr=blizard
git-svn-id: svn://10.0.0.236/trunk@123294 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 03:37:25 +00:00
wtc%netscape.com
b6972ae532 Bug 125819: fixed problems compiling using gcc on OSF1. The patch is
contributed by Chris Seawood <seawood@netscape.com>.
Modified Files: configure configure.in unix.c uxrng.c


git-svn-id: svn://10.0.0.236/trunk@123293 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 03:24:33 +00:00
cotter%netscape.com
160e779658 ongoing help content updates per bugzilla 122806 & ADT, r=oeschger; latest privacy & security legal reviews, formatting updates
git-svn-id: svn://10.0.0.236/trunk@123287 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 02:19:38 +00:00
kaie%netscape.com
c4ca9e1986 b=119394 Support fetching certificates from LDAP servers.
r=javi/dmose sr=mscott


git-svn-id: svn://10.0.0.236/trunk@123285 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 02:10:02 +00:00
srilatha%netscape.com
fc1092ad79 Fix for bug # 149758. Pre-configuring and locking ldap server preferences
r=rdayal, sr=sspitzer.


git-svn-id: svn://10.0.0.236/trunk@123283 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 01:56:45 +00:00
aaronl%netscape.com
9ece420781 Bug 148007 - Active Accessibility: wrong accState for XUL label and description elements. r=kyle, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@123282 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 01:47:35 +00:00
aaronl%netscape.com
df8aa3ff05 Bug 147976 - Active Accessibility: progress meter get_accValue() sometimes returning value with 2 Progress meter <label> not getting picked up in get_accName(). r=kyle, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@123281 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 01:47:32 +00:00
aaronl%netscape.com
13c2f92491 Bug 147756 - Active Accessibility: get_accValue returning NS_ERROR_FAILURE for selects. r=kyle, sr=jst
git-svn-id: svn://10.0.0.236/trunk@123280 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 01:47:26 +00:00
naving%netscape.com
7e77598a7c 150716 patch by bienvenu and darin. r=dougt sr=bienvenu. make compact folders work again. The fix is to clear all the member variables pertaining to the request before calling OnStopRequest
git-svn-id: svn://10.0.0.236/trunk@123279 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 01:40:54 +00:00
dmose%netscape.com
05080f2575 First match not pre selected when multiple matches are present in directory (bug 102693); r=ducarroz@netscape.com, sr=mscott@netscape.com
git-svn-id: svn://10.0.0.236/trunk@123278 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 01:21:23 +00:00
dmose%netscape.com
e22bbce0e2 support for binary attribute values in LDAP XPCOM SDK (bug 119380). r=peterv@netscape.com, sr=sspitzer@netscape.com/mscott@netscape.com
git-svn-id: svn://10.0.0.236/trunk@123276 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 00:38:18 +00:00
kaie%netscape.com
ed4333f06f b=150863 Fix lock icon state for low/high crypto mix.
r=javi sr=alecf


git-svn-id: svn://10.0.0.236/trunk@123275 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-13 23:59:01 +00:00
kaie%netscape.com
39e7f2c5cb b=133995 Only allow sending encrypted mail using valid recipient certs.
r=javi sr=mscott


git-svn-id: svn://10.0.0.236/trunk@123274 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-13 23:54:56 +00:00
relyea%netscape.com
ba721cf789 Add transactions to the database update portion of the code.
git-svn-id: svn://10.0.0.236/trunk@123273 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-13 23:25:37 +00:00
despotdaemon%netscape.com
b77fd1f9df Pseudo-automatic update of changes made by asasaki@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@123272 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-13 22:55:20 +00:00
despotdaemon%netscape.com
51fe6ae058 Pseudo-automatic update of changes made by knous@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@123271 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-13 22:48:04 +00:00
gerv%gerv.net
0ffac72c3d Bug 151327 - verify_new_product.html.tmpl prints wrong message. Patch by gerv; 2xr=bbaetz.
git-svn-id: svn://10.0.0.236/trunk@123270 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-13 22:45:19 +00:00
peterv%netscape.com
9eb5e6fe2b Fix for bug 88623 (Cleanup Transformiix code - remove XSLType). r=sicking, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@123262 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-13 22:31:20 +00:00
peterv%netscape.com
3d78e09cce Fix for bug 136272 (definition of isDigit may be incomplete). r=sicking, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@123261 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-13 22:27:19 +00:00
cmanske%netscape.com
7087284a9a Fixed doubleclick to get color in colorpicker, b=151474, fix by neil@parkwaycc.co.uk, r=cmanske, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@123260 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-13 22:24:27 +00:00
gerv%gerv.net
3a58c581db Bug 151023 - duplicates.cgi sort by delta sorts in wrong direction. Patch by gerv; r=bbaetz, jouni.
git-svn-id: svn://10.0.0.236/trunk@123259 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-13 22:22:32 +00:00
wtc%netscape.com
66e159d87f Update the vercheck.c test for NSPR 4.2.1.
git-svn-id: svn://10.0.0.236/trunk@123258 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-13 22:15:59 +00:00
dbaron%fas.harvard.edu
f73c8cccfe XUL fastload shouldn't call ParseStyleAttribute when there is no style attribute. b=151262 r=waterson sr=brendan
git-svn-id: svn://10.0.0.236/trunk@123257 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-13 22:14:36 +00:00
wtc%netscape.com
8289062b7c Set NSPR version to 4.2.1 Beta.
git-svn-id: svn://10.0.0.236/trunk@123256 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-13 22:13:15 +00:00
dmose%netscape.com
6ef6e0913f NetBSD build-system fix (bug 135027); r=seawood@netscape.com
git-svn-id: svn://10.0.0.236/trunk@123253 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-13 22:02:08 +00:00
wtc%netscape.com
0a777bafa2 Bug 136458: removed the old -O workaround and use -m68020-60. The patch is
contributed by Richard Zidlicky <rz@linux-m68k.org>.  r=wtc.
Modified Files: configure.in configure Linux.mk


git-svn-id: svn://10.0.0.236/trunk@123252 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-13 22:00:29 +00:00
relyea%netscape.com
10f9a3f89c Update cert handle on token insertion/removal.
git-svn-id: svn://10.0.0.236/trunk@123246 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-13 21:43:30 +00:00
relyea%netscape.com
f48424e371 Add series to keep track of object handle value validity.
git-svn-id: svn://10.0.0.236/trunk@123245 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-13 21:42:41 +00:00
relyea%netscape.com
dbfdef4a37 Reset the cert cache and clobber cert handles on token insertion an removal
git-svn-id: svn://10.0.0.236/trunk@123244 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-13 21:40:43 +00:00
dougt%netscape.com
c5d80c4635 missed this file when I checked fixes in for bugs 149745 148918 149715 149730 149754 129959. embedding via xcom glue r=various, sr=shaver@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@123242 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-13 21:20:18 +00:00
darin%netscape.com
2fe9a1b7ba fixes solaris orange b=147333
patch=Roland.Mainz@informatik.med.uni-giessen.de
r/sr=alecf,darin


git-svn-id: svn://10.0.0.236/trunk@123241 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-13 21:14:24 +00:00
mkaply%us.ibm.com
d7b09cd884 #150012
r=dougt, sr=darin
Support ranges (x-y) in the list of banned.override ports


git-svn-id: svn://10.0.0.236/trunk@123240 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-13 20:51:03 +00:00
wtc%netscape.com
4b3c439243 Bug 144886: On platforms with gethostbyname2, add the infrastructure for
PR_GetIPNodeByName to implement PR_AI_ADDRCONFIG correctly.  Right now
only AIX implements the function to determine if the system has any IPv4
or IPv6 source address configured.  On other platforms PR_GetIPNodeByName
still behaves as if the system had both IPv4 and IPv6 source addresses
configured.


git-svn-id: svn://10.0.0.236/trunk@123238 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-13 20:47:39 +00:00
kin%netscape.com
3016bcf312 Partial fix for bug 141900 (Text entry fields in forms excruciatingly slow.)
mozilla/content/base/public/nsISelectionController.idl
  mozilla/content/base/src/nsSelection.cpp
  mozilla/editor/composer/src/nsEditorShell.cpp
  mozilla/editor/idl/nsIPlaintextEditor.idl
  mozilla/editor/libeditor/base/nsEditor.cpp
  mozilla/editor/libeditor/base/nsEditor.h
  mozilla/editor/libeditor/html/nsHTMLDataTransfer.cpp
  mozilla/editor/libeditor/html/nsHTMLEditor.cpp
  mozilla/editor/libeditor/text/nsEditorEventListeners.cpp
  mozilla/editor/libeditor/text/nsPlaintextDataTransfer.cpp
  mozilla/editor/libeditor/text/nsPlaintextEditor.cpp
  mozilla/editor/txtsvc/src/nsTextServicesDocument.cpp
  mozilla/editor/ui/dialogs/content/EdTableProps.js
  mozilla/embedding/components/find/src/nsWebBrowserFind.cpp
  mozilla/extensions/xmlterm/base/mozXMLTermSession.cpp
  mozilla/layout/base/public/nsIFrameSelection.h
  mozilla/layout/html/base/src/nsPresShell.cpp
  mozilla/layout/html/forms/src/nsGfxTextControlFrame2.cpp
  mozilla/mailnews/compose/src/nsMsgCompose.cpp
  mozilla/xpfe/browser/resources/content/viewPartialSource.js

    - Added aIsSynchronous arg to the ScrollSelectionIntoView()
      method of nsISelectionController and nsIFrameSelection.
      Updated all callers to pass new arg.

    - Modified selection to post a plevent to call which does the
      call to ScrollIntoView() in the async ScrollIntoView() case.

    - Edits in text widgets now use asynchronous reflow, paint,
      and scroll processing full time.

    - Removed redundant ScrollSelectionIntoView() calls in the
      editor event listeners.

    - Editor IME code now forced to flush reflows and paints before
      getting caret coordinates.

r=jfrancis@netscape.com  sr=waterson@netscape.com


git-svn-id: svn://10.0.0.236/trunk@123237 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-13 20:43:32 +00:00
kin%netscape.com
fa152a3def Partial fix for bug 141900 (Text entry fields in forms excruciatingly slow.)
mozilla/content/base/public/nsISelectionController.idl
  mozilla/content/base/src/nsSelection.cpp
  mozilla/editor/composer/src/nsEditorShell.cpp
  mozilla/editor/idl/nsIPlaintextEditor.idl
  mozilla/editor/libeditor/base/nsEditor.cpp
  mozilla/editor/libeditor/base/nsEditor.h
  mozilla/editor/libeditor/html/nsHTMLDataTransfer.cpp
  mozilla/editor/libeditor/html/nsHTMLEditor.cpp
  mozilla/editor/libeditor/text/nsEditorEventListeners.cpp
  mozilla/editor/libeditor/text/nsPlaintextDataTransfer.cpp
  mozilla/editor/libeditor/text/nsPlaintextEditor.cpp
  mozilla/editor/txtsvc/src/nsTextServicesDocument.cpp
  mozilla/editor/ui/dialogs/content/EdTableProps.js
  mozilla/embedding/components/find/src/nsWebBrowserFind.cpp
  mozilla/extensions/xmlterm/base/mozXMLTermSession.cpp
  mozilla/layout/base/public/nsIFrameSelection.h
  mozilla/layout/html/base/src/nsPresShell.cpp
  mozilla/layout/html/forms/src/nsGfxTextControlFrame2.cpp
  mozilla/mailnews/compose/src/nsMsgCompose.cpp
  mozilla/xpfe/browser/resources/content/viewPartialSource.js

    - Added aIsSynchronous arg to the ScrollSelectionIntoView()
      method of nsISelectionController and nsIFrameSelection.
      Updated all callers to pass new arg.

    - Modified selection to post a plevent to call which does the
      call to ScrollIntoView() in the async ScrollIntoView() case.

    - Edits in text widgets now use asynchronous reflow, paint,
      and scroll processing full time.

    - Removed redundant ScrollSelectionIntoView() calls in the
      editor event listeners.

    - Editor IME code now forced to flush reflows and paints before
      getting caret coordinates.

r=jfrancis@netscape.com  sr=waterson@netscape.com


git-svn-id: svn://10.0.0.236/trunk@123236 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-13 20:35:12 +00:00
alecf%netscape.com
d3afab8273 fix for bug 149102 - fix a harmless UMR in the string code
sr=jag, r=dbaron


git-svn-id: svn://10.0.0.236/trunk@123235 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-13 20:31:14 +00:00
kin%netscape.com
2ce51981fc Partial fix for bug 141900 (Text entry fields in forms excruciatingly slow.)
mozilla/layout/html/base/src/nsBlockFrame.cpp

    - Removed code in ReflowDirtyChild() which propagated
      the reflow command up to the block's parent if the
      block already had dirty children. There's no need
      for this optimization with waterson's reflow command
      tree changes.

  mozilla/xul/base/src/nsBox.cpp

    - Modified RelayoutDirtyChild() so that it posts
      a dirty reflow event if |this| is a reflow root.
      This prevents ReflowDirtyChild requests from
      propagating all the way out of the box hierarchy.

r=dbaron@fas.harvard.edu  sr=waterson@netscape.com


git-svn-id: svn://10.0.0.236/trunk@123234 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-13 20:30:14 +00:00
wtc%netscape.com
9817a97775 Bug 97475: the new 'af' field needs to be moved to the end of the
PRFilePrivate structure because the OJI code in Sun Java 2 1.3-1
distribution is reading the 'md.osfd' field of this private structure.


git-svn-id: svn://10.0.0.236/trunk@123233 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-13 20:30:13 +00:00
dougt%netscape.com
b4c6ecaa43 bug 150165 patch by t.bugz@lament.cjb.net r=bbaetz sr=shaver a=valeski fix typo - [noscrpit] was used instead of [noscript]
git-svn-id: svn://10.0.0.236/trunk@123231 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-13 20:13:17 +00:00
alecf%netscape.com
c181c1cb21 argh, just fixing a build warning that TestUConv.cpp is in the win32 gmake build twice - no affect on the build
git-svn-id: svn://10.0.0.236/trunk@123229 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-13 18:41:04 +00:00
alecf%netscape.com
7cc599691d fix for bug 149102 - fix consumers of outdated TypicalInput/Output stream
r=dougt, r=av (plugin stuff) sr=jag


git-svn-id: svn://10.0.0.236/trunk@123228 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-13 18:19:10 +00:00
wtc%netscape.com
99c3104086 Bug 97475: some platforms, such as OpenVMS, require us to pass the exact
socket address length to socket functions like accept.  Just fixed enough
of this problem for OJI to work with Mozilla on OpenVMS.
Modified Files: _openvms.h primpl.h ptio.c


git-svn-id: svn://10.0.0.236/trunk@123227 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-13 18:05:26 +00:00
bnesse%netscape.com
ca70f169dd Fix for bug 148444. Remove obsolete pref file references from embedding configs. r=adamlock, pinkerton. sr=cls.
git-svn-id: svn://10.0.0.236/trunk@123225 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-13 17:57:05 +00:00
ssu%netscape.com
ce6f9f4945 fixing bug 136417 - Mark newsgroup read from newsgroup folder context menu affects wrong folder. r=bhuvan, sr=mscott
git-svn-id: svn://10.0.0.236/trunk@123224 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-13 17:56:25 +00:00
cltbld%netscape.com
bcdd06c6c7 updating installer to use http instead of ftp for downloading xpi files, does not affect build, bugscape 16662, kysmith checking in as cltbld
git-svn-id: svn://10.0.0.236/trunk@123223 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-13 16:12:23 +00:00
seawood%netscape.com
e0bcbe585e Use the unix native char conversion routines on BeOS.
Bug #151406 r=timeless


git-svn-id: svn://10.0.0.236/trunk@123222 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-13 14:53:30 +00:00
pinkerton%netscape.com
cc3c165b03 turn on CG metrics for quartz rendering if 10.1.5 is present. bug 149427, r=ccarlen/sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@123221 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-13 14:39:42 +00:00
mostafah%oeone.com
9ff9ac72b8 Fixed crash caused by temporarily disabled removeObserver function
git-svn-id: svn://10.0.0.236/trunk@123220 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-13 13:23:23 +00:00
seawood%netscape.com
97a5da83a0 Fix symlink detection (again) so that relative symlinks work and the binary is executed from the cwd, not the installation directory.
Thanks to Andrew Schultz <ajschult@eos.ncsu.edu> for the patch.
Bug #57866 r=cls


git-svn-id: svn://10.0.0.236/trunk@123219 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-13 12:16:52 +00:00
jpierre%netscape.com
454f59e06f Add missing AOL root CA certs
git-svn-id: svn://10.0.0.236/trunk@123215 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-13 10:14:50 +00:00
seawood%netscape.com
fa69852bc1 Make sure that all of the headers are installed during a 'make install'.
Thanks to Chris Blizzard <blizzard@mozilla.org> for the patch.
Bug #149483 r=cls


git-svn-id: svn://10.0.0.236/trunk@123214 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-13 09:07:40 +00:00
seawood%netscape.com
dc7263dc9e Fix real_install rules so that headers are still installed correctly if includedir is overridden on the commandline.
Bug #149483 r=blizzard


git-svn-id: svn://10.0.0.236/trunk@123212 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-13 09:01:48 +00:00
leaf%mozilla.org
75cefae6b4 Automated update
git-svn-id: svn://10.0.0.236/trunk@123211 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-13 08:55:45 +00:00
bryner%netscape.com
4f8c9ca73b Add an option to enable prebinding for mach-o builds (bug 151087). r=cls.
git-svn-id: svn://10.0.0.236/trunk@123209 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-13 08:52:55 +00:00
glazman%netscape.com
caec6c87e9 fixing crasher due to outbounds index in nsCSSStyleSheet.cpp; b=151198, r=brade, sr=jst
git-svn-id: svn://10.0.0.236/trunk@123208 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-13 08:29:51 +00:00
jaggernaut%netscape.com
a6ccc7e263 Gotta remember to check these binary files in with -kb. Just cvs admin -kb didn't help, apparently they were already corrupted. Checking in correct binaries.
git-svn-id: svn://10.0.0.236/trunk@123207 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-13 06:54:29 +00:00
sgehani%netscape.com
ed63a3af9d Fix ``Search engine name and search term string missing from search box
in autocomplete dropdown for first window in new profile''
b=144494; r=law; sr=hewitt


git-svn-id: svn://10.0.0.236/trunk@123204 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-13 01:11:01 +00:00
sgehani%netscape.com
82a129492a Accesskeys on print preview toolbar buttons.
b=133506; r=caillon; sr=blake


git-svn-id: svn://10.0.0.236/trunk@123203 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-13 01:08:48 +00:00
timeless%mac.com
2bb9b9faf5 Bug 147743 Xprint prints some (non-scaleable) bitmap fonts far too small
patch by Roland.Mainz@informatik.med.uni-giessen.de r=bstell@ix.netcom.com, sr=dveditz


git-svn-id: svn://10.0.0.236/trunk@123199 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-13 00:28:46 +00:00
mjudge%netscape.com
cc8e538c5c 113613 r=blythe sr=kin patch to fix end of line key moving caret outside of the style block. if we see a BR tag when searching for valid selection point keep backing up if possible.
git-svn-id: svn://10.0.0.236/trunk@123197 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-13 00:06:49 +00:00
darin%netscape.com
1ae7212ab9 fixes bug 147979 "Mac-SSL connections very slow"
r=sdagley sr=beard


git-svn-id: svn://10.0.0.236/trunk@123196 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 23:44:31 +00:00
bbaetz%student.usyd.edu.au
eccb8e91a1 Bug 150882 - SQL error when sorting by bugs.votes with explicit direction
r=gerv x2


git-svn-id: svn://10.0.0.236/trunk@123195 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 23:22:07 +00:00
jkeiser%netscape.com
c2a982333d Make X not crash with hugely silly font sizes (checking in for Roland.Mainz@informatik.med.uni-giessen.de). bug 150339, r=tor@acm.org, sr=blizzard@netscape.com/roc+moz@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@123194 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 23:06:11 +00:00
nicolson%netscape.com
152c5b3f06 add javadoc target.
git-svn-id: svn://10.0.0.236/trunk@123193 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 22:54:16 +00:00
mstoltz%netscape.com
8324b9ee2c Backing out fix for 135267 - this patch requires another change that hasn't gone in yet.
git-svn-id: svn://10.0.0.236/trunk@123192 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 22:49:14 +00:00
srilatha%netscape.com
fd77d8493b Fix for bugscape bug # 15236. The registry settings for simple MAPI needs to be set same as the installer
r=rdayal, sr=mscott


git-svn-id: svn://10.0.0.236/trunk@123191 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 22:07:24 +00:00
locka%iol.ie
92f24c181d Increase 20 character limit when creating filenames. b=134890 r=brade@netscape.com sr=kin@netscape.com
git-svn-id: svn://10.0.0.236/trunk@123190 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 21:47:43 +00:00
mstoltz%netscape.com
4a618befec Fixing 135267 - don't allow access to style rules loaded from a different
host. r=dveditz, sr=scc.


git-svn-id: svn://10.0.0.236/trunk@123189 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 21:20:17 +00:00
blakeross%telocity.com
d0aaf6b995 149812 - remove what's related domain blocking UI. r=bryner sr=ben
git-svn-id: svn://10.0.0.236/trunk@123187 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 20:38:42 +00:00
morse%netscape.com
78203efec8 bug 147223, URL bar doesn't function if launched too quickly in turbo mode, r=law, sr=darin
git-svn-id: svn://10.0.0.236/trunk@123186 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 20:29:46 +00:00
nicolson%netscape.com
e1e52a2b6c remove these files--there's no C code in this directory.
git-svn-id: svn://10.0.0.236/trunk@123185 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 20:18:10 +00:00
nicolson%netscape.com
bbce019e1f Grab NSS headers from directory "nss" instead of directory "security".
git-svn-id: svn://10.0.0.236/trunk@123184 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 20:11:22 +00:00
nicolson%netscape.com
2b8b549531 remove makefiles for this directory, since it's only Java files.
git-svn-id: svn://10.0.0.236/trunk@123183 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 20:08:39 +00:00
waterson%netscape.com
dafe48f551 Re-add, correct case.
git-svn-id: svn://10.0.0.236/trunk@123182 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 20:04:04 +00:00
waterson%netscape.com
2690e144de Removing; base case.
git-svn-id: svn://10.0.0.236/trunk@123181 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 20:03:46 +00:00
waterson%netscape.com
5d02703c6f Add extensions/pref/autoconfig/resources to makefile list.
git-svn-id: svn://10.0.0.236/trunk@123180 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 19:32:15 +00:00
igor%mir2.org
77a428cced Added get/setJavaPrimitiveWrap to WrapFactory to get/set if instances of String, Number should be wrapped or not.
git-svn-id: svn://10.0.0.236/trunk@123179 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 19:11:50 +00:00
bnesse%netscape.com
05e7ac85e3 Checkin for bug 121332. Fix implementation for getLDAPAttributes() so it correctly calls the user callback processLDAPValues(). r=dmose, sr=alecf.
git-svn-id: svn://10.0.0.236/trunk@123178 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 18:58:11 +00:00
bnesse%netscape.com
5fd2f31989 Fix for bug 141035. Application must quit if it fails to load the .cfg file. r=sgehani, ccarlen, sr=alecf.
git-svn-id: svn://10.0.0.236/trunk@123175 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 18:52:46 +00:00
shrutiv%netscape.com
0d116a24db Fix for bugscape bug 16679: Title bar for CD Autorun Screen contains
'6.2' string


git-svn-id: svn://10.0.0.236/trunk@123174 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 18:45:50 +00:00
depstein%netscape.com
8a411ee762 Url dialog now supports flag loading.
a=asa for QA checkins that are not part of the default builds


git-svn-id: svn://10.0.0.236/trunk@123173 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 18:44:48 +00:00
pinkerton%netscape.com
58c0e3f529 fix typo, bug 149283. r=tao/sr=alecf/a=valeski.
git-svn-id: svn://10.0.0.236/trunk@123171 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 18:19:42 +00:00
rods%netscape.com
0c480724b4 Needs to return back the appropriate flags for loading images, naming making them come fromthe cache
Bug 150072 r=dcone sr=kin


git-svn-id: svn://10.0.0.236/trunk@123170 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 18:04:48 +00:00
alecf%netscape.com
fc8e339e24 fix for bug 148831 - avoid crashing and do a best-effort case conversion/comparison when the nsICaseConversion service has already been shut down. r=dougt, sr=jag
git-svn-id: svn://10.0.0.236/trunk@123169 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 17:59:40 +00:00
ducarroz%netscape.com
317ad26b7e Fix for bug 137742. We need to prevent folding long header between the header name and the value. Patch submitted by taka@netscape.com. R=ducarroz, SR=bienvenu
git-svn-id: svn://10.0.0.236/trunk@123168 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 17:50:44 +00:00
nhotta%netscape.com
4838f6a790 Moved the flex value for the widget width out to .dtd file,
bug 150756, r=naving, sr=mscott.


git-svn-id: svn://10.0.0.236/trunk@123167 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 17:00:53 +00:00
nhotta%netscape.com
7a47a05a8a Uncheck the previously checked item before checking the new item
to workaround the Mac radio menu check mark problem,
bug 98625, r=pinkerton, sr=jst.


git-svn-id: svn://10.0.0.236/trunk@123166 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 16:58:12 +00:00
dbradley%netscape.com
768b5dd858 Bug 148732 - xpidl doesn't accept drive colon args. r=dbradley, sr=shaver
git-svn-id: svn://10.0.0.236/trunk@123165 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 16:56:19 +00:00
kaie%netscape.com
70448bead6 b=147770 Enhance S/Mime menu wordings
r=cotter sr=alecf


git-svn-id: svn://10.0.0.236/trunk@123164 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 16:54:45 +00:00
alecf%netscape.com
fe2ac2618f fix for bug 149121 - split up command line handler macros so we can write custom registration routines. r=bnesse, sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@123163 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 16:47:23 +00:00
seawood%netscape.com
d52892536f Update toplevel ignore list
git-svn-id: svn://10.0.0.236/trunk@123162 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 16:44:41 +00:00
kaie%netscape.com
9a446139e8 b=126944 Handle NSS error codes within PSM.
r=ssaux sr=darin


git-svn-id: svn://10.0.0.236/trunk@123161 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 16:44:22 +00:00
peterlubczynski%netscape.com
014bbea9c5 Fixing bug 122119, cannot use consecutive white space characters in PARAM tags, r=harishd, sr=jst
git-svn-id: svn://10.0.0.236/trunk@123160 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 16:41:25 +00:00
pinkerton%netscape.com
d4386e47d8 bah, just remove the 'add separator' button since it looks lame disabled.
git-svn-id: svn://10.0.0.236/trunk@123159 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 14:43:27 +00:00
timeless%mac.com
53435db67b Bug 146207 javascript strict warning in bookmarks.xml
patch by neil@parkwaycc.co.uk r=timeless sr=jag


git-svn-id: svn://10.0.0.236/trunk@123158 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 14:38:29 +00:00
kaie%netscape.com
9a0c08391d b=149868 http must never use starttls type sockets, even when going over a proxy. http allows all flavors of SSL2/SSL3/TLS (while startls type sockets disallow some flavors).
r=bbaetz sr=darin


git-svn-id: svn://10.0.0.236/trunk@123157 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 14:36:08 +00:00
timeless%mac.com
a4f31a4ba2 Bug 143791 menuseparator in Go menu should stay hidden for tabbed mode
patch by neil@parkwaycc.co.uk r=timeless sr=jag


git-svn-id: svn://10.0.0.236/trunk@123156 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 14:31:40 +00:00
brade%netscape.com
dd6325c370 fix for handling control-backspace on Windows (submitted by bernie5412@hotmail.com (Bernie McGuire)); bug 105122; r=yokoyama, brade, sr=roc+moz
git-svn-id: svn://10.0.0.236/trunk@123155 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 14:25:02 +00:00
jfrancis%netscape.com
d889597d8d bug 83378: plaintext mail reply problems editing quotes. r=fm, sr=kin
git-svn-id: svn://10.0.0.236/trunk@123154 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 14:14:18 +00:00
jfrancis%netscape.com
97060bb3df bug 83378: plaintext mail reply editong problem in quotes
git-svn-id: svn://10.0.0.236/trunk@123153 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 14:12:32 +00:00
jfrancis%netscape.com
a65dcc4d82 bug 139466: paste can create nested headers. r=harish; sr=jst
git-svn-id: svn://10.0.0.236/trunk@123152 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 14:07:05 +00:00
jfrancis%netscape.com
ec1f2825a3 bug 146164: removing style can remove too much. r=glazman, sr=kin
git-svn-id: svn://10.0.0.236/trunk@123151 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 14:04:47 +00:00
pinkerton%netscape.com
dbdffe42cb Hook up "edit" bookmarks panel button to info window and gray out
"new separator" button until we hook it up.


git-svn-id: svn://10.0.0.236/trunk@123150 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 14:03:41 +00:00
pinkerton%netscape.com
9914bb59c9 Implement copy link location from brade (bug 150827)
git-svn-id: svn://10.0.0.236/trunk@123149 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 13:47:48 +00:00
timeless%mac.com
034f35f406 Bug 128098 Index should be expanded by default
patch by neil@parkwaycc.co.uk r=oeschger sr=alecf


git-svn-id: svn://10.0.0.236/trunk@123148 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 13:43:50 +00:00
jaggernaut%netscape.com
843d8cc562 Bug 112769: Add "New Tab" button to tab bar. r=sgehani, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@123147 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 11:49:54 +00:00
brendan%mozilla.org
97b9374b49 Back out last change pending debug build (see crash bug 151066).
git-svn-id: svn://10.0.0.236/trunk@123146 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 08:31:43 +00:00
brendan%mozilla.org
125cb784d6 Report uncaught errors-as-exceptions from outermost JS_Compile*Function* API calls, just as for JS_Compile*Script* (150584, r=rginda, sr=jst).
git-svn-id: svn://10.0.0.236/trunk@123145 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 08:04:28 +00:00
jkeiser%netscape.com
decd49ffba Make input type=file disabled work properly and look right. bug 92858, r=rods@netscape.com, sr=roc+moz
git-svn-id: svn://10.0.0.236/trunk@123144 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 07:58:26 +00:00
jkeiser%netscape.com
b39021ec8c Make pressing enter submit by clicking the first button in form even if there is only one textfield in form. bug 147850, r=bzbarsky@mit.edu, sr=jst@netscape.com
git-svn-id: svn://10.0.0.236/trunk@123143 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 07:50:45 +00:00
jkeiser%netscape.com
43ad149022 Comment form submission more thoroughly. bug 148466, r=alexsavulov@netscape.com, rs=jband@netscape.com
git-svn-id: svn://10.0.0.236/trunk@123142 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 07:39:08 +00:00
jkeiser%netscape.com
2e33319f15 Make select.selectedIndex = 3; clear all selections in multiple select. bug 77039, r=rods@netscape.com, sr=jst@netscape.com
git-svn-id: svn://10.0.0.236/trunk@123141 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 07:36:57 +00:00
jkeiser%netscape.com
53396e1fbd Make input type=hidden save/restore value. bug 149962, r=rods, sr=jst
git-svn-id: svn://10.0.0.236/trunk@123140 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 06:35:11 +00:00
igor%mir2.org
0544f7b57c Removal of unused code for explicit JSObject support:
> Norris Boyd wrote:
>
> Igor Bukaniv wrote:
> >
> > I am curios, why there is a need to have a special JSObject support in Rhino? Was it used for anything? The implementation in the ICEbrowser does not use it as in rare cases where conversion from JSObject to/from JS type may be needed (like calling JSObject.getWindow from a script), it seems that WrapHandler (or similar modifications to pre Rhino 1.5R2 sources) and Wrapper are enough to cover all the cases.
> Yes, we should probably just remove the JSObject code. We added it early on when Rhino was first written and we thought we might need JSObject compatibility with the JS + Java implementation in Navigator 4.x. That's not important now, so we should just remove this code (which likely doesn't work at this point anyway).


git-svn-id: svn://10.0.0.236/trunk@123139 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 05:32:35 +00:00
kyle.yuan%sun.com
05ea7d8cad Bug 148902 Implemetation of nsIAccessibleEditableText
r=aaronl, sr=jst


git-svn-id: svn://10.0.0.236/trunk@123138 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 05:27:37 +00:00
kyle.yuan%sun.com
7c08110482 Bug 146400 To merge nsIAccessibleSelectable and nsIAccessibleSelection
r=aaronl, sr=jst


git-svn-id: svn://10.0.0.236/trunk@123137 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 05:16:30 +00:00
dmose%netscape.com
e1d98d30e0 authenticated LDAP autocompletion incorrectly autopicks current addr after password entered (bug 146569) r=blake@netscape.com, sr=hewitt@netscape.com
git-svn-id: svn://10.0.0.236/trunk@123136 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 05:14:32 +00:00
mkaply%us.ibm.com
15156fea65 OS/2 bustage
git-svn-id: svn://10.0.0.236/trunk@123134 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 05:04:12 +00:00
bryner%netscape.com
f6cf7c683b Fix the situation where clicking a link that has a mousedown handler which opens a window would erroneously send a blur to the newly-opened window (bug 131651). r=saari, sr=hewitt.
git-svn-id: svn://10.0.0.236/trunk@123133 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 05:00:35 +00:00
kyle.yuan%sun.com
a1dd71ed8e Bug 148010 JS exceptions in mailnews autocomplete widget on trunk
r=varga, sr=hewitt
Prevent JS exception and disable key-navigation feature in autocomplete


git-svn-id: svn://10.0.0.236/trunk@123132 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 04:32:04 +00:00
shanjian%netscape.com
447b7a35cc #102407 Unexpected instances of POSTDATA warning messages [form sub]
Swap the priority of weakdoc charset and default charset.
disable auto detection for POST document.
r=ftang, sr=darin


git-svn-id: svn://10.0.0.236/trunk@123131 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 04:18:31 +00:00
suresh%netscape.com
17e7119c51 fix for 149189. update goPreference calls with correct parameters. r-ducarroz, sr-alecf.
git-svn-id: svn://10.0.0.236/trunk@123130 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 04:09:52 +00:00
dbaron%fas.harvard.edu
b362818ab8 Fix crash exiting print preview in certain cases (pages with frames; embedding apps) by ensuring view manager outlives pres shell. b=148308 r=rods sr=waterson
git-svn-id: svn://10.0.0.236/trunk@123129 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 03:32:24 +00:00
dbaron%fas.harvard.edu
df58df2f0b Fix crash when looking at style rules of element matching no rules. b=141022 r=hewitt sr=waterson
git-svn-id: svn://10.0.0.236/trunk@123128 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 03:30:32 +00:00
dbaron%fas.harvard.edu
cfc603f54a Fix crashes related to editing of HR elements by wrapping generated content for leaf frames in an extra frame so :before and :after are always the first/last children of the primary frame. Disable generated content for floating and absolutely positioned leaf frames. b=141054 sr=waterson r=kin
git-svn-id: svn://10.0.0.236/trunk@123127 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 03:27:48 +00:00
roc+%cs.cmu.edu
f300916895 Bug 124685. Change damage propagation algorithm to traverse the widget tree instead of the view tree; speeds up certain testcases. r=kmcclusk,rs=waterson
git-svn-id: svn://10.0.0.236/trunk@123126 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 03:22:35 +00:00
dbaron%fas.harvard.edu
f06e55f876 Fix performance problem on home.netscape.com: Don't do full reflow of all absolutely positioned elements whose containing block is on the path to the target of an incremental reflow. b=146831 sr=waterson r=kin
git-svn-id: svn://10.0.0.236/trunk@123125 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 03:21:00 +00:00
roc+%cs.cmu.edu
eb9ced023d Bug 148350. Fix the gcc optimizer workaround. r=kmcclusk,sr=waterson
git-svn-id: svn://10.0.0.236/trunk@123124 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 03:18:10 +00:00
despotdaemon%netscape.com
c2cc19d860 Pseudo-automatic update of changes made by Henry.Jia@sun.com.
git-svn-id: svn://10.0.0.236/trunk@123123 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 01:28:16 +00:00
dougt%netscape.com
3a92abc171 Fixes build bustage for cbiesinger
git-svn-id: svn://10.0.0.236/trunk@123121 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 00:29:17 +00:00
andreww%netscape.com
bd218e60bc bugzilla 150696 - Dom Inspector needs "window" menu - r=timeless, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@123120 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 00:25:28 +00:00
waldemar%netscape.com
666b68b3c9 Added lots of new code for frames and function definitions
git-svn-id: svn://10.0.0.236/trunk@123119 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 00:24:29 +00:00
waldemar%netscape.com
12bcdf7ee7 Added optional test to unique-elt-of
git-svn-id: svn://10.0.0.236/trunk@123118 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 00:23:45 +00:00
wtc%netscape.com
6d69027606 Bug 150143: use map file to limit exported symbols on Mac OS X. The patch
is contributed by Brian Ryner <bryner@netscape.com>.
Modified files: Darwin.mk rules.mk


git-svn-id: svn://10.0.0.236/trunk@123115 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 00:21:19 +00:00
robinf%netscape.com
9abf84847a routine help uer bug 122806, r=oeschger
git-svn-id: svn://10.0.0.236/trunk@123113 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 23:50:29 +00:00
stephend%netscape.com
a96a7ab047 Bug 150653. Fixing a comment for nsHTMLEntities::UnicodeToEntity(). Patch by alge@samsen.com. r=choess, sr=vidur
git-svn-id: svn://10.0.0.236/trunk@123111 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 23:37:34 +00:00
smontagu%netscape.com
1a78e93074 Bug 150519 ("Search results from http://www.google.co.il/ print in horrible quality"), Author=Roland.Mainz@informatik.med.uni-giessen.de, r=shanjian, sr=jst
git-svn-id: svn://10.0.0.236/trunk@123110 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 23:33:35 +00:00
relyea%netscape.com
8599f9d962 When checking NeedInit status, go back and check the token in case the token
has been initialized offline.


git-svn-id: svn://10.0.0.236/trunk@123109 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 23:33:25 +00:00
harishd%netscape.com
2f67ab9c46 Strip leading/trailing spaces from img src attribute value that was preventing image rendering. b=87894, r=jkaiser, sr=jst
git-svn-id: svn://10.0.0.236/trunk@123108 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 23:23:12 +00:00
jpierre%netscape.com
f707f2b47f Update for root certs - bug 139874
git-svn-id: svn://10.0.0.236/trunk@123107 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 23:16:25 +00:00
ssu%netscape.com
60bd4d527e fixing bug 149515 - Mail header optimizations disabled critical mail header feature. r=bhuvan, sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@123106 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 23:14:06 +00:00
harishd%netscape.com
a8c3e46cbb Fixed data loss of malformed table content. b=138577, r=heikki, sr=jst
git-svn-id: svn://10.0.0.236/trunk@123105 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 23:13:48 +00:00
ssu%netscape.com
57d7ae7c5d fixing bug 114952 - Labels: not available in standalone msg window, Message & context menu items disabled. r=varada, sr=bienvenu
git-svn-id: svn://10.0.0.236/trunk@123104 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 23:10:04 +00:00
mitchf%netscape.com
188285b281 don't respond to every WM_COMMAND message for DropBox or ComboBox widgets
fixes bug 11873


git-svn-id: svn://10.0.0.236/trunk@123103 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 23:09:54 +00:00
smontagu%netscape.com
d57f95f1d1 Bug 146622 'PrefEnumCallback does not work as expected', Author=Roland.Mainz@informatik.med.uni-giessen.de,r=bstell+katakai,sr=jag+scc
git-svn-id: svn://10.0.0.236/trunk@123102 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 23:08:25 +00:00
ssu%netscape.com
ebf144fb29 fixing bug 150678 - native installer progress bar looks choppy. r=curt, sr=dveditz. affects windows platforms only
git-svn-id: svn://10.0.0.236/trunk@123101 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 23:03:52 +00:00
yokoyama%netscape.com
c873d40552 Bug 149397 Can't enter "?" and "!" using MSPY on WinXP-SC
This is to process special IME input.
/r=shanjian;/sr=brendan


git-svn-id: svn://10.0.0.236/trunk@123100 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 22:59:54 +00:00
dougt%netscape.com
70a555f5ae mac project file fix
git-svn-id: svn://10.0.0.236/trunk@123098 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 22:44:12 +00:00
kirk.erickson%sun.com
ed9469d29f Fixed indentation caught by Wan-Teh (66606).
git-svn-id: svn://10.0.0.236/trunk@123097 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 22:41:45 +00:00
cbiesinger%web.de
dcde01e817 bug 150142 r=pavlov sr=tor
imgLoader::GetMimeTypeFromContent doesn't check for malloc failure


git-svn-id: svn://10.0.0.236/trunk@123096 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 22:40:29 +00:00
dougt%netscape.com
e1d433d7c1 fixes hp bustage. r=jdunn
git-svn-id: svn://10.0.0.236/trunk@123095 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 22:35:10 +00:00
smontagu%netscape.com
8cd326a2d9 Bug 148470: Xprint-specific X font banning code is broken. Author=Roland.Mainz@informatik.med.uni-giessen.de, r=timeless, sr=scc
git-svn-id: svn://10.0.0.236/trunk@123094 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 22:34:25 +00:00
cbiesinger%web.de
49fadf233c forgot to check this change in before. bug 8031, r=tor, sr=dveditz, a=valeski, XBM support
git-svn-id: svn://10.0.0.236/trunk@123093 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 22:33:13 +00:00
darin%netscape.com
79a24a38c3 fixes bug 149073 "nsStorageTransport::GetNthSegment is slow"
r=dbaron sr=rpotts


git-svn-id: svn://10.0.0.236/trunk@123092 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 22:32:35 +00:00
pavlov%netscape.com
3f9af8db03 fixing bug 148551. patch from paper@animecity.nu. r=pavlov sr=tor
git-svn-id: svn://10.0.0.236/trunk@123091 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 22:30:36 +00:00
pavlov%netscape.com
59ca1eaf18 fixing bug 85595. patch from paper@animecity.nu. r=pavlov sr=tor
git-svn-id: svn://10.0.0.236/trunk@123090 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 22:29:31 +00:00
mcafee%netscape.com
f2e7fa038e Adding export-idl rule for REQUIRES-based embed build (150088). r=blythe, sr=alecf, a=asa
git-svn-id: svn://10.0.0.236/trunk@123089 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 22:26:27 +00:00
yokoyama%netscape.com
6e1d4791e4 Bug 149171 and 146844
IME input processing in Widget
Impact only on Windows platform.
/r=shanjian, /sr=brendan


git-svn-id: svn://10.0.0.236/trunk@123087 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 22:20:39 +00:00
beard%netscape.com
437ca845cf Convert Cocoa key events to Mac Event records. This gets typing in plugins working. NPOB from the CHIMERA branch.
git-svn-id: svn://10.0.0.236/trunk@123086 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 22:13:03 +00:00
smontagu%netscape.com
1fff05a1b3 Bug 148470: Ban "-dt-*" (bitmap!!) fonts from Xprint. Author=Roland.Mainz@informatik.med.uni-giessen.de, r=shanjian, sr=jst
git-svn-id: svn://10.0.0.236/trunk@123085 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 22:11:14 +00:00
mscott%netscape.com
4b610493ea new mail biff icon for windows system tray from the UI group.
git-svn-id: svn://10.0.0.236/trunk@123084 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 22:09:15 +00:00
mkaply%us.ibm.com
25824ec712 r=mkaply, sr=blizzard, OS/2 only - fixes a couple names/comments
git-svn-id: svn://10.0.0.236/trunk@123082 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 22:03:09 +00:00
smontagu%netscape.com
1a3973781e Bug 148690: For Xprint force use of outline scaleable fonts if possible. Author Roland.Mainz@informatik.med.uni-giessen.de, r=shanjian, sr=jst
git-svn-id: svn://10.0.0.236/trunk@123078 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 21:43:08 +00:00
brendan%mozilla.org
d6cd3ded85 For the file input case, roll our own fgets replacement to handle NULs in files (148800, r=rogerl, sr=shaver).
git-svn-id: svn://10.0.0.236/trunk@123077 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 21:32:54 +00:00
radha%netscape.com
da252450dc Fix for bug # 144301. shift-reload on a frameset page causes misbehavior of back and forward on future subframe navigations on the same page. a=adamlock sr=rpotts.
git-svn-id: svn://10.0.0.236/trunk@123076 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 21:12:27 +00:00
stephend%netscape.com
1039fd8f26 Bug 148555. Replace class='big-left-margin' with class='indent'. Patch by Stephen Walker <walk84@yahoo.com> r=cmanske, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@123075 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 21:03:29 +00:00
naving%netscape.com
976567d167 bugscape 15175 r=cavin sr=bienvenu. Make netscape webmail folder "Draft" localizable.
git-svn-id: svn://10.0.0.236/trunk@123074 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 21:03:28 +00:00
smontagu%netscape.com
cc4e2832ab Do Arabic shaping earlier before measuring the text so that it gets laid out correctly. Bugs 117041, 138097. r=ftang, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@123073 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 21:00:20 +00:00
dougt%netscape.com
c55073e22f fixing makefile.win bustage.
git-svn-id: svn://10.0.0.236/trunk@123071 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 20:54:30 +00:00
mikep%oeone.com
19a8442b18 Removing debug messages, turning them to dumps.
git-svn-id: svn://10.0.0.236/trunk@123070 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 20:51:35 +00:00
cbiesinger%web.de
a6c0e029bf bug 86693 r=caillon sr=hewitt
js strict warning in colorpicker.xml


git-svn-id: svn://10.0.0.236/trunk@123069 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 20:51:21 +00:00
cbiesinger%web.de
6f7dc93da9 bug 115473 r=pavlov sr=brendan
Remove timer priorities


git-svn-id: svn://10.0.0.236/trunk@123068 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 20:47:04 +00:00
brendan%mozilla.org
e9e6f18d96 Drop non-ECMA f.a-for-arg/var-a-in-active-f support (137000, r=khanson, sr=shaver).
git-svn-id: svn://10.0.0.236/trunk@123067 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 20:43:50 +00:00
akkana%netscape.com
ac744a4bf8 132352: Use the parser service for blockness detection. r=brade sr=kin
git-svn-id: svn://10.0.0.236/trunk@123066 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 20:43:49 +00:00
stephend%netscape.com
f3b7bec0d2 Bug 147438. Security panel needs some cleanup. Patch by Stephen Walker <walk84@yahoo.com> r=kaie, sr=mscott
git-svn-id: svn://10.0.0.236/trunk@123065 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 20:42:53 +00:00
chak%netscape.com
017113fab2 Fix for #130877 - Chnages to create app specific component registries
r=dougt, sr=shaver, a=drivers


git-svn-id: svn://10.0.0.236/trunk@123064 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 20:38:01 +00:00
chak%netscape.com
04078c93d0 Fix for #129582 - Chnages to demostrate MRE usage
r=adamlock, sr=rpotts, a=drivers


git-svn-id: svn://10.0.0.236/trunk@123061 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 20:35:27 +00:00
bryner%netscape.com
547705eee2 Don't have any rules prior to including rules.mk, or just typing "make" in this directory won't work correctly. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@123060 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 20:35:22 +00:00
chak%netscape.com
ded609d173 Fix for #131175 - Chnages to register MRE components
r=dougt, sr=rpotts, a=drivers


git-svn-id: svn://10.0.0.236/trunk@123059 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 20:33:04 +00:00
nhotta%netscape.com
002351597a Map charset name to charset atom, this fixes the charset name canonicalization problem (e.g "utf-8" vs "UTF-8"),
bug 138638, r=rjc, sr=alecf.


git-svn-id: svn://10.0.0.236/trunk@123058 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 20:19:21 +00:00
nhotta%netscape.com
7d9c360c89 Added error handling for the Unicode conversion for message quote,
bug 132613, r=ducarroz, sr=bienvenu.


git-svn-id: svn://10.0.0.236/trunk@123057 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 20:18:20 +00:00
seawood%netscape.com
3c6c31fe23 Do not add these libraries to the generated static libs list as they have their own vars that are also used in the static build.
Bug #149211 r=bryner


git-svn-id: svn://10.0.0.236/trunk@123056 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 20:18:03 +00:00
nhotta%netscape.com
41942cd0e8 Changed the localization note to mention that "MsgMdnWishToSend" is localizable,
bug 149162, r=yxia, sr=bienvenu.


git-svn-id: svn://10.0.0.236/trunk@123055 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 20:17:27 +00:00
locka%iol.ie
4b321b16b0 NOT PART OF BUILD. First impl of helper app dialog for activex control.
git-svn-id: svn://10.0.0.236/trunk@123054 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 20:15:08 +00:00
law%netscape.com
ea952eb2de Bug 89907; add new UI to Nav pref panel to simply making Mozilla the default browser; r=sgehanni, sr=ben
git-svn-id: svn://10.0.0.236/trunk@123052 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 20:06:05 +00:00
wtc%netscape.com
99a907f780 Bug 134099: Worked around two BeOS bugs. 1. connect does not implicitly
bind the socket. 2. accept does not return the peer's address.
Modified files: _beos.h prsocket.c bnet.c


git-svn-id: svn://10.0.0.236/trunk@123051 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 20:05:32 +00:00
dougt%netscape.com
55cec71794 adding #include for stdio for printf
git-svn-id: svn://10.0.0.236/trunk@123050 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 19:50:28 +00:00
dougt%netscape.com
3c7968ad39 nsIInterfaceRequestor.cpp has been moved to mozilla/xpcom/glue/. see 149715. r=rpotts@netscape.com, sr=shaver.
git-svn-id: svn://10.0.0.236/trunk@123049 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 19:41:44 +00:00
dougt%netscape.com
d6dd9bea7f Fix for 149754. cleaner xpcom shutdown. r=rpotts, sr=shaver
git-svn-id: svn://10.0.0.236/trunk@123046 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 19:38:41 +00:00
dougt%netscape.com
fa93a8146a adding nsIIneterfaceRequestorUtils.cpp to glue. 149715. r=rpotts@netscape.com, sr=shaver
git-svn-id: svn://10.0.0.236/trunk@123045 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 19:36:42 +00:00
pinkerton%netscape.com
c36127dae2 Remove status bar entirely from popups that don't want it
git-svn-id: svn://10.0.0.236/trunk@123044 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 19:36:33 +00:00
leaf%mozilla.org
89c9a8fa37 Automated update
git-svn-id: svn://10.0.0.236/trunk@123043 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 19:26:16 +00:00
dougt%netscape.com
fe86486377 Fixes bugs 149745 148918 149715 149730 149754 129959. Cleanup of nsIFile and nsILocalFile interfaces, supporting do_GetInterface in embedding via xcom glue, and general cleanup of shutdown. r=various, sr=shaver@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@123042 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 19:26:04 +00:00
shrutiv%netscape.com
ad187f7e21 Fix for bugscape bug 14706: Additional Components not being picked up
in certain cases (r=mitchf)


git-svn-id: svn://10.0.0.236/trunk@123041 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 19:25:32 +00:00
shrutiv%netscape.com
23c9a321eb Fix for bugscape bug 16026: View install.bmp button not working (r=mitchf)
git-svn-id: svn://10.0.0.236/trunk@123040 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 19:03:17 +00:00
pinkerton%netscape.com
d68edc3610 Fix New Tab/SaveAs being enabled with no current window by creating a new
File menu and writing parts of validateMenuItem. bug 146320.


git-svn-id: svn://10.0.0.236/trunk@123039 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 18:44:30 +00:00
despotdaemon%netscape.com
5ff1ca3601 Pseudo-automatic update of changes made by knous@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@123037 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 18:11:28 +00:00
shrutiv%netscape.com
7824e01dae Fix for bug 16679: NCADM 7.0PR1: Title bar for CD Autorun Screen contains
'6.2' string


git-svn-id: svn://10.0.0.236/trunk@123036 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 18:07:35 +00:00
karnaze%netscape.com
7decc18c6e fix block regression test bustage, not affecting the build.
git-svn-id: svn://10.0.0.236/trunk@123035 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 16:50:42 +00:00
kirk.erickson%sun.com
74f18bf830 Resolves 66606. Added -O (enable OCSP checking).
git-svn-id: svn://10.0.0.236/trunk@123034 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 16:29:28 +00:00
pinkerton%netscape.com
3ae45f670b Fix refcount crash with find again. (bug 150532)
git-svn-id: svn://10.0.0.236/trunk@123031 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 15:00:15 +00:00
bbaetz%student.usyd.edu.au
66e8e60df6 Bug 150802 - default version for bug entry not read from cookies
r=jouni x2


git-svn-id: svn://10.0.0.236/trunk@123028 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 13:33:45 +00:00
bbaetz%student.usyd.edu.au
11df709295 Bug 150826 - missing space between list of attachments
r=mattyt x2


git-svn-id: svn://10.0.0.236/trunk@123027 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 09:27:27 +00:00
despotdaemon%netscape.com
6b4af86e93 Pseudo-automatic update of changes made by jruderman@hmc.edu.
git-svn-id: svn://10.0.0.236/trunk@123026 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 06:54:26 +00:00
bbaetz%student.usyd.edu.au
56f95190bc Bug 150798 - Extra whitespace included in saved query links
r=mattyt x2


git-svn-id: svn://10.0.0.236/trunk@123023 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 06:14:49 +00:00
myk%mozilla.org
a314830789 Backing out change I accidentally made while checking in fix for bug 137855.
git-svn-id: svn://10.0.0.236/trunk@123020 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 02:25:29 +00:00
myk%mozilla.org
23bc5f9630 Fix for bug 150703: Adds format support to query.cgi.
2rx=gerv


git-svn-id: svn://10.0.0.236/trunk@123015 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-10 22:38:48 +00:00
bryner%netscape.com
9b4781ce18 Fix handling of URL's from other applications, by enabling applescript for the static build target (bug 150122). r=sdagley.
git-svn-id: svn://10.0.0.236/trunk@123013 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-10 22:15:10 +00:00
ddrinan%netscape.com
c090144e53 Bug 150708. Incorrect keysize when finding bulk alg. r=wtc.
git-svn-id: svn://10.0.0.236/trunk@123011 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-10 22:00:32 +00:00
despotdaemon%netscape.com
c9cc369f1b Pseudo-automatic update of changes made by knous@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@123009 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-10 21:33:58 +00:00
relyea%netscape.com
b9fd1de57a Return public and private keys in the order specified by the PKCS #11 spec.
git-svn-id: svn://10.0.0.236/trunk@123004 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-10 20:33:31 +00:00
cavin%netscape.com
52ad6d126f Fix for 141299. In nsMsgNewsFolder::SetReadSetFromStr(), after 'mReadSet' is recreated store the new pointer in the db as well. r=naving, sr=bienvenu, a=asa.
git-svn-id: svn://10.0.0.236/trunk@123001 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-10 19:58:10 +00:00
darin%netscape.com
893ea3031d fix more bustage
git-svn-id: svn://10.0.0.236/trunk@123000 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-10 19:47:22 +00:00
darin%netscape.com
de61026d65 fix win32 gmake build bustage
git-svn-id: svn://10.0.0.236/trunk@122999 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-10 19:46:19 +00:00
darin%netscape.com
b4a073fd41 fix some bustage
git-svn-id: svn://10.0.0.236/trunk@122998 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-10 19:44:07 +00:00
leaf%mozilla.org
16b7a6d7d0 Automated update
git-svn-id: svn://10.0.0.236/trunk@122996 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-10 18:55:49 +00:00
darin%netscape.com
dcfb0a0f1f fixes bug 147333 "Cannot load local files whose names contain
Japanese/Chinese characters" r=bstell sr=brendan a=asa


git-svn-id: svn://10.0.0.236/trunk@122994 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-10 18:50:11 +00:00
mikep%oeone.com
fc1f520157 Some small bug fixes from OEone calendar fixes.
git-svn-id: svn://10.0.0.236/trunk@122993 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-10 18:27:28 +00:00
shrutiv%netscape.com
2283486834 Fix for bug 141625: Need to better handle/check/clean output directory for
existing config files (r=mitchf)


git-svn-id: svn://10.0.0.236/trunk@122992 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-10 18:14:59 +00:00
shrutiv%netscape.com
bcef031062 Fix for bug 141625: Need to better handle/check/clean output directory for
existing config files (r=smeredith)


git-svn-id: svn://10.0.0.236/trunk@122991 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-10 18:10:10 +00:00
shrutiv%netscape.com
577f3246b1 Fix for bug 141625: Need to better handle/check/clean output directory for
existing config files (r=mitchf)


git-svn-id: svn://10.0.0.236/trunk@122990 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-10 18:01:06 +00:00
nboyd%atg.com
f9d9ec1879 Add to log of changes.
git-svn-id: svn://10.0.0.236/trunk@122989 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-10 17:44:44 +00:00
nboyd%atg.com
a1f8df61c4 Add new API class WrapFactory.
git-svn-id: svn://10.0.0.236/trunk@122987 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-10 14:28:37 +00:00
nboyd%atg.com
b16f815afb Update javadoc.
git-svn-id: svn://10.0.0.236/trunk@122986 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-10 14:27:43 +00:00
nboyd%atg.com
104176e6c6 Add PrimitiveWrapHandler example.
git-svn-id: svn://10.0.0.236/trunk@122985 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-10 14:23:32 +00:00
nboyd%atg.com
4f7b214f80 Add example of the use of a WrapFactory.
git-svn-id: svn://10.0.0.236/trunk@122984 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-10 14:19:09 +00:00
nboyd%atg.com
07e6387f6b Fix javadoc.
git-svn-id: svn://10.0.0.236/trunk@122983 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-10 14:09:26 +00:00
mikep%oeone.com
b0e4a10754 Fixing bug 149041, problem with old files still in jar file.
git-svn-id: svn://10.0.0.236/trunk@122982 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-10 13:19:25 +00:00
cotter%netscape.com
e2d02ab5b8 ongoing help content updates per bugzilla 122806 & ADT, r=oeschger; latest security-related updates.
git-svn-id: svn://10.0.0.236/trunk@122976 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-10 04:41:17 +00:00
oeschger%netscape.com
a24ac0aed0 adding some images to help content, dispensation per bug 122806
git-svn-id: svn://10.0.0.236/trunk@122971 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-10 02:15:47 +00:00
despotdaemon%netscape.com
63dbabfc1a Pseudo-automatic update of changes made by hyatt@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@122970 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-10 02:06:30 +00:00
bryner%netscape.com
4c3e7a460f One more static build fix.
git-svn-id: svn://10.0.0.236/trunk@122969 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-10 01:24:14 +00:00
arougthopher%lizardland.net
e437cd60af Bug#125132
foreign characters not displayed properly in align=justify

this patch is a better algorythm for aligning/drawnig the text.  one word at a time, instead of one character.

r=arougthopher


git-svn-id: svn://10.0.0.236/trunk@122968 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-10 00:47:07 +00:00
law%netscape.com
500495a9f4 Bug 89907; new 'set default browser' UI for Nav pref panel; localization change only going in now; r=sgehani, sr=ben, a=asa
git-svn-id: svn://10.0.0.236/trunk@122965 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-09 22:43:29 +00:00
bryner%netscape.com
1adde8f96c Static build fixes.
git-svn-id: svn://10.0.0.236/trunk@122964 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-09 21:25:52 +00:00
igor%mir2.org
cc37fd3667 Deprecating NativeJavaObject.wrap and using Context.getWrapFactory().wrap() instead.
git-svn-id: svn://10.0.0.236/trunk@122962 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-09 15:58:15 +00:00
igor%mir2.org
95848e2010 More comments
git-svn-id: svn://10.0.0.236/trunk@122961 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-09 15:57:03 +00:00
igor%mir2.org
b996771d69 Documentation: points to watch when upgrading to WrapFactory
git-svn-id: svn://10.0.0.236/trunk@122960 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-09 15:56:12 +00:00
igor%mir2.org
aa742e4e57 Fixing broken logic in emulating custom WrapFactory via deprecated WrapHandler:
the code should not call setWrapFactory with null argument, but use new WrapFactory to restore default behaviour


git-svn-id: svn://10.0.0.236/trunk@122959 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-09 15:54:30 +00:00
ben%netscape.com
bb3938d55b Fix for topcrashers bug 143118 and bug 146891 - prevent continued deserialization after a a deserialization failure of the XUL PD by aborting on failure, also, ensure that that propagates up so we can catch it. Fix an oops (trying to remove the fasl file before closing the stream to it) and hack around a nsLocalFileWin bug (bug 150156) in the process. r=waterson, sr=brendan, a=asa
git-svn-id: svn://10.0.0.236/trunk@122957 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-09 10:31:00 +00:00
igor%mir2.org
111ad534c3 Introducing the WrapFactory class that should be used in place of the deprecated WrapHandler interface.
git-svn-id: svn://10.0.0.236/trunk@122956 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-09 09:23:00 +00:00
bryner%netscape.com
79d0374ca6 Add a command-line parameter, "-autoRegister", to allow automated component registration for static builds. r=ben.
git-svn-id: svn://10.0.0.236/trunk@122954 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-09 08:15:59 +00:00
mcafee%netscape.com
68dec9f1bd Re-generating this file to reflect alecf's latest modularization effort, also ran this on a tree with --enable-extensions=all so that we include extensions now.
git-svn-id: svn://10.0.0.236/trunk@122953 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-09 07:37:55 +00:00
bryner%netscape.com
89cfb1c4f3 Fix handling of the widget resources file by creating a data-fork resource file that lives in the application directory (bug 146895). r=ccarlen, sr=beard, a=asa for mach-o-only changes.
git-svn-id: svn://10.0.0.236/trunk@122948 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-09 00:05:37 +00:00
mcafee%netscape.com
093fc5db82 Adding mozilla favicon
git-svn-id: svn://10.0.0.236/trunk@122942 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-08 10:43:08 +00:00
bryner%netscape.com
83e4f8d0ae Fix a crash scrolling the address list in the mail compose window (bug 142542). r=ben, sr=jag, a=asa.
git-svn-id: svn://10.0.0.236/trunk@122935 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-08 07:50:34 +00:00
mcafee%netscape.com
13770b909f Splitting liveconnect off from the java module, new module is called liveconnect, similar to what was done for xpconnect (145347). r=blythe, sr=alecf, a=asa
git-svn-id: svn://10.0.0.236/trunk@122934 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-08 06:59:53 +00:00
mcafee%netscape.com
98a69d40fc Undo forced necko, mimetype ordering. Solve this problem in export/idl phase (150083). r/sr=alecf, a=asa
git-svn-id: svn://10.0.0.236/trunk@122933 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-08 06:54:02 +00:00
mcafee%netscape.com
31769bd611 Add js/src/fdlibm dir to js module map (150077). r=cls, sr=alecf, a=asa
git-svn-id: svn://10.0.0.236/trunk@122932 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-08 06:51:14 +00:00
pschwartau%netscape.com
acfdc5bfee Adding new sections authored by john@statesoftware.com from bug 150032.
git-svn-id: svn://10.0.0.236/trunk@122931 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-08 04:26:18 +00:00
bbaetz%student.usyd.edu.au
d62903a681 Bug 149845 - buglist.cgi checks for ORDER validity are wrong
r=myk x2


git-svn-id: svn://10.0.0.236/trunk@122927 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-08 03:06:10 +00:00
morse%netscape.com
23b7300d39 bug 149176, can't invoke profile manager if only one profile and turbo active, r=law, sr=ben,a=asa
git-svn-id: svn://10.0.0.236/trunk@122923 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-08 01:20:06 +00:00
robinf%netscape.com
ebf7c3a7fa routine help updates per bug 12
git-svn-id: svn://10.0.0.236/trunk@122918 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-08 01:10:51 +00:00
matty%chariot.net.au
c40459bfcc Release notes updates.
git-svn-id: svn://10.0.0.236/trunk@122908 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-07 23:39:35 +00:00
jkeiser%netscape.com
e7b5e6e67f Fire onSubmit event when enter pressed in no-submit-button forms (bug 149685). r=peterv, sr=jst, a=asa
git-svn-id: svn://10.0.0.236/trunk@122906 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-07 23:00:17 +00:00
pinkerton%netscape.com
efe610296d Adding a bunch of security warnings and dialogs, overriding the
XUL impl with our own.


git-svn-id: svn://10.0.0.236/trunk@122902 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-07 22:26:35 +00:00
yokoyama%netscape.com
4348dcd2d0 Backing out my change. Need drivers approval.....
git-svn-id: svn://10.0.0.236/trunk@122901 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-07 21:53:19 +00:00
yokoyama%netscape.com
67d555dd8f Bug 149171 and 146844
IME input processing
Only impact Simplified Chinese Windows.
/r=shanjian, /sr=brendan


git-svn-id: svn://10.0.0.236/trunk@122900 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-07 21:44:08 +00:00
mcafee%netscape.com
f229d201a6 Fixing one more typo, last one I promise. Does not affect normal SeaMonkey build. (143399) r=blythe, sr=alecf, a=asa
git-svn-id: svn://10.0.0.236/trunk@122899 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-07 21:37:12 +00:00
locka%iol.ie
206740d4be Persist data for embed & object tags. b=141316 r=brade@netscape.com sr=kin@netscape.com a=asa@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@122898 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-07 21:31:33 +00:00
mcafee%netscape.com
c8f46ae8cb Fixing typo from my last checkin. Does not affect normal SeaMonkey build. (143399) r=blythe, sr=alecf, a=asa
git-svn-id: svn://10.0.0.236/trunk@122897 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-07 21:29:58 +00:00
locka%iol.ie
1a345f8a80 (On behalf of Steve Williams <steve--w@dircon.co.uk>) Add activate message to fix focus in text areas. b=148613 r=adamlock@netscape.com sr=rpotts@netscape.com a=asa@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@122896 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-07 21:29:20 +00:00
mcafee%netscape.com
2c11535102 Adding new modules, modules that live in mozilla/extensions, and modules buried a few levels deep that I missed before. Cleaned up js module. (143399) r=blythe, sr=alecf, a=asa
git-svn-id: svn://10.0.0.236/trunk@122894 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-07 20:56:43 +00:00
djani%netscape.com
9ac81ff249 Bug 143300: Support for files with >2GB size. Now, we compile with _LARGEFILE64_SOURCE tag and we use fopen/fopen64 accordingly.
git-svn-id: svn://10.0.0.236/trunk@122893 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-07 20:09:11 +00:00
despotdaemon%netscape.com
8efb8cbaec Pseudo-automatic update of changes made by mcs@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@122892 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-07 19:16:13 +00:00
dkl%redhat.com
8675a909c5 Fix for bug 149964 - quietly_check_login() needs to be called in colchange.cgi. Patch author David Lawrence <dkl@redhat.com>. 2xr=justdave@syndicomm.com
git-svn-id: svn://10.0.0.236/trunk@122889 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-07 16:39:38 +00:00
rods%netscape.com
f762610be3 Don't check the range boolean for ending the page
Bug 146296 r=dcone sr=waterson a=asa


git-svn-id: svn://10.0.0.236/trunk@122887 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-07 14:30:17 +00:00
dcone%netscape.com
23878f8525 b=116042 r=rods sr=waterson a=asa. Fixed a null pointer situation on a mac call. This may fix alot of mac problems when
native widgets are not available. (ie printing)


git-svn-id: svn://10.0.0.236/trunk@122885 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-07 13:42:45 +00:00
morse%netscape.com
d789a6545f backing out last change, didn't realize trunk now requires driver approval
git-svn-id: svn://10.0.0.236/trunk@122879 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-07 12:20:47 +00:00
morse%netscape.com
e56d38a8bf bug 149176, profile manager doesn't appear when trying to create a 2nd profile and turbo is active, r=law, sr=ben
git-svn-id: svn://10.0.0.236/trunk@122878 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-07 12:17:23 +00:00
leaf%mozilla.org
1fd39ed4a0 updating locale version string for impending release, bug 149802
git-svn-id: svn://10.0.0.236/trunk@122873 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-07 07:45:38 +00:00
beard%netscape.com
f190b59da8 Fix build bustage by declaring PRInt32 index outside of for loop.
git-svn-id: svn://10.0.0.236/trunk@122871 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-07 06:26:14 +00:00
cotter%netscape.com
f609c35582 ongoing help content updates per bugzilla 122806 & ADT, r=oeschger; latest legal & editorial correx.
git-svn-id: svn://10.0.0.236/trunk@122870 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-07 05:59:06 +00:00
darin%netscape.com
12ba22a968 fixes bug 149090 "viewing an image three times corrupts web pages [leaks
file descriptors on all platforms]" r=dougt, sr=rpotts, a=asa


git-svn-id: svn://10.0.0.236/trunk@122867 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-07 05:07:51 +00:00
bernd.mielke%snafu.de
7f3ec768d3 layout debug url correction not part of any build
git-svn-id: svn://10.0.0.236/trunk@122866 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-07 05:02:15 +00:00
bernd.mielke%snafu.de
bd3a26d33e layout docs - url correction not part of any build
git-svn-id: svn://10.0.0.236/trunk@122864 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-07 04:58:06 +00:00
cmanske%netscape.com
ce270b48fc Added tooltips to Publish dialogs, b=139896, r=brade/robinf, sr=kin, a=adt, a=shaver/drivers
git-svn-id: svn://10.0.0.236/trunk@122863 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-07 04:53:48 +00:00
bryner%netscape.com
7c12195130 Landing the changes for Chimera static builds (not on by default).
git-svn-id: svn://10.0.0.236/trunk@122862 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-07 04:35:37 +00:00
pete.zha%sun.com
db7886826b bug 148314:Implementation the nsIAccessibleTable
Description: let HTML table support nsIAccessibleTable extension
r=aaronl, sr=jst, a=asa


git-svn-id: svn://10.0.0.236/trunk@122861 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-07 04:15:18 +00:00
oeschger%netscape.com
2568ec4881 key updates for help, shoulda been part of yesterday's check-in for 129540, r=bhuvan, sr=alecf, a=asa
git-svn-id: svn://10.0.0.236/trunk@122859 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-07 02:56:36 +00:00
cltbld%netscape.com
e9be56c1ba part of updating installer for 1.1a bug 149142 ... r=jj sr=lpham a=leaf. asasaki checking in as cltbld.
git-svn-id: svn://10.0.0.236/trunk@122851 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-07 01:10:32 +00:00
cltbld%netscape.com
1ebccf3971 updating milestone.pl to allow for 1.1a, changes to 1.1a installer.
bug 149142, r=jj, sr/a=leaf, asasaki checking in as cltbld.


git-svn-id: svn://10.0.0.236/trunk@122850 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-07 01:06:28 +00:00
bryner%netscape.com
5f37ed3fea Fixing loss of focus when opening a URL in a new tab. If we receive a focus event and have not done an initial reflow yet, go ahead and do one so that we can dispatch the event. Otherwise, the focus controller becomes out of sync with the actual native widget focus. Bug 138237, r=dbaron, sr=waterson, a=asa.
git-svn-id: svn://10.0.0.236/trunk@122849 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-07 00:53:44 +00:00
stephend%netscape.com
f22c2ff39c Bug 148597. Can't drag a bookmark from personal toolbar to a tab. Patch by Pierre Chanial <pierrechanial@netscape.net> r=timeless, sr=blake, a=asa
git-svn-id: svn://10.0.0.236/trunk@122847 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-06 23:56:56 +00:00
leaf%mozilla.org
6bf15bb925 updating user agent for impending release, bug 149132
git-svn-id: svn://10.0.0.236/trunk@122846 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-06 23:52:04 +00:00
naving%netscape.com
5fc5b58188 139845 r=cavin sr=bienvenu a=asa fixing scrollbar missing when returning to folder view after doing quick search in certain cases.
git-svn-id: svn://10.0.0.236/trunk@122845 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-06 23:42:37 +00:00
beard%netscape.com
3b77c43899 Backout previous checkin. MRJPlugin.jar is now part of the tree.
git-svn-id: svn://10.0.0.236/trunk@122844 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-06 23:40:28 +00:00
beard%netscape.com
93377e9b1f Add MRJPlugin.jar to the tree for bootstrapping. Fix build bustage.
git-svn-id: svn://10.0.0.236/trunk@122841 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-06 23:37:14 +00:00
beard%netscape.com
4452c32d00 Fix build bustage, if no Java tools.
git-svn-id: svn://10.0.0.236/trunk@122840 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-06 23:32:07 +00:00
alecf%netscape.com
a6e1684fe2 backing out, don't know why this built on my machine
git-svn-id: svn://10.0.0.236/trunk@122839 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-06 23:25:43 +00:00
alecf%netscape.com
25283f33da argh, this never should have landed, that explains it..backing out this file
git-svn-id: svn://10.0.0.236/trunk@122834 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-06 22:17:45 +00:00
mkaply%us.ibm.com
215e1c2477 #149751
r=mkaply, sr=blizzard
OS/2 only - don't recycle compose windows - turn off pref


git-svn-id: svn://10.0.0.236/trunk@122833 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-06 22:17:25 +00:00
alecf%netscape.com
442d04a511 huh, I don't know how this got whacked.. fixing bustage
git-svn-id: svn://10.0.0.236/trunk@122832 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-06 22:14:46 +00:00
mkaply%us.ibm.com
7005ea8b71 #147929
r=jkobal, sr=blizzard
OS/2 only - handle special case of WM_QUIT so don't stop the OS from shutting down


git-svn-id: svn://10.0.0.236/trunk@122831 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-06 22:12:33 +00:00
alecf%netscape.com
1106f5b133 bug 149230 - crash launching helper apps
r=ducarroz, sr=blake, a=asa


git-svn-id: svn://10.0.0.236/trunk@122830 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-06 22:12:18 +00:00
myk%mozilla.org
32af0659a4 Backing out incorrect change to background color that was accidentally checked in as part of the fix for bug 148179.
git-svn-id: svn://10.0.0.236/trunk@122829 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-06 22:11:29 +00:00
cavin%netscape.com
9c27bf0ebd Fix for 107466. Reset msg uid in server state parser before calling 'foundShell->Generate()' because the uid may have been used by newly arrived mail. r=naving, sr=bienvenu, a=asa.
git-svn-id: svn://10.0.0.236/trunk@122828 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-06 21:44:27 +00:00
naving%netscape.com
269a6f4b8d 144228 r=cavin sr=bienvenu a=asa fixing security bug that breaks pop3 connection and prevents downloading of
msgs.


git-svn-id: svn://10.0.0.236/trunk@122827 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-06 21:31:43 +00:00
cavin%netscape.com
0f6982bbe6 Fix for 140850. In AddLdifRowToDatabase(), reset CR/LF counters and return if there's no data in the ldif buffer to process. R=ducarroz, sr=sspitzer, a=asa.
git-svn-id: svn://10.0.0.236/trunk@122826 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-06 21:29:25 +00:00
dcone%netscape.com
afae4e412f not part of build. Adding a new test case
git-svn-id: svn://10.0.0.236/trunk@122825 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-06 21:16:26 +00:00
dcone%netscape.com
ed1b38ea91 not part of build. Update on debug source
git-svn-id: svn://10.0.0.236/trunk@122824 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-06 21:15:53 +00:00
pinkerton%netscape.com
cb7f5ddb29 Fix prefs not getting written out (patch from bfoucher@mac.com). Removing
smooth text menu item since the non-atsui version is so much faster, we
always want it on.


git-svn-id: svn://10.0.0.236/trunk@122823 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-06 21:13:10 +00:00
pinkerton%netscape.com
23d9384d58 removing rename sheet, as it's not needed with info panel. making info panel
a bit larger.


git-svn-id: svn://10.0.0.236/trunk@122822 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-06 20:40:48 +00:00
beard%netscape.com
77530b2e38 Add MRJPluginCarbon to the build. r=jj, sr=waterson, a=adt/jaimejr.
git-svn-id: svn://10.0.0.236/trunk@122821 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-06 20:35:33 +00:00
alecf%netscape.com
6ebda75c34 fix for bug 101761 - REQUIRES update - remove all REQUIRES that are no longer necessary.. r=cls, a=asa (build-only changes)
git-svn-id: svn://10.0.0.236/trunk@122820 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-06 20:28:14 +00:00
dcone%netscape.com
4dedf2a23f b = 141786 r=rods sr=waterson a=valeski. Fine tune what algorithms the backgrounds go thru.
This speeds up the anything that had less than 32 background tiles.


git-svn-id: svn://10.0.0.236/trunk@122819 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-06 20:00:40 +00:00
pinkerton%netscape.com
a386886cfe turn on quartz rendering if 10.1.5 is present. bug 149427, r=sdagley/sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@122817 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-06 19:48:15 +00:00
bernd.mielke%snafu.de
57a503f498 debug docs not part of the build
git-svn-id: svn://10.0.0.236/trunk@122815 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-06 19:19:16 +00:00
shrutiv%netscape.com
34d0ccf06f Fix for bug 100423: Provide grey out feature for Proxy settings screen
(r=smeredith)


git-svn-id: svn://10.0.0.236/trunk@122813 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-06 17:18:24 +00:00
shrutiv%netscape.com
4dd793c40b Fix for bugzilla bug 100423: Provide grey out feature for Proxy
settings screen (r=smeredith)


git-svn-id: svn://10.0.0.236/trunk@122812 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-06 17:14:14 +00:00
shrutiv%netscape.com
a0cec7ba96 Fix for bug 103972: Provide warning dialog for empty help menu url (r=smeredith)
git-svn-id: svn://10.0.0.236/trunk@122811 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-06 17:05:49 +00:00
shrutiv%netscape.com
8580080825 Fix for bug 122819: include version info in cck.che (r=smeredith)
git-svn-id: svn://10.0.0.236/trunk@122810 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-06 16:54:35 +00:00
nboyd%atg.com
d51aa273b6 Fix for bug 149285: Complier does not report the correct line number on
SyntaxError:Invalid assignment left-hand side.


git-svn-id: svn://10.0.0.236/trunk@122809 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-06 15:01:57 +00:00
rods%netscape.com
b1b69dfd1a Add nsIObserver to the ShowPageSetup method for platforms that impl an Apply btn
Bug 149317 r=dcone sr=kin


git-svn-id: svn://10.0.0.236/trunk@122808 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-06 13:27:30 +00:00
mikep%oeone.com
9b7a6b8b79 Fixing small spelling mistake.
git-svn-id: svn://10.0.0.236/trunk@122807 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-06 13:13:35 +00:00
rods%netscape.com
8a7c290ff7 Add nsIObserver to the ShowPageSetup method for platforms that impl an Apply btn
Bug 149317 r=dcone sr=kin


git-svn-id: svn://10.0.0.236/trunk@122803 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-06 10:40:42 +00:00
oeschger%netscape.com
59b1fef7ab updating search db for Help, dispensation per 128806
git-svn-id: svn://10.0.0.236/trunk@122801 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-06 04:47:27 +00:00
oeschger%netscape.com
66a7f248dd adding im and icq 'keys' for context sensitive help, bug=129540, r=cotter, sr=alecf, a=asa/drivers
git-svn-id: svn://10.0.0.236/trunk@122800 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-06 04:42:49 +00:00
cmanske%netscape.com
92725f3819 Make font size in HTML source = user's fixed-width size set in prefs. b=114022, r=rbs, sr=alecf+kin, a=asa/drivers
git-svn-id: svn://10.0.0.236/trunk@122799 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-06 04:36:55 +00:00
matty%chariot.net.au
b0352fe719 Release notes updates.
git-svn-id: svn://10.0.0.236/trunk@122798 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-06 04:08:59 +00:00
sdagley%netscape.com
2ae0b2d1b5 Fix #149133 - crash when scrolling a tab created by 'Open Link in New Tab' due to not having a valid focused widget when the page finishes loading. r=pinkerton, sr=beard
git-svn-id: svn://10.0.0.236/trunk@122797 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-06 04:08:19 +00:00
bryner%netscape.com
3faacf9598 Bug 149225 - fix a crash on exit caused by shaver's checkin for bug 128335. r=pinkerton, sr=shaver, a=asa.
git-svn-id: svn://10.0.0.236/trunk@122796 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-06 03:04:56 +00:00
ssu%netscape.com
e9e63aa6a5 fixing bug 137141 - Wrong context menu items in stand alone mail window. r=neil sr=sspitzer a=drivers
git-svn-id: svn://10.0.0.236/trunk@122795 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-06 02:27:20 +00:00
caillon%returnzero.com
e9d52dc4f1 Bug 74688, Prevent context menus from appearing over scrollbars. r=sgehani, sr=jag, a=asa
git-svn-id: svn://10.0.0.236/trunk@122794 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-06 01:35:19 +00:00
bienvenu%netscape.com
e73d05592d rest of fix for 138018 disable move/delete for readonly folders r=naving, sr=sspitzer, a=asa
git-svn-id: svn://10.0.0.236/trunk@122793 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-06 01:19:42 +00:00
jj%netscape.com
7be8ad9e3f bug #149140 - updated Finder's get info string to '1.1a'. r=lpham, sr=leaf, a=leaf
git-svn-id: svn://10.0.0.236/trunk@122792 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-06 01:16:34 +00:00
jpierre%netscape.com
519cd93867 Fix for 141256 - rewrite OCSP HTTP download code to fix error handling
git-svn-id: svn://10.0.0.236/trunk@122791 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-06 01:05:40 +00:00
beard%netscape.com
dfe0761503 [not part of build] Remove obsolete project file.
git-svn-id: svn://10.0.0.236/trunk@122790 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-06 00:41:29 +00:00
beard%netscape.com
88353197a6 [not part of build, yet] Needed for plugin bundle automation.
git-svn-id: svn://10.0.0.236/trunk@122789 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-06 00:33:07 +00:00
jpierre%netscape.com
58ed7992a0 Fix for 139874 - Inject Latest CA Root Certs
git-svn-id: svn://10.0.0.236/trunk@122788 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-06 00:12:56 +00:00
leaf%mozilla.org
d8d721272a checking out all plugins/oji
git-svn-id: svn://10.0.0.236/trunk@122787 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-06 00:01:39 +00:00
mitchf%netscape.com
9ffe3b38b2 renumber modules correctly if Calendar exists. Fixes bug 13710
git-svn-id: svn://10.0.0.236/trunk@122786 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-05 20:56:39 +00:00
mitchf%netscape.com
62ad648322 added function 'configureAddText' Fixes bug 13710
git-svn-id: svn://10.0.0.236/trunk@122785 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-05 20:55:33 +00:00
igor%mir2.org
64390a84fc Replacing check for unescaped characters in encode/decode from searching in a string to doing switch. It provides a noticeable speedup during encoding/decoding of long strings where almost all characters should be encoded.
git-svn-id: svn://10.0.0.236/trunk@122784 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-05 20:40:57 +00:00
mikep%oeone.com
d3502e5237 Fixing about dialog to match Mozilla.
git-svn-id: svn://10.0.0.236/trunk@122783 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-05 19:58:47 +00:00
mikep%oeone.com
abc7212fff Update for using commands as broadcasters, and adding in keybindings to most things now.
git-svn-id: svn://10.0.0.236/trunk@122782 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-05 19:24:28 +00:00
timeless%mac.com
3b6afd04a4 Bug 90598 spelling and minor syntactic correctness [doeHs]
a=baloo


git-svn-id: svn://10.0.0.236/trunk@122781 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-05 17:57:41 +00:00
pinkerton%netscape.com
84ff93f0f8 Fixing un-necessary object creation.
git-svn-id: svn://10.0.0.236/trunk@122780 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-05 15:26:52 +00:00
mikep%oeone.com
df3b1882ad Updating classic skin for new moz-region. bug 149041.
git-svn-id: svn://10.0.0.236/trunk@122779 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-05 15:13:48 +00:00
mikep%oeone.com
b22a725980 Fixing bug 148435, problem with minutes being too narrow.
git-svn-id: svn://10.0.0.236/trunk@122778 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-05 15:04:59 +00:00
mikep%oeone.com
3937da8d3a Small fix to prevent JS error.
git-svn-id: svn://10.0.0.236/trunk@122777 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-05 14:56:45 +00:00
mikep%oeone.com
823f4da24f Fixing bug 137371, adding in keysets for window menu.
git-svn-id: svn://10.0.0.236/trunk@122776 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-05 14:56:34 +00:00
ben%netscape.com
9b5b8ae91e bookmark keyword back end + fix for missing bookmark file causes crash on startup
git-svn-id: svn://10.0.0.236/trunk@122775 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-05 14:24:54 +00:00
mikep%oeone.com
12dd33911a Updating jar.mn and date for about page.
git-svn-id: svn://10.0.0.236/trunk@122774 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-05 13:27:39 +00:00
jaggernaut%netscape.com
1ecc6f00ca Fix typo: |const browser = | -> |const browsers = |. r=Neil.
git-svn-id: svn://10.0.0.236/trunk@122772 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-05 11:06:37 +00:00
ben%netscape.com
f997e30e8d Hook up Bookmarks Info Window, bug 148933
git-svn-id: svn://10.0.0.236/trunk@122770 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-05 10:09:37 +00:00
matty%chariot.net.au
bde1b0a610 Release notes updates.
git-svn-id: svn://10.0.0.236/trunk@122765 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-05 04:43:05 +00:00
stephend%netscape.com
2161560370 Bug 139797. Addressbook should read address book in the Import Wizard. Patch by Dawn Endico <endico@mozilla.org> r=me, sr=jst. Cleanup tabs, also.
git-svn-id: svn://10.0.0.236/trunk@122764 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-05 04:18:32 +00:00
mkaply%us.ibm.com
d433fe17da #147977
r=jpierre, sr=blizzard
OS/2 only - int32 math causing incorrect computation of disk space


git-svn-id: svn://10.0.0.236/trunk@122763 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-05 04:02:33 +00:00
mcafee%netscape.com
764c900e03 Further-specify imglib2 module directories. Properly add png to the build using imgpng, not the raw png module. r=blythe, sr=alecf (149123)
git-svn-id: svn://10.0.0.236/trunk@122759 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-05 03:49:30 +00:00
matty%chariot.net.au
c48e3590b3 Bug 148919: Make entryheader a separate template. (again)
git-svn-id: svn://10.0.0.236/trunk@122754 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-05 03:40:28 +00:00
ducarroz%netscape.com
beb4464de3 Fix for bug 97055. The previous fix isn't working correctly when the pref "imageblocker.enabled" is set to false. mailnews element must not be disabled. R=morse, SR=bienvenu
git-svn-id: svn://10.0.0.236/trunk@122752 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-05 03:38:59 +00:00
beard%netscape.com
1ec1a80dcc Empirically determined vertical coordinate fixup (HACK) for Chimera.
git-svn-id: svn://10.0.0.236/trunk@122745 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-05 02:39:25 +00:00
beard%netscape.com
1cf870f45c Workaround for shutdown hang in Chimera.
git-svn-id: svn://10.0.0.236/trunk@122744 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-05 02:38:39 +00:00
justdave%syndicomm.com
1324aacb65 Fix for bug 148679: permit multiple stylesheets in the header template.
Patch by Joel Peshkin <bugreport@peshkin.net>
r= jouni, gerv


git-svn-id: svn://10.0.0.236/trunk@122743 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-05 02:23:12 +00:00
cmanske%netscape.com
a7a8c73bdb Save copy of document and restore if publishing fails, b=134883, r=brade, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@122735 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-05 01:38:08 +00:00
cmanske%netscape.com
b4a17af704 Improve Publishing progress and error notification, b=148425, r=brade, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@122734 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-05 01:17:33 +00:00
brendan%mozilla.org
13e8a43ab1 Ensure a live keyHash *after* multiplying by the irrational (146907, r=dbaron, sr=shaver).
git-svn-id: svn://10.0.0.236/trunk@122729 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-05 00:47:38 +00:00
ftang%netscape.com
1441afca01 fix bug 84668. r=shanjian sr=alecf
on simplfied chinese window. force any return value of
system font size < 9 to be at least 9 because we know
the glyph less than 9 look very very ugly on SimpChinese system


git-svn-id: svn://10.0.0.236/trunk@122725 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-05 00:41:04 +00:00
jaggernaut%netscape.com
c612097537 Bug 103452: When window.close() is called, close the tab for that content window, not the whole (XUL) window. Patch by jag and jst, r=hewitt, r=bryner, sr=jag, sr=jst
git-svn-id: svn://10.0.0.236/trunk@122723 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-05 00:38:31 +00:00
jaggernaut%netscape.com
96adc87948 Bug 103452: When window.close() is called, close the tab for that content window, not the whole (XUL) window. r=hewitt, sr=jag, sr=jst
git-svn-id: svn://10.0.0.236/trunk@122718 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-05 00:31:45 +00:00
stephend%netscape.com
a15b86895e Bug 146598. Disable Search button until we have entered text. Patch by Stephen Walker <walk84@yahoo.com> r=oeschger, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@122717 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-05 00:08:20 +00:00
stephend%netscape.com
efa4dc34f4 Bug 86986. Disable location textfield when mail startup checkbox is off. Patch by Stephen Walker <walk84@yahoo.com> r=ssu, sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@122716 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-05 00:00:53 +00:00
jaggernaut%netscape.com
9387a01a7d Bug 148840: r=caillon, sr=jst on the previous checkin
git-svn-id: svn://10.0.0.236/trunk@122715 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 23:52:43 +00:00
stephend%netscape.com
edcb4785bd Bug 109554. Tooltips shouldn't appear on grippies unless minimized. Patch by Neil <neil@parkwaycc.co.uk> r=bryner, sr=ben
git-svn-id: svn://10.0.0.236/trunk@122714 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 23:51:23 +00:00
jaggernaut%netscape.com
7e8b6c72fa Bug 148840: work around checkbox binding not being available at onload the first time the dialog is opened.
git-svn-id: svn://10.0.0.236/trunk@122713 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 23:51:05 +00:00
cathleen%netscape.com
32cd03d43c clean up last traces of nsCRT::strlen(char* s), bug 124536 r=dp, sr=brendan
git-svn-id: svn://10.0.0.236/trunk@122710 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 23:05:39 +00:00
myk%mozilla.org
d5be1a75f5 Fix for bug 148179: Cleans up interface to header.html.tmpl.
r=justdave,bbaetz


git-svn-id: svn://10.0.0.236/trunk@122708 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 22:56:40 +00:00
caillon%returnzero.com
b4ae1be072 Bug 107949, Allow the user to prevent sites from disabling window features via window.open(). r=danm, sr=jag
git-svn-id: svn://10.0.0.236/trunk@122707 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 22:24:00 +00:00
pinkerton%netscape.com
53f4c512bd Stubbing in more tooltip support, ifdef'd out, doesn't fully work yet.
git-svn-id: svn://10.0.0.236/trunk@122706 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 21:52:44 +00:00
cmanske%netscape.com
caa368c66a Use standard Composer method for alert dialog in Replace code, b=146403, fix=neil@parkwaycc.co.uk, r=cmanske,sr=dveditz
git-svn-id: svn://10.0.0.236/trunk@122705 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 21:50:24 +00:00
pinkerton%netscape.com
231e3d4efb respect the chrome mask. hide the main toolbar, personal toolbar, and
status bar if required.


git-svn-id: svn://10.0.0.236/trunk@122704 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 21:50:14 +00:00
pinkerton%netscape.com
a5b66ac63a Adding a subview for the status bar so we can hide it when the chrome
mask says no status bar.


git-svn-id: svn://10.0.0.236/trunk@122703 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 21:49:45 +00:00
dougt%netscape.com
c4b7ad94e8 Fixes allocation/deallcation mismatch. sr=darin, verified by stephend, b=149108
git-svn-id: svn://10.0.0.236/trunk@122702 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 21:48:53 +00:00
thayes%netscape.com
7eb9837675 Reserve OID (netscape_name_components 2) - see 605437
git-svn-id: svn://10.0.0.236/trunk@122701 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 21:46:05 +00:00
naving%netscape.com
8ac1d8fd72 90064 r=cavin sr=bienvenu. fixing Subscribe error alerts when sending mail and copying msg to imap sent folder
without launching mailnews. The fix is to build the folder hierarchy.


git-svn-id: svn://10.0.0.236/trunk@122700 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 21:45:09 +00:00
cmanske%netscape.com
5fe52f3af6 Make Publish command more accessible, b=146522, r=akkana/brade, sr=dveditz
git-svn-id: svn://10.0.0.236/trunk@122698 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 21:39:10 +00:00
locka%iol.ie
b8260ca22c Added unsupported warnings to winEmbed.
git-svn-id: svn://10.0.0.236/trunk@122697 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 21:29:04 +00:00
beard%netscape.com
9346dad1cf Added some plugin source files (not built) for reference.
git-svn-id: svn://10.0.0.236/trunk@122696 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 20:57:00 +00:00
heikki%netscape.com
4fa84bff42 Bug 132105, XLinks must pay attention to the popup prefs. r=harishd, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@122694 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 20:24:37 +00:00
depstein%netscape.com
6cc179f821 added 'javascript' channel test in "TestYourMethod2()", Tests.cpp
a=asa for QA checkins that are not part of the default builds


git-svn-id: svn://10.0.0.236/trunk@122693 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 20:22:45 +00:00
mikep%oeone.com
7b764c6be1 Fixing bug 148370, problem with events changing day after switching start day.
git-svn-id: svn://10.0.0.236/trunk@122692 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 19:55:40 +00:00
pschwartau%netscape.com
bd469e1cf8 Cosmetic whitespace cleanup.
git-svn-id: svn://10.0.0.236/trunk@122691 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 19:51:59 +00:00
cbiesinger%web.de
9c8877de47 bug 148787 patch by hixie r=dbaron sr=roc+moz
Clicked links don't go red (prefs style sheet is overriding UA style sheet)


git-svn-id: svn://10.0.0.236/trunk@122690 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 19:44:53 +00:00
mikep%oeone.com
d1c1cef388 Fixing bug 139767, adding page up and page down keybindings to calendar code.
git-svn-id: svn://10.0.0.236/trunk@122689 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 19:37:51 +00:00
mikep%oeone.com
a9100ca2cd Fixing bug 149041, using image region now for modern skin.
git-svn-id: svn://10.0.0.236/trunk@122688 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 19:15:00 +00:00
pinkerton%netscape.com
7096840e76 default tab is the first one, not the second.
git-svn-id: svn://10.0.0.236/trunk@122687 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 19:10:01 +00:00
mikep%oeone.com
450bbf5543 Fixing bug 147319 so that the calendar remembers the last view you were on.
git-svn-id: svn://10.0.0.236/trunk@122686 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 19:01:03 +00:00
rogerl%netscape.com
a60dd76705 Corrected tests to match ECMA - unmatched paren contents need to have the
value 'undefined' rather than an empty string.


git-svn-id: svn://10.0.0.236/trunk@122685 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 18:51:05 +00:00
neeti%netscape.com
29dc4eb3d1 fix for bug 142629 - [win32 only] recursive copy / move errors are not properly bubbled up, r=dougt, sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@122684 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 18:47:37 +00:00
nboyd%atg.com
15cf3a18a3 Fix ClassCastException.
git-svn-id: svn://10.0.0.236/trunk@122683 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 18:37:21 +00:00
pinkerton%netscape.com
167fbed364 make "home" button do the right thing. turn pref manager object into a
shared object owned by the main controller so other objects can easily
get to it to ask about prefs. reworked the code that gets the homepage
so that it conditionally checks if it should check the startup page
mode (obviously the home button doesn't want that). bug# 148936.


git-svn-id: svn://10.0.0.236/trunk@122682 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 18:36:29 +00:00
locka%iol.ie
2e9ed95e9d Clarify nsIWebBrowserSetup documentation. b=143326 r=depstein@netscape.com sr=rpotts@netscape.com
git-svn-id: svn://10.0.0.236/trunk@122681 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 18:31:00 +00:00
brendan%mozilla.org
28a8567dd7 Respect addProperty failure (148899, r=khanson, sr=shaver).
git-svn-id: svn://10.0.0.236/trunk@122680 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 18:13:55 +00:00
mostafah%oeone.com
d89b464a34 Applied patch to fix bug 145508
git-svn-id: svn://10.0.0.236/trunk@122679 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 17:56:36 +00:00
shrutiv%netscape.com
2bb1c58122 Fix for bugscape bug 15424: Support easy way to add a sidebar panel
via CCK (r=smeredith)


git-svn-id: svn://10.0.0.236/trunk@122678 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 17:55:33 +00:00
kmcclusk%netscape.com
eb567220f1 Dispatch (WIN32 only) and handle a new cross platform message NS_SYSCOLORCHANGE. bug 143174. r=rods sr=roc
git-svn-id: svn://10.0.0.236/trunk@122677 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 17:47:54 +00:00
mikep%oeone.com
ed4ced5369 Doing remove attribute now and fixing bug 145825, week view now shows the right colors for weekends after changing start days for week.
git-svn-id: svn://10.0.0.236/trunk@122676 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 17:38:24 +00:00
dougt%netscape.com
929734e23b Fixes static global initialization order. r=dougt@netscape.com, sr=brendan@mozilla.org, patch by bryner@netscape.com
git-svn-id: svn://10.0.0.236/trunk@122674 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 14:21:32 +00:00
rods%netscape.com
83ef4246aa Check for null dom content before doing QI
Bug 148760 r=jkesier sr=jst


git-svn-id: svn://10.0.0.236/trunk@122673 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 12:06:59 +00:00
jay.yan%sun.com
48f7217c07 bug 121266 gtk2 needs window raising. patch=jeff, r=jay, sr=blizzard
git-svn-id: svn://10.0.0.236/trunk@122672 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 11:02:26 +00:00
cbiesinger%web.de
97b4ba4704 bug 8031 r=tor sr=dveditz
XBM support


git-svn-id: svn://10.0.0.236/trunk@122670 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 08:48:12 +00:00
cbiesinger%web.de
7e07e3424b bug 8031 r=tor sr=dveditz
XBM support


git-svn-id: svn://10.0.0.236/trunk@122668 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 08:41:57 +00:00
sspitzer%netscape.com
90fdf26a1e fix for #148078. context menu problems in stand alone msg window.
use GetLoadedMsgFolder() instead of GetSelectedFolderResource().
regression caused by #138018.  r/sr=bienvenu.


git-svn-id: svn://10.0.0.236/trunk@122664 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 07:28:52 +00:00
matty%chariot.net.au
89092f0c1f Bug #142890: Make the banner a separate template.
git-svn-id: svn://10.0.0.236/trunk@122661 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 05:56:34 +00:00
matty%chariot.net.au
87f1ef3390 Bug #142890: Make the banner a separate template.
git-svn-id: svn://10.0.0.236/trunk@122659 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 05:56:03 +00:00
stephend%netscape.com
37f05808a8 Bug 140526. Offset checking clean-up in SetAlphaData & SetImageData. Patch by Arron M. <animecity.nu> r=pavlov@netscape.com, sr=tor@acm.org.
git-svn-id: svn://10.0.0.236/trunk@122658 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 05:51:44 +00:00
bbaetz%student.usyd.edu.au
1e731b00c5 Bug 143574 - taint errors with alternate formats. Also make data/template
writable for non webservergroup users.
r=myk, justdave


git-svn-id: svn://10.0.0.236/trunk@122657 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 05:47:28 +00:00
cotter%netscape.com
2434a69cab ongoing help content updates per bugzilla 122806 & ADT, r=oeschger; misc formatting, privacy updates from legal
git-svn-id: svn://10.0.0.236/trunk@122655 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 05:38:17 +00:00
dougt%netscape.com
328e7b8d15 Fixes top crash in nsFileTransport::Process [nsFileTransport.cpp, line 753] and hoping to fix the move-email-crash-issue. This change inforces that a Async(Read|Write) of the file or socket transport must have a valid mProvider|mListener. sr=darin@netscape.com, r=pavlov, bug=107214
git-svn-id: svn://10.0.0.236/trunk@122654 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 05:36:15 +00:00
kaie%netscape.com
6e8339abe6 Part of bug 119394, landing UI strings only.
r=cotter sr=alecf


git-svn-id: svn://10.0.0.236/trunk@122652 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 05:09:47 +00:00
axel%pike.org
f1b78d408d bug 113611, XPath and XSLT contexts. fixes bugs 96410, 102293, 92106, 110266, 116534 and a bunch of other cases not filed. This mostly fixes namespaces and some really bad speed issues by fixing the time when namespaces are resolved, how default priorities are computed and how templates are matched.
HUGE PERFWIN :-)
r=peterv, sr=jst


git-svn-id: svn://10.0.0.236/trunk@122650 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 05:00:31 +00:00
roc+%cs.cmu.edu
c4d9baabad Bug 148350. Tweak code to avoid bug in gcc 2.95.3 with -O2. r=roc+moz,sr=jag
git-svn-id: svn://10.0.0.236/trunk@122648 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 04:55:04 +00:00
roc+%cs.cmu.edu
6be84e28ca Bug 142461. Turn off annoying debug messages. r=kmcclusk,sr=waterson
git-svn-id: svn://10.0.0.236/trunk@122645 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 04:48:04 +00:00
roc+%cs.cmu.edu
5ab88e7619 Bug 142461. Make sure clipped views are not marked transparent. r=kmcclusk,sr=waterson
git-svn-id: svn://10.0.0.236/trunk@122643 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 04:44:03 +00:00
bernd.mielke%snafu.de
dafbd8aee3 no math with NS_UNCONSTRAINEDSIZE please, bug 14862 r=karnaze sr=roc+moz
git-svn-id: svn://10.0.0.236/trunk@122641 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 04:37:06 +00:00
suresh%netscape.com
47616d75b2 mozilla side changes for bugscape 16296. r-blake, sr-ben. Given the Component id and panel, open the component and select the panel in the pref window.
git-svn-id: svn://10.0.0.236/trunk@122638 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 04:16:14 +00:00
ducarroz%netscape.com
5733ccf9bc Fix for bug 147877. Add UI for disabling plugins in mailnews. R=bhuvan, SR=bienvenu
git-svn-id: svn://10.0.0.236/trunk@122637 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 04:14:25 +00:00
jkeiser%netscape.com
ba9015bf6b Hellooooo Mac.
git-svn-id: svn://10.0.0.236/trunk@122633 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 03:53:05 +00:00
jkeiser%netscape.com
65ed9147ab Bug 125578.
git-svn-id: svn://10.0.0.236/trunk@122629 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 02:46:30 +00:00
bbaetz%student.usyd.edu.au
e096c8b73a Bug 144285 - checksetup.pl fails to set data dir (and other dir)
permissions properly
r=justdave, myk


git-svn-id: svn://10.0.0.236/trunk@122627 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 02:39:27 +00:00
jkeiser%netscape.com
5b189d7a7e Rest of patch (partial commit before). Remove nsFormFrame forever. bug 125578, r=alexsavulov@netscape.com, sr=jst@netscape.com
git-svn-id: svn://10.0.0.236/trunk@122626 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 02:34:30 +00:00
pschwartau%netscape.com
ef11e63725 Initial add; regression test for bug 137000.
git-svn-id: svn://10.0.0.236/trunk@122624 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 02:19:48 +00:00
jkeiser%netscape.com
54975d102e Rest of patch (partial commit before). Remove nsFormFrame forever. bug 125578, r=alexsavulov@netscape.com, sr=jst@netscape.com
git-svn-id: svn://10.0.0.236/trunk@122621 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 02:00:34 +00:00
jkeiser%netscape.com
d85e8fc690 Mac bustage fix.
git-svn-id: svn://10.0.0.236/trunk@122620 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 01:52:10 +00:00
depstein%netscape.com
ddc193d482 added GetTheChannel() and a few URIs for request handling.
git-svn-id: svn://10.0.0.236/trunk@122619 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 01:29:26 +00:00
jkeiser%netscape.com
0c2a8f4e96 Remove nsFormFrame forever. bug 125578, r=alexsavulov@netscape.com, sr=jst@netscape.com
git-svn-id: svn://10.0.0.236/trunk@122617 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 00:44:04 +00:00
beard%netscape.com
6c6de45f44 Fix PRODUCT_NAME for MRJPlugin.jar.
git-svn-id: svn://10.0.0.236/trunk@122616 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 00:36:09 +00:00
oeschger%netscape.com
e70d0f0cfb reorder tabs in help window per usability test, r=andreww, sr=alecf, bug=136654, drivers say bake on trunk
git-svn-id: svn://10.0.0.236/trunk@122614 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 00:15:39 +00:00
myk%mozilla.org
595520bd34 Fix for bug 148767: Eliminates warning in rare situations.
Patch by Jouni Heikniemi <jouni@heikniemi.net>.
2rx=myk


git-svn-id: svn://10.0.0.236/trunk@122612 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 00:12:57 +00:00
beard%netscape.com
383bd60e21 Added MRJPlugin.jar target.
git-svn-id: svn://10.0.0.236/trunk@122611 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-04 00:11:41 +00:00
bryner%netscape.com
308f0e52ca Fixing mach-o static build - made a function static in nsAppShellService so that it doesn't conflict with global symbols; add TK_LIBS (-framework Carbon) to the link line for mozilla-bin for both carbon and cocoa builds. r=cls, rs=brendan.
git-svn-id: svn://10.0.0.236/trunk@122610 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-03 23:53:31 +00:00
beard%netscape.com
a2bb716d28 Added Resources target.
git-svn-id: svn://10.0.0.236/trunk@122609 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-03 23:44:00 +00:00
beard%netscape.com
f781a8ed5f Decodes AppleSingle format resource files so ProjectBuilder can merge them.
git-svn-id: svn://10.0.0.236/trunk@122608 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-03 23:41:09 +00:00
myk%mozilla.org
11bd1df123 Fix for bug 145030: Removes use of CGI.pm from Template Toolkit until problems with it can be investigated and resolved.
r=jouni,gerv


git-svn-id: svn://10.0.0.236/trunk@122600 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-03 22:31:11 +00:00
blizzard%redhat.com
ab2025e799 No bug on this one. Fix the dependency for the mozilla-js package. Add a package file for nss. Not part of the standard build. r=cls
git-svn-id: svn://10.0.0.236/trunk@122599 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-03 22:26:01 +00:00
kin%netscape.com
79aa82cbf1 Fix for bug 138573 (hitting return in list item causes list problems; workaround is to refresh)
Modified SlideLine() to use the combined area instead of the linebox
  bounds when invalidating. This makes sure that we invalidate the
  area occupied by the list bullets/ordinals.

r=dbaron@fas.harvard.edu  sr=waterson@netscape.com


git-svn-id: svn://10.0.0.236/trunk@122594 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-03 21:35:54 +00:00
jaggernaut%netscape.com
07868fbe83 Bug 148840: Add "Bookmark This Group of Tabs..." to Bookmarks menu. r=caillon, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@122593 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-03 21:35:10 +00:00
pinkerton%netscape.com
b81a15d2af Fix warnings
git-svn-id: svn://10.0.0.236/trunk@122588 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-03 21:20:27 +00:00
timeless%mac.com
6b21bd4499 Update README to post TCL post terry world
This file probably contains many inaccuracies, but at least it's a bit closer to reality
a=tara


git-svn-id: svn://10.0.0.236/trunk@122585 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-03 21:09:49 +00:00
shanjian%netscape.com
5ba5e9d53a #140234 Japanese auto-detection marks ISO-8859-15 page as Windows-1252
Don't update chatset for document if existing one is of higher priority.
r=yokoyama, sr=jst


git-svn-id: svn://10.0.0.236/trunk@122584 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-03 21:09:22 +00:00
shanjian%netscape.com
b0d3bcb716 #136017 ome characters in menus/dialogs/etc. are rendered incorrectly
For Polish and Czech, don't skip native letters in bitmap font.
p=Marek.Wawoczny@GmbH.rubikon.pl r=shanjian, sr=waterson.


git-svn-id: svn://10.0.0.236/trunk@122581 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-03 21:01:34 +00:00
alecf%netscape.com
1ad0e9a6b0 oops, forgot to remove one REQUIRES entry (from checkin for bug 140136)
r=pinkerton, sr=blake


git-svn-id: svn://10.0.0.236/trunk@122580 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-03 20:54:01 +00:00
mikep%oeone.com
22959196d2 Removing old useless code.
git-svn-id: svn://10.0.0.236/trunk@122579 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-03 20:53:50 +00:00
mikep%oeone.com
8e5d762bc9 Removing the removal of observer, since it causes JS errors.
git-svn-id: svn://10.0.0.236/trunk@122578 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-03 20:53:28 +00:00
varada%netscape.com
7eef883f83 fix for 139814- Search the Web menu item should open page only in browser and not in any window with content area;r=law;sr=bienvenu
git-svn-id: svn://10.0.0.236/trunk@122577 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-03 20:53:23 +00:00
alecf%netscape.com
ef969213ad fix for bug 140136 - clean up progress listener stuff in the URI loader to more closely match what actually happens in the browser and embedded contexts - mostly just function renaming and code reorg
r=pinkerton, sr=blake


git-svn-id: svn://10.0.0.236/trunk@122576 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-03 20:52:27 +00:00
mikep%oeone.com
fd2465dcb3 Adding an id to the splitter to get the persist stuff working.
git-svn-id: svn://10.0.0.236/trunk@122575 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-03 20:34:21 +00:00
darin%netscape.com
69fdc31f3f fixes bug 136210 "cannot view any https urls when memory cache size is set to 0"
r=beard sr=rpotts


git-svn-id: svn://10.0.0.236/trunk@122574 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-03 20:05:53 +00:00
timeless%mac.com
a36ee39e7c Bug 144763 tolerate do_QueryReferent() returning null [@nsXULPrototypeScript::Compile]
r=harishd sr=jst


git-svn-id: svn://10.0.0.236/trunk@122571 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-03 19:17:46 +00:00
bernd.mielke%snafu.de
a42d51bdb9 bug 148240, percent text-indent should not be computed for NS_UNCONSTRAINEDSIZE
parent width. r=dbaron sr=waterson


git-svn-id: svn://10.0.0.236/trunk@122570 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-03 18:35:04 +00:00
dbaron%fas.harvard.edu
268cd40267 Make quirk stylesheet assertion |#ifdef DEBUG_dbaron| until I figure out why it's firing. b=147691 r=hwaara sr=waterson
git-svn-id: svn://10.0.0.236/trunk@122569 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-03 18:26:18 +00:00
pinkerton%netscape.com
154b67292f Fix warning
git-svn-id: svn://10.0.0.236/trunk@122568 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-03 18:10:17 +00:00
pinkerton%netscape.com
8bfd70f18f Fixup button reflow logic to avoid toolbar drawing over content area. bug 147923
git-svn-id: svn://10.0.0.236/trunk@122567 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-03 18:09:22 +00:00
brade%netscape.com
900a49bdd1 remove dump and warning
git-svn-id: svn://10.0.0.236/trunk@122566 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-03 18:05:02 +00:00
brade%netscape.com
6806e22931 bug 134503; add comments that were added to branch (r=akkana, sr=kin)
git-svn-id: svn://10.0.0.236/trunk@122565 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-03 18:04:33 +00:00
brade%netscape.com
f72ffa8d5c bug 138662; r=adamlock, cmanske, sr=alecf; add flag to serialize publishing
git-svn-id: svn://10.0.0.236/trunk@122564 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-03 18:03:53 +00:00
bishakhabanerjee%netscape.com
2aeaaa942a to build the new NSS tests.. bugzilla bug 144316
git-svn-id: svn://10.0.0.236/trunk@122562 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-03 17:16:57 +00:00
mikep%oeone.com
407a99c2ce Checking in patch from bug 135779.
git-svn-id: svn://10.0.0.236/trunk@122561 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-03 17:10:11 +00:00
timeless%mac.com
1fd29622e6 Bug 61366 "branchspam.cgi" and "branchspammer.cgi" should be removed from Makefile.in and README
suggested by bugzilla@gemal.dk
Also removed from bonsai.spec


git-svn-id: svn://10.0.0.236/trunk@122559 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-03 14:52:31 +00:00
pinkerton%netscape.com
9b25852c60 correctly launch if any non-ascii chars are in the path. bug 148432
git-svn-id: svn://10.0.0.236/trunk@122558 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-03 14:38:32 +00:00
pinkerton%netscape.com
0c2e47e48f Fix crashes at startup. (from william@dell.wisner.name)
git-svn-id: svn://10.0.0.236/trunk@122556 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-03 14:27:11 +00:00
matty%chariot.net.au
8958abf9bc Release notes updates.
git-svn-id: svn://10.0.0.236/trunk@122555 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-03 14:15:27 +00:00
oeschger%netscape.com
716a125a81 updating search db for Help, dispensation per 122806, r=cotter
git-svn-id: svn://10.0.0.236/trunk@122554 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-03 14:15:21 +00:00
pinkerton%netscape.com
ff710d4f49 Adding privacy panel back in to copy phase
git-svn-id: svn://10.0.0.236/trunk@122553 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-03 14:10:33 +00:00
bbaetz%student.usyd.edu.au
33f62fc9c7 Bug 93167 - &GroupExists and &GroupIsActive should push and pop sql state
r=justdave, jouni


git-svn-id: svn://10.0.0.236/trunk@122549 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-03 13:37:07 +00:00
brade%netscape.com
bd45eaa9a0 add flag and code to handle serialization of output (one file at a time) so that publishing doesn't fail due to too many logins or similar (bug 138662 and others); r=adamlock, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@122547 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-03 13:08:27 +00:00
mikep%oeone.com
4b6f95ec84 Fixing bug 147193, small problem with file -> export.
git-svn-id: svn://10.0.0.236/trunk@122546 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-03 13:01:52 +00:00
ben%netscape.com
b15518e675 Part of a fix for bug 142847, Trunk crashes launching mail @ nsBufferedStream::Fil
l. Null-check patch from darin@netscape.com, r=dougt, sr=ben


git-svn-id: svn://10.0.0.236/trunk@122544 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-03 12:44:13 +00:00
bryner%netscape.com
f0fa05dfb4 Make this symbol static to avoid clashes in a static build. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@122542 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-03 09:34:50 +00:00
kyle.yuan%sun.com
ad405e64da Bug 134426 Set image as wallpaper crashes Mozilla (when Mozilla Wallpaper.bmp is Read-Only)
r=timeless, sr=hewitt
return FAILURE instead of crashing when output stream can't be opend


git-svn-id: svn://10.0.0.236/trunk@122540 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-03 09:20:35 +00:00
ben%netscape.com
36fd36bbc6 Add support for persistence of folder open state between sessions and windows, disabled for the moment until I can figure out how to update the NSOutlineView's row count.
git-svn-id: svn://10.0.0.236/trunk@122539 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-03 09:17:51 +00:00
bryner%netscape.com
09d26c52c6 More static build fixing (from sfraser's rev 1.19 of widget/src/mac/Makefile.in).
git-svn-id: svn://10.0.0.236/trunk@122538 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-03 09:17:13 +00:00
bryner%netscape.com
a712f1b0d1 Make the module name agree with the Makefile so that static builds work. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@122537 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-03 09:02:31 +00:00
timeless%mac.com
cb0faf5955 Bug 135250 Context menu: "open link in new tab" should be below "open link in new window"
patch by alexbishopuk@yahoo.com r=bzbarsky sr=jag


git-svn-id: svn://10.0.0.236/trunk@122536 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-03 09:01:35 +00:00
cavin%netscape.com
e0a8ca6af3 Fix for 148520 (check in on behalf of David Baron). Make sure input realm is not an empty string before Stripping off trailing '/'. r=r=morse, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@122534 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-03 06:32:55 +00:00
cavin%netscape.com
c85ba6c523 Fix for 94775. When redirect login fails, invoke ForgetPassword(), instead of SetPassword(nsnull), to clean up all cached passwords. r=dmose, sr=bienvenu.
git-svn-id: svn://10.0.0.236/trunk@122533 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-03 06:04:47 +00:00
cotter%netscape.com
163e7fde2b ongoing help content updates per bugzilla 122806 & ADT, r=oeschger; latest legal comments
git-svn-id: svn://10.0.0.236/trunk@122532 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-03 05:49:33 +00:00
dmose%netscape.com
ed5f6fb8ab Fix nmake build bustage by adding into to the REQUIRES list
git-svn-id: svn://10.0.0.236/trunk@122530 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-03 05:12:00 +00:00
dmose%netscape.com
4c0089d9ec Support LDAP authentication for autocomplete and addressbook (bug 135778); r=sspitzer@netscape.com, srilatha@netscape.com; sr=bienvenu@netscape.com
git-svn-id: svn://10.0.0.236/trunk@122529 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-03 04:05:48 +00:00
timeless%mac.com
893cd03459 Bug 148674 Boolean Charts don't work in Netpositive because '-' is sent as '%2D
This makes CGI.pl closer to CGI.pm by having it unescape the name field in addition to the value field.
r=preed,justdave


git-svn-id: svn://10.0.0.236/trunk@122525 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-03 02:42:00 +00:00
blakeross%telocity.com
6a36dd31a1 128322 - history sidebar opens topmost link automatically. patch by neil and me. r=andreww/hewitt sr=blake/hewitt
git-svn-id: svn://10.0.0.236/trunk@122523 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-03 01:49:19 +00:00
dougt%netscape.com
c6a6d9af87 Fixes top crash in M1RC3 crash [@ nsLocalFile::GetPath], r=rpotts@netscape.com, sr=darin@netscape.com
git-svn-id: svn://10.0.0.236/trunk@122522 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-03 01:47:11 +00:00
bbaetz%student.usyd.edu.au
98594a649b Bug 145702 - query.cgi doesn't always ConnectToDatabase() early enough
r=justdave, preed


git-svn-id: svn://10.0.0.236/trunk@122521 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-03 01:42:15 +00:00
justdave%syndicomm.com
b758fd6576 Fix for bug 147476: the affect of changing your dot/webdot preferences on your web server's accessibility option (.htaccess
for Apache) is now mentioned in the parameter description.
Patch by Jouni Heikniemi (jouni@heikniemi.net)
r= bbaetz, afranke


git-svn-id: svn://10.0.0.236/trunk@122518 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-02 20:38:27 +00:00
jaggernaut%netscape.com
790caa6b77 Bug 137005: Change wording of "File as group" to "Bookmark this group of tabs". r=bryner, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@122513 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-02 19:14:42 +00:00
justdave%syndicomm.com
f50647a44c Fix for bug 143108: comment change in localconfig to eliminate incorrect statement that your permissions won't get touched if
$webservergroup is empty.
r= jouni, MattyT


git-svn-id: svn://10.0.0.236/trunk@122511 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-02 17:25:14 +00:00
ben%netscape.com
de1dc32f3b Ensure that correct Bookmarks context menu items are enabled when certain types of element are selected. Hook up 'Open in New Window' for Bookmark Groups
git-svn-id: svn://10.0.0.236/trunk@122510 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-02 10:51:02 +00:00
ben%netscape.com
1a9df5a049 Hook up bookmarks context menu items for the sidebar view. The behaviour is a little broken in that you need to actually have selected something before any of these work, but it was like that before I touched it, and we can fix that. I'm just hooking up functionality. More specifically:
- Delete
- Open in New Window
- Open in New Tab
- New Folde


git-svn-id: svn://10.0.0.236/trunk@122509 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-02 08:28:10 +00:00
stephend%netscape.com
9322ecd365 Bug 140132. White line on the bottom border of the progressmeter in classic. r=Small Hands <kerz@netscape.com>, sr=Ben Goodger <ben@netscape.com>
git-svn-id: svn://10.0.0.236/trunk@122508 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-02 07:33:06 +00:00
bryner%netscape.com
7e8230a2e9 Removing obsolete files (old imagelib cruft). r=pavlov, not part of the build.
git-svn-id: svn://10.0.0.236/trunk@122507 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-02 06:01:26 +00:00
cltbld%netscape.com
19d0236976 Build chimera on macosx/darwin.
git-svn-id: svn://10.0.0.236/trunk@122506 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-02 03:15:14 +00:00
bryner%netscape.com
673702591a Allow Darwin to override the timezone with a local setting, since POSIX::strftime seems to have issues. r=timeless.
git-svn-id: svn://10.0.0.236/trunk@122505 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-01 23:16:24 +00:00
edburns%acm.org
dca1ac3c28 Patch contributed by Michal Ceresna and verified by John Marmion.
This patch makes the webclient trunk work with the MOZILLA_0_9_9_BRANCH
on linux.


git-svn-id: svn://10.0.0.236/trunk@122500 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-01 19:11:44 +00:00
ian%hixie.ch
b1e8ad1cac Download manager pref panel. b=132440, r=ben, sr=blake
git-svn-id: svn://10.0.0.236/trunk@122492 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-01 13:13:41 +00:00
preed%sigkill.com
4be6720d1d Bug 147486 - Fixes cross site scripting issues; first checked in on the 2.14.1 branch, but I forgot the 2.16 branch/trunk (thanks bbaetz); patch=preed, r=bbaetz,myk
git-svn-id: svn://10.0.0.236/trunk@122486 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-01 09:26:25 +00:00
mcafee%netscape.com
155d2b611c minor printf change
git-svn-id: svn://10.0.0.236/trunk@122484 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-01 08:00:14 +00:00
mcafee%netscape.com
5c7cdaf757 removing printf
git-svn-id: svn://10.0.0.236/trunk@122482 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-01 07:33:53 +00:00
mcafee%netscape.com
d972724220 Print out meta.dot dep tree as part of build.
git-svn-id: svn://10.0.0.236/trunk@122481 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-01 07:30:35 +00:00
mcafee%netscape.com
91cd3be265 Adding --skip-list option
git-svn-id: svn://10.0.0.236/trunk@122480 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-01 07:29:53 +00:00
mcafee%netscape.com
4a7949a501 Cleaned up list-only option logic. Added --skip-tree, --skip-dep-map print options.
git-svn-id: svn://10.0.0.236/trunk@122479 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-01 06:53:20 +00:00
bryner%netscape.com
d29ebeedfb Turning debugging symbols back off by default.
git-svn-id: svn://10.0.0.236/trunk@122478 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-01 06:10:50 +00:00
wtc%netscape.com
b132bf75bb Backed out the previous checkin, which is not being used and triggers
a bug in gmake 3.76.1 with MKS shell on Windows.


git-svn-id: svn://10.0.0.236/trunk@122477 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-01 04:31:44 +00:00
wtc%netscape.com
c0b5d9745f Use $(DLL_SUFFIX) instead of ${DLL_SUFFIX}.
git-svn-id: svn://10.0.0.236/trunk@122476 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-01 04:25:38 +00:00
bbaetz%student.usyd.edu.au
1945c01df8 Bug 148363 - minor html glitch on the enter_bug template
patch by jouni@heikniemi.net (Jouni Heikniemi), r=myk x2


git-svn-id: svn://10.0.0.236/trunk@122472 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-01 02:28:58 +00:00
serge%netscape.com
29be954fa3 fixing bustage checking in missing file bug #44160
git-svn-id: svn://10.0.0.236/trunk@122470 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-01 01:41:07 +00:00
jst%netscape.com
cd8c0a0283 Attempting to fix bug 138900. Avoid multiple calls to LoadSrc() in iframe elements while the document is being built. This should speed up pageloads for pages with iframes on them. r=jkeiser@netscape.com, sr=jaggernaut@netscape.com
git-svn-id: svn://10.0.0.236/trunk@122469 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-01 01:15:57 +00:00
morse%netscape.com
121b6eb0b7 bug 148213, flush cookies to disk after a remove-all-cookies, r=pinkerton, sr=beard
git-svn-id: svn://10.0.0.236/trunk@122468 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-01 01:11:34 +00:00
katakai%japan.sun.com
415ce592a5 bug 146287
Solaris specific mime names are not supported in Mozilla/Netscape Mail
Added some lines for chinese and TIS-620 for iso8859-11
r=ftang, sr=alecf, a=rjesup@wgate.com


git-svn-id: svn://10.0.0.236/trunk@122467 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-01 01:01:08 +00:00
serge%netscape.com
4f75363dc8 fix #44196 improperly parented modal dialog in nsPluginHostImpl.cpp, r=av, sr=beard
git-svn-id: svn://10.0.0.236/trunk@122466 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-01 00:56:38 +00:00
danm%netscape.com
0d4e89ab00 reverting part of rev 1.54 that caused a regression. code=jrgm r=jag,me
git-svn-id: svn://10.0.0.236/trunk@122465 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-01 00:49:46 +00:00
nicolson%netscape.com
ed427ced18 Fix 147794: PK11_ImportDERPrivateKeyInfoAndReturnKey frees the private key incorrectly.
git-svn-id: svn://10.0.0.236/trunk@122464 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-01 00:43:46 +00:00
rangansen%netscape.com
d092b189e7 Fix to ensure change password on db is commited - using rv == SECSuccess would actually abort it.
r = wtc


git-svn-id: svn://10.0.0.236/trunk@122461 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-01 00:37:00 +00:00
danm%netscape.com
f4f4bed53e scrollbar visibility is no longer reflected in mChromeFlags. bug 130174 r=bryner,jag,jst
git-svn-id: svn://10.0.0.236/trunk@122457 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-01 00:00:12 +00:00
beard%netscape.com
d58e517145 Fix some file references.
git-svn-id: svn://10.0.0.236/trunk@122455 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-31 22:58:10 +00:00
dougt%netscape.com
d3ccad6010 beard tells me that I need a class after friend - fixing mac bustage.
git-svn-id: svn://10.0.0.236/trunk@122449 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-31 22:03:38 +00:00
beard%netscape.com
426342b11c [not part of build] In mach-o plugin, don't do anything special with file: URLs
git-svn-id: svn://10.0.0.236/trunk@122446 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-31 21:17:02 +00:00
darin%netscape.com
58075ac77b fixes bug 145382 "cleanup 'HTTP Networking' prefs panel"
r=gagan sr=rpotts ue=mcarlson


git-svn-id: svn://10.0.0.236/trunk@122445 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-31 21:16:18 +00:00
dougt%netscape.com
569cf91012 this file should not have been checked in
git-svn-id: svn://10.0.0.236/trunk@122442 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-31 21:05:57 +00:00
bnesse%netscape.com
6875060a29 Fix for bug 148191. Remove now obsolete references to 'session-logout'. r=morse, sr= alecf.
git-svn-id: svn://10.0.0.236/trunk@122439 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-31 20:55:21 +00:00
dougt%netscape.com
eaad2f24e1 fixes crash in js_FreeStack caused by a race condition in necko. see 139556 for the details. r=rpotts, sr=darin
git-svn-id: svn://10.0.0.236/trunk@122438 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-31 20:40:11 +00:00
despotdaemon%netscape.com
420e948391 Pseudo-automatic update of changes made by hyatt@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@122437 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-31 20:27:29 +00:00
nhotta%netscape.com
42e8e1c328 Changed strcpy to strncpy to protect the buffer,
bug 145370, r=ducarroz, sr=bienvenu.


git-svn-id: svn://10.0.0.236/trunk@122434 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-31 19:41:45 +00:00
hwaara%chello.se
f294906d35 #122640, implement the ability to ignore/watch single messages (before they eventually become threads).
r=sspitzer, sr=hewitt


git-svn-id: svn://10.0.0.236/trunk@122433 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-31 19:08:46 +00:00
caillon%returnzero.com
aa9ec54e4c Bug 143267. 'Tools' > 'Download Manager' doesn't bring focus to the Download Manager if it is already open. r=sgehani, sr=blake
git-svn-id: svn://10.0.0.236/trunk@122432 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-31 18:50:31 +00:00
mkaply%us.ibm.com
d213103e86 #146252
r=mkaply, sr=blizzard
OS/2 only - Print Preview cleanup


git-svn-id: svn://10.0.0.236/trunk@122431 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-31 18:48:25 +00:00
ducarroz%netscape.com
5d8a5ea68e Fix for bug 97055. Add an option for disabling remote images in mailnews. R=bhuvan, SR=alecf
git-svn-id: svn://10.0.0.236/trunk@122430 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-31 18:43:23 +00:00
ducarroz%netscape.com
ecb82f94ae Fix for bug 97055. Add an option for disabling remote images in mailnews. R=morse, SR=alecf
git-svn-id: svn://10.0.0.236/trunk@122429 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-31 18:40:39 +00:00
pinkerton%netscape.com
2a651f59bb Adding support for tooltips from the content area
git-svn-id: svn://10.0.0.236/trunk@122428 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-31 18:26:57 +00:00
pinkerton%netscape.com
c5e3e718ed Cleaning up unused and misnamed classes in nibs
git-svn-id: svn://10.0.0.236/trunk@122427 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-31 17:25:18 +00:00
pinkerton%netscape.com
4290f5b5f0 Cleanup, and renaming clear history button
git-svn-id: svn://10.0.0.236/trunk@122426 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-31 15:13:27 +00:00
pinkerton%netscape.com
1f856aad23 Updating some class/method names, adding "clear global history" button
git-svn-id: svn://10.0.0.236/trunk@122425 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-31 15:08:45 +00:00
karnaze%netscape.com
fb3fcd3efb new regression tests, not affecting the build.
git-svn-id: svn://10.0.0.236/trunk@122423 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-31 14:53:34 +00:00
wtc%netscape.com
018fc5a795 Bug 92516: _MD_gethostname returns the host's IP address on Mac so the
code that converts the fully qualified hostname to the unqualified hostname
is invalid for Mac.  Thanks to Roger D <rogerd@netscape.com> for the fix.
Modified Files: _macos.h prsystem.c


git-svn-id: svn://10.0.0.236/trunk@122422 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-31 14:45:44 +00:00
karnaze%netscape.com
fbaf4d843a bug 144024 - Don't store first in flow row groups and rows in map border iterator. Use row group of first in flow row group when accessing offset for borders. sr=attinasi, r=alexsavulov
git-svn-id: svn://10.0.0.236/trunk@122421 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-31 14:40:51 +00:00
karnaze%netscape.com
bbd8189ddf bug 1458423 - don't repeat a thead or tbody that is continued. sr=attinasi, r=alexsavulov.
git-svn-id: svn://10.0.0.236/trunk@122419 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-31 14:32:38 +00:00
dbradley%netscape.com
60796a3343 Fixes XPCONNECT_STANDALONE bustage - see bug 121438 for details
git-svn-id: svn://10.0.0.236/trunk@122418 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-31 13:51:08 +00:00
ben%netscape.com
c006e6c2ff [NOT PART OF BUILD]
remove rogue project entry in solution file


git-svn-id: svn://10.0.0.236/trunk@122416 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-31 09:36:56 +00:00
dprice%netscape.com
302df74bf7 77443 r=ssu sr=dveditz
Compare version works properly on the mac


git-svn-id: svn://10.0.0.236/trunk@122415 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-31 09:23:29 +00:00
dprice%netscape.com
983543dd55 117263 r=sgehani sr=dveditz
Wrong "Host" HTTP header in install through proxy


git-svn-id: svn://10.0.0.236/trunk@122414 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-31 09:21:48 +00:00
dprice%netscape.com
038e706b57 146668 r=curt sr=dveditz
document supersede in config.it


git-svn-id: svn://10.0.0.236/trunk@122413 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-31 09:17:08 +00:00
dprice%netscape.com
af49f8e133 146668 r=curt sr=dveditz
finish supersede functionality in windows installer


git-svn-id: svn://10.0.0.236/trunk@122412 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-31 09:15:54 +00:00
timeless%mac.com
22bfbf8d90 back out this morning's mess, it caused crashes at startup on unix (not mac or win .. oddly enough)
#0  0x4197db8e in nsPluginHostImpl::~nsPluginHostImpl (this=0x81beca0, __in_chrg=3)
    at mozilla/modules/plugin/base/src/nsPluginHostImpl.cpp:2630
#1  0x4197dd61 in nsPluginHostImpl::Release (this=0x81beca0)
    at mozilla/modules/plugin/base/src/nsPluginHostImpl.cpp:2639
#2  0x4015a878 in nsObserverList::AddObserver (this=0x81bed08, anObserver=0x81becb0, ownsWeak=1)
    at ../../dist/include/xpcom/nsCOMPtr.h:490
#3  0x4015b7da in nsObserverService::AddObserver (this=0x80f1678,
    anObserver=0x81becb0, aTopic=0x419a2b73 "quit-application", ownsWeak=1)
    at mozilla/xpcom/ds/nsObserverService.cpp:163


git-svn-id: svn://10.0.0.236/trunk@122411 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-31 08:05:14 +00:00
timeless%mac.com
3eb9c1c912 bustage, sorry,
it's nsISupportsWeakReference, not nsIWeakReference
and we didn't want to touch nsPluginCacheListener which is what caused the original confusion


git-svn-id: svn://10.0.0.236/trunk@122408 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-31 06:15:05 +00:00
timeless%mac.com
3908d42e0b whoops bustage, you need to up the IMPL_ count when you implement a new interface
git-svn-id: svn://10.0.0.236/trunk@122407 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-31 05:48:09 +00:00
timeless%mac.com
9b9dc6b8cb Bug 107485 nsPluginHostImpl's shutdown listener should be a weak reference
patch by adu@sparc.spb.su r=dougt sr=darin


git-svn-id: svn://10.0.0.236/trunk@122406 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-31 05:14:00 +00:00
cotter%netscape.com
15fe936d2c ongoing help content updates per bugzilla 122806 & ADT, r=oeschger; privacy & security updates per legal & engineering reviews
git-svn-id: svn://10.0.0.236/trunk@122405 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-31 05:03:11 +00:00
timeless%mac.com
63888ea623 Bug 100846 turbo: should get back on system tray after explorer.exe crash
patch by netdemonz@yahoo.com r=biesi sr=jag


git-svn-id: svn://10.0.0.236/trunk@122404 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-31 04:31:27 +00:00
mscott%netscape.com
901cf1d5a5 Drop in the new biff icon from the UI group.
rs=sspitzer


git-svn-id: svn://10.0.0.236/trunk@122403 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-31 03:59:14 +00:00
roc+%cs.cmu.edu
614583e822 Bug 50623. Don't forget background styles inherited from the initial context. This has the effect of making FRAME/IFRAME documents transparent by default. Also, make FRAME/IFRAME elements paint any background styles set on them. r=dbaron,sr=waterson
git-svn-id: svn://10.0.0.236/trunk@122398 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-31 03:20:23 +00:00
cavin%netscape.com
8f172d4096 Fix for 145150. Map "Content-Type: application/ms-tnef" to "Content-Type: text/plain" so the body text can be displayed normally (instead of in an attachment). r=ducarroz, sr=bienvenu.
git-svn-id: svn://10.0.0.236/trunk@122396 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-31 02:24:28 +00:00
cavin%netscape.com
790a46bb5c Fix for 70374. Use the right date format for the "From " line (ie, "From - Mon Jan 1 00:00:00 1965"). r=ducarroz, sr=sspitzer.
git-svn-id: svn://10.0.0.236/trunk@122395 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-31 02:20:45 +00:00
seawood%netscape.com
ef78f2bb05 Add --disable-installer configure option for embedding purposes.
Bug #145343 r=mcafee


git-svn-id: svn://10.0.0.236/trunk@122391 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-31 00:39:07 +00:00
oeschger%netscape.com
1462713cdf adding help context ids to pref window, bug=129540, attachment 83972, r=bhuvan, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@122389 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-30 23:43:13 +00:00
oeschger%netscape.com
59c038e26c get default topic when context is not found (from help button), bug 145331, r=oeschger on pwilson@gorge.net's patch, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@122387 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-30 23:39:17 +00:00
pinkerton%netscape.com
b4b25bd669 Removing search panel
git-svn-id: svn://10.0.0.236/trunk@122384 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-30 23:12:58 +00:00
timeless%mac.com
4f3a63e507 Bug 134724 nsIOService::~nsIOService => nsIOService::SetOffline Getting service @mozilla.org/observer-service;1 on shutdown. [@nsThreadPool::Shutdown]
r=dougt sr=darin


git-svn-id: svn://10.0.0.236/trunk@122382 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-30 23:11:49 +00:00
leaf%mozilla.org
cb433052ff cleanup the hack
git-svn-id: svn://10.0.0.236/trunk@122375 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-30 23:00:04 +00:00
beard%netscape.com
e328978c43 [not part of build] MRJPlugin Carbon 1.0 release changes.
git-svn-id: svn://10.0.0.236/trunk@122369 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-30 22:56:21 +00:00
leaf%mozilla.org
b043c8daba trick who.cgi into passing the branchtype=regexp parameter to bonsai
git-svn-id: svn://10.0.0.236/trunk@122367 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-30 22:33:53 +00:00
peterlubczynski%netscape.com
f217155ede Fixing bug 134445, OBJECT tag needs to be able to access default plugin r=av sr=beard
git-svn-id: svn://10.0.0.236/trunk@122365 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-30 22:31:27 +00:00
srilatha%netscape.com
faaa2e6676 Fix for bug # 144508. Crashes importing mail from outlook.
patch given by ducarroz
r=varada, sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@122364 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-30 22:22:45 +00:00
timeless%mac.com
486055f4eb Bug 145350 Implement handling of canDrop and onDragEnter methods in drag and drop observers
patch=pierrechanial@netscape.net, r=timeless, sr=ben


git-svn-id: svn://10.0.0.236/trunk@122360 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-30 22:04:25 +00:00
timeless%mac.com
c92833f0d7 Bug 139605 Bookmark manager should not be "Bookmark for default" when #profile=1 and profile name is not "default"
patch=pierrechanial@netscape.net, r=biesi, sr=ben


git-svn-id: svn://10.0.0.236/trunk@122359 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-30 22:03:51 +00:00
timeless%mac.com
5e0dc42151 Bug 139471 Rewrite of the personal toolbar drag and drop observer patch=pierrechanial@netscape.net, r=timeless, sr=ben
(maybe you should increment the version number to 2.1)


git-svn-id: svn://10.0.0.236/trunk@122358 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-30 22:01:13 +00:00
timeless%mac.com
64c254f530 bug 137119 fix various insertion problems in bookmark trees
patch=pierrechanial@netscape.net, r=timeless, sr=ben


git-svn-id: svn://10.0.0.236/trunk@122356 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-30 21:58:45 +00:00
pinkerton%netscape.com
2bd78b3c4e Add Navigation pref panel.
git-svn-id: svn://10.0.0.236/trunk@122355 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-30 21:57:25 +00:00
pinkerton%netscape.com
fab5fd2009 First checkin
git-svn-id: svn://10.0.0.236/trunk@122354 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-30 21:56:11 +00:00
mkaply%us.ibm.com
ae54d3c170 #146252
r=mkaply, sr=blizzard
OS/2 only - Print Preview cleanup


git-svn-id: svn://10.0.0.236/trunk@122353 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-30 21:55:49 +00:00
pinkerton%netscape.com
a224ef2049 first checkin
git-svn-id: svn://10.0.0.236/trunk@122352 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-30 21:55:42 +00:00
depstein%netscape.com
94af771576 removed session-logout from observers, per bug 148189.
a=asa for QA checkins that are not part of the default builds


git-svn-id: svn://10.0.0.236/trunk@122351 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-30 21:54:32 +00:00
mkaply%us.ibm.com
43a14861d8 #148128
r=pedemont, sr=blizzard
OS/2 only - add prefs to set default telnet params


git-svn-id: svn://10.0.0.236/trunk@122348 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-30 21:46:58 +00:00
mkaply%us.ibm.com
271673dd33 #148124
r=pedemont, sr=blizzard
OS/2 only - support for custom splashscreen - same as Win - thanks to Bjorn Anderson for the sample code


git-svn-id: svn://10.0.0.236/trunk@122347 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-30 21:45:24 +00:00
mkaply%us.ibm.com
805b6b9d76 #148123
r=pedemont, sr=blizzard
OS/2 only - don't write an extra NULL char to URL objects


git-svn-id: svn://10.0.0.236/trunk@122344 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-30 21:34:33 +00:00
dougt%netscape.com
4269356169 support for OS2 XPCOM_DEBUG_BREAK env. r=dougt, sr=jband, patch by mkaply, b=148127
git-svn-id: svn://10.0.0.236/trunk@122343 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-30 21:27:53 +00:00
leaf%mozilla.org
d358a0a5f7 who menu still isn't getting branchtyp passed to it, trying another assignment
operation.


git-svn-id: svn://10.0.0.236/trunk@122342 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-30 21:23:37 +00:00
pinkerton%netscape.com
1ddeea5df5 clean up packaging warnings so real errors are easier to see. r=ccarlen/sr=beard/a=valeski. bug# 142556
git-svn-id: svn://10.0.0.236/trunk@122341 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-30 20:54:40 +00:00
dkl%redhat.com
0122066b4e Fix for bug 148157 - Bad sorting in describecomponents.cgi, patch by David Lawrence <dkl@redhat.com> r=jouni@heikniemi.net,myk@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@122332 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-30 19:54:55 +00:00
pinkerton%netscape.com
5b5427955e Updated nibs for new classnames. Made Privacy pane set prefs as soon
as you click the control, not only when the panel goes away.


git-svn-id: svn://10.0.0.236/trunk@122329 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-30 19:12:35 +00:00
leaf%mozilla.org
a270122e87 how about i send the variable i just modified to who.cgi, so it will do some good?
git-svn-id: svn://10.0.0.236/trunk@122328 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-30 18:19:26 +00:00
leaf%mozilla.org
a6ef5d919a extend hack to the who.cgi call so we can get "last checkin" queries working
git-svn-id: svn://10.0.0.236/trunk@122327 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-30 18:16:08 +00:00
tara%tequilarista.org
a95aac4dd5 Checking Myk's fix for bug #146244
git-svn-id: svn://10.0.0.236/trunk@122326 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-30 15:03:30 +00:00
pinkerton%netscape.com
9facdcf1e6 Make pref panel respect UI guidelines
git-svn-id: svn://10.0.0.236/trunk@122325 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-30 14:55:10 +00:00
bienvenu%netscape.com
e2fb1ccfa5 add code to sync msg hdr flags with newsrc flags, r=cavin, sr=sspitzer original patch by ayn2@cornell.edu 64476
git-svn-id: svn://10.0.0.236/trunk@122323 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-30 14:27:49 +00:00
bienvenu%netscape.com
8f6b3f45c6 part of fix for unread counts getting wrong in news threads 64476 r/sr =sspitzer
git-svn-id: svn://10.0.0.236/trunk@122322 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-30 14:25:05 +00:00
tara%tequilarista.org
963d88aa42 Checking in Myk's fix for bug #142317
git-svn-id: svn://10.0.0.236/trunk@122321 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-30 13:55:10 +00:00
nboyd%atg.com
6e25529d4a Fix bug found by felix.meschberger@day.com:
given the following object :

----------------------------------------------
function SomeObject() {}
SomeObject.prototype.exec = function() {
  var local = this.someField;
}
----------------------------------------------

i create an 'instance', set a field and call the exec method :

----------------------------------------------
var someField = "global field value";
var anInstance = new SomeObject();
anInstance.someField = "instance field value";
anInstance.exec();
----------------------------------------------

then the local variable 'local' in the exec() method is assigned the value
of the global 'someField' variable instead of the instance field value.

the problem seems to be in the ScriptRuntime.callOrNewSpecial() method,
which is called, because the parser treats the name 'exec' specially. in
this method the exec() method gets called with

   return call(cx, fun, thisArg, args, scope);

where the 'thisArg' parameter really is the global this value instead of
the dynamic this value, which is in the jsThis variable and which would be
the one needed...

is it legitimate to replace the above call in callOrNewSpecial() with the
following line :

   return call(cx, fun, jsThis, args, scope);

this seems to only happen for methods named 'exec', which are identified as
special in the NodeTransformer.isSpecialCallName() method.

any help is appreciated. thank you very much for your time.

kind regards,
felix


git-svn-id: svn://10.0.0.236/trunk@122320 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-30 13:41:16 +00:00
mikep%oeone.com
bd89da6c14 Fixing bug 148071 and updating the date / time stamp.
git-svn-id: svn://10.0.0.236/trunk@122319 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-30 13:31:05 +00:00
brendan%mozilla.org
859af084f0 Back out troublesome parts of patch for 130544 (147997, r/sr=me).
git-svn-id: svn://10.0.0.236/trunk@122318 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-30 07:15:01 +00:00
kaie%netscape.com
4fc8c979f9 b=138479 Disable Security tab in View Frame Info
r=javi sr=jag


git-svn-id: svn://10.0.0.236/trunk@122317 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-30 04:56:16 +00:00
timeless%mac.com
308c6661ba Bug 144837 bonsai file display always shows trunk revision
r=tara


git-svn-id: svn://10.0.0.236/trunk@122316 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-30 04:45:11 +00:00
sgehani%netscape.com
f93d1b547a Flush control socket when we first establish a connection with an
ftp server (large welcome messages can be ignored safely).
b=145776; r=ssu; sr=dveditz


git-svn-id: svn://10.0.0.236/trunk@122315 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-30 03:54:12 +00:00
shanjian%netscape.com
5146a834fb #148026 We should return error when default locale is used for unix platform charset
Replace error return code by success return code for unix platform charset getter.
r=bryner, sr=darin


git-svn-id: svn://10.0.0.236/trunk@122314 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-30 03:23:38 +00:00
leaf%mozilla.org
f05399f127 set branchtype to regexp if there are regexp-indicative characters in
the branchname


git-svn-id: svn://10.0.0.236/trunk@122313 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-30 03:11:59 +00:00
wtc%netscape.com
54676a22cc This is a test. I changed Revision and Date to bogus values and want to
see what actually got checked in.


git-svn-id: svn://10.0.0.236/trunk@122312 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-30 02:08:07 +00:00
roc+%cs.cmu.edu
03697b0f3a Bug 141900. Ensure that SetViewChildClip respects nsIClipView clipping. r=kmcclusk,sr=waterson
git-svn-id: svn://10.0.0.236/trunk@122311 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-30 01:59:57 +00:00
shliang%netscape.com
e8de478bf5 123687 - ui for adding ldap directory to addressbook - r=sspitzer, sr=bienvenu
git-svn-id: svn://10.0.0.236/trunk@122310 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-30 01:52:33 +00:00
myk%mozilla.org
ff9f55ad96 Fix for bug 148011: Move pseudo-method definitions together.
Patch by Myk Melez <myk@mozilla.org>.
2xr=justdave


git-svn-id: svn://10.0.0.236/trunk@122309 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-30 01:44:33 +00:00
roc+%cs.cmu.edu
d6109426ba Bug 136441. Don't let floating views get clipped by non-floating parents. r=kmcclusk,sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@122308 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-30 01:42:41 +00:00
shliang%netscape.com
da23c2e99a 147662 - adding option to remove free web mail in account manager - r=sspitzer, sr=bienvenu
git-svn-id: svn://10.0.0.236/trunk@122307 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-30 01:12:40 +00:00
depstein%netscape.com
feb7b283b1 some code cleanup. more test coverage for uri loads and reloads.
a=asa for QA checkins that are not part of the default builds


git-svn-id: svn://10.0.0.236/trunk@122306 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-30 01:11:53 +00:00
dp%netscape.com
43963340a9 bug 146537 Ftp moved from using 64k segment sizes to 4k r=bbaetz
sr=darin


git-svn-id: svn://10.0.0.236/trunk@122305 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-30 01:10:06 +00:00
shliang%netscape.com
892ac503e5 133402 - selected addressbook cards in sidebar do not prefill msg compose - r=sspitzer, sr=bienvenu
git-svn-id: svn://10.0.0.236/trunk@122304 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-30 01:08:13 +00:00
andreww%netscape.com
c9354336c5 bugzilla 89144 - Need keyboard access to "Tabs" menu in sidebar - r=aaronl,sgehani, sr=sspitzer,hewitt
git-svn-id: svn://10.0.0.236/trunk@122303 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-30 00:54:27 +00:00
glen.beasley%sun.com
8f9fb27400 for release eng to build multiple platforms
git-svn-id: svn://10.0.0.236/trunk@122302 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-30 00:47:18 +00:00
serge%netscape.com
e55c1e8c3d fix for 147256, Crash in nsDocShell::GetRootScrollableView, r=av, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@122301 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-30 00:46:12 +00:00
cavin%netscape.com
661fee64f8 Fix for 134014. Correct the mapping table to match the addrbook api calls. R=ducarroz, sr=bienvenu.
git-svn-id: svn://10.0.0.236/trunk@122300 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-30 00:43:38 +00:00
wtc%netscape.com
6f4b5cb4a7 Import NSPR 4.2 and DBM 1.61.
git-svn-id: svn://10.0.0.236/trunk@122299 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-30 00:36:48 +00:00
beard%netscape.com
75982dd3a9 [not part of build] Removed extraneous printf's.
git-svn-id: svn://10.0.0.236/trunk@122298 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-29 23:49:13 +00:00
leaf%mozilla.org
bfdfa6ecf5 hack to do bonsai branchtype=regexp queries if +, *, or ? is in the branch name, first part of bug 147948.
git-svn-id: svn://10.0.0.236/trunk@122297 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-29 23:41:44 +00:00
jaggernaut%netscape.com
5fcde94961 Bug 123563: Select the tab to the right when closing the active one. r=caillon, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@122296 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-29 23:22:42 +00:00
danm%netscape.com
0b5ceb9949 disable window size persistence before chrome is loaded. bug 116610 r=bryner,jag
git-svn-id: svn://10.0.0.236/trunk@122295 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-29 23:21:35 +00:00
danm%netscape.com
41b8d37fa7 persist min/max state only if normal or maximized. bug 72558 r=bryner,jag
git-svn-id: svn://10.0.0.236/trunk@122294 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-29 23:19:07 +00:00
jaggernaut%netscape.com
bd8eed92ac Bug 101955: middle-click -> open in new window fails for urls in mail/news, the better fix. r=caillon, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@122293 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-29 23:17:47 +00:00
seawood%netscape.com
d9186973fd Provide pkgconfig files.
Thanks to Chris Blizzard <blizzard@mozilla.org> for the patch.
Bug #134204 r=cls


git-svn-id: svn://10.0.0.236/trunk@122291 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-29 22:14:08 +00:00
nicolson%netscape.com
42d9d96233 Fix bug 112330: CryptoToken.changePassword(new ConsolePasswordCallback(), new ConsolePasswordCallback()) throws Native Exception.
We were zeroing the password after freeing it, which in some cases caused
memory corruption and crashing.


git-svn-id: svn://10.0.0.236/trunk@122288 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-29 21:54:14 +00:00
hewitt%netscape.com
b270f7600f backing out file checked in by accident
git-svn-id: svn://10.0.0.236/trunk@122285 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-29 21:45:40 +00:00
hewitt%netscape.com
fd4d0c989c crop really long page titles in Go menu
git-svn-id: svn://10.0.0.236/trunk@122282 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-29 21:41:54 +00:00
bienvenu%netscape.com
daae27a92f fix threading by subject r=cavin, sr=sspitzer 140613
git-svn-id: svn://10.0.0.236/trunk@122281 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-29 21:02:58 +00:00
hewitt%netscape.com
2b5b989cc5 137057 - tabbrowser tab strip grows when closing 2nd to last tab, r=sgehani, sr=jag
git-svn-id: svn://10.0.0.236/trunk@122280 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-29 21:02:29 +00:00
bienvenu%netscape.com
7ebf49f228 fix required by fix for threading by subject r=cavin, sr=sspitzer 140613
git-svn-id: svn://10.0.0.236/trunk@122279 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-29 21:02:09 +00:00
bienvenu%netscape.com
c20a657848 fix problem starting up with missing INBOX.msf for imap r=ere@atp.fi, sr=sspitzer 147896
git-svn-id: svn://10.0.0.236/trunk@122278 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-29 20:58:35 +00:00
hewitt%netscape.com
78627302c8 119770 - bad images for autocomplete pref window, patch=walk84@yahoo.com, r=shliang, sr=me
git-svn-id: svn://10.0.0.236/trunk@122277 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-29 20:58:34 +00:00
pinkerton%netscape.com
f3a6258360 Add sheet to rename bookmarks since inline editing doesn't work too well
with attributed strings. Cleaned up some unused outlets. Added a cancel
button to the location sheet. bugs 145819, 147721.


git-svn-id: svn://10.0.0.236/trunk@122276 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-29 20:42:54 +00:00
hwaara%chello.se
6bbfe0697a #147448, optimize mailnews' modern theme for better performance.
r=varga, sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@122275 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-29 20:15:49 +00:00
smontagu%netscape.com
e61e87ebaa Fix for bug 147183: Text shown inside JavaScript under title in IOL.co.il is aligned LTR rather than RTL. r=hixie, sr=jst
git-svn-id: svn://10.0.0.236/trunk@122274 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-29 19:42:07 +00:00
jst%netscape.com
f062933ad6 Removing duplicate #include...
git-svn-id: svn://10.0.0.236/trunk@122270 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-29 19:15:50 +00:00
bernd.mielke%snafu.de
886ec4bd2d removal of debug cruft bug 146474 r=karnaze sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@122269 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-29 18:55:34 +00:00
serge%netscape.com
aa2473dda9 fix #146328 PluginViewerImpl::Init(nsIWidget* aParentWidget ==> check out this parameter, a=av/peterl, sr=beard
git-svn-id: svn://10.0.0.236/trunk@122268 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-29 18:21:58 +00:00
ian.mcgreer%sun.com
88f990cef8 bug 136701, certutil should use PK11_ListCerts
git-svn-id: svn://10.0.0.236/trunk@122266 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-29 18:19:33 +00:00
brendan%mozilla.org
358ed6261c Clean up nsICollection/nsSupportsArray {Append,Remove}Element return type (130544, r=dougt, sr=bienvenu).
git-svn-id: svn://10.0.0.236/trunk@122264 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-29 18:08:37 +00:00
bnesse%netscape.com
907a0675c6 Fix for bug 98476. Add safe saving support to preferences. r=alecf, sr=jag.
git-svn-id: svn://10.0.0.236/trunk@122263 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-29 18:04:41 +00:00
jst%netscape.com
4e62966c87 Fixing one more part of bug 52334. Make onload handlers fire on hidden iframes. r=axel@pike.org, sr=vidur@netscape.com
git-svn-id: svn://10.0.0.236/trunk@122262 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-29 17:56:50 +00:00
pinkerton%netscape.com
8422c4dcf1 fix problem where resizing window would cause jiggling. the workaround we put in for os9 seems to no longer be needed and gives osx fits. patch from lws@mac.com. r=pink/rs=blake. bug#86740
git-svn-id: svn://10.0.0.236/trunk@122261 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-29 14:46:23 +00:00
pinkerton%netscape.com
d828c50b5e Updated icon from Ugo.
git-svn-id: svn://10.0.0.236/trunk@122260 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-29 14:26:45 +00:00
pinkerton%netscape.com
51d371bf2b Update pref panels so exported symbols are unique. follows apple's guidelines.
git-svn-id: svn://10.0.0.236/trunk@122259 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-29 14:19:17 +00:00
bbaetz%student.usyd.edu.au
9b0d389a5a Bug 147272 - no background for bugzilla pages
r=justdave, preed


git-svn-id: svn://10.0.0.236/trunk@122257 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-29 11:43:26 +00:00
seawood%netscape.com
8c815c3701 Fix typo that was causing pthreads to be selected by default on OpenBSD even though we default to NSPR threads on that platform.
Bug #145560 r=wtc


git-svn-id: svn://10.0.0.236/trunk@122256 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-29 08:01:42 +00:00
gerv%gerv.net
04fcbc1487 Bug 144728 - Midair collision doubles line feeds. Patch by jouni@heikniemi.net; 2xr=justdave.
git-svn-id: svn://10.0.0.236/trunk@122255 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-29 07:21:44 +00:00
bryner%netscape.com
40cddb9e13 Updating version to 0.3.0, with new splash screen from ugos@mac.com.
git-svn-id: svn://10.0.0.236/trunk@122254 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-29 05:32:38 +00:00
bryner%netscape.com
cb2621eb80 Don't let sidebar panels take focus unless the user just selected the panel (i.e. don't focus them when a new window is opened). Bug 76621. r=blake, sr=jag.
git-svn-id: svn://10.0.0.236/trunk@122253 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-29 05:06:42 +00:00
kaie%netscape.com
23e1977fbe b=139561 Implement S/Mime "on demand verification" for IMAP messages
r=javi/cotter sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@122252 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-29 04:44:50 +00:00
kaie%netscape.com
389b3e4cb5 b=130650 In page info, "Security" tab lacks shortcut.
r=kaie sr=jag


git-svn-id: svn://10.0.0.236/trunk@122250 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-29 03:40:46 +00:00
kaie%netscape.com
a40052c8c4 b=110195 Master passwords steals focus in prefs
r=kaie sr=alecf


git-svn-id: svn://10.0.0.236/trunk@122249 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-29 03:32:04 +00:00
depstein%netscape.com
efb2134f8c added more urls with more diversity to the URLTable. Stop() now tests with all 3 flags. Modified nsIWebNav code.
a=asa for QA checkins that are not part of the default builds


git-svn-id: svn://10.0.0.236/trunk@122248 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-29 03:13:37 +00:00
dbaron%fas.harvard.edu
b339b0f982 Remove universalSelector atom. b=112318 sr=waterson r=brendan
git-svn-id: svn://10.0.0.236/trunk@122247 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-29 00:49:48 +00:00
dbaron%fas.harvard.edu
3fad646b6d Convert the 4 tables of the RuleHash from nsHashtable to pldhash. Encapsulate the differences between tables, and the quirks/strict differences within the id and class tables, in the 6 sets of hashtable ops. Remove mCaseSensitive member and related code from AtomKey and remove nsInt32Key completely. Null-terminate lists of RuleValues rather than using a special mEndValue, and build the lists in the reverse order (reversing the meaning of their index). Store universal rules in their own list rather than using magic key. b=112318 sr=waterson r=brendan
git-svn-id: svn://10.0.0.236/trunk@122246 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-29 00:49:44 +00:00
karnaze%netscape.com
39e27ba055 new regression tests, not affecting the build.
git-svn-id: svn://10.0.0.236/trunk@122241 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-28 23:44:53 +00:00
shrutiv%netscape.com
326317fc30 Fix for bugscape bug 13112: Restrict user agent string to ASCII characters
only (r=smeredith)


git-svn-id: svn://10.0.0.236/trunk@122240 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-28 23:41:56 +00:00
stephend%netscape.com
7cfaf9463f Bug 115225. 'Exit' should be 'Exit &brandShortName;' in Quick Launch's systemtray icon context-menu. r=caillon@netscape.com/sr=blaker@netscape.com
git-svn-id: svn://10.0.0.236/trunk@122239 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-28 23:29:53 +00:00
jst%netscape.com
e9990e8c24 Whitespace changes only, die tabs, die!
git-svn-id: svn://10.0.0.236/trunk@122237 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-28 22:55:39 +00:00
karnaze%netscape.com
49e0a9f4cb bug 145305 - split floaters during printing. sr=attinasi, r=alexsavulov.
git-svn-id: svn://10.0.0.236/trunk@122236 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-28 22:50:43 +00:00
dougt%netscape.com
c3199263f2 Allowing ftp to work against servers that use port 22, r=bradley, sr=brendan/darin, bug 147496
git-svn-id: svn://10.0.0.236/trunk@122234 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-28 22:06:01 +00:00
morse%netscape.com
590d77d4fc bug 115818, context menu slow to appear when images are present, c=ajfeldman@brown.edu, r=morse, sr=waterson -- this is better patch than the one in bug 146048
git-svn-id: svn://10.0.0.236/trunk@122233 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-28 21:42:29 +00:00
smontagu%netscape.com
9f91e7fbe7 Bug 129666: Xlib/Xprint do not scale em-dash & co. correctly. r=bstell@ix.netcom.com, sr=scc. Checking in for Roland.Mainz@informatik.med.uni-giessen.de
git-svn-id: svn://10.0.0.236/trunk@122232 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-28 21:40:06 +00:00
caillon%returnzero.com
b3582cba8f Bug 145528, 'Send Page' context menu item sends the frame instead of the frameset. Patch contributed by Sander <mybugzilla@juima.org>, r=bzbarsky, sr=ben.
git-svn-id: svn://10.0.0.236/trunk@122231 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-28 21:19:30 +00:00
pinkerton%netscape.com
ef5de72e24 backing out changes when landing privacy panel. doh!
git-svn-id: svn://10.0.0.236/trunk@122230 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-28 20:59:29 +00:00
sspitzer%netscape.com
85363a5e88 fix for #146046. fix several regressions to the subscribe dialog.
1)  [search view] "Subscribe" and "Unsubscribe" buttons don't work (original bug)
2)  [search and tree views] space bar doesn't do the right thing (toggle state)
3)  [tree view] double click on a row that is a container should not toggle the subscribe state

r=hwaara, sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@122229 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-28 20:55:38 +00:00
pinkerton%netscape.com
43d12f8473 hookup tooltips in PPEmbed. fix embedding tooltip impl to check window/dialog tag before groveling for title attribute. r=pink/sr=beard. bug# 142814.
git-svn-id: svn://10.0.0.236/trunk@122228 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-28 20:31:39 +00:00
blizzard%redhat.com
1358b1a9fb Bug #134204. Add files for pkg-config. Not part of the build. r=cls,hp
git-svn-id: svn://10.0.0.236/trunk@122226 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-28 20:20:42 +00:00
pinkerton%netscape.com
86a8863718 remove 'block images from server' and 'view only this image' context menu
items. there's no code that goes along with these.


git-svn-id: svn://10.0.0.236/trunk@122225 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-28 20:07:24 +00:00
pinkerton%netscape.com
38cc2ea383 Normalizing the context menus, stubbing out copy link location and
bookmark link. hooks up bookmark page.


git-svn-id: svn://10.0.0.236/trunk@122224 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-28 19:55:58 +00:00
pinkerton%netscape.com
a2c8c4faa4 fixing some redundant ref counting and a leak of the autocomplete data
source. r=hyatt.


git-svn-id: svn://10.0.0.236/trunk@122223 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-28 18:42:21 +00:00
kirk.erickson%sun.com
12c97ff0d7 Fixed OCSP typo.
git-svn-id: svn://10.0.0.236/trunk@122222 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-28 18:26:37 +00:00
hyatt%netscape.com
60c3fbb7a2 Fix back forward key bindings.
git-svn-id: svn://10.0.0.236/trunk@122221 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-28 18:22:37 +00:00
pinkerton%netscape.com
3bfdc94f78 Fix crash for 147604. should retain these icons if i'm going to hold them indefinately.
git-svn-id: svn://10.0.0.236/trunk@122220 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-28 16:48:48 +00:00
peterv%netscape.com
aab00646c0 Fix for bug 88761 (html code for selected and noshade (and other minimizable attributes) not w3c conformant). r=heikki, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@122219 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-28 12:34:48 +00:00
hewitt%netscape.com
bff765059c more autocomplete details, and icons for bookmark menus
git-svn-id: svn://10.0.0.236/trunk@122218 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-28 10:30:42 +00:00
hewitt%netscape.com
d5879ebb3f 145802 - session history in Go menu for Chimera, 145803 - urlbar autocomplete for chimera
git-svn-id: svn://10.0.0.236/trunk@122217 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-28 09:07:53 +00:00
glazman%netscape.com
da45b23bb4 Test Selection debug menu item was horked in Composer; b=146424, r=neil@parkwaycc.co.uk, sr=jst
git-svn-id: svn://10.0.0.236/trunk@122216 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-28 09:00:25 +00:00
kyle.yuan%sun.com
cb6d4ae8ad Bug 146315, 146499, 146828 nsIAccessible's accDoAction does not work for XUL Button/Check Box/Radio Button Element
r=aaronl, sr=jst


git-svn-id: svn://10.0.0.236/trunk@122215 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-28 08:55:54 +00:00
seawood%netscape.com
a3fa4c9a26 Pull client.mk and modules.mk by date when MOZ_CO_DATE is set rather than always pulling the tip version.
Thanks to Andrew Schultz <ajschult@eos.ncsu.edu> for the patch.
Bug #143165 r=leaf


git-svn-id: svn://10.0.0.236/trunk@122213 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-28 08:40:31 +00:00
peterv%netscape.com
1c5c407540 Fix for bug 146965 (Standalone Transformiix outputs invalid XML). r=sicking, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@122211 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-28 08:27:28 +00:00
peterv%netscape.com
0d15d48291 Fix for bug 146964 (Bug in format-number XSLT function). r=sicking, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@122210 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-28 08:16:43 +00:00
timeless%mac.com
072b2a99f7 Bugzilla Bug 147022 Crash when calling prompt() with 2 arguments [@nsACString::Last]
The theory is that the string was "" but the code only handled (char*)0 for empty strings,
The result is a crash in Last() for an empty string.
r=bzbarsky sr=jst


git-svn-id: svn://10.0.0.236/trunk@122209 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-28 05:35:35 +00:00
bryner%netscape.com
7bc0a4464a - Remove some unneeded gecko files from the project.
- Bump the Chimera version to 0.2.8 in the project and credits file.

Note: we no longer copy libmozz.dylib from Mozilla, you need to use --with-system-zlib.  r=hyatt.


git-svn-id: svn://10.0.0.236/trunk@122206 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-28 04:00:40 +00:00
despotdaemon%netscape.com
6f1842fc38 Pseudo-automatic update of changes made by hyatt@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@122205 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-28 03:05:08 +00:00
stephend%netscape.com
e0eb0ff0ad Bug 60639. Proliferate amount of JS strict warnings in accountmanager.js. Patch by rossi@telnet.at (email address doesn't resolve). r=racham@netscape.com, sr=shaver@mozilla.org. I'm landing this for him because a) I'm not sure he has cvs commit access b) I _so_ don't want to see this bitrot any longer.
git-svn-id: svn://10.0.0.236/trunk@122204 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-28 02:39:31 +00:00
bryner%netscape.com
4bc8f3b853 Getting rid of a useless printf that I forgot to remove before checking in.
git-svn-id: svn://10.0.0.236/trunk@122203 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-28 00:16:13 +00:00
jaggernaut%netscape.com
ec89db1a6b Bug 101955: Middle-click -> Open in new tab/window fails for Mail/News URLs, r=sdagley, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@122202 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-28 00:02:41 +00:00
blakeross%telocity.com
178e018e1d 132013 - remove from list in download manager makes program unresponsive for too long. r=hewitt sr=blake (patch by ben)
git-svn-id: svn://10.0.0.236/trunk@122198 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-27 18:11:51 +00:00
blakeross%telocity.com
56927e95fb 132013 - remove from list in download manager makes program unresponsive for too long. r=hewitt sr=blake (patch by ben)
git-svn-id: svn://10.0.0.236/trunk@122197 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-27 18:06:31 +00:00
ben%netscape.com
a4cf12cc84 remove emacs backup file hyatt accidentally checked in
git-svn-id: svn://10.0.0.236/trunk@122196 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-27 06:17:10 +00:00
khanson%netscape.com
ae857abf6a patch to speed up array.sort of strings by 40% r=brendan, sr=shaver
git-svn-id: svn://10.0.0.236/trunk@122195 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-27 05:53:57 +00:00
bryner%netscape.com
6712df4ddb Ignore generated Makefiles.
git-svn-id: svn://10.0.0.236/trunk@122194 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-27 02:12:25 +00:00
bryner%netscape.com
0417fe3a86 Ignore generated makefiles.
git-svn-id: svn://10.0.0.236/trunk@122193 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-27 02:07:35 +00:00
bryner%netscape.com
210e5754a7 Ignore generated Makefiles.
git-svn-id: svn://10.0.0.236/trunk@122192 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-27 02:03:23 +00:00
serge%netscape.com
ba68761930 fix for #145377, crash after closing acrobat plugin, r=av, sr=darin
git-svn-id: svn://10.0.0.236/trunk@122189 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-26 22:52:19 +00:00
dbaron%fas.harvard.edu
cc452efb5b Fix FindPrimaryFrameFor regression: when previous sibling is out-of-flow, start search from previous sibling's placeholder. b=145224 sr=waterson r=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@122188 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-26 17:07:07 +00:00
dbaron%fas.harvard.edu
255ee4ff0c Clear the undisplayed content map before calling SetDocument(null), which can cause some XBL content to be destroyed without notifications, leaving dangling pointers in the undisplayed map. b=145737 r=bzbarsky sr=waterson
git-svn-id: svn://10.0.0.236/trunk@122187 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-26 17:03:42 +00:00
ian%hixie.ch
400e259499 Some versions of the Net::SMTP module handle the timeout by raising a SIG ALRM, so handle this case as well. Also increase the timeout by ten seconds since in the real world, some servers are actually that slow. We might need to make this asynchronous at some point.
git-svn-id: svn://10.0.0.236/trunk@122185 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-26 15:08:48 +00:00
ian%hixie.ch
9278fe7a1b Perl 5.005_03 compatability: the precedence of the not and comma operators changed at some point, so disambiguate this usage.
git-svn-id: svn://10.0.0.236/trunk@122184 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-26 15:05:37 +00:00
ian%hixie.ch
8fb371cdfa Cache the Term::ReadLine input device. On some systems, it has to be cached, otherwise you end up trying to open too many input handles or something like that. This also means we can have session history where available.
git-svn-id: svn://10.0.0.236/trunk@122183 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-26 15:03:48 +00:00
ian%hixie.ch
cbbeb386bf Add some null checking -- if the string is undefined, then turn it into the empty string. This avoids many undefined value warnings when the data provided by the user is incomplete.
git-svn-id: svn://10.0.0.236/trunk@122182 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-26 15:02:33 +00:00
ian%hixie.ch
f641659fa9 Implemented rowsAffected(), which will return the number of database rows that were affected by the last execution of the statement associated with the results frame.
git-svn-id: svn://10.0.0.236/trunk@122181 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-26 15:00:56 +00:00
gerv%gerv.net
a7c2106ebe Backing out mistakenly-checked-in code fragment. Thanks to MattyT for pointing this out.
git-svn-id: svn://10.0.0.236/trunk@122180 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-26 07:01:53 +00:00
stephend%netscape.com
98624addbd Bug 119764. JS strict warnings in pref-themes.js. Patch by Stephen Walker <walk84@yahoo.com> r=morten@nilsen.com/sr=hewitt@netscape.com
git-svn-id: svn://10.0.0.236/trunk@122179 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-26 06:09:26 +00:00
stephend%netscape.com
1cff1902c8 Bug 51985. 'Go' button should be styled as default. Patch by Bradley Hart <bhart@cvip.net>. r=walk84/sr=jag
git-svn-id: svn://10.0.0.236/trunk@122178 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-26 06:05:19 +00:00
matty%chariot.net.au
ed9688c668 Release notes updates.
git-svn-id: svn://10.0.0.236/trunk@122177 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-26 05:34:25 +00:00
brendan%mozilla.org
ce6cc88b16 Don't emit JSOP_DEF{VAR,CONST} unless at top-level or in a heavyweight function (146596, r=jband, sr=shaver).
git-svn-id: svn://10.0.0.236/trunk@122176 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-26 00:33:23 +00:00
caillon%returnzero.com
89f0cee255 Bug 141333, Renaming 'Add to Bookmarks' to 'Bookmark This Page' in the Bookmarks menu. r=gerv, rs=jag
git-svn-id: svn://10.0.0.236/trunk@122174 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-25 19:47:37 +00:00
caillon%returnzero.com
0e5079f263 Bug 142711, adding a trailling slash to the default homepage. r=mpt, rs=jag
git-svn-id: svn://10.0.0.236/trunk@122173 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-25 19:42:12 +00:00
wtc%netscape.com
d4325142df Bug 142575: use the PRIVATE keyword for the /EXPORT linker option.
git-svn-id: svn://10.0.0.236/trunk@122171 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-25 16:00:55 +00:00
gerv%gerv.net
ff1cf6b73e Bug 145849 - Non-maintainers with ability to bless others need "users" link in footer. Patch by bugreport@peshkin.net; r=gerv, justdave.
git-svn-id: svn://10.0.0.236/trunk@122163 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-25 10:35:53 +00:00
gerv%gerv.net
c59d1dd01a Bug 146091 - Sort order for votes is ascending instead of descending. Patch by myk; 2xr=gerv.
git-svn-id: svn://10.0.0.236/trunk@122162 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-25 10:29:20 +00:00
gerv%gerv.net
90856b23af Bug 144768 - Selecting multiple products on query page causes script error in IE. Patch by jouni@heikniemi.net; r=gerv, bbaetz.
git-svn-id: svn://10.0.0.236/trunk@122161 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-25 10:15:55 +00:00
wtc%netscape.com
1298f2f97f Bug 142575: use the /EXPORT linker option on the command line.
Modified files: nssinit.c config.mk


git-svn-id: svn://10.0.0.236/trunk@122157 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-25 06:52:19 +00:00
seawood%netscape.com
f20c39a04a Applying shanjian's API change from bug 142562 to BeOS gfx files.
git-svn-id: svn://10.0.0.236/trunk@122156 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-25 03:00:45 +00:00
wtc%netscape.com
c23c0dcdd0 Bug 142575: a better fix.
git-svn-id: svn://10.0.0.236/trunk@122154 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-25 01:02:39 +00:00
rginda%netscape.com
d6482d8b53 - chatzilla only -
Bug 139334 - [RFE] SQUERY command support
patch=jbontje@suespammers.org,r=me


git-svn-id: svn://10.0.0.236/trunk@122150 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-25 00:40:00 +00:00
morse%netscape.com
3ef731e4d2 bug 146048, image context menu is slow to appear, c=tomi.leppikangus@oulu.fi, r=morse, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@122147 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-24 23:49:33 +00:00
shanjian%netscape.com
ac24fe5f24 Fix bustage caused by my recent checkin.
git-svn-id: svn://10.0.0.236/trunk@122138 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-24 21:04:32 +00:00
wtc%netscape.com
f013504775 Bug 142575: added function forwarder for 'mktemp' for "bug compatibility".
git-svn-id: svn://10.0.0.236/trunk@122137 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-24 21:00:55 +00:00
pavlov%netscape.com
0b2049aeb6 checking in fix for topcrash bug 145147. r=bienvenu sr=mscott
git-svn-id: svn://10.0.0.236/trunk@122136 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-24 20:54:44 +00:00
andreww%netscape.com
30586985bd bugzilla 141281 - r=cmanske, sr=hewitt - Editor: Format Menu: same mnemonic used for two menu items
git-svn-id: svn://10.0.0.236/trunk@122135 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-24 20:29:37 +00:00
andreww%netscape.com
f59b0f0a0f bugzilla 111031 - need access keys [mnemonics] for QuickSearch - r=shuehan, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@122134 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-24 20:20:34 +00:00
pinkerton%netscape.com
b6108f7820 Updating lock icons. Also fixing test of security state for new
state bits in nsIWebProgressListener.


git-svn-id: svn://10.0.0.236/trunk@122133 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-24 20:13:15 +00:00
javi%netscape.com
80b6170fbc Make pkcs12.h C++ friendly.
git-svn-id: svn://10.0.0.236/trunk@122132 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-24 20:11:29 +00:00
shanjian%netscape.com
a9c700ad59 #142562 problem with <td align=right or align=center
We are observing langGroup in some place while ignor it in others. This patch
make all font metrics call consistent. nsIRenderingContext API is change to
make things neat.
r=rbs, sr=waterson


git-svn-id: svn://10.0.0.236/trunk@122131 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-24 20:11:14 +00:00
depstein%netscape.com
2f838a3f76 adding web progress test cases. some minor code cleanup.
a=asa for QA checkins that are not part of the default builds


git-svn-id: svn://10.0.0.236/trunk@122130 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-24 20:03:19 +00:00
ducarroz%netscape.com
ba00cca6d5 Fix for bug 141648. We need to set the focus outside the eidtable field when recycling the compose window to avoid having focus problem on Mac. R=varada, SR=bienvenu
git-svn-id: svn://10.0.0.236/trunk@122129 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-24 19:07:22 +00:00
hwaara%chello.se
d5ce25ebd6 #115324, more removal and optimizing of search/filters code. This time hopefully with the correct line endings too. ;-)
r=biesi, sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@122128 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-24 18:35:18 +00:00
hwaara%chello.se
9c2691ca76 #146230, "search progress doesn't behave like other progress"
r=biesi, sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@122127 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-24 18:31:28 +00:00
mkaply%us.ibm.com
68c295e2dd Fix IRIX bustage. My gosh someone horked this file. So much for blame
git-svn-id: svn://10.0.0.236/trunk@122124 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-24 16:17:01 +00:00
wtc%netscape.com
722d3482dd Back out the previous checkin. It broken the cmd/certcgi build.
git-svn-id: svn://10.0.0.236/trunk@122123 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-24 14:58:02 +00:00
hwaara%chello.se
cea50b1fdb #115324, remove unused search/filters code. sr=jst, r=naving
git-svn-id: svn://10.0.0.236/trunk@122122 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-24 11:11:49 +00:00
shaver%mozilla.org
b676ad258e 146210: Add Date.now to mirror JS_Now in script. r=rginda, sr=brendan.
git-svn-id: svn://10.0.0.236/trunk@122121 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-24 01:55:15 +00:00
javi%netscape.com
66ad65de03 Add macros to make header file C++ friendly.
git-svn-id: svn://10.0.0.236/trunk@122120 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-24 00:53:48 +00:00
varada%netscape.com
9f5b3b789e fix for 70540;compose window should bring up account wizard when there are no identities;r=bhuvan;sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@122119 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-24 00:13:40 +00:00
darin%netscape.com
4a920a09e0 fixes bug 144442 "Microsoft-IIS/4.x and Netscape-Enterprise/3.x do not support pipelining"
r=gagan sr=rpotts


git-svn-id: svn://10.0.0.236/trunk@122118 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-24 00:12:28 +00:00
rjesup%wgate.com
17cb5dda88 Bug 139380: correctly parse font names again. Checkin for gisburn.
r=bstell, sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@122117 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-24 00:00:33 +00:00
darin%netscape.com
ad0d32a868 fixes bug 100595 "crash @nsMultiMixedConv::FindToken [was: sandiegozoo.org
- this site crashes the browser, every time]"
r=dougt sr=rpotts


git-svn-id: svn://10.0.0.236/trunk@122116 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 23:46:01 +00:00
rjesup%wgate.com
75aeac8e24 Bug 143413: symbol-fontspecific missing for Xlib/Xprint. Checkin for
gisburn.  r=pete.zha, sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@122115 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 23:39:06 +00:00
morse%netscape.com
0fc77e2b10 bug 145492, sending out duplicate cookies, r=brade, sr=scc
git-svn-id: svn://10.0.0.236/trunk@122114 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 23:25:43 +00:00
bienvenu%netscape.com
6abcb1feba fix 138018 should disable delete and move for readonly folders r=naving, sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@122113 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 23:13:26 +00:00
dbaron%fas.harvard.edu
36706675ec Ensure that the quirks stylesheet is enabled/disabled before we start creating frames so that we don't have to build the rule cascade twice. Remove old compatibility mode pref that only controlled a small part of what it should have. b=141261 sr=waterson r=jst
git-svn-id: svn://10.0.0.236/trunk@122112 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 23:09:31 +00:00
cavin%netscape.com
0e77f84cff Fix for 94775. Strip off trailing '/' of input realm, if present, before making comparison in si_GetURL(). r=morse, sr=bienvenu.
git-svn-id: svn://10.0.0.236/trunk@122111 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 23:04:13 +00:00
beard%netscape.com
a7e6103928 Modifications for building under mach-o with project builder.
git-svn-id: svn://10.0.0.236/trunk@122110 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 22:33:04 +00:00
beard%netscape.com
79ed9a0f65 initial checkin of mach-o plugin
git-svn-id: svn://10.0.0.236/trunk@122108 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 22:30:28 +00:00
wtc%netscape.com
a2698a2a9f Bug 142575: on Windows added mktemp (which simply calls _mktemp in the C
run-time library) to be backward compatible with the bug that mktemp was
accidentally exported from the nss3.dll in NSS 3.2.x and 3.3.x.


git-svn-id: svn://10.0.0.236/trunk@122106 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 22:28:50 +00:00
despotdaemon%netscape.com
9e85f461e0 Pseudo-automatic update of changes made by richm@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@122105 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 22:27:37 +00:00
beard%netscape.com
22b4d6af78 Consume mouseDown events.
git-svn-id: svn://10.0.0.236/trunk@122104 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 22:24:51 +00:00
despotdaemon%netscape.com
286d31b7a6 Pseudo-automatic update of changes made by knous@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@122103 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 22:23:15 +00:00
kirk.erickson%sun.com
a271017d01 Resolves bug 90070 (now exiting with PK12UERR_PK11GETSLOT 13).
git-svn-id: svn://10.0.0.236/trunk@122102 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 22:21:42 +00:00
despotdaemon%netscape.com
5403a2da1a Pseudo-automatic update of changes made by djani@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@122101 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 22:19:58 +00:00
caillon%returnzero.com
e35a1e74d4 Fix for bug 137334: DOM Inspecting the URL bar will crash. r=timeless, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@122100 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 22:11:29 +00:00
jfrancis%netscape.com
d370191df3 fixing 136165: crash after deleting styled text. r=cmanske sr=dveditz
git-svn-id: svn://10.0.0.236/trunk@122099 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 22:05:35 +00:00
yokoyama%netscape.com
6847633535 bug 141513
IME candidate window is displayed in wrong position
Patch is to impact only in Windows XP
with MS PinYing IME and NeiMa IME
/r=shanjian, /sr=brendan


git-svn-id: svn://10.0.0.236/trunk@122098 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 22:03:49 +00:00
smontagu%netscape.com
8e6b566ead Fix for memory leak. Bug 145153, r=mkaply, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@122097 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 22:03:19 +00:00
sspitzer%netscape.com
46c89f52e4 fix for #138826. context menu (for images and in general) is broken in the stand alone mail message window. r=sspitzer, sr=blake. thanks to antonio.xu@sun.com for the initial patch.
git-svn-id: svn://10.0.0.236/trunk@122096 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 21:39:34 +00:00
sspitzer%netscape.com
f202a313ac commenting the "browser.downloadmanager.behavior" pref. no bug.
sr=blake


git-svn-id: svn://10.0.0.236/trunk@122095 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 21:34:41 +00:00
chak%netscape.com
4ae0c542c3 Fix for #13127
FTP (HTML view) - folder and document icons do not display
(in an embedding scenario)
r=adamlock, sr=alecf


git-svn-id: svn://10.0.0.236/trunk@122094 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 21:25:19 +00:00
dcone%netscape.com
d2a9c8c9c0 Update of the debug plugin. Not part of the build
git-svn-id: svn://10.0.0.236/trunk@122093 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 21:06:49 +00:00
srilatha%netscape.com
b76bb6eb37 Fix for bug # 141438. added code so that we don't define SHORT_LIBNAME on winNT
r=cls, sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@122092 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 21:00:56 +00:00
nicolson%netscape.com
3c5501ee98 Fix 146515: PK11PrivKey.fromPrivateKeyInfo enables no operations for RSA keys
git-svn-id: svn://10.0.0.236/trunk@122091 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 20:32:10 +00:00
naving%netscape.com
5d51940703 140149 r=racham sr=mscott. fixing disappearing of "disable cookies in mail & newsgroups" checkbox on commercial mac builds.
git-svn-id: svn://10.0.0.236/trunk@122090 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 20:28:27 +00:00
naving%netscape.com
0b7f74cad2 146089 r=ducarroz sr=bienvenu fixing a crasher when downloading pop3 mail with malformed "From" address.
git-svn-id: svn://10.0.0.236/trunk@122089 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 20:21:42 +00:00
naving%netscape.com
d770508514 146313 r=cavin sr=bienvenu Making server->ForgetPassWord() call from imap protocol code thread-safe
git-svn-id: svn://10.0.0.236/trunk@122088 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 20:19:06 +00:00
waterson%netscape.com
bb86b1d414 Bug 145272. Handle incremental reflows that are targeted at a child of a caption frame. r=karnaze, sr=jst
git-svn-id: svn://10.0.0.236/trunk@122086 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 18:51:02 +00:00
nicolson%netscape.com
fddf628972 move new entry to end of file
git-svn-id: svn://10.0.0.236/trunk@122085 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 18:45:23 +00:00
nicolson%netscape.com
98a58d052f cleanup tabs and spaces.
git-svn-id: svn://10.0.0.236/trunk@122084 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 18:45:00 +00:00
nicolson%netscape.com
e8312e0827 Various minor tweaks for code cleanliness.
git-svn-id: svn://10.0.0.236/trunk@122083 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 18:29:07 +00:00
glen.beasley%sun.com
d1708d80b8 bug 144913 isCertValid addition
git-svn-id: svn://10.0.0.236/trunk@122082 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 17:52:23 +00:00
shrutiv%netscape.com
896214d3e2 Fix for bug 91195: Need to check remaining disk space before creating
the bld (r=smeredith)


git-svn-id: svn://10.0.0.236/trunk@122079 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 17:25:11 +00:00
mikep%oeone.com
c2d14ab79f Adding in patch from bug 141867 to fix copy / paste stuff.
git-svn-id: svn://10.0.0.236/trunk@122078 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 16:41:33 +00:00
mostafah%oeone.com
6f10f7fde1 Removing unneccessary line feed
git-svn-id: svn://10.0.0.236/trunk@122077 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 14:40:52 +00:00
mikep%oeone.com
a6a7877dff Uping version number.
git-svn-id: svn://10.0.0.236/trunk@122076 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 14:08:00 +00:00
mikep%oeone.com
a442f7cbba Fix to change file permissions to a more useful set, bug 146212
git-svn-id: svn://10.0.0.236/trunk@122075 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 14:06:49 +00:00
locka%iol.ie
0370268a4c NOT PART OF BUILD. More XPConnect scripting improvements
git-svn-id: svn://10.0.0.236/trunk@122073 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 13:28:38 +00:00
mikep%oeone.com
01770e4029 Fixing small bugs, as mentioned in bug 141867.
git-svn-id: svn://10.0.0.236/trunk@122072 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 13:27:15 +00:00
rods%netscape.com
42e0661834 temporary patch to the forms controls to ignore mouse events when in
printpreview until Bug 124990 gets fixed (radio and checkbox doesn't need the fix)
this code will be removed via bug 146399
Bug 129002 r=dcone sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@122071 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 11:25:58 +00:00
pinkerton%netscape.com
4b5b93d8b9 Updates for api changes (signed->unsigned)
git-svn-id: svn://10.0.0.236/trunk@122070 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 11:19:51 +00:00
rods%netscape.com
7add5ab6a7 The allows TAB events to be processed. This seems to work fine, because the
forms controls can never get focus. I did a lot of testing and the focus goes
to the toolbar and doesn't go to any forms controls.
Bug 145388 r=dcone sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@122068 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 10:48:37 +00:00
jdunn%netscape.com
99813d62d1 HP-UX requires STDC to be defined
# 146265
r=cls@seawood.org
sr=jaggernaut@netscape.com


git-svn-id: svn://10.0.0.236/trunk@122067 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 10:41:36 +00:00
rbs%maths.uq.edu.au
908f88658d Add the DOCTYPE for the XHTML+MathML+SVG profile in the recognized catalog list, b=145810, r=heikki, sr=jst
git-svn-id: svn://10.0.0.236/trunk@122065 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 08:16:54 +00:00
myk%mozilla.org
bc5d4e6aae Fix for bug 146261: fixes bug preventing the sending of email to users when the status of bugs changes in some situations.
Patch by Tim Taylor <ttaylor@mitre.org>.
r=myk,bbaetz


git-svn-id: svn://10.0.0.236/trunk@122063 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 08:08:53 +00:00
racham%netscape.com
3daa300f09 Fixing bugscape 15562. Removing duplicate entries from pageInfo.dtd file. r=ftang, sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@122061 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 07:18:31 +00:00
jst%netscape.com
7f0a0a116f Backing out part of the fix for bug 143369 as a fix for bug 146333. Don't make ChromeWindow's prototype immutable.
git-svn-id: svn://10.0.0.236/trunk@122059 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 05:39:27 +00:00
matty%chariot.net.au
76e2e3d6e4 Release notes updates.
git-svn-id: svn://10.0.0.236/trunk@122057 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 05:31:37 +00:00
cotter%netscape.com
9de3ff9574 ongoing help content updates per bugzilla 122806 & ADT, r=oeschger; mostly privacy help updates based on Steve Morse's review.
git-svn-id: svn://10.0.0.236/trunk@122050 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 04:20:52 +00:00
pinkerton%netscape.com
166ae94eb0 Just born
git-svn-id: svn://10.0.0.236/trunk@122047 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 01:16:05 +00:00
pinkerton%netscape.com
6e15cb8a6a oops, some absolute paths snuck in
git-svn-id: svn://10.0.0.236/trunk@122046 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 00:46:53 +00:00
pinkerton%netscape.com
d42ff5a2c4 Add privacy panel
git-svn-id: svn://10.0.0.236/trunk@122045 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 00:25:31 +00:00
pinkerton%netscape.com
f38cc1e52f fix a lot of unicode problems. stub out some inline editing in case we ever
want to do that (we probably don't, but...)


git-svn-id: svn://10.0.0.236/trunk@122044 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 00:25:01 +00:00
pinkerton%netscape.com
3d2ebbbf5c Adding privacy panel
git-svn-id: svn://10.0.0.236/trunk@122043 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 00:24:08 +00:00
dbaron%fas.harvard.edu
ce23b316f1 Fix checking of checkboxes inside their label by not sending the duplicate event if the click was already within the form control. b=96813 r=jkeiser sr=jst
git-svn-id: svn://10.0.0.236/trunk@122042 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 00:23:12 +00:00
morse%netscape.com
04500578be bug 146094, leaking cookies, r=waterson, sr=darin
git-svn-id: svn://10.0.0.236/trunk@122040 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 00:08:42 +00:00
jst%netscape.com
0e34136ef1 Fixing bug 146034. Getting rid of nsHTMLIIDs.{h,cpp}. r=jfrancis@netscape.com, sr=rpotts@netscape.com
git-svn-id: svn://10.0.0.236/trunk@122039 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 00:00:34 +00:00
blythe%netscape.com
293f7a4a7a Not part of normal build.
Fix bug 145333.
Manual ordering of some modules can now be forced.
r=mcafee


git-svn-id: svn://10.0.0.236/trunk@122038 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-22 23:53:04 +00:00
harishd%netscape.com
eedcf9208e Preserve comment declaration for textarea and viewsource. b=133044, r=heikki, sr=jst
git-svn-id: svn://10.0.0.236/trunk@122037 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-22 23:51:30 +00:00
relyea%netscape.com
d0e52c624a Refresh token cache after login on tokens that need to log in before they
could read their certs.


git-svn-id: svn://10.0.0.236/trunk@122033 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-22 23:13:05 +00:00
relyea%netscape.com
8aaf6c1b1e Close our peer database handles because some platforms (Mac) do bad things
if you hold two berkelydb handles open to the same database in the same process.
(actually a lot of platforms could cause problems, the Mac version of dbm (1.85)
just does the bad things right away).


git-svn-id: svn://10.0.0.236/trunk@122032 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-22 21:47:23 +00:00
attinasi%netscape.com
33f7624433 Very High Level (tm) Layout Documentation. Work In Progress, not part of any build or product. Cheers, mates!
git-svn-id: svn://10.0.0.236/trunk@122031 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-22 21:07:29 +00:00
igor%mir2.org
52822661f9 Back-indent the interpreter main loop to ease code following
git-svn-id: svn://10.0.0.236/trunk@122027 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-22 18:42:40 +00:00
mikep%oeone.com
fc947a0f81 Fixing import / export thanks to bug 146212.
git-svn-id: svn://10.0.0.236/trunk@122026 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-22 17:13:35 +00:00
igor%mir2.org
38fddcf688 Fixing bug 145791: apply and call with null and undefined arguments behaves as required and Function.prototype.apply.length returns 2.
git-svn-id: svn://10.0.0.236/trunk@122025 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-22 16:46:28 +00:00
mostafah%oeone.com
f92684db76 Adding oeICalTodoImpl to build
git-svn-id: svn://10.0.0.236/trunk@122024 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-22 15:16:19 +00:00
jdunn%netscape.com
c62cc8b5d9 fixing plugins extensions for HP & AIX
# 106806
r=serge@netscape.com,pkw@austin.ibm.com


git-svn-id: svn://10.0.0.236/trunk@122023 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-22 14:54:23 +00:00
mostafah%oeone.com
4189aa0bd0 Adding new EventDisplay component. Fixing getEvents functions to return sorted-by-occurence events
git-svn-id: svn://10.0.0.236/trunk@122022 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-22 14:01:38 +00:00
jdunn%netscape.com
bb1bb5520a changing false to PR_FALSE
r=james.turner@crocodile-clips.com, bbaetz@student.usyd.edu.au


git-svn-id: svn://10.0.0.236/trunk@122021 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-22 13:17:13 +00:00
rods%netscape.com
7e8d6d3e59 patch to clamp to 1/10th of the largest dimension of a page - very low risk. I
think it is unrealistic that the smaller dim of the page would be less than 1/5
of the larger dimension. (and remove unneeded call to get the presshell)
Bug 145976 r=dcone sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@122020 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-22 11:32:00 +00:00
562 changed files with 144867 additions and 104276 deletions

1964
mozilla/allmakefiles.sh Executable file

File diff suppressed because it is too large Load Diff

1117
mozilla/client.mk Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,430 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is this file as it was released upon August 6, 1998.
#
# The Initial Developer of the Original Code is Christopher
# Seawood. Portions created by Christopher Seawood are
# Copyright (C) 1998 Christopher Seawood. All
# Rights Reserved.
#
# Contributor(s):
# A netscape style .mk file for autoconf builds
INCLUDED_AUTOCONF_MK = 1
USE_AUTOCONF = 1
MOZILLA_CLIENT = 1
BUILD_MODULES = @BUILD_MODULES@
MOZILLA_VERSION = @MOZILLA_VERSION@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
includedir = @includedir@/mozilla-$(MOZILLA_VERSION)
libdir = @libdir@
datadir = @datadir@
mandir = @mandir@
idldir = @datadir@/idl/mozilla-$(MOZILLA_VERSION)
mozappdir = $(libdir)/mozilla-$(MOZILLA_VERSION)
mredir = $(libdir)/mre/mre-$(MOZILLA_VERSION)
mrelibdir = $(mredir)/lib
DIST = $(DEPTH)/dist
MOZ_CHROME_FILE_FORMAT = @MOZ_CHROME_FILE_FORMAT@
MOZ_WIDGET_TOOLKIT = @MOZ_WIDGET_TOOLKIT@
MOZ_GFX_TOOLKIT = $(MOZ_WIDGET_TOOLKIT)
MOZ_JS_LIBS = @MOZ_JS_LIBS@
MOZ_GFX_TOOLKIT_LDFLAGS = @MOZ_GFX_TOOLKIT_LDFLAGS@
MOZ_WIDGET_TOOLKIT_LDFLAGS = @MOZ_WIDGET_TOOLKIT_LDFLAGS@
MOZ_DEBUG = @MOZ_DEBUG@
MOZ_DEBUG_MODULES = @MOZ_DEBUG_MODULES@
MOZ_PROFILE_MODULES = @MOZ_PROFILE_MODULES@
MOZ_DEBUG_ENABLE_DEFS = @MOZ_DEBUG_ENABLE_DEFS@
MOZ_DEBUG_DISABLE_DEFS = @MOZ_DEBUG_DISABLE_DEFS@
MOZ_DEBUG_FLAGS = @MOZ_DEBUG_FLAGS@
MOZ_DEBUG_LDFLAGS=@MOZ_DEBUG_LDFLAGS@
MOZ_DBGRINFO_MODULES = @MOZ_DBGRINFO_MODULES@
MOZ_EXTENSIONS = @MOZ_EXTENSIONS@
MOZ_IMG_DECODERS= @MOZ_IMG_DECODERS@
MOZ_JSDEBUGGER = @MOZ_JSDEBUGGER@
MOZ_PERF_METRICS = @MOZ_PERF_METRICS@
MOZ_LEAKY = @MOZ_LEAKY@
MOZ_JPROF = @MOZ_JPROF@
MOZ_XPCTOOLS = @MOZ_XPCTOOLS@
ENABLE_EAZEL_PROFILER=@ENABLE_EAZEL_PROFILER@
EAZEL_PROFILER_CFLAGS=@EAZEL_PROFILER_CFLAGS@
EAZEL_PROFILER_LIBS=@EAZEL_PROFILER_LIBS@
GC_LEAK_DETECTOR = @GC_LEAK_DETECTOR@
NS_TRACE_MALLOC = @NS_TRACE_MALLOC@
USE_ELF_DYNSTR_GC = @USE_ELF_DYNSTR_GC@
USE_PREBINDING = @USE_PREBINDING@
INCREMENTAL_LINKER = @INCREMENTAL_LINKER@
MACOS_DEPLOYMENT_TARGET = @MACOS_DEPLOYMENT_TARGET@
MOZ_MAIL_NEWS = @MOZ_MAIL_NEWS@
MOZ_CALENDAR = @MOZ_CALENDAR@
MOZ_PLAINTEXT_EDITOR_ONLY = @MOZ_PLAINTEXT_EDITOR_ONLY@
MOZ_COMPOSER = @MOZ_COMPOSER@
BUILD_SHARED_LIBS = @BUILD_SHARED_LIBS@
BUILD_STATIC_LIBS = @BUILD_STATIC_LIBS@
MOZ_STATIC_COMPONENT_LOADER = @MOZ_STATIC_COMPONENT_LOADER@
MOZ_STATIC_COMPONENTS = @MOZ_STATIC_COMPONENTS@
MOZ_META_COMPONENTS = @MOZ_META_COMPONENTS@
MOZ_STATIC_COMPONENT_LIBS = @MOZ_STATIC_COMPONENT_LIBS@
ENABLE_TESTS = @ENABLE_TESTS@
IBMBIDI = @IBMBIDI@
SUNCTL = @SUNCTL@
ACCESSIBILITY = @ACCESSIBILITY@
MOZ_VIEW_SOURCE = @MOZ_VIEW_SOURCE@
MOZ_XPINSTALL = @MOZ_XPINSTALL@
MOZ_JSLOADER = @MOZ_JSLOADER@
MOZ_USE_NATIVE_UCONV = @MOZ_USE_NATIVE_UCONV@
MOZ_SINGLE_PROFILE = @MOZ_SINGLE_PROFILE@
MOZ_LDAP_XPCOM = @MOZ_LDAP_XPCOM@
MOZ_LDAP_XPCOM_EXPERIMENTAL = @MOZ_LDAP_XPCOM_EXPERIMENTAL@
XPCOM_USE_LEA = @XPCOM_USE_LEA@
JS_ULTRASPARC_OPTS = @JS_ULTRASPARC_OPTS@
MOZ_ENABLE_POSTSCRIPT = @MOZ_ENABLE_POSTSCRIPT@
MOZ_INSTALLER = @MOZ_INSTALLER@
MOZ_NO_ACTIVEX_SUPPORT = @MOZ_NO_ACTIVEX_SUPPORT@
MOZ_ACTIVEX_SCRIPTING_SUPPORT = @MOZ_ACTIVEX_SCRIPTING_SUPPORT@
XPC_IDISPATCH_SUPPORT = @MOZ_ACTIVEX_SCRIPTING_SUPPORT@
MOZ_XPFE_COMPONENTS = @MOZ_XPFE_COMPONENTS@
MOZ_IPCD = @MOZ_IPCD@
MOZ_PROFILESHARING = @MOZ_PROFILESHARING@
MOZ_PROFILELOCKING = @MOZ_PROFILELOCKING@
MOZ_COMPONENTS_VERSION_SCRIPT_LDFLAGS = @MOZ_COMPONENTS_VERSION_SCRIPT_LDFLAGS@
MOZ_COMPONENT_NSPR_LIBS=@MOZ_COMPONENT_NSPR_LIBS@
MOZ_COMPONENT_XPCOM_LIBS=@MOZ_COMPONENT_XPCOM_LIBS@
XPCOM_LIBS=@XPCOM_LIBS@
MOZ_REORDER=@MOZ_REORDER@
MOZ_TIMELINE=@MOZ_TIMELINE@
ENABLE_STRIP = @ENABLE_STRIP@
ClientWallet=1
CookieManagement=1
SingleSignon=1
MOZ_OJI = @MOZ_OJI@
MOZ_POST_DSO_LIB_COMMAND = @MOZ_POST_DSO_LIB_COMMAND@
MOZ_POST_PROGRAM_COMMAND = @MOZ_POST_PROGRAM_COMMAND@
MOZ_BUILD_ROOT = @MOZ_BUILD_ROOT@
MOZ_XUL = @MOZ_XUL@
NECKO_PROTOCOLS = @NECKO_PROTOCOLS@
NECKO_DISK_CACHE = @NECKO_DISK_CACHE@
NECKO_SMALL_BUFFERS = @NECKO_SMALL_BUFFERS@
MOZ_NATIVE_ZLIB = @SYSTEM_ZLIB@
MOZ_NATIVE_JPEG = @SYSTEM_JPEG@
MOZ_NATIVE_PNG = @SYSTEM_PNG@
MOZ_INTERNAL_LIBART_LGPL = @MOZ_INTERNAL_LIBART_LGPL@
MOZ_UPDATE_XTERM = @MOZ_UPDATE_XTERM@
MOZ_MATHML = @MOZ_MATHML@
MOZ_SVG = @MOZ_SVG@
MOZ_SVG_RENDERER_GDIPLUS = @MOZ_SVG_RENDERER_GDIPLUS@
MOZ_SVG_RENDERER_LIBART = @MOZ_SVG_RENDERER_LIBART@
MOZ_LIBART_CFLAGS = @MOZ_LIBART_CFLAGS@
TX_EXE = @TX_EXE@
# Mac's don't like / in a #include, so we include the libart
# headers locally if we're using the external library
ifdef MOZ_LIBART_CFLAGS
ifndef MOZ_INTERNAL_LIBART_LGPL
MOZ_LIBART_CFLAGS := $(MOZ_LIBART_CFLAGS)/libart_lgpl
endif
endif
MOZ_LIBART_LIBS = @MOZ_LIBART_LIBS@
MOZ_INSURE = @MOZ_INSURE@
MOZ_INSURIFYING = @MOZ_INSURIFYING@
MOZ_INSURE_DIRS = @MOZ_INSURE_DIRS@
MOZ_INSURE_EXCLUDE_DIRS = @MOZ_INSURE_EXCLUDE_DIRS@
MOZ_NATIVE_NSPR = @MOZ_NATIVE_NSPR@
CROSS_COMPILE = @CROSS_COMPILE@
OS_CPPFLAGS = @CPPFLAGS@
OS_CFLAGS = $(OS_CPPFLAGS) @CFLAGS@
OS_CXXFLAGS = $(OS_CPPFLAGS) @CXXFLAGS@
OS_LDFLAGS = @LDFLAGS@
OS_COMPILE_CFLAGS = $(OS_CPPFLAGS) @COMPILE_CFLAGS@
OS_COMPILE_CXXFLAGS = $(OS_CPPFLAGS) @COMPILE_CXXFLAGS@
OS_INCLUDES = $(NSPR_CFLAGS) $(JPEG_CFLAGS) $(PNG_CFLAGS) $(ZLIB_CFLAGS)
OS_LIBS = @LIBS@
ACDEFINES = @MOZ_DEFINES@
MOZ_OPTIMIZE = @MOZ_OPTIMIZE@
MOZ_OPTIMIZE_FLAGS = @MOZ_OPTIMIZE_FLAGS@
MOZ_OPTIMIZE_LDFLAGS = @MOZ_OPTIMIZE_LDFLAGS@
XCFLAGS = @XCFLAGS@
XLDFLAGS = @XLDFLAGS@
XLIBS = @XLIBS@
CYGWIN_WRAPPER = @CYGWIN_WRAPPER@
CYGDRIVE_MOUNT = @CYGDRIVE_MOUNT@
AR = @AR@
AR_FLAGS = @AR_FLAGS@
AR_EXTRACT = @AR_EXTRACT@
AR_LIST = @AR_LIST@
AR_DELETE = @AR_DELETE@
AS = @AS@
ASFLAGS = @ASFLAGS@
AS_DASH_C_FLAG = @AS_DASH_C_FLAG@
LD = @LD@
RC = @RC@
RCFLAGS = @RCFLAGS@
WINDRES = @WINDRES@
USE_SHORT_LIBNAME = @USE_SHORT_LIBNAME@
IMPLIB = @IMPLIB@
FILTER = @FILTER@
BIN_FLAGS = @BIN_FLAGS@
MIDL = @MIDL@
MIDL_FLAGS = @MIDL_FLAGS@
DLL_PREFIX = @DLL_PREFIX@
LIB_PREFIX = @LIB_PREFIX@
OBJ_SUFFIX = @OBJ_SUFFIX@
LIB_SUFFIX = @LIB_SUFFIX@
DLL_SUFFIX = @DLL_SUFFIX@
BIN_SUFFIX = @BIN_SUFFIX@
ASM_SUFFIX = @ASM_SUFFIX@
IMPORT_LIB_SUFFIX = @IMPORT_LIB_SUFFIX@
USE_N32 = @USE_N32@
HAVE_64BIT_OS = @HAVE_64BIT_OS@
# Temp hack. It is not my intention to leave this crap in here for ever.
# Im talking to fur right now to solve the problem without introducing
# NS_USE_NATIVE to the build system -ramiro.
NS_USE_NATIVE = @NS_USE_NATIVE@
CC = @CC@
CXX = @CXX@
GNU_AS = @GNU_AS@
GNU_LD = @GNU_LD@
GNU_CC = @GNU_CC@
GNU_CXX = @GNU_CXX@
HAVE_GCC3_ABI = @HAVE_GCC3_ABI@
HOST_CC = @HOST_CC@
HOST_CXX = @HOST_CXX@
HOST_CFLAGS = @HOST_CFLAGS@
HOST_CXXFLAGS = @HOST_CXXFLAGS@
HOST_OPTIMIZE_FLAGS = @HOST_OPTIMIZE_FLAGS@
HOST_NSPR_MDCPUCFG = @HOST_NSPR_MDCPUCFG@
HOST_AR = @HOST_AR@
HOST_LD = @HOST_LD@
HOST_RANLIB = @HOST_RANLIB@
HOST_LIBIDL_CONFIG = @HOST_LIBIDL_CONFIG@
HOST_LIBIDL_CFLAGS = @HOST_LIBIDL_CFLAGS@
HOST_LIBIDL_LIBS = @HOST_LIBIDL_LIBS@
TARGET_NSPR_MDCPUCFG = @TARGET_NSPR_MDCPUCFG@
TARGET_CPU = @TARGET_CPU@
TARGET_VENDOR = @TARGET_VENDOR@
TARGET_OS = @TARGET_OS@
TARGET_MD_ARCH = @TARGET_MD_ARCH@
AUTOCONF = @AUTOCONF@
PERL = @PERL@
RANLIB = @RANLIB@
WHOAMI = @WHOAMI@
UNZIP = @UNZIP@
ZIP = @ZIP@
XARGS = @XARGS@
STRIP = @STRIP@
DOXYGEN = @DOXYGEN@
MAKE = @MAKE@
PBBUILD_BIN = @PBBUILD@
ifdef MOZ_NATIVE_JPEG
JPEG_CFLAGS = @JPEG_CFLAGS@
JPEG_LIBS = @JPEG_LIBS@
JPEG_REQUIRES =
else
JPEG_CFLAGS = @MOZ_JPEG_CFLAGS@
JPEG_LIBS = @MOZ_JPEG_LIBS@
JPEG_REQUIRES = jpeg
endif
ifdef MOZ_NATIVE_ZLIB
ZLIB_CFLAGS = @ZLIB_CFLAGS@
ZLIB_LIBS = @ZLIB_LIBS@
ZLIB_REQUIRES =
else
ZLIB_CFLAGS = @MOZ_ZLIB_CFLAGS@
ZLIB_LIBS = @MOZ_ZLIB_LIBS@
ZLIB_REQUIRES = zlib
endif
ifdef MOZ_NATIVE_PNG
PNG_CFLAGS = @PNG_CFLAGS@
PNG_LIBS = @PNG_LIBS@
PNG_REQUIRES =
else
PNG_CFLAGS = @MOZ_PNG_CFLAGS@
PNG_LIBS = @MOZ_PNG_LIBS@
PNG_REQUIRES = png
endif
NSPR_CFLAGS = @NSPR_CFLAGS@
NSPR_LIBS = @NSPR_LIBS@
LDAP_CFLAGS = @LDAP_CFLAGS@
LDAP_LIBS = @LDAP_LIBS@
XPCOM_GLUE_LIBS = @XPCOM_GLUE_LIBS@
MOZ_XPCOM_OBSOLETE_LIBS = @MOZ_XPCOM_OBSOLETE_LIBS@
USE_DEPENDENT_LIBS = @USE_DEPENDENT_LIBS@
# UNIX98 iconv support
LIBICONV = @LIBICONV@
# MKSHLIB_FORCE_ALL is used to force the linker to include all object
# files present in an archive. MKSHLIB_UNFORCE_ALL reverts the linker
# to normal behavior. Makefile's that create shared libraries out of
# archives use these flags to force in all of the .o files in the
# archives into the shared library.
WRAP_MALLOC_LIB = @WRAP_MALLOC_LIB@
WRAP_MALLOC_CFLAGS = @WRAP_MALLOC_CFLAGS@
DSO_CFLAGS = @DSO_CFLAGS@
DSO_PIC_CFLAGS = @DSO_PIC_CFLAGS@
MKSHLIB = @MKSHLIB@
MKCSHLIB = @MKCSHLIB@
MKSHLIB_FORCE_ALL = @MKSHLIB_FORCE_ALL@
MKSHLIB_UNFORCE_ALL = @MKSHLIB_UNFORCE_ALL@
DSO_LDOPTS = @DSO_LDOPTS@
DLL_SUFFIX = @DLL_SUFFIX@
NO_LD_ARCHIVE_FLAGS = @NO_LD_ARCHIVE_FLAGS@
GTK_CONFIG = @GTK_CONFIG@
TK_CFLAGS = @TK_CFLAGS@
TK_LIBS = @TK_LIBS@
MOZ_TOOLKIT_REGISTRY_CFLAGS = \
-DWIDGET_DLL=@WIDGET_DLL@ \
-DGFXWIN_DLL=@GFXWIN_DLL@ \
$(TK_CFLAGS)
MOZ_ENABLE_GTK = @MOZ_ENABLE_GTK@
MOZ_ENABLE_GTK2 = @MOZ_ENABLE_GTK2@
MOZ_ENABLE_XLIB = @MOZ_ENABLE_XLIB@
MOZ_ENABLE_PHOTON = @MOZ_ENABLE_PHOTON@
MOZ_ENABLE_COCOA = @MOZ_ENABLE_COCOA@
MOZ_ENABLE_XREMOTE = @MOZ_ENABLE_XREMOTE@
MOZ_GTK_CFLAGS = @MOZ_GTK_CFLAGS@
MOZ_GTK_LDFLAGS = @MOZ_GTK_LDFLAGS@
MOZ_GTK2_CFLAGS = @MOZ_GTK2_CFLAGS@
MOZ_GTK2_LIBS = @MOZ_GTK2_LIBS@
MOZ_XLIB_CFLAGS = @MOZ_XLIB_CFLAGS@
MOZ_XLIB_LDFLAGS = @MOZ_XLIB_LDFLAGS@
MOZ_XPRINT_CFLAGS = @MOZ_XPRINT_CFLAGS@
MOZ_XPRINT_LDFLAGS = @MOZ_XPRINT_LDFLAGS@
MOZ_ENABLE_XPRINT = @MOZ_ENABLE_XPRINT@
MOZ_ENABLE_FREETYPE2 = @MOZ_ENABLE_FREETYPE2@
FT2_CFLAGS = @FT2_CFLAGS@
FT2_LIBS = @FT2_LIBS@
MOZ_ENABLE_XFT = @MOZ_ENABLE_XFT@
MOZ_XFT_CFLAGS = @MOZ_XFT_CFLAGS@
MOZ_XFT_LIBS = @MOZ_XFT_LIBS@
MOZ_ENABLE_COREXFONTS = @MOZ_ENABLE_COREXFONTS@
MOZ_EXTRA_X11CONVERTERS = @MOZ_EXTRA_X11CONVERTERS@
MOZ_ENABLE_XINERAMA = @MOZ_ENABLE_XINERAMA@
MOZ_XINERAMA_LIBS = @MOZ_XINERAMA_LIBS@
MOZ_XIE_LIBS = @MOZ_XIE_LIBS@
XT_LIBS = @XT_LIBS@
GLIB_CFLAGS = @GLIB_CFLAGS@
GLIB_LIBS = @GLIB_LIBS@
GLIB_GMODULE_LIBS = @GLIB_GMODULE_LIBS@
LIBIDL_CFLAGS = @LIBIDL_CFLAGS@
LIBIDL_LIBS = @LIBIDL_LIBS@
MOZ_NATIVE_MAKEDEPEND = @SYSTEM_MAKEDEPEND@
# Used for LD_LIBRARY_PATH
LIBS_PATH = @LIBS_PATH@
MOZ_AUTO_DEPS = @MOZ_AUTO_DEPS@
COMPILER_DEPEND = @COMPILER_DEPEND@
MDDEPDIR := @MDDEPDIR@
MOZ_DEMANGLE_SYMBOLS = @MOZ_DEMANGLE_SYMBOLS@
# XXX - these need to be cleaned up and have real checks added -cls
CM_BLDTYPE=dbg
AWT_11=1
MOZ_BITS=32
OS_TARGET=@OS_TARGET@
OS_ARCH=@OS_ARCH@
OS_RELEASE=@OS_RELEASE@
OS_TEST=@OS_TEST@
# For OS/2 build
MOZ_OS2_TOOLS = @MOZ_OS2_TOOLS@
MOZ_OS2_EMX_OBJECTFORMAT = @MOZ_OS2_EMX_OBJECTFORMAT@
HAVE_XIE=@HAVE_XIE@
MOZ_MOVEMAIL=@MOZ_MOVEMAIL@
MOZ_PSM=@MOZ_PSM@
# for Qt build
MOC=@MOC@
# Win32 options
MOZ_PROFILE = @MOZ_PROFILE@
MOZ_COVERAGE = @MOZ_COVERAGE@
MOZ_BROWSE_INFO = @MOZ_BROWSE_INFO@
MOZ_TOOLS_DIR = @MOZ_TOOLS_DIR@
# Codesighs tools option, enables win32 mapfiles.
MOZ_MAPINFO = @MOZ_MAPINFO@
MOZ_PHOENIX = @MOZ_PHOENIX@
MOZ_XUL_APP = @MOZ_XUL_APP@
MOZ_THUNDERBIRD = @MOZ_THUNDERBIRD@
MOZ_STANDALONE_COMPOSER= @MOZ_STANDALONE_COMPOSER@
MOZ_STATIC_MAIL_BUILD = @MOZ_STATIC_MAIL_BUILD@
MINIMO = @MINIMO@
MOZ_COMPONENTLIB = @MOZ_COMPONENTLIB@
MACOS_SDK_DIR = @MACOS_SDK_DIR@

16390
mozilla/configure vendored Executable file

File diff suppressed because it is too large Load Diff

5609
mozilla/configure.in Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,318 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Netscape Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#ifndef nsContentCID_h__
#define nsContentCID_h__
#include "nsISupports.h"
#include "nsIFactory.h"
#include "nsIComponentManager.h"
// {1691E1F7-EE41-11d4-9885-00C04FA0CF4B}
#define NS_STYLESET_CID \
{ 0x1691e1f7, 0xee41, 0x11d4, { 0x98, 0x85, 0x0, 0xc0, 0x4f, 0xa0, 0xcf, 0x4b } }
// {96882B70-8A27-11d2-8EAF-00805F29F370}
#define NS_HTMLSTYLESHEET_CID \
{ 0x96882b70, 0x8a27, 0x11d2, { 0x8e, 0xaf, 0x0, 0x80, 0x5f, 0x29, 0xf3, 0x70 } }
// {972D8D8F-F0DA-11d4-9885-00C04FA0CF4B}
#define NS_DOCUMENT_VIEWER_CID \
{ 0x972d8d8f, 0xf0da, 0x11d4, { 0x98, 0x85, 0x0, 0xc0, 0x4f, 0xa0, 0xcf, 0x4b } }
// {A5121627-EDB6-11d4-9885-00C04FA0CF4B}
#define NS_ANONYMOUSCONTENT_CID \
{ 0xa5121627, 0xedb6, 0x11d4, { 0x98, 0x85, 0x0, 0xc0, 0x4f, 0xa0, 0xcf, 0x4b } }
// {FC886801-E768-11d4-9885-00C04FA0CF4B}
#define NS_CONTENT_DOCUMENT_LOADER_FACTORY_CID \
{ 0xfc886801, 0xe768, 0x11d4, { 0x98, 0x85, 0x0, 0xc0, 0x4f, 0xa0, 0xcf, 0x4b } }
/* a6cf90f9-15b3-11d2-932e-00805f8add32 */
#define NS_LAYOUT_DEBUGGER_CID \
{ 0xa6cf90f9, 0x15b3, 0x11d2,{0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32}}
/* a6cf90fc-15b3-11d2-932e-00805f8add32 */
#define NS_HTML_ELEMENT_FACTORY_CID \
{ 0xa6cf90fc, 0x15b3, 0x11d2,{0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32}}
#define NS_HTMLDOCUMENT_CID \
{ /* 5d0fcdd0-4daa-11d2-b328-00805f8a3859 */ \
0x5d0fcdd0, 0x4daa, 0x11d2, \
{0xb3, 0x28, 0x00, 0x80, 0x5f, 0x8a, 0x38, 0x59}}
#define NS_WYCIWYGPROTOCOLHANDLER_CID \
{ /* e7509b46-2eB2-410a-9d7c-c3ce73284d01 */ \
0xe7509b46, 0x2eb2, 0x410a, \
{0x9d, 0x7c, 0xc3, 0xce, 0x73, 0x28, 0x4d, 0x01}}
#define NS_XMLDOCUMENT_CID \
{ /* a6cf9063-15b3-11d2-932e-00805f8add32 */ \
0xa6cf9063, 0x15b3, 0x11d2, \
{0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32}}
#define NS_XML_ELEMENT_FACTORY_CID \
{ /* CF170391-79CC-11d3-BE44-0020A6361667 */ \
0xcf170391, 0x79cc, 0x11d3, \
{0xbe, 0x44, 0x0, 0x20, 0xa6, 0x36, 0x16, 0x67}}
#define NS_IMAGEDOCUMENT_CID \
{ /* e11a6080-4daa-11d2-b328-00805f8a3859 */ \
0xe11a6080, 0x4daa, 0x11d2, \
{0xb3, 0x28, 0x00, 0x80, 0x5f, 0x8a, 0x38, 0x59}}
// {A1FDE864-E802-11d4-9885-00C04FA0CF4B}
#define NS_HTMLHRELEMENT_CID \
{ 0xa1fde864, 0xe802, 0x11d4, { 0x98, 0x85, 0x0, 0xc0, 0x4f, 0xa0, 0xcf, 0x4b } }
// {A1FDE865-E802-11d4-9885-00C04FA0CF4B}
#define NS_HTMLINPUTELEMENT_CID \
{ 0xa1fde865, 0xe802, 0x11d4, { 0x98, 0x85, 0x0, 0xc0, 0x4f, 0xa0, 0xcf, 0x4b } }
#define NS_HTMLIMAGEELEMENT_CID \
{ /* d6008c40-4dad-11d2-b328-00805f8a3859 */ \
0xd6008c40, 0x4dad, 0x11d2, \
{0xb3, 0x28, 0x00, 0x80, 0x5f, 0x8a, 0x38, 0x59}}
#define NS_HTMLOPTIONELEMENT_CID \
{ /* a6cf90f5-15b3-11d2-932e-00805f8add32 */ \
0xa6cf90f5, 0x15b3, 0x11d2, \
{0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32}}
#define NS_NAMESPACEMANAGER_CID \
{ /* d9783472-8fe9-11d2-9d3c-0060088f9ff7 */ \
0xd9783472, 0x8fe9, 0x11d2, \
{0x9d, 0x3c, 0x00, 0x60, 0x08, 0x8f, 0x9f, 0xf7}}
/* a6cf90d7-15b3-11d2-932e-00805f8add32 */
#define NS_FRAME_UTIL_CID \
{ 0xa6cf90d5, 0x15b3, 0x11d2,{0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32}}
// XXX This should really be factored into a style-specific DLL so
// that all the HTML, generic layout, and style stuff isn't munged
// together.
// {2E363D60-872E-11d2-B531-000000000000}
#define NS_CSSPARSER_CID \
{ 0x2e363d60, 0x872e, 0x11d2, { 0xb5, 0x31, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 } }
// {95F46161-D177-11d2-BF86-00105A1B0627}
#define NS_HTML_CSS_STYLESHEET_CID \
{ 0x95f46161, 0xd177, 0x11d2, { 0xbf, 0x86, 0x0, 0x10, 0x5a, 0x1b, 0x6, 0x27 } }
// {A1FDE867-E802-11d4-9885-00C04FA0CF4B}
#define NS_CSS_STYLESHEET_CID \
{ 0xa1fde867, 0xe802, 0x11d4, { 0x98, 0x85, 0x0, 0xc0, 0x4f, 0xa0, 0xcf, 0x4b } }
// {eaca2576-0d4a-11d3-9d7e-0060088f9ff7}
#define NS_CSS_LOADER_CID \
{ 0xeaca2576, 0x0d4a, 0x11d3, { 0x9d, 0x7e, 0x00, 0x60, 0x08, 0x8f, 0x9f, 0xf7 } }
// {96882B71-8A27-11d2-8EAF-00805F29F370}
#define NS_TEXTNODE_CID \
{ 0x96882b71, 0x8a27, 0x11d2, { 0x8e, 0xaf, 0x0, 0x80, 0x5f, 0x29, 0xf3, 0x70 } }
// {96882B72-8A27-11d2-8EAF-00805F29F370}
#define NS_SELECTION_CID \
{ 0x96882b72, 0x8a27, 0x11d2, { 0x8e, 0xaf, 0x0, 0x80, 0x5f, 0x29, 0xf3, 0x70 } }
#define NS_FRAMESELECTION_CID \
{/* {905F80F1-8A7B-11d2-918C-0080C8E44DB5}*/ \
0x905f80f1, 0x8a7b, 0x11d2, { 0x91, 0x8c, 0x0, 0x80, 0xc8, 0xe4, 0x4d, 0xb5 } }
#define NS_DOMSELECTION_CID \
{/* {C87A37FC-8109-4ce2-A322-8CDEC925379F}*/ \
0xc87a37fc, 0x8109, 0x4ce2, { 0xa3, 0x22, 0x8c, 0xde, 0xc9, 0x25, 0x37, 0x9f } }
#define NS_RANGE_CID \
{/* {56AD2981-8A87-11d2-918C-0080C8E44DB5}*/ \
0x56ad2981, 0x8a87, 0x11d2, { 0x91, 0x8c, 0x0, 0x80, 0xc8, 0xe4, 0x4d, 0xb5 } }
#define NS_CONTENTITERATOR_CID \
{/* {a6cf90e3-15b3-11d2-932e-00805f8add32}*/ \
0xa6cf90e3, 0x15b3, 0x11d2, {0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 } }
#define NS_PRECONTENTITERATOR_CID \
{/* {80D7E247-D4B8-45d7-BB59-6F1DD56F384C} */ \
0x80d7e247, 0xd4b8, 0x45d7, { 0xbb, 0x59, 0x6f, 0x1d, 0xd5, 0x6f, 0x38, 0x4c } }
#define NS_GENERATEDSUBTREEITERATOR_CID \
{/* {9A45253B-EB8F-49f1-B925-E9EA90D3EB3A}*/ \
0x9a45253b, 0xeb8f, 0x49f1, { 0xb9, 0x25, 0xe9, 0xea, 0x90, 0xd3, 0xeb, 0x3a } }
#define NS_GENERATEDCONTENTITERATOR_CID \
{/* {A364930F-E353-49f1-AC69-91637EB8B757}*/ \
0xa364930f, 0xe353, 0x49f1, { 0xac, 0x69, 0x91, 0x63, 0x7e, 0xb8, 0xb7, 0x57 } }
#define NS_SUBTREEITERATOR_CID \
{/* {a6cf90e5-15b3-11d2-932e-00805f8add32}*/ \
0xa6cf90e5, 0x15b3, 0x11d2, {0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 } }
// {09F689E0-B4DA-11d2-A68B-00104BDE6048}
#define NS_EVENTLISTENERMANAGER_CID \
{ 0x9f689e0, 0xb4da, 0x11d2, { 0xa6, 0x8b, 0x0, 0x10, 0x4b, 0xde, 0x60, 0x48 } }
// {A1FDE862-E802-11d4-9885-00C04FA0CF4B}
#define NS_EVENTSTATEMANAGER_CID \
{ 0xa1fde862, 0xe802, 0x11d4, { 0x98, 0x85, 0x0, 0xc0, 0x4f, 0xa0, 0xcf, 0x4b } }
// {66856477-6596-40eb-bb87-59ca2dabb6f7}
#define NS_DOMEVENTGROUP_CID \
{ 0x66856477, 0x6596, 0x40eb, { 0xbb, 0x87, 0x59, 0xca, 0x2d, 0xab, 0xb6, 0xf7 } }
// {64F300A1-C88C-11d3-97FB-00400553EEF0}
#define NS_XBLSERVICE_CID \
{ 0x64f300a1, 0xc88c, 0x11d3, { 0x97, 0xfb, 0x0, 0x40, 0x5, 0x53, 0xee, 0xf0 } }
// {15671AF5-39F9-4c70-8CE3-72C97111B52D}
#define NS_BINDINGMANAGER_CID \
{ 0x15671af5, 0x39f9, 0x4c70, { 0x8c, 0xe3, 0x72, 0xc9, 0x71, 0x11, 0xb5, 0x2d } }
// 3a9cd622-264d-11d4-ba06-0060b0fc76dd
#define NS_DOM_IMPLEMENTATION_CID \
{ 0x3a9cd622, 0x264d, 0x11d4, {0xba, 0x06, 0x00, 0x60, 0xb0, 0xfc, 0x76, 0xdd } }
// {AE52FE52-683A-437D-B661-DE55F4E0A873}
#define NS_NODEINFOMANAGER_CID \
{ 0xae52fe52, 0x683a, 0x437d, { 0xb6, 0x61, 0xde, 0x55, 0xf4, 0xe0, 0xa8, 0x73 } }
// {ECEA1B28-AE54-4047-8BBE-C624235106B4}
#define NS_COMPUTEDDOMSTYLE_CID \
{ 0xecea1b28, 0xae54, 0x4047, { 0x8b, 0xbe, 0xc6, 0x24, 0x23, 0x51, 0x06, 0xb4 } }
// {4aef38b7-6364-4e23-a5e7-12f837fbbd9c}
#define NS_XMLCONTENTSERIALIZER_CID \
{ 0x4aef38b7, 0x6364, 0x4e23, { 0xa5, 0xe7, 0x12, 0xf8, 0x37, 0xfb, 0xbd, 0x9c } }
// {9d3f70da-86e9-11d4-95ec-00b0d03e37b7}
#define NS_HTMLCONTENTSERIALIZER_CID \
{ 0x9d3f70da, 0x86e9, 0x11d4, { 0x95, 0xec, 0x00, 0xb0, 0xd0, 0x3e, 0x37, 0xb7 } }
// {feca3c34-205e-4ae5-bd1c-03c686ff012b}
#define MOZ_SANITIZINGHTMLSERIALIZER_CID \
{ 0xfeca3c34, 0x205e, 0x4ae5, { 0xbd, 0x1c, 0x03, 0xc6, 0x86, 0xff, 0x01, 0x2b } }
// {6030f7ef-32ed-46a7-9a63-6a5d3f90445f}
#define NS_PLAINTEXTSERIALIZER_CID \
{ 0x6030f7ef, 0x32ed, 0x46a7, { 0x9a, 0x63, 0x6a, 0x5d, 0x3f, 0x90, 0x44, 0x5f } }
// {d4f2b600-b5c1-11d6-b483-cc97c63e567c}
#define NS_HTMLFRAGMENTSINK_CID \
{ 0xd4f2b600, 0xb5c1, 0x11d6, { 0xb4, 0x83, 0xcc, 0x97, 0xc6, 0x3e, 0x56, 0x7c } }
// {13111d00-ce81-11d6-8082-ecf3665af67c}
#define NS_HTMLFRAGMENTSINK2_CID \
{ 0x13111d00, 0xce81, 0x11d6, { 0x80, 0x82, 0xec, 0xf3, 0x66, 0x5a, 0xf6, 0x7c } }
// {3986B301-097C-11d3-BF87-00105A1B0627}
#define NS_XULPOPUPLISTENER_CID \
{ 0x3986b301, 0x97c, 0x11d3, { 0xbf, 0x87, 0x0, 0x10, 0x5a, 0x1b, 0x6, 0x27 } }
// {1F5C1721-7DC3-11d3-BF87-00105A1B0627}
#define NS_XULCONTROLLERS_CID \
{ 0x1f5c1721, 0x7dc3, 0x11d3, { 0xbf, 0x87, 0x0, 0x10, 0x5a, 0x1b, 0x6, 0x27 } }
// {daedcb43-1dd1-11b2-b1d2-caf06cb40387}
#define NS_DLGDEFAULTKEYS_CID \
{ 0xdaedcb43, 0x1dd1, 0x11b2, { 0xb1, 0xd2, 0xca, 0xf0, 0x6c, 0xb4, 0x3, 0x87 } }
// {76E92881-CDDB-11d3-BF87-00105A1B0627}
#define NS_XULELEMENTFACTORY_CID \
{ 0x76e92881, 0xcddb, 0x11d3, { 0xbf, 0x87, 0x0, 0x10, 0x5a, 0x1b, 0x6, 0x27 } }
// {BFD05264-834C-11d2-8EAC-00805F29F371}
#define NS_XULSORTSERVICE_CID \
{ 0xbfd05264, 0x834c, 0x11d2, { 0x8e, 0xac, 0x0, 0x80, 0x5f, 0x29, 0xf3, 0x71 } }
// {3D262D00-8B5A-11d2-8EB0-00805F29F370}
#define NS_XULTEMPLATEBUILDER_CID \
{ 0x3d262d00, 0x8b5a, 0x11d2, { 0x8e, 0xb0, 0x0, 0x80, 0x5f, 0x29, 0xf3, 0x70 } }
// {1abdcc96-1dd2-11b2-b520-f8f59cdd67bc}
#define NS_XULTREEBUILDER_CID \
{ 0x1abdcc96, 0x1dd2, 0x11b2, { 0xb5, 0x20, 0xf8, 0xf5, 0x9c, 0xdd, 0x67, 0xbc } }
// {CE058B21-BA9C-11d2-BF86-00105A1B0627}
#define NS_XULCONTENTSINK_CID \
{ 0xce058b21, 0xba9c, 0x11d2, { 0xbf, 0x86, 0x0, 0x10, 0x5a, 0x1b, 0x6, 0x27 } }
// {541AFCB2-A9A3-11d2-8EC5-00805F29F370}
#define NS_XULDOCUMENT_CID \
{ 0x541afcb2, 0xa9a3, 0x11d2, { 0x8e, 0xc5, 0x0, 0x80, 0x5f, 0x29, 0xf3, 0x70 } }
// {3A0A0FC1-8349-11d3-BE47-00104BDE6048}
#define NS_XULPROTOTYPECACHE_CID \
{ 0x3a0a0fc1, 0x8349, 0x11d3, { 0xbe, 0x47, 0x0, 0x10, 0x4b, 0xde, 0x60, 0x48 } }
// {a6cf9126-15b3-11d2-932e-00805f8add32}
#define NS_RANGEUTILS_CID \
{ 0xa6cf9126, 0x15b3, 0x11d2, {0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 } }
#ifdef MOZ_MATHML
// {68b9fbda-f230-45a9-bf92-dbbbd4ac8555}
#define NS_MATHMLELEMENTFACTORY_CID \
{ 0x68b9fbda, 0xf230, 0x45a9, {0xbf, 0x92, 0xdb, 0xbb, 0xd4, 0xac, 0x85, 0x55 } }
#endif // MOZ_MATHML
#ifdef MOZ_SVG
// {34D9B28A-FBFF-4bbd-8546-1822FE3FB8B5}
#define NS_SVGELEMENTFACTORY_CID \
{ 0x34d9b28a, 0xfbff, 0x4bbd, { 0x85, 0x46, 0x18, 0x22, 0xfe, 0x3f, 0xb8, 0xb5 } }
#define NS_SVGDOCUMENT_CID \
{ /* b7f44954-1dd1-11b2-8c2e-c2feab4186bc */ \
0xb7f44954, 0x11d1, 0x11b2, \
{0x8c, 0x2e, 0xc2, 0xfe, 0xab, 0x41, 0x86, 0xbc}}
#endif // MOZ_SVG
#define NS_SYNCLOADDOMSERVICE_CID \
{ /* 0e4e7d00-f71a-439f-9178-1a71ff11b55f */ \
0x0e4e7d00, 0xf71a, 0x439f, \
{0x91, 0x78, 0x1a, 0x71, 0xff, 0x11, 0xb5, 0x5f} }
#define NS_SYNCLOADDOMSERVICE_CONTRACTID \
"@mozilla.org/content/syncload-dom-service;1"
// {f96f5ec9-755b-447e-b1f3-717d1a84bb41}
#define NS_PLUGINDOCUMENT_CID \
{ 0xf96f5ec9, 0x755b, 0x447e, { 0xb1, 0xf3, 0x71, 0x7d, 0x1a, 0x84, 0xbb, 0x41 } }
#endif /* nsContentCID_h__ */

View File

@@ -0,0 +1,81 @@
/* -*- Mode: c++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Netscape Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Mozilla Communicator client code.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#ifndef nsIElementFactory_h___
#define nsIElementFactory_h___
#include "nsISupports.h"
class nsIContent;
class nsINodeInfo;
/* a6cf90fb-15b3-11d2-932e-00805f8add32 */
#define NS_IELEMENT_FACTORY_IID \
{ 0xa6cf90fb, 0x15b3, 0x11d2,{0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32}}
/**
* An API for creating html content objects
*/
class nsIElementFactory : public nsISupports {
public:
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IELEMENT_FACTORY_IID)
NS_IMETHOD CreateInstanceByTag(nsINodeInfo *aNodeInfo,
nsIContent** aResult) = 0;
};
// ContractIDs for element factory registration
#define NS_ELEMENT_FACTORY_CONTRACTID "@mozilla.org/layout/element-factory;1"
#define NS_ELEMENT_FACTORY_CONTRACTID_PREFIX NS_ELEMENT_FACTORY_CONTRACTID "?namespace="
#define NS_HTML_NAMESPACE "http://www.w3.org/1999/xhtml"
#define NS_XML_NAMESPACE "http://www.w3.org/XML/1998/namespace"
#define NS_HTML_ELEMENT_FACTORY_CONTRACTID NS_ELEMENT_FACTORY_CONTRACTID_PREFIX NS_HTML_NAMESPACE
#define NS_XML_ELEMENT_FACTORY_CONTRACTID NS_ELEMENT_FACTORY_CONTRACTID_PREFIX NS_XML_NAMESPACE
#ifdef MOZ_MATHML
#define NS_MATHML_NAMESPACE "http://www.w3.org/1998/Math/MathML"
#define NS_MATHML_ELEMENT_FACTORY_CONTRACTID NS_ELEMENT_FACTORY_CONTRACTID_PREFIX NS_MATHML_NAMESPACE
#endif
#ifdef MOZ_SVG
#define NS_SVG_NAMESPACE "http://www.w3.org/2000/svg"
#define NS_SVG_ELEMENT_FACTORY_CONTRACTID NS_ELEMENT_FACTORY_CONTRACTID_PREFIX NS_SVG_NAMESPACE
#endif
#endif /* nsIElementFactory_h___ */

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,883 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Netscape Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* David Hyatt <hyatt@netscape.com>
* Pierre Phaneuf <pp@ludusdesign.com>
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "nsStyleConsts.h"
#include "nsString.h"
#include "nsIPresContext.h"
#include "nsIStyleRule.h"
#include "nsISupportsArray.h"
#include "nsCRT.h"
#include "nsCOMPtr.h"
#include "nsStyleSet.h"
#include "nsIPresShell.h"
#include "nsLayoutAtoms.h"
#include "prenv.h"
#include "nsRuleNode.h"
#include "nsUnitConversion.h"
#include "nsStyleContext.h"
#ifdef DEBUG
// #define NOISY_DEBUG
#endif
//----------------------------------------------------------------------
nsStyleContext::nsStyleContext(nsStyleContext* aParent,
nsIAtom* aPseudoTag,
nsRuleNode* aRuleNode,
nsIPresContext* aPresContext)
: mParent((nsStyleContext*)aParent),
mChild(nsnull),
mEmptyChild(nsnull),
mPseudoTag(aPseudoTag),
mRuleNode(aRuleNode),
mBits(0),
mRefCnt(0)
{
mNextSibling = this;
mPrevSibling = this;
if (mParent) {
mParent->AddRef();
mParent->AppendChild(this);
}
ApplyStyleFixups(aPresContext);
NS_ASSERTION(NS_STYLE_INHERIT_MASK &
(1 << PRInt32(nsStyleStructID_Length - 1)) != 0,
"NS_STYLE_INHERIT_MASK must be bigger, and other bits shifted");
}
nsStyleContext::~nsStyleContext()
{
NS_ASSERTION((nsnull == mChild) && (nsnull == mEmptyChild), "destructing context with children");
nsIPresContext *presContext = mRuleNode->GetPresContext();
presContext->PresShell()->StyleSet()->
NotifyStyleContextDestroyed(presContext, this);
if (mParent) {
mParent->RemoveChild(this);
mParent->Release();
}
// Free up our data structs.
if (mCachedStyleData.mResetData || mCachedStyleData.mInheritedData) {
mCachedStyleData.Destroy(mBits, presContext);
}
}
void nsStyleContext::AppendChild(nsStyleContext* aChild)
{
if (aChild->mRuleNode->IsRoot()) {
// The child matched no rules.
if (!mEmptyChild) {
mEmptyChild = aChild;
}
else {
aChild->mNextSibling = mEmptyChild;
aChild->mPrevSibling = mEmptyChild->mPrevSibling;
mEmptyChild->mPrevSibling->mNextSibling = aChild;
mEmptyChild->mPrevSibling = aChild;
}
}
else {
if (!mChild) {
mChild = aChild;
}
else {
aChild->mNextSibling = mChild;
aChild->mPrevSibling = mChild->mPrevSibling;
mChild->mPrevSibling->mNextSibling = aChild;
mChild->mPrevSibling = aChild;
}
}
}
void nsStyleContext::RemoveChild(nsStyleContext* aChild)
{
NS_PRECONDITION(nsnull != aChild && this == aChild->mParent, "bad argument");
if (aChild->mRuleNode->IsRoot()) { // is empty
if (aChild->mPrevSibling != aChild) { // has siblings
if (mEmptyChild == aChild) {
mEmptyChild = mEmptyChild->mNextSibling;
}
}
else {
NS_ASSERTION(mEmptyChild == aChild, "bad sibling pointers");
mEmptyChild = nsnull;
}
}
else { // isn't empty
if (aChild->mPrevSibling != aChild) { // has siblings
if (mChild == aChild) {
mChild = mChild->mNextSibling;
}
}
else {
NS_ASSERTION(mChild == aChild, "bad sibling pointers");
if (mChild == aChild) {
mChild = nsnull;
}
}
}
aChild->mPrevSibling->mNextSibling = aChild->mNextSibling;
aChild->mNextSibling->mPrevSibling = aChild->mPrevSibling;
aChild->mNextSibling = aChild;
aChild->mPrevSibling = aChild;
}
already_AddRefed<nsStyleContext>
nsStyleContext::FindChildWithRules(const nsIAtom* aPseudoTag,
nsRuleNode* aRuleNode)
{
PRUint32 threshold = 10; // The # of siblings we're willing to examine
// before just giving this whole thing up.
nsStyleContext* aResult = nsnull;
if ((nsnull != mChild) || (nsnull != mEmptyChild)) {
nsStyleContext* child;
if (aRuleNode->IsRoot()) {
if (nsnull != mEmptyChild) {
child = mEmptyChild;
do {
if (aPseudoTag == child->mPseudoTag) {
aResult = child;
break;
}
child = child->mNextSibling;
threshold--;
if (threshold == 0)
break;
} while (child != mEmptyChild);
}
}
else if (nsnull != mChild) {
child = mChild;
do {
if (child->mRuleNode == aRuleNode && child->mPseudoTag == aPseudoTag) {
aResult = child;
break;
}
child = child->mNextSibling;
threshold--;
if (threshold == 0)
break;
} while (child != mChild);
}
}
if (aResult)
aResult->AddRef();
return aResult;
}
PRBool nsStyleContext::Equals(const nsStyleContext* aOther) const
{
PRBool result = PR_TRUE;
const nsStyleContext* other = (nsStyleContext*)aOther;
if (other != this) {
if (mParent != other->mParent) {
result = PR_FALSE;
}
else if (mBits != other->mBits) {
result = PR_FALSE;
}
else if (mPseudoTag != other->mPseudoTag) {
result = PR_FALSE;
}
else if (mRuleNode != other->mRuleNode) {
result = PR_FALSE;
}
}
return result;
}
//=========================================================================================================
const nsStyleStruct* nsStyleContext::GetStyleData(nsStyleStructID aSID)
{
const nsStyleStruct* cachedData = mCachedStyleData.GetStyleData(aSID);
if (cachedData)
return cachedData; // We have computed data stored on this node in the context tree.
return mRuleNode->GetStyleData(aSID, this, PR_TRUE); // Our rule node will take care of it for us.
}
inline const nsStyleStruct* nsStyleContext::PeekStyleData(nsStyleStructID aSID)
{
const nsStyleStruct* cachedData = mCachedStyleData.GetStyleData(aSID);
if (cachedData)
return cachedData; // We have computed data stored on this node in the context tree.
return mRuleNode->GetStyleData(aSID, this, PR_FALSE); // Our rule node will take care of it for us.
}
void
nsStyleContext::GetBorderPaddingFor(nsStyleBorderPadding& aBorderPadding)
{
nsMargin border, padding;
if (GetStyleBorder()->GetBorder(border)) {
if (GetStylePadding()->GetPadding(padding)) {
border += padding;
aBorderPadding.SetBorderPadding(border);
}
}
}
// This is an evil evil function, since it forces you to alloc your own separate copy of
// style data! Do not use this function unless you absolutely have to! You should avoid
// this at all costs! -dwh
nsStyleStruct*
nsStyleContext::GetUniqueStyleData(nsIPresContext* aPresContext, const nsStyleStructID& aSID)
{
nsStyleStruct* result = nsnull;
switch (aSID) {
case eStyleStruct_Display: {
const nsStyleDisplay* dis = GetStyleDisplay();
nsStyleDisplay* newDis = new (aPresContext) nsStyleDisplay(*dis);
SetStyle(aSID, newDis);
result = newDis;
mBits &= ~NS_STYLE_INHERIT_BIT(Display);
break;
}
case eStyleStruct_Background: {
const nsStyleBackground* bg = GetStyleBackground();
nsStyleBackground* newBG = new (aPresContext) nsStyleBackground(*bg);
SetStyle(aSID, newBG);
result = newBG;
mBits &= ~NS_STYLE_INHERIT_BIT(Background);
break;
}
case eStyleStruct_Text: {
const nsStyleText* text = GetStyleText();
nsStyleText* newText = new (aPresContext) nsStyleText(*text);
SetStyle(aSID, newText);
result = newText;
mBits &= ~NS_STYLE_INHERIT_BIT(Text);
break;
}
case eStyleStruct_TextReset: {
const nsStyleTextReset* reset = GetStyleTextReset();
nsStyleTextReset* newReset = new (aPresContext) nsStyleTextReset(*reset);
SetStyle(aSID, newReset);
result = newReset;
mBits &= ~NS_STYLE_INHERIT_BIT(TextReset);
break;
}
default:
NS_ERROR("Struct type not supported. Please find another way to do this if you can!\n");
}
return result;
}
void
nsStyleContext::SetStyle(nsStyleStructID aSID, nsStyleStruct* aStruct)
{
// This method should only be called from nsRuleNode! It is not a public
// method!
NS_ASSERTION(aSID >= 0 && aSID < nsStyleStructID_Length, "out of bounds");
// NOTE: nsCachedStyleData::GetStyleData works roughly the same way.
// See the comments there (in nsRuleNode.h) for more details about
// what this is doing and why.
const nsCachedStyleData::StyleStructInfo& info =
nsCachedStyleData::gInfo[aSID];
char* resetOrInheritSlot = NS_REINTERPRET_CAST(char*, &mCachedStyleData) +
info.mCachedStyleDataOffset;
char* resetOrInherit = NS_REINTERPRET_CAST(char*,
*NS_REINTERPRET_CAST(void**, resetOrInheritSlot));
if (!resetOrInherit) {
nsIPresContext *presContext = mRuleNode->GetPresContext();
if (mCachedStyleData.IsReset(aSID)) {
mCachedStyleData.mResetData = new (presContext) nsResetStyleData;
resetOrInherit = NS_REINTERPRET_CAST(char*, mCachedStyleData.mResetData);
} else {
mCachedStyleData.mInheritedData =
new (presContext) nsInheritedStyleData;
resetOrInherit =
NS_REINTERPRET_CAST(char*, mCachedStyleData.mInheritedData);
}
}
char* dataSlot = resetOrInherit + info.mInheritResetOffset;
*NS_REINTERPRET_CAST(nsStyleStruct**, dataSlot) = aStruct;
}
void
nsStyleContext::ApplyStyleFixups(nsIPresContext* aPresContext)
{
// See if we have any text decorations.
// First see if our parent has text decorations. If our parent does, then we inherit the bit.
if (mParent && mParent->HasTextDecorations())
mBits |= NS_STYLE_HAS_TEXT_DECORATIONS;
else {
// We might have defined a decoration.
const nsStyleTextReset* text = GetStyleTextReset();
if (text->mTextDecoration != NS_STYLE_TEXT_DECORATION_NONE &&
text->mTextDecoration != NS_STYLE_TEXT_DECORATION_OVERRIDE_ALL)
mBits |= NS_STYLE_HAS_TEXT_DECORATIONS;
}
// Correct tables.
const nsStyleDisplay* disp = GetStyleDisplay();
if (disp->mDisplay == NS_STYLE_DISPLAY_TABLE) {
// -moz-center and -moz-right are used for HTML's alignment
// This is covering the <div align="right"><table>...</table></div> case.
// In this case, we don't want to inherit the text alignment into the table.
const nsStyleText* text = GetStyleText();
if (text->mTextAlign == NS_STYLE_TEXT_ALIGN_MOZ_CENTER ||
text->mTextAlign == NS_STYLE_TEXT_ALIGN_MOZ_RIGHT)
{
nsStyleText* uniqueText = (nsStyleText*)GetUniqueStyleData(aPresContext, eStyleStruct_Text);
uniqueText->mTextAlign = NS_STYLE_TEXT_ALIGN_DEFAULT;
}
}
}
void
nsStyleContext::ClearStyleData(nsIPresContext* aPresContext)
{
// First we need to clear out all of our style data.
if (mCachedStyleData.mResetData || mCachedStyleData.mInheritedData)
mCachedStyleData.Destroy(mBits, aPresContext);
mBits = 0; // Clear all bits.
ApplyStyleFixups(aPresContext);
if (mChild) {
nsStyleContext* child = mChild;
do {
child->ClearStyleData(aPresContext);
child = child->mNextSibling;
} while (mChild != child);
}
if (mEmptyChild) {
nsStyleContext* child = mEmptyChild;
do {
child->ClearStyleData(aPresContext);
child = child->mNextSibling;
} while (mEmptyChild != child);
}
}
nsChangeHint
nsStyleContext::CalcStyleDifference(nsStyleContext* aOther)
{
nsChangeHint hint = NS_STYLE_HINT_NONE;
NS_ENSURE_TRUE(aOther, hint);
// We must always ensure that we populate the structs on the new style
// context that are filled in on the old context, so that if we get
// two style changes in succession, the second of which causes a real
// style change, the PeekStyleData doesn't fail.
// If our rule nodes are the same, then we are looking at the same
// style data. We know this because CalcStyleDifference is always
// called on two style contexts that point to the same element, so we
// know that our position in the style context tree is the same and
// our position in the rule node tree is also the same.
PRBool compare = mRuleNode != aOther->mRuleNode;
nsChangeHint maxHint = NS_STYLE_HINT_FRAMECHANGE;
#define DO_STRUCT_DIFFERENCE(struct_) \
PR_BEGIN_MACRO \
const nsStyle##struct_* this##struct_ = \
NS_STATIC_CAST(const nsStyle##struct_*, \
PeekStyleData(NS_GET_STYLESTRUCTID(nsStyle##struct_))); \
if (this##struct_) { \
const nsStyle##struct_* other##struct_ = \
NS_STATIC_CAST(const nsStyle##struct_*, \
aOther->GetStyleData(NS_GET_STYLESTRUCTID(nsStyle##struct_))); \
if (compare && \
!NS_IsHintSubset(maxHint, hint) && \
this##struct_ != other##struct_) { \
NS_UpdateHint(hint, this##struct_->CalcDifference(*other##struct_)); \
} \
} \
PR_END_MACRO
// We begin by examining those style structs that are capable of
// causing the maximal difference, a FRAMECHANGE.
// FRAMECHANGE Structs: Display, XUL, Content, UserInterface,
// Visibility, Quotes
DO_STRUCT_DIFFERENCE(Display);
DO_STRUCT_DIFFERENCE(XUL);
DO_STRUCT_DIFFERENCE(Content);
DO_STRUCT_DIFFERENCE(UserInterface);
DO_STRUCT_DIFFERENCE(Visibility);
#ifdef MOZ_SVG
DO_STRUCT_DIFFERENCE(SVG);
#endif
// If the quotes implementation is ever going to change we might not need
// a framechange here and a reflow should be sufficient. See bug 35768.
DO_STRUCT_DIFFERENCE(Quotes);
// At this point, we know that the worst kind of damage we could do is
// a reflow.
maxHint = NS_STYLE_HINT_REFLOW;
// The following structs cause (as their maximal difference) a reflow
// to occur. REFLOW Structs: Font, Margin, Padding, Border, List,
// Position, Text, TextReset, Table, TableBorder
DO_STRUCT_DIFFERENCE(Font);
DO_STRUCT_DIFFERENCE(Margin);
DO_STRUCT_DIFFERENCE(Padding);
DO_STRUCT_DIFFERENCE(Border);
DO_STRUCT_DIFFERENCE(List);
DO_STRUCT_DIFFERENCE(Position);
DO_STRUCT_DIFFERENCE(Text);
DO_STRUCT_DIFFERENCE(TextReset);
DO_STRUCT_DIFFERENCE(Table);
DO_STRUCT_DIFFERENCE(TableBorder);
// At this point, we know that the worst kind of damage we could do is
// a re-render (i.e., a VISUAL change).
maxHint = NS_STYLE_HINT_VISUAL;
// The following structs cause (as their maximal difference) a
// re-render to occur. VISUAL Structs: Color, Background, Outline,
// UIReset
DO_STRUCT_DIFFERENCE(Color);
DO_STRUCT_DIFFERENCE(Background);
DO_STRUCT_DIFFERENCE(Outline);
DO_STRUCT_DIFFERENCE(UIReset);
#undef DO_STRUCT_DIFFERENCE
return hint;
}
void
nsStyleContext::Mark()
{
// Mark our rule node.
mRuleNode->Mark();
// Mark our children (i.e., tell them to mark their rule nodes, etc.).
if (mChild) {
nsStyleContext* child = mChild;
do {
child->Mark();
child = child->mNextSibling;
} while (mChild != child);
}
if (mEmptyChild) {
nsStyleContext* child = mEmptyChild;
do {
child->Mark();
child = child->mNextSibling;
} while (mEmptyChild != child);
}
}
#ifdef DEBUG
class URICString : public nsCAutoString {
public:
URICString(nsIURI* aURI) {
if (aURI) {
aURI->GetSpec(*this);
} else {
Assign("[none]");
}
}
URICString& operator=(const URICString& aOther) {
Assign(aOther);
return *this;
}
};
void nsStyleContext::List(FILE* out, PRInt32 aIndent)
{
// Indent
PRInt32 ix;
for (ix = aIndent; --ix >= 0; ) fputs(" ", out);
fprintf(out, "%p(%d) parent=%p ",
(void*)this, mRefCnt, (void *)mParent);
if (mPseudoTag) {
nsAutoString buffer;
mPseudoTag->ToString(buffer);
fputs(NS_LossyConvertUCS2toASCII(buffer).get(), out);
fputs(" ", out);
}
if (mRuleNode) {
fputs("{\n", out);
nsRuleNode* ruleNode = mRuleNode;
while (ruleNode) {
nsIStyleRule *styleRule = ruleNode->GetRule();
if (styleRule) {
styleRule->List(out, aIndent + 1);
}
ruleNode = ruleNode->GetParent();
}
for (ix = aIndent; --ix >= 0; ) fputs(" ", out);
fputs("}\n", out);
}
else {
fputs("{}\n", out);
}
if (nsnull != mChild) {
nsStyleContext* child = mChild;
do {
child->List(out, aIndent + 1);
child = child->mNextSibling;
} while (mChild != child);
}
if (nsnull != mEmptyChild) {
nsStyleContext* child = mEmptyChild;
do {
child->List(out, aIndent + 1);
child = child->mNextSibling;
} while (mEmptyChild != child);
}
}
static void IndentBy(FILE* out, PRInt32 aIndent) {
while (--aIndent >= 0) fputs(" ", out);
}
// virtual
void nsStyleContext::DumpRegressionData(nsIPresContext* aPresContext, FILE* out, PRInt32 aIndent)
{
nsAutoString str;
// FONT
IndentBy(out,aIndent);
const nsStyleFont* font = GetStyleFont();
fprintf(out, "<font %s %d %d %d />\n",
NS_ConvertUCS2toUTF8(font->mFont.name).get(),
font->mFont.size,
font->mSize,
font->mFlags);
// COLOR
IndentBy(out,aIndent);
const nsStyleColor* color = GetStyleColor();
fprintf(out, "<color data=\"%ld\"/>\n",
(long)color->mColor);
// BACKGROUND
IndentBy(out,aIndent);
const nsStyleBackground* bg = GetStyleBackground();
fprintf(out, "<background data=\"%d %d %d %ld %ld %ld %s\"/>\n",
(int)bg->mBackgroundAttachment,
(int)bg->mBackgroundFlags,
(int)bg->mBackgroundRepeat,
(long)bg->mBackgroundColor,
(long)bg->mBackgroundXPosition.mCoord, // potentially lossy on some platforms
(long)bg->mBackgroundYPosition.mCoord, // potentially lossy on some platforms
URICString(bg->mBackgroundImage).get());
// SPACING (ie. margin, padding, border, outline)
IndentBy(out,aIndent);
fprintf(out, "<spacing data=\"");
const nsStyleMargin* margin = GetStyleMargin();
margin->mMargin.ToString(str);
fprintf(out, "%s ", NS_ConvertUCS2toUTF8(str).get());
const nsStylePadding* padding = GetStylePadding();
padding->mPadding.ToString(str);
fprintf(out, "%s ", NS_ConvertUCS2toUTF8(str).get());
const nsStyleBorder* border = GetStyleBorder();
border->mBorder.ToString(str);
fprintf(out, "%s ", NS_ConvertUCS2toUTF8(str).get());
border->mBorderRadius.ToString(str);
fprintf(out, "%s ", NS_ConvertUCS2toUTF8(str).get());
const nsStyleOutline* outline = GetStyleOutline();
outline->mOutlineRadius.ToString(str);
fprintf(out, "%s ", NS_ConvertUCS2toUTF8(str).get());
outline->mOutlineWidth.ToString(str);
fprintf(out, "%s", NS_ConvertUCS2toUTF8(str).get());
fprintf(out, "%d", (int)border->mFloatEdge);
fprintf(out, "\" />\n");
// LIST
IndentBy(out,aIndent);
const nsStyleList* list = GetStyleList();
fprintf(out, "<list data=\"%d %d %s\" />\n",
(int)list->mListStyleType,
(int)list->mListStyleType,
URICString(list->mListStyleImage).get());
// POSITION
IndentBy(out,aIndent);
const nsStylePosition* pos = GetStylePosition();
fprintf(out, "<position data=\"");
pos->mOffset.ToString(str);
fprintf(out, "%s ", NS_ConvertUCS2toUTF8(str).get());
pos->mWidth.ToString(str);
fprintf(out, "%s ", NS_ConvertUCS2toUTF8(str).get());
pos->mMinWidth.ToString(str);
fprintf(out, "%s ", NS_ConvertUCS2toUTF8(str).get());
pos->mMaxWidth.ToString(str);
fprintf(out, "%s ", NS_ConvertUCS2toUTF8(str).get());
pos->mHeight.ToString(str);
fprintf(out, "%s ", NS_ConvertUCS2toUTF8(str).get());
pos->mMinHeight.ToString(str);
fprintf(out, "%s ", NS_ConvertUCS2toUTF8(str).get());
pos->mMaxHeight.ToString(str);
fprintf(out, "%s ", NS_ConvertUCS2toUTF8(str).get());
fprintf(out, "%d ", (int)pos->mBoxSizing);
pos->mZIndex.ToString(str);
fprintf(out, "%s ", NS_ConvertUCS2toUTF8(str).get());
fprintf(out, "\" />\n");
// TEXT
IndentBy(out,aIndent);
const nsStyleText* text = GetStyleText();
fprintf(out, "<text data=\"%d %d %d ",
(int)text->mTextAlign,
(int)text->mTextTransform,
(int)text->mWhiteSpace);
text->mLetterSpacing.ToString(str);
fprintf(out, "%s ", NS_ConvertUCS2toUTF8(str).get());
text->mLineHeight.ToString(str);
fprintf(out, "%s ", NS_ConvertUCS2toUTF8(str).get());
text->mTextIndent.ToString(str);
fprintf(out, "%s ", NS_ConvertUCS2toUTF8(str).get());
text->mWordSpacing.ToString(str);
fprintf(out, "%s ", NS_ConvertUCS2toUTF8(str).get());
fprintf(out, "\" />\n");
// TEXT RESET
IndentBy(out,aIndent);
const nsStyleTextReset* textReset = GetStyleTextReset();
fprintf(out, "<textreset data=\"%d ",
(int)textReset->mTextDecoration);
textReset->mVerticalAlign.ToString(str);
fprintf(out, "%s ", NS_ConvertUCS2toUTF8(str).get());
fprintf(out, "\" />\n");
// DISPLAY
IndentBy(out,aIndent);
const nsStyleDisplay* disp = GetStyleDisplay();
fprintf(out, "<display data=\"%d %d %f %d %d %d %d %d %d %ld %ld %ld %ld %s\" />\n",
(int)disp->mPosition,
(int)disp->mDisplay,
(float)disp->mOpacity,
(int)disp->mFloats,
(int)disp->mBreakType,
(int)disp->mBreakBefore,
(int)disp->mBreakAfter,
(int)disp->mOverflow,
(int)disp->mClipFlags,
(long)disp->mClip.x,
(long)disp->mClip.y,
(long)disp->mClip.width,
(long)disp->mClip.height,
URICString(disp->mBinding).get()
);
// VISIBILITY
IndentBy(out,aIndent);
const nsStyleVisibility* vis = GetStyleVisibility();
fprintf(out, "<visibility data=\"%d %d\" />\n",
(int)vis->mDirection,
(int)vis->mVisible
);
// TABLE
IndentBy(out,aIndent);
const nsStyleTable* table = GetStyleTable();
fprintf(out, "<table data=\"%d %d %d ",
(int)table->mLayoutStrategy,
(int)table->mFrame,
(int)table->mRules);
fprintf(out, "%ld %ld ",
(long)table->mCols,
(long)table->mSpan);
fprintf(out, "\" />\n");
// TABLEBORDER
IndentBy(out,aIndent);
const nsStyleTableBorder* tableBorder = GetStyleTableBorder();
fprintf(out, "<tableborder data=\"%d ",
(int)tableBorder->mBorderCollapse);
tableBorder->mBorderSpacingX.ToString(str);
fprintf(out, "%s ", NS_ConvertUCS2toUTF8(str).get());
tableBorder->mBorderSpacingY.ToString(str);
fprintf(out, "%s ", NS_ConvertUCS2toUTF8(str).get());
fprintf(out, "%d %d ",
(int)tableBorder->mCaptionSide,
(int)tableBorder->mEmptyCells);
fprintf(out, "\" />\n");
// CONTENT
IndentBy(out,aIndent);
const nsStyleContent* content = GetStyleContent();
fprintf(out, "<content data=\"%ld %ld %ld ",
(long)content->ContentCount(),
(long)content->CounterIncrementCount(),
(long)content->CounterResetCount());
// XXX: iterate over the content and counters...
content->mMarkerOffset.ToString(str);
fprintf(out, "%s ", NS_ConvertUCS2toUTF8(str).get());
fprintf(out, "\" />\n");
// QUOTES
IndentBy(out,aIndent);
const nsStyleQuotes* quotes = GetStyleQuotes();
fprintf(out, "<quotes data=\"%ld ",
(long)quotes->QuotesCount());
// XXX: iterate over the quotes...
fprintf(out, "\" />\n");
// UI
IndentBy(out,aIndent);
const nsStyleUserInterface* ui = GetStyleUserInterface();
fprintf(out, "<ui data=\"%d %d %d %d\" />\n",
(int)ui->mUserInput,
(int)ui->mUserModify,
(int)ui->mUserFocus,
(int)ui->mCursor);
// UIReset
IndentBy(out,aIndent);
const nsStyleUIReset* uiReset = GetStyleUIReset();
fprintf(out, "<uireset data=\"%d %d %d\" />\n",
(int)uiReset->mUserSelect,
(int)uiReset->mKeyEquivalent,
(int)uiReset->mResizer);
// XUL
IndentBy(out,aIndent);
const nsStyleXUL* xul = GetStyleXUL();
fprintf(out, "<xul data=\"%d %d %d %d %d %d",
(int)xul->mBoxAlign,
(int)xul->mBoxDirection,
(int)xul->mBoxFlex,
(int)xul->mBoxOrient,
(int)xul->mBoxPack,
(int)xul->mBoxOrdinal);
fprintf(out, "\" />\n");
#ifdef MOZ_SVG
// SVG
IndentBy(out,aIndent);
const nsStyleSVG* svg = GetStyleSVG();
fprintf(out, "<svg data=\"%d %ld %f %d %d %d %d %ld %s %f %d %d %f %f %f %d %d\" />\n",
(int)svg->mFill.mType,
(long)svg->mFill.mColor,
svg->mFillOpacity,
(int)svg->mFillRule,
(int)svg->mPointerEvents,
(int)svg->mShapeRendering,
(int)svg->mStroke.mType,
(long)svg->mStroke.mColor,
NS_ConvertUCS2toUTF8(svg->mStrokeDasharray).get(),
svg->mStrokeDashoffset,
(int)svg->mStrokeLinecap,
(int)svg->mStrokeLinejoin,
svg->mStrokeMiterlimit,
svg->mStrokeOpacity,
svg->mStrokeWidth,
(int)svg->mTextAnchor,
(int)svg->mTextRendering);
// SVGReset
IndentBy(out,aIndent);
const nsStyleSVGReset* svgReset = GetStyleSVGReset();
fprintf(out, "<svgreset data=\"%d\" />\n",
(int)svgReset->mDominantBaseline);
#endif
//#insert new style structs here#
}
#endif
// Overloaded new operator. Initializes the memory to 0 and relies on an arena
// (which comes from the presShell) to perform the allocation.
void*
nsStyleContext::operator new(size_t sz, nsIPresContext* aPresContext) CPP_THROW_NEW
{
// Check the recycle list first.
void* result = nsnull;
aPresContext->AllocateFromShell(sz, &result);
return result;
}
// Overridden to prevent the global delete from being called, since the memory
// came out of an nsIArena instead of the global delete operator's heap.
void
nsStyleContext::Destroy()
{
// Get the pres context from our rule node.
nsCOMPtr<nsIPresContext> presContext = mRuleNode->GetPresContext();
// Call our destructor.
this->~nsStyleContext();
// Don't let the memory be freed, since it will be recycled
// instead. Don't call the global operator delete.
presContext->FreeToShell(sizeof(nsStyleContext), this);
}
already_AddRefed<nsStyleContext>
NS_NewStyleContext(nsStyleContext* aParentContext,
nsIAtom* aPseudoTag,
nsRuleNode* aRuleNode,
nsIPresContext* aPresContext)
{
nsStyleContext* context = new (aPresContext) nsStyleContext(aParentContext, aPseudoTag,
aRuleNode, aPresContext);
if (context)
context->AddRef();
return context;
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,250 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Netscape Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Daniel Glazman <glazman@netscape.com>
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#ifndef nsCSSDeclaration_h___
#define nsCSSDeclaration_h___
#include "nsISupports.h"
#include "nsColor.h"
#include <stdio.h>
#include "nsString.h"
#include "nsCoord.h"
#include "nsCSSValue.h"
#include "nsCSSProps.h"
#include "nsVoidArray.h"
#include "nsValueArray.h"
#include "nsCSSDataBlock.h"
#include "nsCSSStruct.h"
class nsCSSDeclaration {
public:
/**
* Construct an |nsCSSDeclaration| that is in an invalid state (null
* |mData|) and cannot be used until its |CompressFrom| method or
* |InitializeEmpty| method is called.
*/
nsCSSDeclaration();
nsCSSDeclaration(const nsCSSDeclaration& aCopy);
/**
* |ValueAppended| must be called to maintain this declaration's
* |mOrder| whenever a property is parsed into an expanded data block
* for this declaration.
*/
nsresult ValueAppended(nsCSSProperty aProperty);
nsresult AppendComment(const nsAString& aComment);
nsresult RemoveProperty(nsCSSProperty aProperty);
nsresult GetValue(nsCSSProperty aProperty, nsAString& aValue) const;
nsresult GetValue(const nsAString& aProperty, nsAString& aValue) const;
PRBool HasImportantData() const { return mImportantData != nsnull; }
PRBool GetValueIsImportant(nsCSSProperty aProperty) const;
PRBool GetValueIsImportant(const nsAString& aProperty) const;
PRUint32 Count() const;
nsresult GetNthProperty(PRUint32 aIndex, nsAString& aReturn) const;
nsresult ToString(nsAString& aString) const;
nsCSSDeclaration* Clone() const;
nsresult MapRuleInfoInto(nsRuleData *aRuleData) const {
return mData->MapRuleInfoInto(aRuleData);
}
nsresult MapImportantRuleInfoInto(nsRuleData *aRuleData) const {
return mImportantData->MapRuleInfoInto(aRuleData);
}
/**
* Initialize this declaration as holding no data. Return false on
* out-of-memory.
*/
PRBool InitializeEmpty();
/**
* Transfer all of the state from |aExpandedData| into this declaration.
* After calling, |aExpandedData| should be in its initial state.
*/
void CompressFrom(nsCSSExpandedDataBlock *aExpandedData) {
NS_ASSERTION(!mData, "oops");
NS_ASSERTION(!mImportantData, "oops");
aExpandedData->Compress(&mData, &mImportantData);
}
/**
* Transfer all of the state from this declaration into
* |aExpandedData| and put this declaration temporarily into an
* invalid state (ended by |CompressFrom| or |InitializeEmpty|) that
* should last only during parsing. During this time only
* |ValueAppended| should be called.
*/
void ExpandTo(nsCSSExpandedDataBlock *aExpandedData) {
aExpandedData->AssertInitialState();
NS_ASSERTION(mData, "oops");
aExpandedData->Expand(&mData, &mImportantData);
NS_ASSERTION(!mData && !mImportantData,
"Expand didn't null things out");
}
/**
* Clear the data, in preparation for its replacement with entirely
* new data by a call to |CompressFrom|.
*/
void ClearData() {
mData->Destroy();
mData = nsnull;
if (mImportantData) {
mImportantData->Destroy();
mImportantData = nsnull;
}
}
#ifdef DEBUG
void List(FILE* out = stdout, PRInt32 aIndent = 0) const;
#endif
private:
// Not implemented, and not supported.
nsCSSDeclaration& operator=(const nsCSSDeclaration& aCopy);
PRBool operator==(const nsCSSDeclaration& aCopy) const;
void AppendImportanceToString(PRBool aIsImportant, nsAString& aString) const;
// return whether there was a value in |aValue| (i.e., it had a non-null unit)
PRBool AppendValueToString(nsCSSProperty aProperty, nsAString& aResult) const;
// return whether there was a value in |aValue| (i.e., it had a non-null unit)
PRBool AppendCSSValueToString(nsCSSProperty aProperty, const nsCSSValue& aValue, nsAString& aResult) const;
// May be called only for properties whose type is eCSSType_Value.
nsresult GetValueOrImportantValue(nsCSSProperty aProperty, nsCSSValue& aValue) const;
void PropertyIsSet(PRInt32 & aPropertyIndex, PRInt32 aIndex, PRUint32 & aSet, PRUint32 aValue) const;
PRBool TryBorderShorthand(nsAString & aString, PRUint32 aPropertiesSet,
PRInt32 aBorderTopWidth,
PRInt32 aBorderTopStyle,
PRInt32 aBorderTopColor,
PRInt32 aBorderBottomWidth,
PRInt32 aBorderBottomStyle,
PRInt32 aBorderBottomColor,
PRInt32 aBorderLeftWidth,
PRInt32 aBorderLeftStyle,
PRInt32 aBorderLeftColor,
PRInt32 aBorderRightWidth,
PRInt32 aBorderRightStyle,
PRInt32 aBorderRightColor) const;
PRBool TryBorderSideShorthand(nsAString & aString,
nsCSSProperty aShorthand,
PRInt32 aBorderWidth,
PRInt32 aBorderStyle,
PRInt32 aBorderColor) const;
PRBool TryFourSidesShorthand(nsAString & aString,
nsCSSProperty aShorthand,
PRInt32 & aTop,
PRInt32 & aBottom,
PRInt32 & aLeft,
PRInt32 & aRight,
PRBool aClearIndexes) const;
void TryBackgroundShorthand(nsAString & aString,
PRInt32 & aBgColor, PRInt32 & aBgImage,
PRInt32 & aBgRepeat, PRInt32 & aBgAttachment,
PRInt32 & aBgPositionX,
PRInt32 & aBgPositionY) const;
void UseBackgroundPosition(nsAString & aString,
PRInt32 & aBgPositionX,
PRInt32 & aBgPositionY) const;
PRBool AllPropertiesSameImportance(PRInt32 aFirst, PRInt32 aSecond,
PRInt32 aThird, PRInt32 aFourth,
PRInt32 aFifth, PRInt32 aSixth,
PRBool & aImportance) const;
PRBool AllPropertiesSameValue(PRInt32 aFirst, PRInt32 aSecond,
PRInt32 aThird, PRInt32 aFourth) const;
void AppendPropertyAndValueToString(nsCSSProperty aProperty,
nsAString& aResult) const
{
AppendPropertyAndValueToString(aProperty, aProperty, aResult);
}
void AppendPropertyAndValueToString(nsCSSProperty aProperty,
nsCSSProperty aPropertyName,
nsAString& aResult) const;
private:
//
// Specialized ref counting.
// We do not want everyone to ref count us, only the rules which hold
// onto us (our well defined lifetime is when the last rule releases
// us).
// It's worth a comment here that the main nsCSSDeclaration is refcounted,
// but it's |mImportant| is not refcounted, but just owned by the
// non-important declaration.
//
friend class CSSStyleRuleImpl;
void AddRef(void) {
++mRefCnt;
}
void Release(void) {
NS_ASSERTION(0 < mRefCnt, "bad Release");
if (0 == --mRefCnt) {
delete this;
}
}
public:
void RuleAbort(void) {
NS_ASSERTION(0 == mRefCnt, "bad RuleAbort");
delete this;
}
private:
// Block everyone, except us or a derivative, from deleting us.
~nsCSSDeclaration(void);
nsCSSProperty OrderValueAt(nsValueArrayIndex aValue) const {
return nsCSSProperty(mOrder.ValueAt(aValue));
}
private:
nsValueArray mOrder;
nsAutoRefCnt mRefCnt;
nsCSSCompressedDataBlock *mData; // never null, except while expanded
nsCSSCompressedDataBlock *mImportantData; // may be null
};
#endif /* nsCSSDeclaration_h___ */

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,531 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Netscape Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Daniel Glazman <glazman@netscape.com>
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#ifndef nsCSSStruct_h___
#define nsCSSStruct_h___
#include "nsCSSValue.h"
#include <stdio.h>
struct nsCSSStruct {
// EMPTY on purpose. ABSTRACT with no virtuals (typedef void nsCSSStruct?)
};
// We use the nsCSS* structures for storing nsCSSDeclaration's
// *temporary* data during parsing and modification. (They are too big
// for permanent storage.) We also use them for nsRuleData, with some
// additions of things that the style system must cascade, but that
// aren't CSS properties. Thus we use typedefs and inheritance
// (forwards, when the rule data needs extra data) to make the rule data
// structs from the declaration structs.
typedef nsCSSStruct nsRuleDataStruct;
struct nsCSSFont : public nsCSSStruct {
nsCSSFont(void);
nsCSSFont(const nsCSSFont& aCopy);
~nsCSSFont(void);
#ifdef DEBUG
void List(FILE* out = stdout, PRInt32 aIndent = 0) const;
#endif
nsCSSValue mFamily;
nsCSSValue mStyle;
nsCSSValue mVariant;
nsCSSValue mWeight;
nsCSSValue mSize;
nsCSSValue mSizeAdjust; // NEW
nsCSSValue mStretch; // NEW
};
struct nsRuleDataFont : public nsCSSFont {
PRBool mFamilyFromHTML; // Is the family from an HTML FONT element
};
struct nsCSSValueList {
nsCSSValueList(void);
nsCSSValueList(const nsCSSValueList& aCopy);
~nsCSSValueList(void);
static PRBool Equal(nsCSSValueList* aList1, nsCSSValueList* aList2);
nsCSSValue mValue;
nsCSSValueList* mNext;
};
struct nsCSSColor : public nsCSSStruct {
nsCSSColor(void);
nsCSSColor(const nsCSSColor& aCopy);
~nsCSSColor(void);
#ifdef DEBUG
void List(FILE* out = stdout, PRInt32 aIndent = 0) const;
#endif
nsCSSValue mColor;
nsCSSValue mBackColor;
nsCSSValue mBackImage;
nsCSSValue mBackRepeat;
nsCSSValue mBackAttachment;
nsCSSValue mBackPositionX;
nsCSSValue mBackPositionY;
nsCSSValue mBackClip;
nsCSSValue mBackOrigin;
nsCSSValue mBackInlinePolicy;
};
struct nsRuleDataColor : public nsCSSColor {
};
struct nsCSSShadow {
nsCSSShadow(void);
nsCSSShadow(const nsCSSShadow& aCopy);
~nsCSSShadow(void);
static PRBool Equal(nsCSSShadow* aList1, nsCSSShadow* aList2);
nsCSSValue mColor;
nsCSSValue mXOffset;
nsCSSValue mYOffset;
nsCSSValue mRadius;
nsCSSShadow* mNext;
};
struct nsCSSText : public nsCSSStruct {
nsCSSText(void);
nsCSSText(const nsCSSText& aCopy);
~nsCSSText(void);
#ifdef DEBUG
void List(FILE* out = stdout, PRInt32 aIndent = 0) const;
#endif
nsCSSValue mWordSpacing;
nsCSSValue mLetterSpacing;
nsCSSValue mVerticalAlign;
nsCSSValue mTextTransform;
nsCSSValue mTextAlign;
nsCSSValue mTextIndent;
nsCSSValue mDecoration;
nsCSSShadow* mTextShadow; // NEW
nsCSSValue mUnicodeBidi; // NEW
nsCSSValue mLineHeight;
nsCSSValue mWhiteSpace;
};
struct nsRuleDataText : public nsCSSText {
};
#define FOR_CSS_SIDES(var_) for (PRInt32 var_ = 0; var_ < 4; ++var_)
struct nsCSSRect {
nsCSSRect(void);
nsCSSRect(const nsCSSRect& aCopy);
~nsCSSRect();
#ifdef DEBUG
void List(FILE* out = 0, nsCSSProperty aPropID = eCSSProperty_UNKNOWN, PRInt32 aIndent = 0) const;
void List(FILE* out, PRInt32 aIndent, const nsCSSProperty aTRBL[]) const;
#endif
PRBool operator==(const nsCSSRect& aOther) const {
return mTop == aOther.mTop &&
mRight == aOther.mRight &&
mBottom == aOther.mBottom &&
mLeft == aOther.mLeft;
}
PRBool operator!=(const nsCSSRect& aOther) const {
return mTop != aOther.mTop ||
mRight != aOther.mRight ||
mBottom != aOther.mBottom ||
mLeft != aOther.mLeft;
}
void SetAllSidesTo(const nsCSSValue& aValue);
nsCSSValue mTop;
nsCSSValue mRight;
nsCSSValue mBottom;
nsCSSValue mLeft;
typedef nsCSSValue nsCSSRect::*side_type;
static const side_type sides[4];
};
struct nsCSSValueListRect {
nsCSSValueListRect(void);
nsCSSValueListRect(const nsCSSValueListRect& aCopy);
~nsCSSValueListRect();
#ifdef DEBUG
void List(FILE* out = 0, nsCSSProperty aPropID = eCSSProperty_UNKNOWN, PRInt32 aIndent = 0) const;
void List(FILE* out, PRInt32 aIndent, const nsCSSProperty aTRBL[]) const;
#endif
nsCSSValueList* mTop;
nsCSSValueList* mRight;
nsCSSValueList* mBottom;
nsCSSValueList* mLeft;
typedef nsCSSValueList* nsCSSValueListRect::*side_type;
static const side_type sides[4];
};
struct nsCSSDisplay : public nsCSSStruct {
nsCSSDisplay(void);
nsCSSDisplay(const nsCSSDisplay& aCopy);
~nsCSSDisplay(void);
#ifdef DEBUG
void List(FILE* out = stdout, PRInt32 aIndent = 0) const;
#endif
nsCSSValue mDirection;
nsCSSValue mDisplay;
nsCSSValue mBinding;
nsCSSValue mAppearance;
nsCSSValue mPosition;
nsCSSValue mFloat;
nsCSSValue mClear;
nsCSSRect mClip;
nsCSSValue mOverflow;
nsCSSValue mVisibility;
nsCSSValue mOpacity;
// temp fix for bug 24000
nsCSSValue mBreakBefore;
nsCSSValue mBreakAfter;
// end temp fix
};
struct nsRuleDataDisplay : public nsCSSDisplay {
nsCSSValue mLang;
};
struct nsCSSMargin : public nsCSSStruct {
nsCSSMargin(void);
nsCSSMargin(const nsCSSMargin& aCopy);
~nsCSSMargin(void);
#ifdef DEBUG
void List(FILE* out = stdout, PRInt32 aIndent = 0) const;
#endif
nsCSSRect mMargin;
nsCSSValue mMarginStart;
nsCSSValue mMarginEnd;
nsCSSValue mMarginLeftLTRSource;
nsCSSValue mMarginLeftRTLSource;
nsCSSValue mMarginRightLTRSource;
nsCSSValue mMarginRightRTLSource;
nsCSSRect mPadding;
nsCSSValue mPaddingStart;
nsCSSValue mPaddingEnd;
nsCSSValue mPaddingLeftLTRSource;
nsCSSValue mPaddingLeftRTLSource;
nsCSSValue mPaddingRightLTRSource;
nsCSSValue mPaddingRightRTLSource;
nsCSSRect mBorderWidth;
nsCSSRect mBorderColor;
nsCSSValueListRect mBorderColors;
nsCSSRect mBorderStyle;
nsCSSRect mBorderRadius; // (extension)
nsCSSValue mOutlineWidth;
nsCSSValue mOutlineColor;
nsCSSValue mOutlineStyle;
nsCSSRect mOutlineRadius; // (extension)
nsCSSValue mFloatEdge; // NEW
};
struct nsRuleDataMargin : public nsCSSMargin {
};
struct nsCSSPosition : public nsCSSStruct {
nsCSSPosition(void);
nsCSSPosition(const nsCSSPosition& aCopy);
~nsCSSPosition(void);
#ifdef DEBUG
void List(FILE* out = stdout, PRInt32 aIndent = 0) const;
#endif
nsCSSValue mWidth;
nsCSSValue mMinWidth;
nsCSSValue mMaxWidth;
nsCSSValue mHeight;
nsCSSValue mMinHeight;
nsCSSValue mMaxHeight;
nsCSSValue mBoxSizing; // NEW
nsCSSRect mOffset;
nsCSSValue mZIndex;
};
struct nsRuleDataPosition : public nsCSSPosition {
};
struct nsCSSList : public nsCSSStruct {
nsCSSList(void);
nsCSSList(const nsCSSList& aCopy);
~nsCSSList(void);
#ifdef DEBUG
void List(FILE* out = stdout, PRInt32 aIndent = 0) const;
#endif
nsCSSValue mType;
nsCSSValue mImage;
nsCSSValue mPosition;
nsCSSRect mImageRegion;
};
struct nsRuleDataList : public nsCSSList {
};
struct nsCSSTable : public nsCSSStruct { // NEW
nsCSSTable(void);
nsCSSTable(const nsCSSTable& aCopy);
~nsCSSTable(void);
#ifdef DEBUG
void List(FILE* out = stdout, PRInt32 aIndent = 0) const;
#endif
nsCSSValue mBorderCollapse;
nsCSSValue mBorderSpacingX;
nsCSSValue mBorderSpacingY;
nsCSSValue mCaptionSide;
nsCSSValue mEmptyCells;
nsCSSValue mLayout;
nsCSSValue mFrame; // Not mappable via CSS, only using HTML4 table attrs.
nsCSSValue mRules; // Not mappable via CSS, only using HTML4 table attrs.
nsCSSValue mSpan; // Not mappable via CSS, only using HTML4 table attrs.
nsCSSValue mCols; // Not mappable via CSS, only using HTML4 table attrs.
};
struct nsRuleDataTable : public nsCSSTable {
};
struct nsCSSBreaks : public nsCSSStruct { // NEW
nsCSSBreaks(void);
nsCSSBreaks(const nsCSSBreaks& aCopy);
~nsCSSBreaks(void);
#ifdef DEBUG
void List(FILE* out = stdout, PRInt32 aIndent = 0) const;
#endif
nsCSSValue mOrphans;
nsCSSValue mWidows;
nsCSSValue mPage;
// temp fix for bug 24000
//nsCSSValue mPageBreakAfter;
//nsCSSValue mPageBreakBefore;
nsCSSValue mPageBreakInside;
};
struct nsRuleDataBreaks : public nsCSSBreaks {
};
struct nsCSSPage : public nsCSSStruct { // NEW
nsCSSPage(void);
nsCSSPage(const nsCSSPage& aCopy);
~nsCSSPage(void);
#ifdef DEBUG
void List(FILE* out = stdout, PRInt32 aIndent = 0) const;
#endif
nsCSSValue mMarks;
nsCSSValue mSizeWidth;
nsCSSValue mSizeHeight;
};
struct nsRuleDataPage : public nsCSSPage {
};
struct nsCSSCounterData {
nsCSSCounterData(void);
nsCSSCounterData(const nsCSSCounterData& aCopy);
~nsCSSCounterData(void);
static PRBool Equal(nsCSSCounterData* aList1, nsCSSCounterData* aList2);
nsCSSValue mCounter;
nsCSSValue mValue;
nsCSSCounterData* mNext;
};
struct nsCSSQuotes {
nsCSSQuotes(void);
nsCSSQuotes(const nsCSSQuotes& aCopy);
~nsCSSQuotes(void);
static PRBool Equal(nsCSSQuotes* aList1, nsCSSQuotes* aList2);
nsCSSValue mOpen;
nsCSSValue mClose;
nsCSSQuotes* mNext;
};
struct nsCSSContent : public nsCSSStruct {
nsCSSContent(void);
nsCSSContent(const nsCSSContent& aCopy);
~nsCSSContent(void);
#ifdef DEBUG
void List(FILE* out = stdout, PRInt32 aIndent = 0) const;
#endif
nsCSSValueList* mContent;
nsCSSCounterData* mCounterIncrement;
nsCSSCounterData* mCounterReset;
nsCSSValue mMarkerOffset;
nsCSSQuotes* mQuotes;
};
struct nsRuleDataContent : public nsCSSContent {
};
struct nsCSSUserInterface : public nsCSSStruct { // NEW
nsCSSUserInterface(void);
nsCSSUserInterface(const nsCSSUserInterface& aCopy);
~nsCSSUserInterface(void);
#ifdef DEBUG
void List(FILE* out = stdout, PRInt32 aIndent = 0) const;
#endif
nsCSSValue mUserInput;
nsCSSValue mUserModify;
nsCSSValue mUserSelect;
nsCSSValueList* mKeyEquivalent;
nsCSSValue mUserFocus;
nsCSSValue mResizer;
nsCSSValueList* mCursor;
nsCSSValue mForceBrokenImageIcon;
};
struct nsRuleDataUserInterface : public nsCSSUserInterface {
};
struct nsCSSAural : public nsCSSStruct { // NEW
nsCSSAural(void);
nsCSSAural(const nsCSSAural& aCopy);
~nsCSSAural(void);
#ifdef DEBUG
void List(FILE* out = stdout, PRInt32 aIndent = 0) const;
#endif
nsCSSValue mAzimuth;
nsCSSValue mElevation;
nsCSSValue mCueAfter;
nsCSSValue mCueBefore;
nsCSSValue mPauseAfter;
nsCSSValue mPauseBefore;
nsCSSValue mPitch;
nsCSSValue mPitchRange;
nsCSSValue mPlayDuring;
nsCSSValue mPlayDuringFlags;
nsCSSValue mRichness;
nsCSSValue mSpeak;
nsCSSValue mSpeakHeader;
nsCSSValue mSpeakNumeral;
nsCSSValue mSpeakPunctuation;
nsCSSValue mSpeechRate;
nsCSSValue mStress;
nsCSSValue mVoiceFamily;
nsCSSValue mVolume;
};
struct nsRuleDataAural : public nsCSSAural {
};
struct nsCSSXUL : public nsCSSStruct {
nsCSSXUL(void);
nsCSSXUL(const nsCSSXUL& aCopy);
~nsCSSXUL(void);
#ifdef DEBUG
void List(FILE* out = stdout, PRInt32 aIndent = 0) const;
#endif
nsCSSValue mBoxAlign;
nsCSSValue mBoxDirection;
nsCSSValue mBoxFlex;
nsCSSValue mBoxOrient;
nsCSSValue mBoxPack;
nsCSSValue mBoxOrdinal;
};
struct nsRuleDataXUL : public nsCSSXUL {
};
#ifdef MOZ_SVG
struct nsCSSSVG : public nsCSSStruct {
nsCSSSVG(void);
nsCSSSVG(const nsCSSSVG& aCopy);
~nsCSSSVG(void);
#ifdef DEBUG
void List(FILE* out = stdout, PRInt32 aIndent = 0) const;
#endif
nsCSSValue mDominantBaseline;
nsCSSValue mFill;
nsCSSValue mFillOpacity;
nsCSSValue mFillRule;
nsCSSValue mPointerEvents;
nsCSSValue mShapeRendering;
nsCSSValue mStroke;
nsCSSValue mStrokeDasharray;
nsCSSValue mStrokeDashoffset;
nsCSSValue mStrokeLinecap;
nsCSSValue mStrokeLinejoin;
nsCSSValue mStrokeMiterlimit;
nsCSSValue mStrokeOpacity;
nsCSSValue mStrokeWidth;
nsCSSValue mTextAnchor;
nsCSSValue mTextRendering;
};
struct nsRuleDataSVG : public nsCSSSVG {
};
#endif
#endif /* nsCSSStruct_h___ */

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,538 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Netscape Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1999
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
/******
This file contains the list of all parsed CSS keywords
See nsCSSKeywords.h for access to the enum values for keywords
It is designed to be used as inline input to nsCSSKeywords.cpp *only*
through the magic of C preprocessing.
All entires must be enclosed in the macro CSS_KEY which will have cruel
and unusual things done to it
It is recommended (but not strictly necessary) to keep all entries
in alphabetical order
Requirements:
Entries are in the form: (name,id). 'id' must always be the same as 'name'
except that all hyphens ('-') in 'name' are converted to underscores ('_')
in 'id'. This lets us do nice things with the macros without having to
copy/convert strings at runtime.
'name' entries *must* use only lowercase characters.
** Break these invariants and bad things will happen. **
******/
// OUTPUT_CLASS=nsCSSKeywords
// MACRO_NAME=CSS_KEY
CSS_KEY(-moz-activehyperlinktext, _moz_activehyperlinktext)
CSS_KEY(-moz-alias, _moz_alias)
CSS_KEY(-moz-all, _moz_all)
CSS_KEY(-moz-anchor-decoration, _moz_anchor_decoration)
CSS_KEY(-moz-arabic-indic, _moz_arabic_indic)
CSS_KEY(-moz-bengali, _moz_bengali)
CSS_KEY(-moz-bg-inset, _moz_bg_inset)
CSS_KEY(-moz-bg-outset, _moz_bg_outset)
CSS_KEY(-moz-bg-solid, _moz_bg_solid)
CSS_KEY(-moz-box, _moz_box)
CSS_KEY(-moz-bulletinboard, _moz_bulletinboard)
CSS_KEY(-moz-button, _moz_button)
CSS_KEY(-moz-buttondefault, _moz_buttondefault)
CSS_KEY(-moz-cell, _moz_cell)
CSS_KEY(-moz-center, _moz_center)
CSS_KEY(-moz-cjk-earthly-branch, _moz_cjk_earthly_branch)
CSS_KEY(-moz-cjk-heavenly-stem, _moz_cjk_heavenly_stem)
CSS_KEY(-moz-compact, _moz_compact) // Disabled because not supported.
CSS_KEY(-moz-context-menu, _moz_context_menu)
CSS_KEY(-moz-copy, _moz_copy)
CSS_KEY(-moz-count-down, _moz_count_down)
CSS_KEY(-moz-count-up-down, _moz_count_up_down)
CSS_KEY(-moz-count-up, _moz_count_up)
CSS_KEY(-moz-deck, _moz_deck)
CSS_KEY(-moz-desktop, _moz_desktop)
CSS_KEY(-moz-devanagari, _moz_devanagari)
CSS_KEY(-moz-dialog, _moz_dialog)
CSS_KEY(-moz-dialogtext, _moz_dialogtext)
CSS_KEY(-moz-document, _moz_document)
CSS_KEY(-moz-dragtargetzone, _moz_dragtargetzone)
CSS_KEY(-moz-ethiopic-halehame, _moz_ethiopic_halehame)
CSS_KEY(-moz-ethiopic-numeric, _moz_ethiopic_numeric)
CSS_KEY(-moz-ethiopic-halehame-am, _moz_ethiopic_halehame_am)
CSS_KEY(-moz-ethiopic-halehame-ti-er, _moz_ethiopic_halehame_ti_er)
CSS_KEY(-moz-ethiopic-halehame-ti-et, _moz_ethiopic_halehame_ti_et)
CSS_KEY(-moz-field, _moz_field)
CSS_KEY(-moz-fieldtext, _moz_fieldtext)
CSS_KEY(-moz-grabbing, _moz_grabbing)
CSS_KEY(-moz-grab, _moz_grab)
CSS_KEY(-moz-grid-group, _moz_grid_group)
CSS_KEY(-moz-grid-line, _moz_grid_line)
CSS_KEY(-moz-grid, _moz_grid)
CSS_KEY(-moz-groupbox, _moz_groupbox)
CSS_KEY(-moz-gujarati, _moz_gujarati)
CSS_KEY(-moz-gurmukhi, _moz_gurmukhi)
CSS_KEY(-moz-hangul-consonant, _moz_hangul_consonant)
CSS_KEY(-moz-hidden-unscrollable, _moz_hidden_unscrollable)
CSS_KEY(-moz-hangul, _moz_hangul)
CSS_KEY(-moz-hyperlinktext, _moz_hyperlinktext)
CSS_KEY(-moz-info, _moz_info)
CSS_KEY(-moz-initial, _moz_initial)
CSS_KEY(-moz-inline-block, _moz_inline_block)
CSS_KEY(-moz-inline-box, _moz_inline_box)
CSS_KEY(-moz-inline-grid, _moz_inline_grid)
CSS_KEY(-moz-inline-stack, _moz_inline_stack)
CSS_KEY(-moz-inline-table, _moz_inline_table)
CSS_KEY(-moz-japanese-formal, _moz_japanese_formal)
CSS_KEY(-moz-japanese-informal, _moz_japanese_informal)
CSS_KEY(-moz-kannada, _moz_kannada)
CSS_KEY(-moz-khmer, _moz_khmer)
CSS_KEY(-moz-lao, _moz_lao)
CSS_KEY(-moz-list, _moz_list)
CSS_KEY(-moz-mac-accentdarkestshadow, _moz_mac_accentdarkestshadow)
CSS_KEY(-moz-mac-accentdarkshadow, _moz_mac_accentdarkshadow)
CSS_KEY(-moz-mac-accentface, _moz_mac_accentface)
CSS_KEY(-moz-mac-accentlightesthighlight, _moz_mac_accentlightesthighlight)
CSS_KEY(-moz-mac-accentlightshadow, _moz_mac_accentlightshadow)
CSS_KEY(-moz-mac-accentregularhighlight, _moz_mac_accentregularhighlight)
CSS_KEY(-moz-mac-accentregularshadow, _moz_mac_accentregularshadow)
CSS_KEY(-moz-mac-focusring, _moz_mac_focusring)
CSS_KEY(-moz-mac-menuselect, _moz_mac_menuselect)
CSS_KEY(-moz-mac-menushadow, _moz_mac_menushadow)
CSS_KEY(-moz-mac-menutextselect, _moz_mac_menutextselect)
CSS_KEY(-moz-malayalam, _moz_malayalam)
CSS_KEY(-moz-marker, _moz_marker) // Disabled because not supported correctly.
CSS_KEY(-moz-myanmar, _moz_myanmar)
CSS_KEY(-moz-oriya, _moz_oriya)
CSS_KEY(-moz-page-break, _moz_page_break)
CSS_KEY(-moz-persian, _moz_persian)
CSS_KEY(-moz-popup, _moz_popup)
CSS_KEY(-moz-pre-wrap, _moz_pre_wrap)
CSS_KEY(-moz-pull-down-menu, _moz_pull_down_menu)
CSS_KEY(-moz-right, _moz_right)
CSS_KEY(-moz-run-in, _moz_run_in) // Disabled because not supported.
CSS_KEY(-moz-scrollbars-horizontal, _moz_scrollbars_horizontal)
CSS_KEY(-moz-scrollbars-none, _moz_scrollbars_none)
CSS_KEY(-moz-scrollbars-vertical, _moz_scrollbars_vertical)
CSS_KEY(-moz-show-background, _moz_show_background)
CSS_KEY(-moz-simp-chinese-formal, _moz_simp_chinese_formal)
CSS_KEY(-moz-simp-chinese-informal, _moz_simp_chinese_informal)
CSS_KEY(-moz-spinning, _moz_spinning)
CSS_KEY(-moz-stack, _moz_stack)
CSS_KEY(-moz-tamil, _moz_tamil)
CSS_KEY(-moz-telugu, _moz_telugu)
CSS_KEY(-moz-thai, _moz_thai)
CSS_KEY(-moz-trad-chinese-formal, _moz_trad_chinese_formal)
CSS_KEY(-moz-trad-chinese-informal, _moz_trad_chinese_informal)
CSS_KEY(-moz-urdu, _moz_urdu)
CSS_KEY(-moz-use-text-color, _moz_use_text_color)
CSS_KEY(-moz-visitedhyperlinktext, _moz_visitedhyperlinktext)
CSS_KEY(-moz-window, _moz_window)
CSS_KEY(-moz-workspace, _moz_workspace)
CSS_KEY(-moz-zoom-in, _moz_zoom_in)
CSS_KEY(-moz-zoom-out, _moz_zoom_out)
CSS_KEY(above, above)
CSS_KEY(absolute, absolute)
CSS_KEY(activeborder, activeborder)
CSS_KEY(activecaption, activecaption)
CSS_KEY(all, all)
CSS_KEY(always, always)
CSS_KEY(appworkspace, appworkspace)
CSS_KEY(armenian, armenian)
CSS_KEY(auto, auto)
CSS_KEY(avoid, avoid)
CSS_KEY(background, background)
CSS_KEY(baseline, baseline)
CSS_KEY(behind, behind)
CSS_KEY(below, below)
CSS_KEY(bidi-override, bidi_override)
CSS_KEY(blink, blink)
CSS_KEY(block, block)
CSS_KEY(block-axis, block_axis)
CSS_KEY(bold, bold)
CSS_KEY(bolder, bolder)
CSS_KEY(border, border)
CSS_KEY(border-box, border_box)
CSS_KEY(both, both)
CSS_KEY(bottom, bottom)
CSS_KEY(bounding-box, bounding_box)
CSS_KEY(button, button)
CSS_KEY(buttonface, buttonface)
CSS_KEY(buttonhighlight, buttonhighlight)
CSS_KEY(buttonshadow, buttonshadow)
CSS_KEY(buttontext, buttontext)
CSS_KEY(capitalize, capitalize)
CSS_KEY(caption, caption)
CSS_KEY(captiontext, captiontext)
CSS_KEY(center, center)
CSS_KEY(center-left, center_left)
CSS_KEY(center-right, center_right)
CSS_KEY(ch, ch)
CSS_KEY(circle, circle)
CSS_KEY(cjk-ideographic, cjk_ideographic)
CSS_KEY(close-quote, close_quote)
CSS_KEY(cm, cm)
CSS_KEY(code, code)
CSS_KEY(collapse, collapse)
CSS_KEY(condensed, condensed)
CSS_KEY(content, content)
CSS_KEY(content-box, content_box)
CSS_KEY(continuous, continuous)
CSS_KEY(crop, crop)
CSS_KEY(cross, cross)
CSS_KEY(crosshair, crosshair)
CSS_KEY(dashed, dashed)
CSS_KEY(decimal, decimal)
CSS_KEY(decimal-leading-zero, decimal_leading_zero)
CSS_KEY(default, default)
CSS_KEY(deg, deg)
CSS_KEY(dialog, dialog)
CSS_KEY(digits, digits)
CSS_KEY(disabled, disabled)
CSS_KEY(disc, disc)
CSS_KEY(dotted, dotted)
CSS_KEY(double, double)
CSS_KEY(e-resize, e_resize)
CSS_KEY(each-box, each_box)
CSS_KEY(element, element)
CSS_KEY(elements, elements)
CSS_KEY(em, em)
CSS_KEY(embed, embed)
CSS_KEY(enabled, enabled)
CSS_KEY(end, end)
CSS_KEY(ex, ex)
CSS_KEY(expanded, expanded)
CSS_KEY(extra-condensed, extra_condensed)
CSS_KEY(extra-expanded, extra_expanded)
CSS_KEY(far-left, far_left)
CSS_KEY(far-right, far_right)
CSS_KEY(fast, fast)
CSS_KEY(faster, faster)
CSS_KEY(fixed, fixed)
CSS_KEY(georgian, georgian)
CSS_KEY(grad, grad)
CSS_KEY(graytext, graytext)
CSS_KEY(groove, groove)
CSS_KEY(hebrew, hebrew)
CSS_KEY(help, help)
CSS_KEY(hidden, hidden)
CSS_KEY(hide, hide)
CSS_KEY(high, high)
CSS_KEY(higher, higher)
CSS_KEY(highlight, highlight)
CSS_KEY(highlighttext, highlighttext)
CSS_KEY(hiragana, hiragana)
CSS_KEY(hiragana-iroha, hiragana_iroha)
CSS_KEY(horizontal, horizontal)
CSS_KEY(hz, hz)
CSS_KEY(icon, icon)
CSS_KEY(ignore, ignore)
CSS_KEY(in, in)
CSS_KEY(inactiveborder, inactiveborder)
CSS_KEY(inactivecaption, inactivecaption)
CSS_KEY(inactivecaptiontext, inactivecaptiontext)
CSS_KEY(infobackground, infobackground)
CSS_KEY(infotext, infotext)
CSS_KEY(inherit, inherit)
CSS_KEY(inline, inline)
CSS_KEY(inline-axis, inline_axis)
CSS_KEY(inset, inset)
CSS_KEY(inside, inside)
CSS_KEY(invert, invert)
CSS_KEY(italic, italic)
CSS_KEY(justify, justify)
CSS_KEY(katakana, katakana)
CSS_KEY(katakana-iroha, katakana_iroha)
CSS_KEY(khz, khz)
CSS_KEY(landscape, landscape)
CSS_KEY(large, large)
CSS_KEY(larger, larger)
CSS_KEY(left, left)
CSS_KEY(left-side, left_side)
CSS_KEY(leftwards, leftwards)
CSS_KEY(level, level)
CSS_KEY(lighter, lighter)
CSS_KEY(line-through, line_through)
CSS_KEY(list-item, list_item)
CSS_KEY(logical, logical)
CSS_KEY(loud, loud)
CSS_KEY(low, low)
CSS_KEY(lower, lower)
CSS_KEY(lower-alpha, lower_alpha)
CSS_KEY(lower-greek, lower_greek)
CSS_KEY(lower-latin, lower_latin)
CSS_KEY(lower-roman, lower_roman)
CSS_KEY(lowercase, lowercase)
CSS_KEY(ltr, ltr)
CSS_KEY(margin-box, margin_box)
CSS_KEY(medium, medium)
CSS_KEY(menu, menu)
CSS_KEY(menubar, menubar)
CSS_KEY(menutext, menutext)
CSS_KEY(message-box, message_box)
CSS_KEY(middle, middle)
CSS_KEY(mix, mix)
CSS_KEY(mm, mm)
CSS_KEY(move, move)
CSS_KEY(ms, ms)
CSS_KEY(n-resize, n_resize)
CSS_KEY(narrower, narrower)
CSS_KEY(ne-resize, ne_resize)
CSS_KEY(no-close-quote, no_close_quote)
CSS_KEY(no-open-quote, no_open_quote)
CSS_KEY(no-repeat, no_repeat)
CSS_KEY(none, none)
CSS_KEY(normal, normal)
CSS_KEY(nowrap, nowrap)
CSS_KEY(nw-resize, nw_resize)
CSS_KEY(oblique, oblique)
CSS_KEY(once, once)
CSS_KEY(open-quote, open_quote)
CSS_KEY(outset, outset)
CSS_KEY(outside, outside)
CSS_KEY(overline, overline)
CSS_KEY(padding, padding)
CSS_KEY(padding-box, padding_box)
CSS_KEY(pc, pc)
CSS_KEY(physical, physical)
CSS_KEY(pointer, pointer)
CSS_KEY(portrait, portrait)
CSS_KEY(pre, pre)
CSS_KEY(progress, progress)
CSS_KEY(pt, pt)
CSS_KEY(px, px)
CSS_KEY(rad, rad)
CSS_KEY(read-only, read_only)
CSS_KEY(read-write, read_write)
CSS_KEY(relative, relative)
CSS_KEY(repeat, repeat)
CSS_KEY(repeat-x, repeat_x)
CSS_KEY(repeat-y, repeat_y)
CSS_KEY(reverse, reverse)
CSS_KEY(ridge, ridge)
CSS_KEY(right, right)
CSS_KEY(right-side, right_side)
CSS_KEY(rightwards, rightwards)
CSS_KEY(rtl, rtl)
CSS_KEY(s, s)
CSS_KEY(s-resize, s_resize)
CSS_KEY(scroll, scroll)
CSS_KEY(scrollbar, scrollbar)
CSS_KEY(se-resize, se_resize)
CSS_KEY(select-after, select_after)
CSS_KEY(select-all, select_all)
CSS_KEY(select-before, select_before)
CSS_KEY(select-menu, select_menu)
CSS_KEY(select-same, select_same)
CSS_KEY(semi-condensed, semi_condensed)
CSS_KEY(semi-expanded, semi_expanded)
CSS_KEY(separate, separate)
CSS_KEY(show, show)
CSS_KEY(silent, silent)
CSS_KEY(slow, slow)
CSS_KEY(slower, slower)
CSS_KEY(small, small)
CSS_KEY(small-caps, small_caps)
CSS_KEY(small-caption, small_caption)
CSS_KEY(smaller, smaller)
CSS_KEY(soft, soft)
CSS_KEY(solid, solid)
CSS_KEY(spell-out, spell_out)
CSS_KEY(square, square)
CSS_KEY(start, start)
CSS_KEY(static, static)
CSS_KEY(status-bar, status_bar)
CSS_KEY(stretch, stretch)
CSS_KEY(sub, sub)
CSS_KEY(super, super)
CSS_KEY(sw-resize, sw_resize)
CSS_KEY(table, table)
CSS_KEY(table-caption, table_caption)
CSS_KEY(table-cell, table_cell)
CSS_KEY(table-column, table_column)
CSS_KEY(table-column-group, table_column_group)
CSS_KEY(table-footer-group, table_footer_group)
CSS_KEY(table-header-group, table_header_group)
CSS_KEY(table-row, table_row)
CSS_KEY(table-row-group, table_row_group)
CSS_KEY(text, text)
CSS_KEY(text-bottom, text_bottom)
CSS_KEY(text-top, text_top)
CSS_KEY(thick, thick)
CSS_KEY(thin, thin)
CSS_KEY(threeddarkshadow, threeddarkshadow)
CSS_KEY(threedface, threedface)
CSS_KEY(threedhighlight, threedhighlight)
CSS_KEY(threedlightshadow, threedlightshadow)
CSS_KEY(threedshadow, threedshadow)
CSS_KEY(toggle, toggle)
CSS_KEY(top, top)
CSS_KEY(transparent, transparent)
CSS_KEY(tri-state, tri_state)
CSS_KEY(ultra-condensed, ultra_condensed)
CSS_KEY(ultra-expanded, ultra_expanded)
CSS_KEY(underline, underline)
CSS_KEY(upper-alpha, upper_alpha)
CSS_KEY(upper-latin, upper_latin)
CSS_KEY(upper-roman, upper_roman)
CSS_KEY(uppercase, uppercase)
CSS_KEY(vertical, vertical)
CSS_KEY(visible, visible)
CSS_KEY(w-resize, w_resize)
CSS_KEY(wait, wait)
CSS_KEY(wider, wider)
CSS_KEY(window, window)
CSS_KEY(windowframe, windowframe)
CSS_KEY(windowtext, windowtext)
CSS_KEY(write-only, write_only)
CSS_KEY(x-fast, x_fast)
CSS_KEY(x-high, x_high)
CSS_KEY(x-large, x_large)
CSS_KEY(x-loud, x_loud)
CSS_KEY(x-low, x_low)
CSS_KEY(x-slow, x_slow)
CSS_KEY(x-small, x_small)
CSS_KEY(x-soft, x_soft)
CSS_KEY(xx-large, xx_large)
CSS_KEY(xx-small, xx_small)
// Appearance keywords for widget styles
CSS_KEY(radio, radio)
CSS_KEY(checkbox, checkbox)
CSS_KEY(radio-small, radio_small)
CSS_KEY(checkbox-small, checkbox_small)
CSS_KEY(button-small, button_small)
CSS_KEY(button-bevel, button_bevel)
CSS_KEY(toolbox, toolbox)
CSS_KEY(toolbar, toolbar)
CSS_KEY(toolbarbutton, toolbarbutton)
CSS_KEY(toolbargripper, toolbargripper)
CSS_KEY(dualbutton, dualbutton)
CSS_KEY(dualbutton-dropdown, dualbutton_dropdown)
CSS_KEY(separator, separator)
CSS_KEY(statusbar, statusbar)
CSS_KEY(statusbarpanel, statusbarpanel)
CSS_KEY(resizerpanel, resizerpanel)
CSS_KEY(resizer, resizer)
CSS_KEY(listbox, listbox)
CSS_KEY(listitem, listitem)
CSS_KEY(treeview, treeview)
CSS_KEY(treeitem, treeitem)
CSS_KEY(treetwisty, treetwisty)
CSS_KEY(treetwistyopen, treetwistyopen)
CSS_KEY(treeline, treeline)
CSS_KEY(treeheader, treeheader)
CSS_KEY(treeheadercell, treeheadercell)
CSS_KEY(treeheadersortarrow, treeheadersortarrow)
CSS_KEY(progressbar, progressbar)
CSS_KEY(progressbar-vertical, progressbar_vertical)
CSS_KEY(progresschunk, progresschunk)
CSS_KEY(progresschunk-vertical, progresschunk_vertical)
CSS_KEY(tab, tab)
CSS_KEY(tab-left-edge, tab_left_edge)
CSS_KEY(tab-right-edge, tab_right_edge)
CSS_KEY(tabpanels, tabpanels)
CSS_KEY(tabpanel, tabpanel)
CSS_KEY(tooltip, tooltip)
CSS_KEY(spinner, spinner)
CSS_KEY(spinner-upbutton, spinner_upbutton)
CSS_KEY(spinner-downbutton, spinner_downbutton)
CSS_KEY(scrollbarbutton-up, scrollbarbutton_up)
CSS_KEY(scrollbarbutton-down, scrollbarbutton_down)
CSS_KEY(scrollbarbutton-left, scrollbarbutton_left)
CSS_KEY(scrollbarbutton-right, scrollbarbutton_right)
CSS_KEY(scrollbartrack-horizontal, scrollbartrack_horizontal)
CSS_KEY(scrollbartrack-vertical, scrollbartrack_vertical)
CSS_KEY(scrollbarthumb-horizontal, scrollbarthumb_horizontal)
CSS_KEY(scrollbarthumb-vertical, scrollbarthumb_vertical)
CSS_KEY(scrollbargripper-horizontal, scrollbargripper_horizontal)
CSS_KEY(scrollbargripper-vertical, scrollbargripper_vertical)
CSS_KEY(textfield, textfield)
CSS_KEY(caret, caret)
CSS_KEY(menulist, menulist)
CSS_KEY(menulist-button, menulistbutton)
CSS_KEY(menulist-text, menulisttext)
CSS_KEY(menulist-textfield, menulisttextfield)
CSS_KEY(slider, slider)
CSS_KEY(sliderthumb, sliderthumb)
CSS_KEY(sliderthumbstart, sliderthumbstart)
CSS_KEY(sliderthumbend, sliderthumbend)
CSS_KEY(sliderthumbtick, sliderthumbtick)
CSS_KEY(checkbox-container, checkboxcontainer)
CSS_KEY(radio-container, radiocontainer)
#ifdef MOZ_SVG
//CSS_KEY(all, all)
CSS_KEY(alphabetic, alphabetic)
//CSS_KEY(auto, auto)
CSS_KEY(bevel, bevel)
CSS_KEY(butt, butt)
CSS_KEY(central, central)
CSS_KEY(crispedges, crispedges)
//CSS_KEY(end, end)
CSS_KEY(evenodd, evenodd)
CSS_KEY(fill, fill)
CSS_KEY(geometricprecision, geometricprecision)
CSS_KEY(hanging, hanging)
CSS_KEY(ideographic, ideographic)
CSS_KEY(mathematical, mathematical)
//CSS_KEY(middle, middle)
CSS_KEY(miter, miter)
CSS_KEY(no-change, no_change)
//CSS_KEY(none, none)
CSS_KEY(nonzero, nonzero)
CSS_KEY(optimizelegibility, optimizelegibility)
CSS_KEY(optimizespeed, optimizespeed)
CSS_KEY(painted, painted)
CSS_KEY(reset-size, reset_size)
CSS_KEY(round, round)
//CSS_KEY(square, square)
//CSS_KEY(start, start)
CSS_KEY(stroke, stroke)
CSS_KEY(text-after-edge, text_after_edge)
CSS_KEY(text-before-edge, text_before_edge)
CSS_KEY(use-script, use_script)
//CSS_KEY(visible, visible)
CSS_KEY(visiblefill, visiblefill)
CSS_KEY(visiblepainted, visiblepainted)
CSS_KEY(visiblestroke, visiblestroke)
#endif

View File

@@ -0,0 +1,657 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Netscape Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1999
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
/******
This file contains the list of all parsed CSS properties. It is
designed to be used as inline input through the magic of C
preprocessing. All entries must be enclosed in the appropriate
CSS_PROP_* macro which will have cruel and unusual things done to it.
It is recommended (but not strictly necessary) to keep all entries in
alphabetical order.
The arguments to CSS_PROP_* are:
1. 'name' entries represent a CSS property name and *must* use only
lowercase characters.
2. 'id' should be the same as 'name' except that all hyphens ('-')
in 'name' are converted to underscores ('_') in 'id'. This lets us
do nice things with the macros without having to copy/convert strings
at runtime. These are the names used for the enum values of the
nsCSSProperty enumeration defined in nsCSSProps.h.
3. 'method' is designed to be as input for CSS2Properties and similar
callers. It must always be the same as 'name' except it must use
InterCaps and all hyphens ('-') must be removed.
4. 'datastruct' says which nsRuleData* struct this property goes in.
5. 'member' gives the name of the member variable in the nsRuleData
struct.
6. 'type' gives the |nsCSSType| of the data in the nsRuleData struct
and in the nsCSSDeclaration backend.
7. 'iscoord' says whether the property is a coordinate property for
which we use an explicit inherit value in the *style structs* (since
inheritance requires knowledge of layout).
Which CSS_PROP_* macro a property is in depends on which nsStyle* its
computed value lives in (unless it is a shorthand, in which case it
gets CSS_PROP_SHORTHAND).
******/
/*************************************************************************/
// XXX Should we really be using CSS_PROP_SHORTHAND for 'border-spacing',
// 'background-position', and 'size'?
// All includers must explicitly define CSS_PROP_NOTIMPLEMENTED if they
// want this. (Only the DOM cares.)
#ifndef CSS_PROP_NOTIMPLEMENTED
#define CSS_PROP_NOTIMPLEMENTED(name_, id_, method_) /* nothing */
#define DEFINED_CSS_PROP_NOTIMPLEMENTED
#endif
// All includers must explicitly define CSS_PROP_SHORTHAND if they
// want it.
#ifndef CSS_PROP_SHORTHAND
#define CSS_PROP_SHORTHAND(name_, id_, method_) /* nothing */
#define DEFINED_CSS_PROP_SHORTHAND
#endif
// Callers may define CSS_PROP_LIST_EXCLUDE_INTERNAL if they want to
// exclude internal properties that are not represented in the DOM (only
// the DOM style code defines this).
// A caller who wants all the properties can define the |CSS_PROP|
// macro.
#ifdef CSS_PROP
#define USED_CSS_PROP
#define CSS_PROP_FONT(name_, id_, method_, datastruct_, member_, type_, iscoord_) CSS_PROP(name_, id_, method_, datastruct_, member_, type_, iscoord_)
#define CSS_PROP_COLOR(name_, id_, method_, datastruct_, member_, type_, iscoord_) CSS_PROP(name_, id_, method_, datastruct_, member_, type_, iscoord_)
#define CSS_PROP_BACKGROUND(name_, id_, method_, datastruct_, member_, type_, iscoord_) CSS_PROP(name_, id_, method_, datastruct_, member_, type_, iscoord_)
#define CSS_PROP_LIST(name_, id_, method_, datastruct_, member_, type_, iscoord_) CSS_PROP(name_, id_, method_, datastruct_, member_, type_, iscoord_)
#define CSS_PROP_POSITION(name_, id_, method_, datastruct_, member_, type_, iscoord_) CSS_PROP(name_, id_, method_, datastruct_, member_, type_, iscoord_)
#define CSS_PROP_TEXT(name_, id_, method_, datastruct_, member_, type_, iscoord_) CSS_PROP(name_, id_, method_, datastruct_, member_, type_, iscoord_)
#define CSS_PROP_TEXTRESET(name_, id_, method_, datastruct_, member_, type_, iscoord_) CSS_PROP(name_, id_, method_, datastruct_, member_, type_, iscoord_)
#define CSS_PROP_DISPLAY(name_, id_, method_, datastruct_, member_, type_, iscoord_) CSS_PROP(name_, id_, method_, datastruct_, member_, type_, iscoord_)
#define CSS_PROP_VISIBILITY(name_, id_, method_, datastruct_, member_, type_, iscoord_) CSS_PROP(name_, id_, method_, datastruct_, member_, type_, iscoord_)
#define CSS_PROP_CONTENT(name_, id_, method_, datastruct_, member_, type_, iscoord_) CSS_PROP(name_, id_, method_, datastruct_, member_, type_, iscoord_)
#define CSS_PROP_QUOTES(name_, id_, method_, datastruct_, member_, type_, iscoord_) CSS_PROP(name_, id_, method_, datastruct_, member_, type_, iscoord_)
#define CSS_PROP_USERINTERFACE(name_, id_, method_, datastruct_, member_, type_, iscoord_) CSS_PROP(name_, id_, method_, datastruct_, member_, type_, iscoord_)
#define CSS_PROP_UIRESET(name_, id_, method_, datastruct_, member_, type_, iscoord_) CSS_PROP(name_, id_, method_, datastruct_, member_, type_, iscoord_)
#define CSS_PROP_TABLE(name_, id_, method_, datastruct_, member_, type_, iscoord_) CSS_PROP(name_, id_, method_, datastruct_, member_, type_, iscoord_)
#define CSS_PROP_TABLEBORDER(name_, id_, method_, datastruct_, member_, type_, iscoord_) CSS_PROP(name_, id_, method_, datastruct_, member_, type_, iscoord_)
#define CSS_PROP_MARGIN(name_, id_, method_, datastruct_, member_, type_, iscoord_) CSS_PROP(name_, id_, method_, datastruct_, member_, type_, iscoord_)
#define CSS_PROP_PADDING(name_, id_, method_, datastruct_, member_, type_, iscoord_) CSS_PROP(name_, id_, method_, datastruct_, member_, type_, iscoord_)
#define CSS_PROP_BORDER(name_, id_, method_, datastruct_, member_, type_, iscoord_) CSS_PROP(name_, id_, method_, datastruct_, member_, type_, iscoord_)
#define CSS_PROP_OUTLINE(name_, id_, method_, datastruct_, member_, type_, iscoord_) CSS_PROP(name_, id_, method_, datastruct_, member_, type_, iscoord_)
#define CSS_PROP_XUL(name_, id_, method_, datastruct_, member_, type_, iscoord_) CSS_PROP(name_, id_, method_, datastruct_, member_, type_, iscoord_)
#ifdef MOZ_SVG
#define CSS_PROP_SVG(name_, id_, method_, datastruct_, member_, type_, iscoord_) CSS_PROP(name_, id_, method_, datastruct_, member_, type_, iscoord_)
#define CSS_PROP_SVGRESET(name_, id_, method_, datastruct_, member_, type_, iscoord_) CSS_PROP(name_, id_, method_, datastruct_, member_, type_, iscoord_)
#endif
// For properties that are stored in the CSS backend but are not
// computed. An includer may define this in addition to CSS_PROP, but
// otherwise we treat it as the same.
#ifndef CSS_PROP_BACKENDONLY
#define CSS_PROP_BACKENDONLY(name_, id_, method_, datastruct_, member_, type_, iscoord_) CSS_PROP(name_, id_, method_, datastruct_, member_, type_, iscoord_)
#define DEFINED_CSS_PROP_BACKENDONLY
#endif
#else /* !defined(CSS_PROP) */
// An includer who does not define CSS_PROP can define any or all of the
// per-struct macros that are equivalent to it, and the rest will be
// ignored.
#ifndef CSS_PROP_FONT
#define CSS_PROP_FONT(name_, id_, method_, datastruct_, member_, type_, iscoord_) /* nothing */
#define DEFINED_CSS_PROP_FONT
#endif
#ifndef CSS_PROP_COLOR
#define CSS_PROP_COLOR(name_, id_, method_, datastruct_, member_, type_, iscoord_) /* nothing */
#define DEFINED_CSS_PROP_COLOR
#endif
#ifndef CSS_PROP_BACKGROUND
#define CSS_PROP_BACKGROUND(name_, id_, method_, datastruct_, member_, type_, iscoord_) /* nothing */
#define DEFINED_CSS_PROP_BACKGROUND
#endif
#ifndef CSS_PROP_LIST
#define CSS_PROP_LIST(name_, id_, method_, datastruct_, member_, type_, iscoord_) /* nothing */
#define DEFINED_CSS_PROP_LIST
#endif
#ifndef CSS_PROP_POSITION
#define CSS_PROP_POSITION(name_, id_, method_, datastruct_, member_, type_, iscoord_) /* nothing */
#define DEFINED_CSS_PROP_POSITION
#endif
#ifndef CSS_PROP_TEXT
#define CSS_PROP_TEXT(name_, id_, method_, datastruct_, member_, type_, iscoord_) /* nothing */
#define DEFINED_CSS_PROP_TEXT
#endif
#ifndef CSS_PROP_TEXTRESET
#define CSS_PROP_TEXTRESET(name_, id_, method_, datastruct_, member_, type_, iscoord_) /* nothing */
#define DEFINED_CSS_PROP_TEXTRESET
#endif
#ifndef CSS_PROP_DISPLAY
#define CSS_PROP_DISPLAY(name_, id_, method_, datastruct_, member_, type_, iscoord_) /* nothing */
#define DEFINED_CSS_PROP_DISPLAY
#endif
#ifndef CSS_PROP_VISIBILITY
#define CSS_PROP_VISIBILITY(name_, id_, method_, datastruct_, member_, type_, iscoord_) /* nothing */
#define DEFINED_CSS_PROP_VISIBILITY
#endif
#ifndef CSS_PROP_CONTENT
#define CSS_PROP_CONTENT(name_, id_, method_, datastruct_, member_, type_, iscoord_) /* nothing */
#define DEFINED_CSS_PROP_CONTENT
#endif
#ifndef CSS_PROP_QUOTES
#define CSS_PROP_QUOTES(name_, id_, method_, datastruct_, member_, type_, iscoord_) /* nothing */
#define DEFINED_CSS_PROP_QUOTES
#endif
#ifndef CSS_PROP_USERINTERFACE
#define CSS_PROP_USERINTERFACE(name_, id_, method_, datastruct_, member_, type_, iscoord_) /* nothing */
#define DEFINED_CSS_PROP_USERINTERFACE
#endif
#ifndef CSS_PROP_UIRESET
#define CSS_PROP_UIRESET(name_, id_, method_, datastruct_, member_, type_, iscoord_) /* nothing */
#define DEFINED_CSS_PROP_UIRESET
#endif
#ifndef CSS_PROP_TABLE
#define CSS_PROP_TABLE(name_, id_, method_, datastruct_, member_, type_, iscoord_) /* nothing */
#define DEFINED_CSS_PROP_TABLE
#endif
#ifndef CSS_PROP_TABLEBORDER
#define CSS_PROP_TABLEBORDER(name_, id_, method_, datastruct_, member_, type_, iscoord_) /* nothing */
#define DEFINED_CSS_PROP_TABLEBORDER
#endif
#ifndef CSS_PROP_MARGIN
#define CSS_PROP_MARGIN(name_, id_, method_, datastruct_, member_, type_, iscoord_) /* nothing */
#define DEFINED_CSS_PROP_MARGIN
#endif
#ifndef CSS_PROP_PADDING
#define CSS_PROP_PADDING(name_, id_, method_, datastruct_, member_, type_, iscoord_) /* nothing */
#define DEFINED_CSS_PROP_PADDING
#endif
#ifndef CSS_PROP_BORDER
#define CSS_PROP_BORDER(name_, id_, method_, datastruct_, member_, type_, iscoord_) /* nothing */
#define DEFINED_CSS_PROP_BORDER
#endif
#ifndef CSS_PROP_OUTLINE
#define CSS_PROP_OUTLINE(name_, id_, method_, datastruct_, member_, type_, iscoord_) /* nothing */
#define DEFINED_CSS_PROP_OUTLINE
#endif
#ifndef CSS_PROP_XUL
#define CSS_PROP_XUL(name_, id_, method_, datastruct_, member_, type_, iscoord_) /* nothing */
#define DEFINED_CSS_PROP_XUL
#endif
#ifdef MOZ_SVG
#ifndef CSS_PROP_SVG
#define CSS_PROP_SVG(name_, id_, method_, datastruct_, member_, type_, iscoord_) /* nothing */
#define DEFINED_CSS_PROP_SVG
#endif
#ifndef CSS_PROP_SVGRESET
#define CSS_PROP_SVGRESET(name_, id_, method_, datastruct_, member_, type_, iscoord_) /* nothing */
#define DEFINED_CSS_PROP_SVGRESET
#endif
#endif /* defined(MOZ_SVG) */
#ifndef CSS_PROP_BACKENDONLY
#define CSS_PROP_BACKENDONLY(name_, id_, method_, datastruct_, member_, type_, iscoord_) /* nothing */
#define DEFINED_CSS_PROP_BACKENDONLY
#endif
#endif /* !defined(CSS_PROP) */
/*************************************************************************/
// For notes XXX bug 3935 below, the names being parsed do not correspond
// to the constants used internally. It would be nice to bring the
// constants into line sometime.
// The parser will refuse to parse properties marked with -x-.
// Those marked XXX bug 48973 are CSS2 properties that we support
// differently from the spec for UI requirements. If we ever
// support them correctly the old constants need to be renamed and
// new ones should be entered.
CSS_PROP_DISPLAY(-moz-appearance, appearance, MozAppearance, Display, mAppearance, eCSSType_Value, PR_FALSE)
CSS_PROP_SHORTHAND(-moz-border-radius, _moz_border_radius, MozBorderRadius)
CSS_PROP_BORDER(-moz-border-radius-topleft, _moz_border_radius_topLeft, MozBorderRadiusTopleft, Margin, mBorderRadius.mTop, eCSSType_Value, PR_TRUE)
CSS_PROP_BORDER(-moz-border-radius-topright, _moz_border_radius_topRight, MozBorderRadiusTopright, Margin, mBorderRadius.mRight, eCSSType_Value, PR_TRUE)
CSS_PROP_BORDER(-moz-border-radius-bottomleft, _moz_border_radius_bottomLeft, MozBorderRadiusBottomleft, Margin, mBorderRadius.mLeft, eCSSType_Value, PR_TRUE)
CSS_PROP_BORDER(-moz-border-radius-bottomright, _moz_border_radius_bottomRight, MozBorderRadiusBottomright, Margin, mBorderRadius.mBottom, eCSSType_Value, PR_TRUE)
CSS_PROP_SHORTHAND(-moz-outline-radius, _moz_outline_radius, MozOutlineRadius)
CSS_PROP_OUTLINE(-moz-outline-radius-topleft, _moz_outline_radius_topLeft, MozOutlineRadiusTopleft, Margin, mOutlineRadius.mTop, eCSSType_Value, PR_TRUE)
CSS_PROP_OUTLINE(-moz-outline-radius-topright, _moz_outline_radius_topRight, MozOutlineRadiusTopright, Margin, mOutlineRadius.mRight, eCSSType_Value, PR_TRUE)
CSS_PROP_OUTLINE(-moz-outline-radius-bottomleft, _moz_outline_radius_bottomLeft, MozOutlineRadiusBottomleft, Margin, mOutlineRadius.mLeft, eCSSType_Value, PR_TRUE)
CSS_PROP_OUTLINE(-moz-outline-radius-bottomright, _moz_outline_radius_bottomRight, MozOutlineRadiusBottomright, Margin, mOutlineRadius.mBottom, eCSSType_Value, PR_TRUE)
CSS_PROP_BACKENDONLY(azimuth, azimuth, Azimuth, Aural, mAzimuth, eCSSType_Value, PR_FALSE)
CSS_PROP_SHORTHAND(background, background, Background)
CSS_PROP_BACKGROUND(background-attachment, background_attachment, BackgroundAttachment, Color, mBackAttachment, eCSSType_Value, PR_FALSE)
CSS_PROP_BACKGROUND(-moz-background-clip, _moz_background_clip, MozBackgroundClip, Color, mBackClip, eCSSType_Value, PR_FALSE)
CSS_PROP_BACKGROUND(background-color, background_color, BackgroundColor, Color, mBackColor, eCSSType_Value, PR_FALSE)
CSS_PROP_BACKGROUND(background-image, background_image, BackgroundImage, Color, mBackImage, eCSSType_Value, PR_FALSE)
CSS_PROP_BACKGROUND(-moz-background-inline-policy, _moz_background_inline_policy, MozBackgroundInlinePolicy, Color, mBackInlinePolicy, eCSSType_Value, PR_FALSE)
CSS_PROP_BACKGROUND(-moz-background-origin, _moz_background_origin, MozBackgroundOrigin, Color, mBackOrigin, eCSSType_Value, PR_FALSE)
CSS_PROP_SHORTHAND(background-position, background_position, BackgroundPosition)
CSS_PROP_BACKGROUND(background-repeat, background_repeat, BackgroundRepeat, Color, mBackRepeat, eCSSType_Value, PR_FALSE)
#ifndef CSS_PROP_LIST_EXCLUDE_INTERNAL
CSS_PROP_BACKGROUND(-x-background-x-position, background_x_position, BackgroundXPosition, Color, mBackPositionX, eCSSType_Value, PR_FALSE) // XXX bug 3935
CSS_PROP_BACKGROUND(-x-background-y-position, background_y_position, BackgroundYPosition, Color, mBackPositionY, eCSSType_Value, PR_FALSE) // XXX bug 3935
#endif /* !defined (CSS_PROP_LIST_EXCLUDE_INTERNAL) */
CSS_PROP_DISPLAY(-moz-binding, binding, MozBinding, Display, mBinding, eCSSType_Value, PR_FALSE) // XXX bug 3935
CSS_PROP_SHORTHAND(border, border, Border)
CSS_PROP_SHORTHAND(border-bottom, border_bottom, BorderBottom)
CSS_PROP_BORDER(border-bottom-color, border_bottom_color, BorderBottomColor, Margin, mBorderColor.mBottom, eCSSType_Value, PR_FALSE)
CSS_PROP_BORDER(-moz-border-bottom-colors, border_bottom_colors, MozBorderBottomColors, Margin, mBorderColors.mBottom, eCSSType_ValueList, PR_FALSE)
CSS_PROP_BORDER(border-bottom-style, border_bottom_style, BorderBottomStyle, Margin, mBorderStyle.mBottom, eCSSType_Value, PR_FALSE) // on/off will need reflow
CSS_PROP_BORDER(border-bottom-width, border_bottom_width, BorderBottomWidth, Margin, mBorderWidth.mBottom, eCSSType_Value, PR_FALSE)
CSS_PROP_TABLEBORDER(border-collapse, border_collapse, BorderCollapse, Table, mBorderCollapse, eCSSType_Value, PR_FALSE)
CSS_PROP_SHORTHAND(border-color, border_color, BorderColor)
CSS_PROP_SHORTHAND(border-left, border_left, BorderLeft)
CSS_PROP_BORDER(border-left-color, border_left_color, BorderLeftColor, Margin, mBorderColor.mLeft, eCSSType_Value, PR_FALSE)
CSS_PROP_BORDER(-moz-border-left-colors, border_left_colors, MozBorderLeftColors, Margin, mBorderColors.mLeft, eCSSType_ValueList, PR_FALSE)
CSS_PROP_BORDER(border-left-style, border_left_style, BorderLeftStyle, Margin, mBorderStyle.mLeft, eCSSType_Value, PR_FALSE) // on/off will need reflow
CSS_PROP_BORDER(border-left-width, border_left_width, BorderLeftWidth, Margin, mBorderWidth.mLeft, eCSSType_Value, PR_FALSE)
CSS_PROP_SHORTHAND(border-right, border_right, BorderRight)
CSS_PROP_BORDER(border-right-color, border_right_color, BorderRightColor, Margin, mBorderColor.mRight, eCSSType_Value, PR_FALSE)
CSS_PROP_BORDER(-moz-border-right-colors, border_right_colors, MozBorderRightColors, Margin, mBorderColors.mRight, eCSSType_ValueList, PR_FALSE)
CSS_PROP_BORDER(border-right-style, border_right_style, BorderRightStyle, Margin, mBorderStyle.mRight, eCSSType_Value, PR_FALSE) // on/off will need reflow
CSS_PROP_BORDER(border-right-width, border_right_width, BorderRightWidth, Margin, mBorderWidth.mRight, eCSSType_Value, PR_FALSE)
CSS_PROP_SHORTHAND(border-spacing, border_spacing, BorderSpacing)
CSS_PROP_SHORTHAND(border-style, border_style, BorderStyle) // on/off will need reflow
CSS_PROP_SHORTHAND(border-top, border_top, BorderTop)
CSS_PROP_BORDER(border-top-color, border_top_color, BorderTopColor, Margin, mBorderColor.mTop, eCSSType_Value, PR_FALSE)
CSS_PROP_BORDER(-moz-border-top-colors, border_top_colors, MozBorderTopColors, Margin, mBorderColors.mTop, eCSSType_ValueList, PR_FALSE)
CSS_PROP_BORDER(border-top-style, border_top_style, BorderTopStyle, Margin, mBorderStyle.mTop, eCSSType_Value, PR_FALSE) // on/off will need reflow
CSS_PROP_BORDER(border-top-width, border_top_width, BorderTopWidth, Margin, mBorderWidth.mTop, eCSSType_Value, PR_FALSE)
CSS_PROP_SHORTHAND(border-width, border_width, BorderWidth)
#ifndef CSS_PROP_LIST_EXCLUDE_INTERNAL
CSS_PROP_TABLEBORDER(-x-border-x-spacing, border_x_spacing, BorderXSpacing, Table, mBorderSpacingX, eCSSType_Value, PR_FALSE) // XXX bug 3935
CSS_PROP_TABLEBORDER(-x-border-y-spacing, border_y_spacing, BorderYSpacing, Table, mBorderSpacingY, eCSSType_Value, PR_FALSE) // XXX bug 3935
#endif /* !defined (CSS_PROP_LIST_EXCLUDE_INTERNAL) */
CSS_PROP_POSITION(bottom, bottom, Bottom, Position, mOffset.mBottom, eCSSType_Value, PR_TRUE)
CSS_PROP_POSITION(-moz-box-sizing, box_sizing, MozBoxSizing, Position, mBoxSizing, eCSSType_Value, PR_FALSE) // XXX bug 3935
CSS_PROP_TABLEBORDER(caption-side, caption_side, CaptionSide, Table, mCaptionSide, eCSSType_Value, PR_FALSE)
CSS_PROP_DISPLAY(clear, clear, Clear, Display, mClear, eCSSType_Value, PR_FALSE)
CSS_PROP_DISPLAY(clip, clip, Clip, Display, mClip, eCSSType_Rect, PR_FALSE)
CSS_PROP_COLOR(color, color, Color, Color, mColor, eCSSType_Value, PR_FALSE)
CSS_PROP_CONTENT(content, content, Content, Content, mContent, eCSSType_ValueList, PR_FALSE)
CSS_PROP_NOTIMPLEMENTED(counter-increment, counter_increment, CounterIncrement)
CSS_PROP_NOTIMPLEMENTED(counter-reset, counter_reset, CounterReset)
CSS_PROP_CONTENT(-moz-counter-increment, _moz_counter_increment, MozCounterIncrement, Content, mCounterIncrement, eCSSType_CounterData, PR_FALSE) // XXX bug 137285
CSS_PROP_CONTENT(-moz-counter-reset, _moz_counter_reset, MozCounterReset, Content, mCounterReset, eCSSType_CounterData, PR_FALSE) // XXX bug 137285
CSS_PROP_SHORTHAND(cue, cue, Cue)
CSS_PROP_BACKENDONLY(cue-after, cue_after, CueAfter, Aural, mCueAfter, eCSSType_Value, PR_FALSE)
CSS_PROP_BACKENDONLY(cue-before, cue_before, CueBefore, Aural, mCueBefore, eCSSType_Value, PR_FALSE)
CSS_PROP_USERINTERFACE(cursor, cursor, Cursor, UserInterface, mCursor, eCSSType_ValueList, PR_FALSE)
CSS_PROP_VISIBILITY(direction, direction, Direction, Display, mDirection, eCSSType_Value, PR_FALSE)
CSS_PROP_DISPLAY(display, display, Display, Display, mDisplay, eCSSType_Value, PR_FALSE)
CSS_PROP_BACKENDONLY(elevation, elevation, Elevation, Aural, mElevation, eCSSType_Value, PR_FALSE)
CSS_PROP_TABLEBORDER(empty-cells, empty_cells, EmptyCells, Table, mEmptyCells, eCSSType_Value, PR_FALSE)
CSS_PROP_DISPLAY(float, float, CssFloat, Display, mFloat, eCSSType_Value, PR_FALSE)
CSS_PROP_BORDER(-moz-float-edge, float_edge, MozFloatEdge, Margin, mFloatEdge, eCSSType_Value, PR_FALSE) // XXX bug 3935
CSS_PROP_SHORTHAND(font, font, Font)
CSS_PROP_FONT(font-family, font_family, FontFamily, Font, mFamily, eCSSType_Value, PR_FALSE)
CSS_PROP_FONT(font-size, font_size, FontSize, Font, mSize, eCSSType_Value, PR_FALSE)
CSS_PROP_FONT(font-size-adjust, font_size_adjust, FontSizeAdjust, Font, mSizeAdjust, eCSSType_Value, PR_FALSE)
CSS_PROP_BACKENDONLY(font-stretch, font_stretch, FontStretch, Font, mStretch, eCSSType_Value, PR_FALSE)
CSS_PROP_FONT(font-style, font_style, FontStyle, Font, mStyle, eCSSType_Value, PR_FALSE)
CSS_PROP_FONT(font-variant, font_variant, FontVariant, Font, mVariant, eCSSType_Value, PR_FALSE)
CSS_PROP_FONT(font-weight, font_weight, FontWeight, Font, mWeight, eCSSType_Value, PR_FALSE)
CSS_PROP_UIRESET(-moz-force-broken-image-icon, force_broken_image_icon, MozForceBrokenImageIcon, UserInterface, mForceBrokenImageIcon, eCSSType_Value, PR_FALSE) // bug 58646
CSS_PROP_POSITION(height, height, Height, Position, mHeight, eCSSType_Value, PR_TRUE)
CSS_PROP_LIST(-moz-image-region, image_region, MozImageRegion, List, mImageRegion, eCSSType_Rect, PR_TRUE)
CSS_PROP_UIRESET(-moz-key-equivalent, key_equivalent, MozKeyEquivalent, UserInterface, mKeyEquivalent, eCSSType_ValueList, PR_FALSE) // This will need some other notification, but what? // XXX bug 3935
CSS_PROP_POSITION(left, left, Left, Position, mOffset.mLeft, eCSSType_Value, PR_TRUE)
CSS_PROP_TEXT(letter-spacing, letter_spacing, LetterSpacing, Text, mLetterSpacing, eCSSType_Value, PR_TRUE)
CSS_PROP_TEXT(line-height, line_height, LineHeight, Text, mLineHeight, eCSSType_Value, PR_TRUE)
CSS_PROP_SHORTHAND(list-style, list_style, ListStyle)
CSS_PROP_LIST(list-style-image, list_style_image, ListStyleImage, List, mImage, eCSSType_Value, PR_FALSE)
CSS_PROP_LIST(list-style-position, list_style_position, ListStylePosition, List, mPosition, eCSSType_Value, PR_FALSE)
CSS_PROP_LIST(list-style-type, list_style_type, ListStyleType, List, mType, eCSSType_Value, PR_FALSE)
CSS_PROP_SHORTHAND(margin, margin, Margin)
CSS_PROP_MARGIN(margin-bottom, margin_bottom, MarginBottom, Margin, mMargin.mBottom, eCSSType_Value, PR_TRUE)
CSS_PROP_SHORTHAND(-moz-margin-end, margin_end, MozMarginEnd)
#ifndef CSS_PROP_LIST_EXCLUDE_INTERNAL
CSS_PROP_MARGIN(margin-end-value, margin_end_value, X, Margin, mMarginEnd, eCSSType_Value, PR_TRUE)
#endif
CSS_PROP_SHORTHAND(margin-left, margin_left, MarginLeft)
#ifndef CSS_PROP_LIST_EXCLUDE_INTERNAL
CSS_PROP_MARGIN(margin-left-value, margin_left_value, X, Margin, mMargin.mLeft, eCSSType_Value, PR_TRUE)
CSS_PROP_MARGIN(margin-left-ltr-source, margin_left_ltr_source, X, Margin, mMarginLeftLTRSource, eCSSType_Value, PR_TRUE)
CSS_PROP_MARGIN(margin-left-rtl-source, margin_left_rtl_source, X, Margin, mMarginLeftRTLSource, eCSSType_Value, PR_TRUE)
#endif
CSS_PROP_SHORTHAND(margin-right, margin_right, MarginRight)
#ifndef CSS_PROP_LIST_EXCLUDE_INTERNAL
CSS_PROP_MARGIN(margin-right-value, margin_right_value, X, Margin, mMargin.mRight, eCSSType_Value, PR_TRUE)
CSS_PROP_MARGIN(margin-right-ltr-source, margin_right_ltr_source, X, Margin, mMarginRightLTRSource, eCSSType_Value, PR_TRUE)
CSS_PROP_MARGIN(margin-right-rtl-source, margin_right_rtl_source, X, Margin, mMarginRightRTLSource, eCSSType_Value, PR_TRUE)
#endif
CSS_PROP_SHORTHAND(-moz-margin-start, margin_start, MozMarginStart)
#ifndef CSS_PROP_LIST_EXCLUDE_INTERNAL
CSS_PROP_MARGIN(margin-start-value, margin_start_value, X, Margin, mMarginStart, eCSSType_Value, PR_TRUE)
#endif
CSS_PROP_MARGIN(margin-top, margin_top, MarginTop, Margin, mMargin.mTop, eCSSType_Value, PR_TRUE)
CSS_PROP_CONTENT(marker-offset, marker_offset, MarkerOffset, Content, mMarkerOffset, eCSSType_Value, PR_TRUE)
CSS_PROP_BACKENDONLY(marks, marks, Marks, Page, mMarks, eCSSType_Value, PR_FALSE)
CSS_PROP_POSITION(max-height, max_height, MaxHeight, Position, mMaxHeight, eCSSType_Value, PR_TRUE)
CSS_PROP_POSITION(max-width, max_width, MaxWidth, Position, mMaxWidth, eCSSType_Value, PR_TRUE)
CSS_PROP_POSITION(min-height, min_height, MinHeight, Position, mMinHeight, eCSSType_Value, PR_TRUE)
CSS_PROP_POSITION(min-width, min_width, MinWidth, Position, mMinWidth, eCSSType_Value, PR_TRUE)
CSS_PROP_DISPLAY(-moz-opacity, opacity, MozOpacity, Display, mOpacity, eCSSType_Value, PR_FALSE) // XXX bug 3935
CSS_PROP_BACKENDONLY(orphans, orphans, Orphans, Breaks, mOrphans, eCSSType_Value, PR_FALSE)
CSS_PROP_NOTIMPLEMENTED(outline, outline, Outline)
CSS_PROP_NOTIMPLEMENTED(outline-color, outline_color, OutlineColor)
CSS_PROP_NOTIMPLEMENTED(outline-style, outline_style, OutlineStyle)
CSS_PROP_NOTIMPLEMENTED(outline-width, outline_width, OutlineWidth)
CSS_PROP_SHORTHAND(-moz-outline, _moz_outline, MozOutline) // XXX This is temporary fix for nsbeta3+ Bug 48973, turning outline into -moz-outline XXX bug 48973
CSS_PROP_OUTLINE(-moz-outline-color, _moz_outline_color, MozOutlineColor, Margin, mOutlineColor, eCSSType_Value, PR_FALSE) // XXX bug 48973
CSS_PROP_OUTLINE(-moz-outline-style, _moz_outline_style, MozOutlineStyle, Margin, mOutlineStyle, eCSSType_Value, PR_FALSE) // XXX bug 48973
CSS_PROP_OUTLINE(-moz-outline-width, _moz_outline_width, MozOutlineWidth, Margin, mOutlineWidth, eCSSType_Value, PR_TRUE) // XXX bug 48973
CSS_PROP_DISPLAY(overflow, overflow, Overflow, Display, mOverflow, eCSSType_Value, PR_FALSE)
CSS_PROP_SHORTHAND(padding, padding, Padding)
CSS_PROP_PADDING(padding-bottom, padding_bottom, PaddingBottom, Margin, mPadding.mBottom, eCSSType_Value, PR_TRUE)
CSS_PROP_SHORTHAND(-moz-padding-end, padding_end, MozPaddingEnd)
#ifndef CSS_PROP_LIST_EXCLUDE_INTERNAL
CSS_PROP_PADDING(padding-end-value, padding_end_value, X, Margin, mPaddingEnd, eCSSType_Value, PR_TRUE)
#endif
CSS_PROP_SHORTHAND(padding-left, padding_left, PaddingLeft)
#ifndef CSS_PROP_LIST_EXCLUDE_INTERNAL
CSS_PROP_PADDING(padding-left-value, padding_left_value, X, Margin, mPadding.mLeft, eCSSType_Value, PR_TRUE)
CSS_PROP_PADDING(padding-left-ltr-source, padding_left_ltr_source, X, Margin, mPaddingLeftLTRSource, eCSSType_Value, PR_TRUE)
CSS_PROP_PADDING(padding-left-rtl-source, padding_left_rtl_source, X, Margin, mPaddingLeftRTLSource, eCSSType_Value, PR_TRUE)
#endif
CSS_PROP_SHORTHAND(padding-right, padding_right, PaddingRight)
#ifndef CSS_PROP_LIST_EXCLUDE_INTERNAL
CSS_PROP_PADDING(padding-right-value, padding_right_value, X, Margin, mPadding.mRight, eCSSType_Value, PR_TRUE)
CSS_PROP_PADDING(padding-right-ltr-source, padding_right_ltr_source, X, Margin, mPaddingRightLTRSource, eCSSType_Value, PR_TRUE)
CSS_PROP_PADDING(padding-right-rtl-source, padding_right_rtl_source, X, Margin, mPaddingRightRTLSource, eCSSType_Value, PR_TRUE)
#endif
CSS_PROP_SHORTHAND(-moz-padding-start, padding_start, MozPaddingStart)
#ifndef CSS_PROP_LIST_EXCLUDE_INTERNAL
CSS_PROP_PADDING(padding-start-value, padding_start_value, X, Margin, mPaddingStart, eCSSType_Value, PR_TRUE)
#endif
CSS_PROP_PADDING(padding-top, padding_top, PaddingTop, Margin, mPadding.mTop, eCSSType_Value, PR_TRUE)
CSS_PROP_BACKENDONLY(page, page, Page, Breaks, mPage, eCSSType_Value, PR_FALSE)
CSS_PROP_DISPLAY(page-break-after, page_break_after, PageBreakAfter, Display, mBreakAfter, eCSSType_Value, PR_FALSE) // temp fix for bug 24000
CSS_PROP_DISPLAY(page-break-before, page_break_before, PageBreakBefore, Display, mBreakBefore, eCSSType_Value, PR_FALSE) // temp fix for bug 24000
CSS_PROP_BACKENDONLY(page-break-inside, page_break_inside, PageBreakInside, Breaks, mPageBreakInside, eCSSType_Value, PR_FALSE)
CSS_PROP_SHORTHAND(pause, pause, Pause)
CSS_PROP_BACKENDONLY(pause-after, pause_after, PauseAfter, Aural, mPauseAfter, eCSSType_Value, PR_FALSE)
CSS_PROP_BACKENDONLY(pause-before, pause_before, PauseBefore, Aural, mPauseBefore, eCSSType_Value, PR_FALSE)
CSS_PROP_BACKENDONLY(pitch, pitch, Pitch, Aural, mPitch, eCSSType_Value, PR_FALSE)
CSS_PROP_BACKENDONLY(pitch-range, pitch_range, PitchRange, Aural, mPitchRange, eCSSType_Value, PR_FALSE)
CSS_PROP_SHORTHAND(play-during, play_during, PlayDuring)
#ifndef CSS_PROP_LIST_EXCLUDE_INTERNAL
CSS_PROP_BACKENDONLY(-x-play-during-flags, play_during_flags, PlayDuringFlags, Aural, mPlayDuringFlags, eCSSType_Value, PR_FALSE) // XXX why is this here?
CSS_PROP_BACKENDONLY(-x-play-during-uri, play_during_uri, PlayDuringURI, Aural, mPlayDuring, eCSSType_Value, PR_FALSE) // XXX why is this here?
#endif /* !defined (CSS_PROP_LIST_EXCLUDE_INTERNAL) */
CSS_PROP_DISPLAY(position, position, Position, Display, mPosition, eCSSType_Value, PR_FALSE)
CSS_PROP_QUOTES(quotes, quotes, Quotes, Content, mQuotes, eCSSType_Quotes, PR_FALSE)
CSS_PROP_UIRESET(-moz-resizer, resizer, MozResizer, UserInterface, mResizer, eCSSType_Value, PR_FALSE) // XXX bug 3935
CSS_PROP_BACKENDONLY(richness, richness, Richness, Aural, mRichness, eCSSType_Value, PR_FALSE)
CSS_PROP_POSITION(right, right, Right, Position, mOffset.mRight, eCSSType_Value, PR_TRUE)
CSS_PROP_SHORTHAND(size, size, Size)
#ifndef CSS_PROP_LIST_EXCLUDE_INTERNAL
CSS_PROP_BACKENDONLY(-x-size-height, size_height, SizeHeight, Page, mSizeHeight, eCSSType_Value, PR_FALSE) // XXX bug 3935
CSS_PROP_BACKENDONLY(-x-size-width, size_width, SizeWidth, Page, mSizeWidth, eCSSType_Value, PR_FALSE) // XXX bug 3935
#endif /* !defined (CSS_PROP_LIST_EXCLUDE_INTERNAL) */
CSS_PROP_BACKENDONLY(speak, speak, Speak, Aural, mSpeak, eCSSType_Value, PR_FALSE)
CSS_PROP_BACKENDONLY(speak-header, speak_header, SpeakHeader, Aural, mSpeakHeader, eCSSType_Value, PR_FALSE)
CSS_PROP_BACKENDONLY(speak-numeral, speak_numeral, SpeakNumeral, Aural, mSpeakNumeral, eCSSType_Value, PR_FALSE)
CSS_PROP_BACKENDONLY(speak-punctuation, speak_punctuation, SpeakPunctuation, Aural, mSpeakPunctuation, eCSSType_Value, PR_FALSE)
CSS_PROP_BACKENDONLY(speech-rate, speech_rate, SpeechRate, Aural, mSpeechRate, eCSSType_Value, PR_FALSE)
CSS_PROP_BACKENDONLY(stress, stress, Stress, Aural, mStress, eCSSType_Value, PR_FALSE)
CSS_PROP_TABLE(table-layout, table_layout, TableLayout, Table, mLayout, eCSSType_Value, PR_FALSE)
CSS_PROP_TEXT(text-align, text_align, TextAlign, Text, mTextAlign, eCSSType_Value, PR_FALSE)
CSS_PROP_TEXTRESET(text-decoration, text_decoration, TextDecoration, Text, mDecoration, eCSSType_Value, PR_FALSE)
CSS_PROP_TEXT(text-indent, text_indent, TextIndent, Text, mTextIndent, eCSSType_Value, PR_TRUE)
CSS_PROP_BACKENDONLY(text-shadow, text_shadow, TextShadow, Text, mTextShadow, eCSSType_Shadow, PR_FALSE)
CSS_PROP_TEXT(text-transform, text_transform, TextTransform, Text, mTextTransform, eCSSType_Value, PR_FALSE)
CSS_PROP_POSITION(top, top, Top, Position, mOffset.mTop, eCSSType_Value, PR_TRUE)
CSS_PROP_TEXTRESET(unicode-bidi, unicode_bidi, UnicodeBidi, Text, mUnicodeBidi, eCSSType_Value, PR_FALSE)
CSS_PROP_USERINTERFACE(-moz-user-focus, user_focus, MozUserFocus, UserInterface, mUserFocus, eCSSType_Value, PR_FALSE) // XXX bug 3935
CSS_PROP_USERINTERFACE(-moz-user-input, user_input, MozUserInput, UserInterface, mUserInput, eCSSType_Value, PR_FALSE) // XXX ??? // XXX bug 3935
CSS_PROP_USERINTERFACE(-moz-user-modify, user_modify, MozUserModify, UserInterface, mUserModify, eCSSType_Value, PR_FALSE) // XXX bug 3935
CSS_PROP_UIRESET(-moz-user-select, user_select, MozUserSelect, UserInterface, mUserSelect, eCSSType_Value, PR_FALSE) // XXX bug 3935
CSS_PROP_TEXTRESET(vertical-align, vertical_align, VerticalAlign, Text, mVerticalAlign, eCSSType_Value, PR_TRUE)
CSS_PROP_VISIBILITY(visibility, visibility, Visibility, Display, mVisibility, eCSSType_Value, PR_FALSE) // reflow for collapse
CSS_PROP_BACKENDONLY(voice-family, voice_family, VoiceFamily, Aural, mVoiceFamily, eCSSType_Value, PR_FALSE)
CSS_PROP_BACKENDONLY(volume, volume, Volume, Aural, mVolume, eCSSType_Value, PR_FALSE)
CSS_PROP_TEXT(white-space, white_space, WhiteSpace, Text, mWhiteSpace, eCSSType_Value, PR_FALSE)
CSS_PROP_BACKENDONLY(widows, widows, Widows, Breaks, mWidows, eCSSType_Value, PR_FALSE)
CSS_PROP_POSITION(width, width, Width, Position, mWidth, eCSSType_Value, PR_TRUE)
CSS_PROP_TEXT(word-spacing, word_spacing, WordSpacing, Text, mWordSpacing, eCSSType_Value, PR_TRUE)
CSS_PROP_POSITION(z-index, z_index, ZIndex, Position, mZIndex, eCSSType_Value, PR_FALSE)
CSS_PROP_XUL(-moz-box-align, box_align, MozBoxAlign, XUL, mBoxAlign, eCSSType_Value, PR_FALSE) // XXX bug 3935
CSS_PROP_XUL(-moz-box-direction, box_direction, MozBoxDirection, XUL, mBoxDirection, eCSSType_Value, PR_FALSE) // XXX bug 3935
CSS_PROP_XUL(-moz-box-flex, box_flex, MozBoxFlex, XUL, mBoxFlex, eCSSType_Value, PR_FALSE) // XXX bug 3935
CSS_PROP_XUL(-moz-box-orient, box_orient, MozBoxOrient, XUL, mBoxOrient, eCSSType_Value, PR_FALSE) // XXX bug 3935
CSS_PROP_XUL(-moz-box-pack, box_pack, MozBoxPack, XUL, mBoxPack, eCSSType_Value, PR_FALSE) // XXX bug 3935
CSS_PROP_XUL(-moz-box-ordinal-group, box_ordinal_group, MozBoxOrdinalGroup, XUL, mBoxOrdinal, eCSSType_Value, PR_FALSE)
#ifdef MOZ_SVG
// XXX treat SVG's CSS Properties as internal for now.
// Do we want to create an nsIDOMSVGCSS2Properties interface?
#ifndef CSS_PROP_LIST_EXCLUDE_INTERNAL
CSS_PROP_SVGRESET(dominant-baseline, dominant_baseline, DominantBaseline, SVG, mDominantBaseline, eCSSType_Value, PR_FALSE)
CSS_PROP_SVG(fill, fill, Fill, SVG, mFill, eCSSType_Value, PR_FALSE)
CSS_PROP_SVG(fill-opacity, fill_opacity, FillOpacity, SVG, mFillOpacity, eCSSType_Value, PR_FALSE)
CSS_PROP_SVG(fill-rule, fill_rule, FillRule, SVG, mFillRule, eCSSType_Value, PR_FALSE)
CSS_PROP_SVG(pointer-events, pointer_events, PointerEvents, SVG, mPointerEvents, eCSSType_Value, PR_FALSE)
CSS_PROP_SVG(shape-rendering, shape_rendering, ShapeRendering, SVG, mShapeRendering, eCSSType_Value, PR_FALSE)
CSS_PROP_SVG(stroke, stroke, Stroke, SVG, mStroke, eCSSType_Value, PR_FALSE)
CSS_PROP_SVG(stroke-dasharray, stroke_dasharray, StrokeDasharray, SVG, mStrokeDasharray, eCSSType_Value, PR_FALSE)
CSS_PROP_SVG(stroke-dashoffset, stroke_dashoffset, StrokeDashoffset, SVG, mStrokeDashoffset, eCSSType_Value, PR_FALSE)
CSS_PROP_SVG(stroke-linecap, stroke_linecap, StrokeLinecap, SVG, mStrokeLinecap, eCSSType_Value, PR_FALSE)
CSS_PROP_SVG(stroke-linejoin, stroke_linejoin, StrokeLinejoin, SVG, mStrokeLinejoin, eCSSType_Value, PR_FALSE)
CSS_PROP_SVG(stroke-miterlimit, stroke_miterlimit, StrokeMiterlimit, SVG, mStrokeMiterlimit, eCSSType_Value, PR_FALSE)
CSS_PROP_SVG(stroke-opacity, stroke_opacity, StrokeOpacity, SVG, mStrokeOpacity, eCSSType_Value, PR_FALSE)
CSS_PROP_SVG(stroke-width, stroke_width, StrokeWidth, SVG, mStrokeWidth, eCSSType_Value, PR_FALSE)
CSS_PROP_SVG(text-anchor, text_anchor, TextAnchor, SVG, mTextAnchor, eCSSType_Value, PR_FALSE)
CSS_PROP_SVG(text-rendering, text_rendering, TextRendering, SVG, mTextRendering, eCSSType_Value, PR_FALSE)
#endif /* !defined (CSS_PROP_LIST_EXCLUDE_INTERNAL) */
#endif
// Callers that want information on the properties that are in
// the style structs but not in the nsCSS* structs should define
// |CSS_PROP_INCLUDE_NOT_CSS|. (Some of these are also in nsRuleData*,
// and a distinction might be needed at some point.)
// The first 3 parameters don't matter, but some compilers don't like
// empty arguments to macros.
#ifdef CSS_PROP_INCLUDE_NOT_CSS
CSS_PROP_VISIBILITY(X, X, X, Display, mLang, eCSSType_Value, PR_FALSE)
CSS_PROP_TABLE(X, X, X, Table, mFrame, eCSSType_Value, PR_FALSE)
CSS_PROP_TABLE(X, X, X, Table, mRules, eCSSType_Value, PR_FALSE)
CSS_PROP_TABLE(X, X, X, Table, mCols, eCSSType_Value, PR_FALSE)
CSS_PROP_TABLE(X, X, X, Table, mSpan, eCSSType_Value, PR_FALSE)
#endif /* defined(CSS_PROP_INCLUDE_NOT_CSS) */
#ifdef USED_CSS_PROP
#undef USED_CSS_PROP
#undef CSS_PROP_FONT
#undef CSS_PROP_COLOR
#undef CSS_PROP_BACKGROUND
#undef CSS_PROP_LIST
#undef CSS_PROP_POSITION
#undef CSS_PROP_TEXT
#undef CSS_PROP_TEXTRESET
#undef CSS_PROP_DISPLAY
#undef CSS_PROP_VISIBILITY
#undef CSS_PROP_CONTENT
#undef CSS_PROP_QUOTES
#undef CSS_PROP_USERINTERFACE
#undef CSS_PROP_UIRESET
#undef CSS_PROP_TABLE
#undef CSS_PROP_TABLEBORDER
#undef CSS_PROP_MARGIN
#undef CSS_PROP_PADDING
#undef CSS_PROP_BORDER
#undef CSS_PROP_OUTLINE
#undef CSS_PROP_XUL
#ifdef MOZ_SVG
#undef CSS_PROP_SVG
#undef CSS_PROP_SVGRESET
#endif
#ifdef DEFINED_CSS_PROP_BACKENDONLY
#undef CSS_PROP_BACKENDONLY
#undef DEFINED_CSS_PROP_BACKENDONLY
#endif
#else /* !defined(USED_CSS_PROP) */
#ifdef DEFINED_CSS_PROP_FONT
#undef CSS_PROP_FONT
#undef DEFINED_CSS_PROP_FONT
#endif
#ifdef DEFINED_CSS_PROP_COLOR
#undef CSS_PROP_COLOR
#undef DEFINED_CSS_PROP_COLOR
#endif
#ifdef DEFINED_CSS_PROP_BACKGROUND
#undef CSS_PROP_BACKGROUND
#undef DEFINED_CSS_PROP_BACKGROUND
#endif
#ifdef DEFINED_CSS_PROP_LIST
#undef CSS_PROP_LIST
#undef DEFINED_CSS_PROP_LIST
#endif
#ifdef DEFINED_CSS_PROP_POSITION
#undef CSS_PROP_POSITION
#undef DEFINED_CSS_PROP_POSITION
#endif
#ifdef DEFINED_CSS_PROP_TEXT
#undef CSS_PROP_TEXT
#undef DEFINED_CSS_PROP_TETEXTRESETT
#endif
#ifdef DEFINED_CSS_PROP_TEXTRESET
#undef CSS_PROP_TEXTRESET
#undef DEFINED_CSS_PROP_TEDISPLAYTRESET
#endif
#ifdef DEFINED_CSS_PROP_DISPLAY
#undef CSS_PROP_DISPLAY
#undef DEFINED_CSS_PROP_DISPLAY
#endif
#ifdef DEFINED_CSS_PROP_VISIBILITY
#undef CSS_PROP_VISIBILITY
#undef DEFINED_CSS_PROP_VISIBILITY
#endif
#ifdef DEFINED_CSS_PROP_CONTENT
#undef CSS_PROP_CONTENT
#undef DEFINED_CSS_PROP_CONTENT
#endif
#ifdef DEFINED_CSS_PROP_QUOTES
#undef CSS_PROP_QUOTES
#undef DEFINED_CSS_PROP_QUOTES
#endif
#ifdef DEFINED_CSS_PROP_USERINTERFACE
#undef CSS_PROP_USERINTERFACE
#undef DEFINED_CSS_PROP_USERINTERFACE
#endif
#ifdef DEFINED_CSS_PROP_UIRESET
#undef CSS_PROP_UIRESET
#undef DEFINED_CSS_PROP_UIRESET
#endif
#ifdef DEFINED_CSS_PROP_TABLE
#undef CSS_PROP_TABLE
#undef DEFINED_CSS_PROP_TABLE
#endif
#ifdef DEFINED_CSS_PROP_TABLEBORDER
#undef CSS_PROP_TABLEBORDER
#undef DEFINED_CSS_PROP_TABLEBORDER
#endif
#ifdef DEFINED_CSS_PROP_MARGIN
#undef CSS_PROP_MARGIN
#undef DEFINED_CSS_PROP_MARGIN
#endif
#ifdef DEFINED_CSS_PROP_PADDING
#undef CSS_PROP_PADDING
#undef DEFINED_CSS_PROP_PADDING
#endif
#ifdef DEFINED_CSS_PROP_BORDER
#undef CSS_PROP_BORDER
#undef DEFINED_CSS_PROP_BORDER
#endif
#ifdef DEFINED_CSS_PROP_OUTLINE
#undef CSS_PROP_OUTLINE
#undef DEFINED_CSS_PROP_OUTLINE
#endif
#ifdef DEFINED_CSS_PROP_XUL
#undef CSS_PROP_XUL
#undef DEFINED_CSS_PROP_XUL
#endif
#ifdef MOZ_SVG
#ifdef DEFINED_CSS_PROP_SVG
#undef CSS_PROP_SVG
#undef DEFINED_CSS_PROP_SVG
#endif
#ifdef DEFINED_CSS_PROP_SVGRESET
#undef CSS_PROP_SVGRESET
#undef DEFINED_CSS_PROP_SVGRESET
#endif
#endif /* defined(MOZ_SVG) */
#ifdef DEFINED_CSS_PROP_BACKENDONLY
#undef CSS_PROP_BACKENDONLY
#undef DEFINED_CSS_PROP_BACKENDONLY
#endif
#endif /* !defined(USED_CSS_PROP) */
#ifdef DEFINED_CSS_PROP_NOTIMPLEMENTED
#undef CSS_PROP_NOTIMPLEMENTED
#undef DEFINED_CSS_PROP_NOTIMPLEMENTED
#endif
#ifdef DEFINED_CSS_PROP_SHORTHAND
#undef CSS_PROP_SHORTHAND
#undef DEFINED_CSS_PROP_SHORTHAND
#endif

View File

@@ -0,0 +1,180 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Netscape Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#ifndef nsCSSProps_h___
#define nsCSSProps_h___
#include "nsString.h"
#include "nsChangeHint.h"
#include "nsCSSProperty.h"
#include "nsStyleStruct.h"
class nsCSSProps {
public:
static void AddRefTable(void);
static void ReleaseTable(void);
// Given a property string, return the enum value
static nsCSSProperty LookupProperty(const nsAString& aProperty);
static nsCSSProperty LookupProperty(const nsACString& aProperty);
static inline PRBool IsShorthand(nsCSSProperty aProperty) {
NS_ASSERTION(0 <= aProperty && aProperty < eCSSProperty_COUNT,
"out of range");
return (aProperty >= eCSSProperty_COUNT_no_shorthands);
}
// Given a property enum, get the string value
static const nsAFlatCString& GetStringValue(nsCSSProperty aProperty);
// Given a CSS Property and a Property Enum Value
// Return back a const nsString& representation of the
// value. Return back nullstr if no value is found
static const nsAFlatCString& LookupPropertyValue(nsCSSProperty aProperty, PRInt32 aValue);
// Get a color name for a predefined color value like buttonhighlight or activeborder
// Sets the aStr param to the name of the propertyID
static PRBool GetColorName(PRInt32 aPropID, nsCString &aStr);
static PRInt32 SearchKeywordTableInt(PRInt32 aValue, const PRInt32 aTable[]);
static const nsAFlatCString& SearchKeywordTable(PRInt32 aValue, const PRInt32 aTable[]);
static const nsCSSType kTypeTable[eCSSProperty_COUNT_no_shorthands];
static const nsStyleStructID kSIDTable[eCSSProperty_COUNT_no_shorthands];
// A table for shorthand properties. The appropriate index is the
// property ID minus eCSSProperty_COUNT_no_shorthands.
private:
static const nsCSSProperty *const
kSubpropertyTable[eCSSProperty_COUNT - eCSSProperty_COUNT_no_shorthands];
public:
static inline
const nsCSSProperty *const SubpropertyEntryFor(nsCSSProperty aProperty) {
NS_ASSERTION(eCSSProperty_COUNT_no_shorthands <= aProperty &&
aProperty < eCSSProperty_COUNT,
"out of range");
return nsCSSProps::kSubpropertyTable[aProperty -
eCSSProperty_COUNT_no_shorthands];
}
#define CSSPROPS_FOR_SHORTHAND_SUBPROPERTIES(iter_, prop_) \
for (const nsCSSProperty* iter_ = nsCSSProps::SubpropertyEntryFor(prop_); \
*iter_ != eCSSProperty_UNKNOWN; ++iter_)
// Keyword/Enum value tables
static const PRInt32 kAppearanceKTable[];
static const PRInt32 kAzimuthKTable[];
static const PRInt32 kBackgroundAttachmentKTable[];
static const PRInt32 kBackgroundClipKTable[];
static const PRInt32 kBackgroundColorKTable[];
static const PRInt32 kBackgroundInlinePolicyKTable[];
static const PRInt32 kBackgroundOriginKTable[];
static const PRInt32 kBackgroundRepeatKTable[];
static const PRInt32 kBackgroundXPositionKTable[];
static const PRInt32 kBackgroundYPositionKTable[];
static const PRInt32 kBorderCollapseKTable[];
static const PRInt32 kBorderColorKTable[];
static const PRInt32 kBorderStyleKTable[];
static const PRInt32 kBorderWidthKTable[];
static const PRInt32 kBoxAlignKTable[];
static const PRInt32 kBoxDirectionKTable[];
static const PRInt32 kBoxOrientKTable[];
static const PRInt32 kBoxPackKTable[];
#ifdef MOZ_SVG
static const PRInt32 kDominantBaselineKTable[];
static const PRInt32 kFillRuleKTable[];
static const PRInt32 kPointerEventsKTable[];
static const PRInt32 kShapeRenderingKTable[];
static const PRInt32 kStrokeLinecapKTable[];
static const PRInt32 kStrokeLinejoinKTable[];
static const PRInt32 kTextAnchorKTable[];
static const PRInt32 kTextRenderingKTable[];
#endif
static const PRInt32 kBoxPropSourceKTable[];
static const PRInt32 kBoxSizingKTable[];
static const PRInt32 kCaptionSideKTable[];
static const PRInt32 kClearKTable[];
static const PRInt32 kColorKTable[];
static const PRInt32 kContentKTable[];
static const PRInt32 kCursorKTable[];
static const PRInt32 kDirectionKTable[];
static const PRInt32 kDisplayKTable[];
static const PRInt32 kElevationKTable[];
static const PRInt32 kEmptyCellsKTable[];
static const PRInt32 kFloatKTable[];
static const PRInt32 kFloatEdgeKTable[];
static const PRInt32 kFontKTable[];
static const PRInt32 kFontSizeKTable[];
static const PRInt32 kFontStretchKTable[];
static const PRInt32 kFontStyleKTable[];
static const PRInt32 kFontVariantKTable[];
static const PRInt32 kFontWeightKTable[];
static const PRInt32 kKeyEquivalentKTable[];
static const PRInt32 kListStylePositionKTable[];
static const PRInt32 kListStyleKTable[];
static const PRInt32 kOutlineColorKTable[];
static const PRInt32 kOverflowKTable[];
static const PRInt32 kPageBreakKTable[];
static const PRInt32 kPageBreakInsideKTable[];
static const PRInt32 kPageMarksKTable[];
static const PRInt32 kPageSizeKTable[];
static const PRInt32 kPitchKTable[];
static const PRInt32 kPlayDuringKTable[];
static const PRInt32 kPositionKTable[];
static const PRInt32 kResizerKTable[];
static const PRInt32 kSpeakKTable[];
static const PRInt32 kSpeakHeaderKTable[];
static const PRInt32 kSpeakNumeralKTable[];
static const PRInt32 kSpeakPunctuationKTable[];
static const PRInt32 kSpeechRateKTable[];
static const PRInt32 kTableLayoutKTable[];
static const PRInt32 kTextAlignKTable[];
static const PRInt32 kTextDecorationKTable[];
static const PRInt32 kTextTransformKTable[];
static const PRInt32 kUnicodeBidiKTable[];
static const PRInt32 kUserFocusKTable[];
static const PRInt32 kUserInputKTable[];
static const PRInt32 kUserModifyKTable[];
static const PRInt32 kUserSelectKTable[];
static const PRInt32 kVerticalAlignKTable[];
static const PRInt32 kVisibilityKTable[];
static const PRInt32 kVolumeKTable[];
static const PRInt32 kWhitespaceKTable[];
};
#endif /* nsCSSProps_h___ */

View File

@@ -0,0 +1,575 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Netscape Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Mozilla Communicator client code.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Original Author: David W. Hyatt (hyatt@netscape.com)
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#ifndef nsRuleNode_h___
#define nsRuleNode_h___
#include "nsCOMPtr.h"
#include "nsIStyleRule.h"
#include "nsFixedSizeAllocator.h"
#include "nsIPresContext.h"
#include "nsCSSStruct.h"
#include "nsILanguageAtomService.h"
#include "nsStyleStruct.h"
class nsStyleContext;
struct nsRuleList;
struct PLDHashTable;
typedef void (*nsPostResolveFunc)(nsStyleStruct* aStyleStruct, nsRuleData* aData);
struct nsInheritedStyleData
{
#define STYLE_STRUCT_INHERITED(name, checkdata_cb, ctor_args) \
nsStyle##name * m##name##Data;
#define STYLE_STRUCT_RESET(name, checkdata_cb, ctor_args)
#include "nsStyleStructList.h"
#undef STYLE_STRUCT_INHERITED
#undef STYLE_STRUCT_RESET
void* operator new(size_t sz, nsIPresContext* aContext) CPP_THROW_NEW {
void* result = nsnull;
aContext->AllocateFromShell(sz, &result);
return result;
};
void ClearInheritedData(PRUint32 aBits) {
#define STYLE_STRUCT_INHERITED(name, checkdata_cb, ctor_args) \
if (m##name##Data && (aBits & NS_STYLE_INHERIT_BIT(name))) \
m##name##Data = nsnull;
#define STYLE_STRUCT_RESET(name, checkdata_cb, ctor_args)
#include "nsStyleStructList.h"
#undef STYLE_STRUCT_INHERITED
#undef STYLE_STRUCT_RESET
};
void Destroy(PRUint32 aBits, nsIPresContext* aContext) {
#define STYLE_STRUCT_INHERITED(name, checkdata_cb, ctor_args) \
if (m##name##Data && !(aBits & NS_STYLE_INHERIT_BIT(name))) \
m##name##Data->Destroy(aContext);
#define STYLE_STRUCT_RESET(name, checkdata_cb, ctor_args)
#include "nsStyleStructList.h"
#undef STYLE_STRUCT_INHERITED
#undef STYLE_STRUCT_RESET
aContext->FreeToShell(sizeof(nsInheritedStyleData), this);
};
nsInheritedStyleData() {
#define STYLE_STRUCT_INHERITED(name, checkdata_cb, ctor_args) \
m##name##Data = nsnull;
#define STYLE_STRUCT_RESET(name, checkdata_cb, ctor_args)
#include "nsStyleStructList.h"
#undef STYLE_STRUCT_INHERITED
#undef STYLE_STRUCT_RESET
};
};
struct nsResetStyleData
{
nsResetStyleData()
{
#define STYLE_STRUCT_RESET(name, checkdata_cb, ctor_args) \
m##name##Data = nsnull;
#define STYLE_STRUCT_INHERITED(name, checkdata_cb, ctor_args)
#include "nsStyleStructList.h"
#undef STYLE_STRUCT_RESET
#undef STYLE_STRUCT_INHERITED
};
void* operator new(size_t sz, nsIPresContext* aContext) CPP_THROW_NEW {
void* result = nsnull;
aContext->AllocateFromShell(sz, &result);
return result;
}
void ClearInheritedData(PRUint32 aBits) {
#define STYLE_STRUCT_RESET(name, checkdata_cb, ctor_args) \
if (m##name##Data && (aBits & NS_STYLE_INHERIT_BIT(name))) \
m##name##Data = nsnull;
#define STYLE_STRUCT_INHERITED(name, checkdata_cb, ctor_args)
#include "nsStyleStructList.h"
#undef STYLE_STRUCT_RESET
#undef STYLE_STRUCT_INHERITED
};
void Destroy(PRUint32 aBits, nsIPresContext* aContext) {
#define STYLE_STRUCT_RESET(name, checkdata_cb, ctor_args) \
if (m##name##Data && !(aBits & NS_STYLE_INHERIT_BIT(name))) \
m##name##Data->Destroy(aContext);
#define STYLE_STRUCT_INHERITED(name, checkdata_cb, ctor_args)
#include "nsStyleStructList.h"
#undef STYLE_STRUCT_RESET
#undef STYLE_STRUCT_INHERITED
aContext->FreeToShell(sizeof(nsResetStyleData), this);
};
#define STYLE_STRUCT_RESET(name, checkdata_cb, ctor_args) \
nsStyle##name * m##name##Data;
#define STYLE_STRUCT_INHERITED(name, checkdata_cb, ctor_args)
#include "nsStyleStructList.h"
#undef STYLE_STRUCT_RESET
#undef STYLE_STRUCT_INHERITED
};
struct nsCachedStyleData
{
struct StyleStructInfo {
ptrdiff_t mCachedStyleDataOffset;
ptrdiff_t mInheritResetOffset;
PRBool mIsReset;
};
static StyleStructInfo gInfo[];
nsInheritedStyleData* mInheritedData;
nsResetStyleData* mResetData;
static PRBool IsReset(const nsStyleStructID& aSID) {
return gInfo[aSID].mIsReset;
};
static PRUint32 GetBitForSID(const nsStyleStructID& aSID) {
return 1 << aSID;
};
nsStyleStruct* GetStyleData(const nsStyleStructID& aSID) {
// Each struct is stored at this.m##type##Data->m##name##Data where
// |type| is either Inherit or Reset, and |name| is the name of the
// style struct. The |gInfo| stores the offset of the appropriate
// m##type##Data for the struct within nsCachedStyleData (|this|)
// and the offset of the appropriate m##name##Data within the
// m##type##Data. Note that if we don't have any reset structs,
// then mResetData is null, and likewise for mInheritedData. This
// saves us from having to go through the long if-else cascade into
// which most compilers will turn a case statement.
// NOTE: nsStyleContext::SetStyle works roughly the same way.
const StyleStructInfo& info = gInfo[aSID];
// Get either &mInheritedData or &mResetData.
char* resetOrInheritSlot = NS_REINTERPRET_CAST(char*, this) + info.mCachedStyleDataOffset;
// Get either mInheritedData or mResetData.
char* resetOrInherit = NS_REINTERPRET_CAST(char*, *NS_REINTERPRET_CAST(void**, resetOrInheritSlot));
nsStyleStruct* data = nsnull;
if (resetOrInherit) {
// If we have the mInheritedData or mResetData, then we might have
// the struct, so get it.
char* dataSlot = resetOrInherit + info.mInheritResetOffset;
data = *NS_REINTERPRET_CAST(nsStyleStruct**, dataSlot);
}
return data;
};
void ClearInheritedData(PRUint32 aBits) {
if (mResetData)
mResetData->ClearInheritedData(aBits);
if (mInheritedData)
mInheritedData->ClearInheritedData(aBits);
}
void Destroy(PRUint32 aBits, nsIPresContext* aContext) {
if (mResetData)
mResetData->Destroy(aBits, aContext);
if (mInheritedData)
mInheritedData->Destroy(aBits, aContext);
mResetData = nsnull;
mInheritedData = nsnull;
}
nsCachedStyleData() :mInheritedData(nsnull), mResetData(nsnull) {};
~nsCachedStyleData() {};
};
struct nsRuleData
{
nsStyleStructID mSID;
PRPackedBool mCanStoreInRuleTree;
nsIPresContext* mPresContext;
nsStyleContext* mStyleContext;
nsPostResolveFunc mPostResolveCallback;
nsRuleDataFont* mFontData; // Should always be stack-allocated! We don't own these structures!
nsRuleDataDisplay* mDisplayData;
nsRuleDataMargin* mMarginData;
nsRuleDataList* mListData;
nsRuleDataPosition* mPositionData;
nsRuleDataTable* mTableData;
nsRuleDataColor* mColorData;
nsRuleDataContent* mContentData;
nsRuleDataText* mTextData;
nsRuleDataUserInterface* mUserInterfaceData;
nsRuleDataXUL* mXULData;
#ifdef MOZ_SVG
nsRuleDataSVG* mSVGData;
#endif
nsRuleData(const nsStyleStructID& aSID, nsIPresContext* aContext, nsStyleContext* aStyleContext)
:mSID(aSID), mPresContext(aContext), mStyleContext(aStyleContext), mPostResolveCallback(nsnull),
mFontData(nsnull), mDisplayData(nsnull), mMarginData(nsnull), mListData(nsnull),
mPositionData(nsnull), mTableData(nsnull), mColorData(nsnull), mContentData(nsnull), mTextData(nsnull),
mUserInterfaceData(nsnull)
{
mCanStoreInRuleTree = PR_TRUE;
mXULData = nsnull;
#ifdef MOZ_SVG
mSVGData = nsnull;
#endif
};
~nsRuleData() {};
};
class nsRuleNode {
public:
// for purposes of the RuleDetail (and related code),
// * a non-inherited value is one that is specified as a
// non-"inherit" value or as an "inherit" value that is reflected
// in the struct and to the user of the style system with an
// eCSSUnit_Inherit value
// * an inherited value is one that is specified as "inherit" and
// where the inheritance is computed by the style system
enum RuleDetail {
eRuleNone, // No props have been specified at all.
eRulePartialReset, // At least one prop with a non-inherited value
// has been specified. No props have been
// specified with an inherited value. At least
// one prop remains unspecified.
eRulePartialMixed, // At least one prop with a non-inherited value
// has been specified. Some props may also have
// been specified with an inherited value. At
// least one prop remains unspecified.
eRulePartialInherited, // Only props with inherited values have
// have been specified. At least one prop
// remains unspecified.
eRuleFullReset, // All props have been specified. None has an
// inherited value.
eRuleFullMixed, // All props have been specified. At least one has
// a non-inherited value.
eRuleFullInherited, // All props have been specified with inherited
// values.
eRuleUnknown // Information unknown (used as a result from a check
// callback to trigger the normal checking codepath)
};
private:
nsIPresContext* mPresContext; // Our pres context.
nsRuleNode* mParent; // A pointer to the parent node in the tree.
// This enables us to walk backwards from the
// most specific rule matched to the least
// specific rule (which is the optimal order to
// use for lookups of style properties.
nsCOMPtr<nsIStyleRule> mRule; // A pointer to our specific rule.
// The children of this node are stored in either a hashtable or list
// that maps from rules to our nsRuleNode children. When matching
// rules, we use this mapping to transition from node to node
// (constructing new nodes as needed to flesh out the tree).
void *mChildrenTaggedPtr; // Accessed only through the methods below.
enum {
kTypeMask = 0x1,
kListType = 0x0,
kHashType = 0x1
};
enum {
// Maximum to have in a list before converting to a hashtable.
// XXX Need to optimize this.
kMaxChildrenInList = 32
};
PRBool HaveChildren() {
return mChildrenTaggedPtr != nsnull;
}
PRBool ChildrenAreHashed() {
return (PRWord(mChildrenTaggedPtr) & kTypeMask) == kHashType;
}
nsRuleList* ChildrenList() {
return NS_REINTERPRET_CAST(nsRuleList*, mChildrenTaggedPtr);
}
nsRuleList** ChildrenListPtr() {
return NS_REINTERPRET_CAST(nsRuleList**, &mChildrenTaggedPtr);
}
PLDHashTable* ChildrenHash() {
return (PLDHashTable*) (PRWord(mChildrenTaggedPtr) & ~PRWord(kTypeMask));
}
void SetChildrenList(nsRuleList *aList) {
NS_ASSERTION(!(PRWord(aList) & kTypeMask),
"pointer not 2-byte aligned");
mChildrenTaggedPtr = aList;
}
void SetChildrenHash(PLDHashTable *aHashtable) {
NS_ASSERTION(!(PRWord(aHashtable) & kTypeMask),
"pointer not 2-byte aligned");
mChildrenTaggedPtr = (void*)(PRWord(aHashtable) | kHashType);
}
void ConvertChildrenToHash();
nsCachedStyleData mStyleData; // Any data we cached on the rule node.
PRUint32 mDependentBits; // Used to cache the fact that we can look up
// cached data under a parent rule.
PRUint32 mNoneBits; // Used to cache the fact that the branch to this
// node specifies no non-inherited data for a
// given struct type. (This usually implies that
// the entire branch specifies no non-inherited
// data, although not necessarily, if a
// non-inherited value is overridden by an
// explicit 'inherit' value.) For example, if an
// entire rule branch specifies no color
// information, then a bit will be set along every
// rule node on that branch, so that you can break
// out of the rule tree early and just inherit
// from the parent style context. The presence of
// this bit means we should just get inherited
// data from the parent style context, and it is
// never used for reset structs since their
// Compute*Data functions don't initialize from
// inherited data.
friend struct nsRuleList;
public:
// Overloaded new operator. Initializes the memory to 0 and relies on an arena
// (which comes from the presShell) to perform the allocation.
void* operator new(size_t sz, nsIPresContext* aContext) CPP_THROW_NEW;
void Destroy();
static nsILanguageAtomService *gLangService;
protected:
void PropagateDependentBit(PRUint32 aBit, nsRuleNode* aHighestNode);
void PropagateNoneBit(PRUint32 aBit, nsRuleNode* aHighestNode);
const nsStyleStruct* SetDefaultOnRoot(const nsStyleStructID aSID, nsStyleContext* aContext);
const nsStyleStruct* WalkRuleTree(const nsStyleStructID aSID, nsStyleContext* aContext,
nsRuleData* aRuleData,
nsRuleDataStruct* aSpecificData);
const nsStyleStruct* ComputeDisplayData(nsStyleStruct* aStartDisplay, const nsRuleDataStruct& aDisplayData,
nsStyleContext* aContext, nsRuleNode* aHighestNode,
const RuleDetail& aRuleDetail, PRBool aInherited);
const nsStyleStruct* ComputeVisibilityData(nsStyleStruct* aStartVisibility, const nsRuleDataStruct& aDisplayData,
nsStyleContext* aContext, nsRuleNode* aHighestNode,
const RuleDetail& aRuleDetail, PRBool aInherited);
const nsStyleStruct* ComputeFontData(nsStyleStruct* aStartFont, const nsRuleDataStruct& aFontData,
nsStyleContext* aContext, nsRuleNode* aHighestNode,
const RuleDetail& aRuleDetail, PRBool aInherited);
const nsStyleStruct* ComputeColorData(nsStyleStruct* aStartColor, const nsRuleDataStruct& aColorData,
nsStyleContext* aContext, nsRuleNode* aHighestNode,
const RuleDetail& aRuleDetail, PRBool aInherited);
const nsStyleStruct* ComputeBackgroundData(nsStyleStruct* aStartBackground, const nsRuleDataStruct& aColorData,
nsStyleContext* aContext, nsRuleNode* aHighestNode,
const RuleDetail& aRuleDetail, PRBool aInherited);
const nsStyleStruct* ComputeMarginData(nsStyleStruct* aStartMargin, const nsRuleDataStruct& aMarginData,
nsStyleContext* aContext, nsRuleNode* aHighestNode,
const RuleDetail& aRuleDetail, PRBool aInherited);
const nsStyleStruct* ComputeBorderData(nsStyleStruct* aStartBorder, const nsRuleDataStruct& aMarginData,
nsStyleContext* aContext, nsRuleNode* aHighestNode,
const RuleDetail& aRuleDetail, PRBool aInherited);
const nsStyleStruct* ComputePaddingData(nsStyleStruct* aStartPadding, const nsRuleDataStruct& aMarginData,
nsStyleContext* aContext, nsRuleNode* aHighestNode,
const RuleDetail& aRuleDetail, PRBool aInherited);
const nsStyleStruct* ComputeOutlineData(nsStyleStruct* aStartOutline, const nsRuleDataStruct& aMarginData,
nsStyleContext* aContext, nsRuleNode* aHighestNode,
const RuleDetail& aRuleDetail, PRBool aInherited);
const nsStyleStruct* ComputeListData(nsStyleStruct* aStartList, const nsRuleDataStruct& aListData,
nsStyleContext* aContext, nsRuleNode* aHighestNode,
const RuleDetail& aRuleDetail, PRBool aInherited);
const nsStyleStruct* ComputePositionData(nsStyleStruct* aStartPosition, const nsRuleDataStruct& aPositionData,
nsStyleContext* aContext, nsRuleNode* aHighestNode,
const RuleDetail& aRuleDetail, PRBool aInherited);
const nsStyleStruct* ComputeTableData(nsStyleStruct* aStartTable, const nsRuleDataStruct& aTableData,
nsStyleContext* aContext, nsRuleNode* aHighestNode,
const RuleDetail& aRuleDetail, PRBool aInherited);
const nsStyleStruct* ComputeTableBorderData(nsStyleStruct* aStartTable, const nsRuleDataStruct& aTableData,
nsStyleContext* aContext,
nsRuleNode* aHighestNode,
const RuleDetail& aRuleDetail, PRBool aInherited);
const nsStyleStruct* ComputeContentData(nsStyleStruct* aStartContent, const nsRuleDataStruct& aData,
nsStyleContext* aContext,
nsRuleNode* aHighestNode,
const RuleDetail& aRuleDetail, PRBool aInherited);
const nsStyleStruct* ComputeQuotesData(nsStyleStruct* aStartQuotes, const nsRuleDataStruct& aData,
nsStyleContext* aContext,
nsRuleNode* aHighestNode,
const RuleDetail& aRuleDetail, PRBool aInherited);
const nsStyleStruct* ComputeTextData(nsStyleStruct* aStartData, const nsRuleDataStruct& aData,
nsStyleContext* aContext,
nsRuleNode* aHighestNode,
const RuleDetail& aRuleDetail, PRBool aInherited);
const nsStyleStruct* ComputeTextResetData(nsStyleStruct* aStartData, const nsRuleDataStruct& aData,
nsStyleContext* aContext,
nsRuleNode* aHighestNode,
const RuleDetail& aRuleDetail, PRBool aInherited);
const nsStyleStruct* ComputeUserInterfaceData(nsStyleStruct* aStartData,
const nsRuleDataStruct& aData,
nsStyleContext* aContext,
nsRuleNode* aHighestNode,
const RuleDetail& aRuleDetail,
PRBool aInherited);
const nsStyleStruct* ComputeUIResetData(nsStyleStruct* aStartData, const nsRuleDataStruct& aData,
nsStyleContext* aContext,
nsRuleNode* aHighestNode,
const RuleDetail& aRuleDetail, PRBool aInherited);
const nsStyleStruct* ComputeXULData(nsStyleStruct* aStartXUL, const nsRuleDataStruct& aXULData,
nsStyleContext* aContext,
nsRuleNode* aHighestNode,
const RuleDetail& aRuleDetail, PRBool aInherited);
#ifdef MOZ_SVG
const nsStyleStruct* ComputeSVGData(nsStyleStruct* aStartSVG, const nsRuleDataStruct& aSVGData,
nsStyleContext* aContext,
nsRuleNode* aHighestNode,
const RuleDetail& aRuleDetail, PRBool aInherited);
const nsStyleStruct* ComputeSVGResetData(nsStyleStruct* aStartSVG, const nsRuleDataStruct& aSVGData,
nsStyleContext* aContext,
nsRuleNode* aHighestNode,
const RuleDetail& aRuleDetail, PRBool aInherited);
#endif
// helpers for |ComputeFontData| that need access to |mNoneBits|:
static void SetFont(nsIPresContext* aPresContext, nsStyleContext* aContext,
nscoord aMinFontSize, PRBool aUseDocumentFonts,
PRBool aIsGeneric, const nsRuleDataFont& aFontData,
const nsFont& aDefaultFont,
const nsStyleFont* aParentFont,
nsStyleFont* aFont, PRBool& aInherited);
static void SetGenericFont(nsIPresContext* aPresContext,
nsStyleContext* aContext,
const nsRuleDataFont& aFontData,
PRUint8 aGenericFontID, nscoord aMinFontSize,
PRBool aUseDocumentFonts, nsStyleFont* aFont);
void AdjustLogicalBoxProp(nsStyleContext* aContext,
const nsCSSValue& aLTRSource,
const nsCSSValue& aRTLSource,
const nsCSSValue& aLTRLogicalValue,
const nsCSSValue& aRTLLogicalValue,
const nsStyleSides& aParentRect,
nsStyleSides& aRect,
PRUint8 aSide,
PRInt32 aMask,
PRBool& aInherited);
inline RuleDetail CheckSpecifiedProperties(const nsStyleStructID aSID, const nsRuleDataStruct& aRuleDataStruct);
const nsStyleStruct* GetParentData(const nsStyleStructID aSID);
const nsStyleStruct* GetDisplayData(nsStyleContext* aContext);
const nsStyleStruct* GetVisibilityData(nsStyleContext* aContext);
const nsStyleStruct* GetFontData(nsStyleContext* aContext);
const nsStyleStruct* GetColorData(nsStyleContext* aContext);
const nsStyleStruct* GetBackgroundData(nsStyleContext* aContext);
const nsStyleStruct* GetMarginData(nsStyleContext* aContext);
const nsStyleStruct* GetBorderData(nsStyleContext* aContext);
const nsStyleStruct* GetPaddingData(nsStyleContext* aContext);
const nsStyleStruct* GetOutlineData(nsStyleContext* aContext);
const nsStyleStruct* GetListData(nsStyleContext* aContext);
const nsStyleStruct* GetPositionData(nsStyleContext* aContext);
const nsStyleStruct* GetTableData(nsStyleContext* aContext);
const nsStyleStruct* GetTableBorderData(nsStyleContext* aContext);
const nsStyleStruct* GetContentData(nsStyleContext* aContext);
const nsStyleStruct* GetQuotesData(nsStyleContext* aContext);
const nsStyleStruct* GetTextData(nsStyleContext* aContext);
const nsStyleStruct* GetTextResetData(nsStyleContext* aContext);
const nsStyleStruct* GetUserInterfaceData(nsStyleContext* aContext);
const nsStyleStruct* GetUIResetData(nsStyleContext* aContext);
const nsStyleStruct* GetXULData(nsStyleContext* aContext);
#ifdef MOZ_SVG
const nsStyleStruct* GetSVGData(nsStyleContext* aContext);
const nsStyleStruct* GetSVGResetData(nsStyleContext* aContext);
#endif
public:
nsRuleNode(nsIPresContext* aPresContext, nsIStyleRule* aRule,
nsRuleNode* aParent);
virtual ~nsRuleNode();
static nsRuleNode* CreateRootNode(nsIPresContext* aPresContext);
nsresult Transition(nsIStyleRule* aRule, nsRuleNode** aResult);
nsRuleNode* GetParent() const { return mParent; }
PRBool IsRoot() const { return mParent == nsnull; }
// NOTE: Does not |AddRef|.
nsIStyleRule* GetRule() const { return mRule; }
// NOTE: Does not |AddRef|.
nsIPresContext* GetPresContext() const { return mPresContext; }
nsresult ClearStyleData();
const nsStyleStruct* GetStyleData(nsStyleStructID aSID,
nsStyleContext* aContext,
PRBool aComputeData);
/*
* Garbage collection. Mark walks up the tree, marking any unmarked
* ancestors until it reaches a marked one. Sweep recursively sweeps
* the children, destroys any that are unmarked, and clears marks,
* returning true if the node on which it was called was destroyed.
*/
void Mark();
PRBool Sweep();
};
#endif

View File

@@ -0,0 +1,145 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All
* Rights Reserved.
*
* Original Author: Rod Spears (rods@netscape.com)
*
* Contributor(s):
*/
/******
This file contains the list of all SVG nsIAtoms and their values
It is designed to be used as inline input to nsSVGAtoms.cpp *only*
through the magic of C preprocessing.
All entires must be enclosed in the macro SVG_ATOM which will have cruel
and unusual things done to it
It is recommended (but not strictly necessary) to keep all entries
in alphabetical order
The first argument to SVG_ATOM is the C++ identifier of the atom
The second argument is the string value of the atom
******/
// tags
SVG_ATOM(circle, "circle")
SVG_ATOM(defs, "defs")
SVG_ATOM(ellipse, "ellipse")
SVG_ATOM(foreignObject, "foreignObject")
SVG_ATOM(g, "g")
SVG_ATOM(generic, "generic")
SVG_ATOM(image, "image")
SVG_ATOM(line, "line")
SVG_ATOM(path, "path")
SVG_ATOM(polygon, "polygon")
SVG_ATOM(polyline, "polyline")
SVG_ATOM(rect, "rect")
SVG_ATOM(svg, "svg")
SVG_ATOM(text, "text")
SVG_ATOM(tref, "tref")
SVG_ATOM(tspan, "tspan")
// properties
SVG_ATOM(alignment_baseline, "alignment-baseline")
SVG_ATOM(baseline_shift, "baseline-shift")
SVG_ATOM(clip_path, "clip-path")
SVG_ATOM(clip_rule, "clip-rule")
SVG_ATOM(cursor, "cursor")
SVG_ATOM(cx, "cx")
SVG_ATOM(cy, "cy")
SVG_ATOM(d, "d")
SVG_ATOM(direction, "direction")
SVG_ATOM(display, "display")
SVG_ATOM(dominant_baseline, "dominant-baseline")
SVG_ATOM(fill, "fill")
SVG_ATOM(fill_opacity, "fill-opacity")
SVG_ATOM(fill_rule, "fill-rule")
SVG_ATOM(filter, "filter")
SVG_ATOM(font_family, "font-family")
SVG_ATOM(font_size, "font-size")
SVG_ATOM(font_size_adjust, "font-size-adjust")
SVG_ATOM(font_stretch, "font-stretch")
SVG_ATOM(font_style, "font-style")
SVG_ATOM(font_variant, "font-variant")
SVG_ATOM(font_weight, "font-weight")
SVG_ATOM(glyph_orientation_horizontal, "glyph-orientation-horizontal")
SVG_ATOM(glyph_orientation_vertical, "glyph-orientation-vertical")
SVG_ATOM(height, "height")
SVG_ATOM(href, "href")
SVG_ATOM(id, "id")
SVG_ATOM(image_rendering, "image-rendering")
SVG_ATOM(kerning, "kerning")
SVG_ATOM(letter_spacing, "letter-spacing")
SVG_ATOM(mask, "mask")
SVG_ATOM(opacity, "opacity")
SVG_ATOM(pathLength, "pathLength")
SVG_ATOM(pointer_events, "pointer-events")
SVG_ATOM(points, "points")
SVG_ATOM(r, "r")
SVG_ATOM(rx, "rx")
SVG_ATOM(ry, "ry")
SVG_ATOM(shape_rendering, "shape-rendering")
SVG_ATOM(stroke, "stroke")
SVG_ATOM(stroke_dasharray, "stroke-dasharray")
SVG_ATOM(stroke_dashoffset, "stroke-dashoffset")
SVG_ATOM(stroke_linecap, "stroke-linecap")
SVG_ATOM(stroke_linejoin, "stroke-linejoin")
SVG_ATOM(stroke_miterlimit, "stroke-miterlimit")
SVG_ATOM(stroke_opacity, "stroke-opacity")
SVG_ATOM(stroke_width, "stroke-width")
SVG_ATOM(style, "style")
SVG_ATOM(text_anchor, "text-anchor")
SVG_ATOM(text_decoration, "text-decoration")
SVG_ATOM(text_rendering, "text-rendering")
SVG_ATOM(transform, "transform")
SVG_ATOM(unicode_bidi, "unicode-bidi")
SVG_ATOM(viewBox, "viewBox")
SVG_ATOM(visibility, "visibility")
SVG_ATOM(width, "width")
SVG_ATOM(word_spacing, "word-spacing")
SVG_ATOM(x, "x")
SVG_ATOM(x1, "x1")
SVG_ATOM(x2, "x2")
SVG_ATOM(y, "y")
SVG_ATOM(y1, "y1")
SVG_ATOM(y2, "y2")
// transformation keywords
SVG_ATOM(matrix, "matrix")
SVG_ATOM(rotate, "rotate")
SVG_ATOM(scale, "scale")
SVG_ATOM(skewX, "skewX")
SVG_ATOM(skewY, "skewY")
SVG_ATOM(translate, "translate")
// length units
SVG_ATOM(cm, "cm")
SVG_ATOM(ems, "em")
SVG_ATOM(exs, "ex")
SVG_ATOM(in, "in")
SVG_ATOM(mm, "mm")
SVG_ATOM(pc, "pc")
SVG_ATOM(percentage, "%")
SVG_ATOM(pt, "pt")
SVG_ATOM(px, "px")

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,165 @@
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
// vim:cindent:ts=8:et:sw=4:
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 2002
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* L. David Baron <dbaron@dbaron.org> (original author)
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
/*
* This file is intended to be used by different parts of the code, with
* the STYLE_STRUCT macro (or the STYLE_STRUCT_INHERITED and
* STYLE_STRUCT_RESET pair of macros) defined in different ways.
*/
#ifndef STYLE_STRUCT_INHERITED
#define STYLE_STRUCT_INHERITED(name, checkdata_cb, ctor_args) \
STYLE_STRUCT(name, checkdata_cb, ctor_args)
#define UNDEF_STYLE_STRUCT_INHERITED
#endif
#ifndef STYLE_STRUCT_RESET
#define STYLE_STRUCT_RESET(name, checkdata_cb, ctor_args) \
STYLE_STRUCT(name, checkdata_cb, ctor_args)
#define UNDEF_STYLE_STRUCT_RESET
#endif
#ifdef STYLE_STRUCT_TEST
#define STYLE_STRUCT_TEST_CODE(c) c
#else
#define STYLE_STRUCT_TEST_CODE(c)
#endif
STYLE_STRUCT_TEST_CODE(if (STYLE_STRUCT_TEST < 8) {)
STYLE_STRUCT_TEST_CODE( if (STYLE_STRUCT_TEST < 4) {)
STYLE_STRUCT_TEST_CODE( if (STYLE_STRUCT_TEST < 2) {)
STYLE_STRUCT_TEST_CODE( if (STYLE_STRUCT_TEST == 0) {)
STYLE_STRUCT_INHERITED(Font, CheckFontCallback, (SSARG_PRESCONTEXT))
STYLE_STRUCT_TEST_CODE( } else {)
STYLE_STRUCT_INHERITED(Color, nsnull, (SSARG_PRESCONTEXT))
STYLE_STRUCT_TEST_CODE( })
STYLE_STRUCT_TEST_CODE( } else {)
STYLE_STRUCT_TEST_CODE( if (STYLE_STRUCT_TEST == 2) {)
STYLE_STRUCT_RESET(Background, nsnull, (SSARG_PRESCONTEXT))
STYLE_STRUCT_TEST_CODE( } else {)
STYLE_STRUCT_INHERITED(List, nsnull, ())
STYLE_STRUCT_TEST_CODE( })
STYLE_STRUCT_TEST_CODE( })
STYLE_STRUCT_TEST_CODE( } else {)
STYLE_STRUCT_TEST_CODE( if (STYLE_STRUCT_TEST < 6) {)
STYLE_STRUCT_TEST_CODE( if (STYLE_STRUCT_TEST == 4) {)
STYLE_STRUCT_RESET(Position, nsnull, ())
STYLE_STRUCT_TEST_CODE( } else {)
STYLE_STRUCT_INHERITED(Text, nsnull, ())
STYLE_STRUCT_TEST_CODE( })
STYLE_STRUCT_TEST_CODE( } else {)
STYLE_STRUCT_TEST_CODE( if (STYLE_STRUCT_TEST == 6) {)
STYLE_STRUCT_RESET(TextReset, nsnull, ())
STYLE_STRUCT_TEST_CODE( } else {)
STYLE_STRUCT_RESET(Display, nsnull, ())
STYLE_STRUCT_TEST_CODE( })
STYLE_STRUCT_TEST_CODE( })
STYLE_STRUCT_TEST_CODE( })
STYLE_STRUCT_TEST_CODE(} else if (STYLE_STRUCT_TEST < 16) {)
STYLE_STRUCT_TEST_CODE( if (STYLE_STRUCT_TEST < 12) {)
STYLE_STRUCT_TEST_CODE( if (STYLE_STRUCT_TEST < 10) {)
STYLE_STRUCT_TEST_CODE( if (STYLE_STRUCT_TEST == 8) {)
STYLE_STRUCT_INHERITED(Visibility, nsnull, (SSARG_PRESCONTEXT))
STYLE_STRUCT_TEST_CODE( } else {)
STYLE_STRUCT_RESET(Content, nsnull, ())
STYLE_STRUCT_TEST_CODE( })
STYLE_STRUCT_TEST_CODE( } else {)
STYLE_STRUCT_TEST_CODE( if (STYLE_STRUCT_TEST == 10) {)
STYLE_STRUCT_INHERITED(Quotes, nsnull, ())
STYLE_STRUCT_TEST_CODE( } else {)
STYLE_STRUCT_INHERITED(UserInterface, nsnull, ())
STYLE_STRUCT_TEST_CODE( })
STYLE_STRUCT_TEST_CODE( })
STYLE_STRUCT_TEST_CODE( } else {)
STYLE_STRUCT_TEST_CODE( if (STYLE_STRUCT_TEST < 14) {)
STYLE_STRUCT_TEST_CODE( if (STYLE_STRUCT_TEST == 12) {)
STYLE_STRUCT_RESET(UIReset, nsnull, ())
STYLE_STRUCT_TEST_CODE( } else {)
STYLE_STRUCT_RESET(Table, nsnull, ())
STYLE_STRUCT_TEST_CODE( })
STYLE_STRUCT_TEST_CODE( } else {)
STYLE_STRUCT_TEST_CODE( if (STYLE_STRUCT_TEST == 14) {)
STYLE_STRUCT_INHERITED(TableBorder, nsnull, (SSARG_PRESCONTEXT))
STYLE_STRUCT_TEST_CODE( } else {)
STYLE_STRUCT_RESET(Margin, nsnull, ())
STYLE_STRUCT_TEST_CODE( })
STYLE_STRUCT_TEST_CODE( })
STYLE_STRUCT_TEST_CODE( })
STYLE_STRUCT_TEST_CODE(} else {)
STYLE_STRUCT_TEST_CODE( if (STYLE_STRUCT_TEST < 18) {)
STYLE_STRUCT_TEST_CODE( if (STYLE_STRUCT_TEST == 16) {)
STYLE_STRUCT_RESET(Padding, nsnull, ())
STYLE_STRUCT_TEST_CODE( } else {)
STYLE_STRUCT_RESET(Border, nsnull, ())
STYLE_STRUCT_TEST_CODE( })
#ifndef MOZ_SVG
STYLE_STRUCT_TEST_CODE( } else if (STYLE_STRUCT_TEST == 18) {)
STYLE_STRUCT_RESET(Outline, nsnull, (SSARG_PRESCONTEXT))
STYLE_STRUCT_TEST_CODE( } else {)
STYLE_STRUCT_TEST_CODE( NS_ASSERTION(STYLE_STRUCT_TEST == 19, "out of range");)
STYLE_STRUCT_RESET(XUL, nsnull, ())
STYLE_STRUCT_TEST_CODE( })
STYLE_STRUCT_TEST_CODE(})
#else // MOZ_SVG
STYLE_STRUCT_TEST_CODE( } else if (STYLE_STRUCT_TEST < 20) {)
STYLE_STRUCT_TEST_CODE( if (STYLE_STRUCT_TEST == 18) {)
STYLE_STRUCT_RESET(Outline, nsnull, (SSARG_PRESCONTEXT))
STYLE_STRUCT_TEST_CODE( } else {)
STYLE_STRUCT_RESET(XUL, nsnull, ())
STYLE_STRUCT_TEST_CODE( })
STYLE_STRUCT_TEST_CODE( } else if (STYLE_STRUCT_TEST == 20) {)
STYLE_STRUCT_INHERITED(SVG, nsnull, ())
STYLE_STRUCT_TEST_CODE( } else {)
STYLE_STRUCT_TEST_CODE( NS_ASSERTION(STYLE_STRUCT_TEST == 21, "out of range");)
STYLE_STRUCT_RESET(SVGReset,nsnull, ())
STYLE_STRUCT_TEST_CODE( })
STYLE_STRUCT_TEST_CODE(})
#endif
#ifdef UNDEF_STYLE_STRUCT_INHERITED
#undef STYLE_STRUCT_INHERITED
#undef UNDEF_STYLE_STRUCT_INHERITED
#endif
#ifdef UNDEF_STYLE_STRUCT_RESET
#undef STYLE_STRUCT_RESET
#undef UNDEF_STYLE_STRUCT_RESET
#endif
#undef STYLE_STRUCT_TEST_CODE

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,116 @@
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is Crocodile Clips Ltd code.
#
# The Initial Developer of the Original Code is
# Crocodile Clips Ltd. Portions created by Crocodile Clips are
# Copyright (C) 2001 Crocodile Clips Ltd. All
# Rights Reserved.
DEPTH = ../../../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
MODULE = content
LIBRARY_NAME = gkcontentsvg_s
REQUIRES = xpcom \
string \
layout \
content \
widget \
gfx \
dom \
js \
locale \
htmlparser \
view \
pref \
necko \
xpconnect \
webshell
CPPSRCS = \
nsSVGAnimatedLength.cpp \
nsSVGAnimatedLengthList.cpp \
nsSVGAnimatedRect.cpp \
nsSVGAnimatedString.cpp \
nsSVGAnimatedTransformList.cpp \
nsSVGAttributes.cpp \
nsSVGCircleElement.cpp \
nsSVGElement.cpp \
nsSVGElementFactory.cpp \
nsSVGEllipseElement.cpp \
nsSVGForeignObjectElement.cpp \
nsSVGGElement.cpp \
nsSVGGenericStringValue.cpp \
nsSVGGraphicElement.cpp \
nsSVGImageElement.cpp \
nsSVGLength.cpp \
nsSVGLengthList.cpp \
nsSVGLineElement.cpp \
nsSVGMatrix.cpp \
nsSVGNumber.cpp \
nsSVGPathDataParser.cpp \
nsSVGPathElement.cpp \
nsSVGPathSeg.cpp \
nsSVGPathSegList.cpp \
nsSVGPoint.cpp \
nsSVGPointList.cpp \
nsSVGPolygonElement.cpp \
nsSVGPolylineElement.cpp \
nsSVGStringProxyValue.cpp \
nsSVGRect.cpp \
nsSVGRectElement.cpp \
nsSVGSVGElement.cpp \
nsSVGStyleValue.cpp \
nsSVGTSpanElement.cpp \
nsSVGTextElement.cpp \
nsSVGTransform.cpp \
nsSVGTransformList.cpp \
nsSVGValue.cpp \
nsSVGViewportRect.cpp \
$(NULL)
include $(topsrcdir)/config/config.mk
# we don't want the shared lib, but we want to force the creation of a static lib.
FORCE_STATIC_LIB = 1
EXPORTS = \
nsISVGAttribute.h \
nsISVGStyleValue.h \
nsISVGTextContentMetrics.h \
nsISVGValue.h \
nsISVGValueObserver.h \
nsISVGValueUtils.h \
nsSVGTypeCIDs.h \
nsISVGContent.h \
$(NULL)
include $(topsrcdir)/config/rules.mk
INCLUDES += \
-I$(srcdir)/../../../shared/public \
-I$(srcdir)/../../../html/base/src \
-I$(srcdir)/../../../xml/content/src \
-I$(srcdir)/../../../../dom \
-I$(srcdir)/../../../base/src \
-I$(srcdir)/../../../../layout/svg/base/src \
-I$(srcdir)/../../../html/style/src \
$(NULL)
DEFINES += -D_IMPL_NS_LAYOUT

View File

@@ -0,0 +1,59 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ----- BEGIN LICENSE BLOCK -----
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is the Mozilla SVG project.
*
* The Initial Developer of the Original Code is
* Crocodile Clips Ltd..
* Portions created by the Initial Developer are Copyright (C) 2002
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Alex Fritze <alex.fritze@crocodile-clips.com> (original author)
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ----- END LICENSE BLOCK ----- */
#ifndef __NS_ISVGCONTENT__
#define __NS_ISVGCONTENT__
#include "nsISupports.h"
////////////////////////////////////////////////////////////////////////
// nsISVGContent
// {4473C9A8-4376-48A5-BF99-D5820A1FF14E}
#define NS_ISVGCONTENT_IID \
{ 0x4473c9a8, 0x4376, 0x48a5, { 0xbf, 0x99, 0xd5, 0x82, 0x0a, 0x1f, 0xf1, 0x4e } }
class nsISVGContent : public nsISupports
{
public:
static const nsIID& GetIID() { static nsIID iid = NS_ISVGCONTENT_IID; return iid; }
NS_IMETHOD IsPresentationAttribute(const nsIAtom* attribute, PRBool* retval)=0;
};
#endif // __NS_ISVGCONTENT__

View File

@@ -0,0 +1,62 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ----- BEGIN LICENSE BLOCK -----
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is the Mozilla SVG project.
*
* The Initial Developer of the Original Code is
* Crocodile Clips Ltd..
* Portions created by the Initial Developer are Copyright (C) 2002
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Alex Fritze <alex.fritze@crocodile-clips.com> (original author)
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ----- END LICENSE BLOCK ----- */
#ifndef __NS_ISVGLENGTH_H__
#define __NS_ISVGLENGTH_H__
#include "nsIDOMSVGLength.h"
class nsISVGViewportAxis;
////////////////////////////////////////////////////////////////////////
// nsISVGLength: private interface for svg lengths
// {4DA3041C-7A32-4F81-A44F-E468D025AD7C}
#define NS_ISVGLENGTH_IID \
{ 0x4da3041c, 0x7a32, 0x4f81, { 0xa4, 0x4f, 0xe4, 0x68, 0xd0, 0x25, 0xad, 0x7c } }
class nsISVGLength : public nsIDOMSVGLength
{
public:
static const nsIID& GetIID() { static nsIID iid = NS_ISVGLENGTH_IID; return iid; }
NS_IMETHOD SetContext(nsISVGViewportAxis* axis)=0;
};
#endif // __NS_ISVGLENGTH_H__

View File

@@ -0,0 +1,62 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ----- BEGIN LICENSE BLOCK -----
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is the Mozilla SVG project.
*
* The Initial Developer of the Original Code is
* Crocodile Clips Ltd..
* Portions created by the Initial Developer are Copyright (C) 2002
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Alex Fritze <alex.fritze@crocodile-clips.com> (original author)
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ----- END LICENSE BLOCK ----- */
#ifndef __NS_ISVGLENGTHLIST_H__
#define __NS_ISVGLENGTHLIST_H__
#include "nsIDOMSVGLengthList.h"
class nsISVGViewportAxis;
////////////////////////////////////////////////////////////////////////
// nsISVGLengthList: private interface for svg lengthlists
// {3B57DE3C-A2C3-4C17-B47A-0791C2EE0BE1}
#define NS_ISVGLENGTHLIST_IID \
{ 0x3b57de3c, 0xa2c3, 0x4c17, { 0xb4, 0x7a, 0x07, 0x91, 0xc2, 0xee, 0x0b, 0xe1 } }
class nsISVGLengthList : public nsIDOMSVGLengthList
{
public:
static const nsIID& GetIID() { static nsIID iid = NS_ISVGLENGTHLIST_IID; return iid; }
NS_IMETHOD SetContext(nsISVGViewportAxis* axis)=0;
};
#endif // __NS_ISVGLENGTHLIST_H__

View File

@@ -0,0 +1,62 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ----- BEGIN LICENSE BLOCK -----
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is the Mozilla SVG project.
*
* The Initial Developer of the Original Code is
* Crocodile Clips Ltd..
* Portions created by the Initial Developer are Copyright (C) 2002
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Alex Fritze <alex.fritze@crocodile-clips.com> (original author)
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ----- END LICENSE BLOCK ----- */
#ifndef __NS_ISVGSVGELEMENT__
#define __NS_ISVGSVGELEMENT__
#include "nsISupports.h"
#include "nsIDOMSVGSVGElement.h"
class nsISVGViewportRect;
////////////////////////////////////////////////////////////////////////
// nsISVGSVGElement: private interface implemented by <svg>-elements
// {C82DA355-56DE-4DB0-B7A8-D9750BF0DDD9}
#define NS_ISVGSVGELEMENT_IID \
{ 0xc82da355, 0x56de, 0x4db0, { 0xb7, 0xa8, 0xd9, 0x75, 0x0b, 0xf0, 0xdd, 0xd9 } }
class nsISVGSVGElement : public nsIDOMSVGSVGElement
{
public:
static const nsIID& GetIID() { static nsIID iid = NS_ISVGSVGELEMENT_IID; return iid; }
NS_IMETHOD GetParentViewportRect(nsISVGViewportRect **parentViewport)=0;
};
#endif // __NS_ISVGSVGELEMENT__

View File

@@ -0,0 +1,60 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ----- BEGIN LICENSE BLOCK -----
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is the Mozilla SVG project.
*
* The Initial Developer of the Original Code is
* Crocodile Clips Ltd..
* Portions created by the Initial Developer are Copyright (C) 2002
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Alex Fritze <alex.fritze@crocodile-clips.com> (original author)
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ----- END LICENSE BLOCK ----- */
#ifndef __NS_ISVGTEXTCONTENTMETRICS_H__
#define __NS_ISVGTEXTCONTENTMETRICS_H__
#include "nsISupports.h"
class nsIDOMSVGRect;
////////////////////////////////////////////////////////////////////////
// nsISVGTextContentMetrics
// {351AC4D0-22B3-45F5-BA26-8B8CF21EF1D8}
#define NS_ISVGTEXTCONTENTMETRICS_IID \
{ 0x351ac4d0, 0x22b3, 0x45f5, { 0xba, 0x26, 0x8b, 0x8c, 0xf2, 0x1e, 0xf1, 0xd8 } }
class nsISVGTextContentMetrics : public nsISupports
{
public:
static const nsIID& GetIID() { static nsIID iid = NS_ISVGTEXTCONTENTMETRICS_IID; return iid; }
NS_IMETHOD GetExtentOfChar(PRUint32 charnum, nsIDOMSVGRect **_retval)=0;
};
#endif // __NS_ISVGTEXTCONTENTMETRICS_H__

View File

@@ -0,0 +1,87 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ----- BEGIN LICENSE BLOCK -----
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is the Mozilla SVG project.
*
* The Initial Developer of the Original Code is
* Crocodile Clips Ltd..
* Portions created by the Initial Developer are Copyright (C) 2001
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Alex Fritze <alex.fritze@crocodile-clips.com> (original author)
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ----- END LICENSE BLOCK ----- */
#ifndef __NS_ISVGVALUE_H__
#define __NS_ISVGVALUE_H__
#include "nsISupports.h"
#include "nsString.h"
class nsISVGValueObserver;
////////////////////////////////////////////////////////////////////////
// nsISVGValue: private interface for svg values
/* This interface is implemented by all value-types (e.g. coords,
pointlists, matrices) that can be parsed from/to strings. This is
used for element-properties that are also XML attributes. E.g. the
'polyline'-element has a 'points'-attribute and a property
'animatedPoints' in the DOM.
XXX Observers
*/
// {79293232-F695-4bda-9FC7-C2679647B790}
#define NS_ISVGVALUE_IID \
{ 0x79293232, 0xf695, 0x4bda, { 0x9f, 0xc7, 0xc2, 0x67, 0x96, 0x47, 0xb7, 0x90 } }
class nsISVGValue : public nsISupports
{
public:
NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISVGVALUE_IID)
NS_IMETHOD SetValueString(const nsAString& aValue)=0;
NS_IMETHOD GetValueString(nsAString& aValue)=0;
NS_IMETHOD AddObserver(nsISVGValueObserver* observer)=0;
NS_IMETHOD RemoveObserver(nsISVGValueObserver* observer)=0;
NS_IMETHOD BeginBatchUpdate()=0;
NS_IMETHOD EndBatchUpdate()=0;
};
nsresult
NS_CreateSVGGenericStringValue(const nsAString& aValue, nsISVGValue** aResult);
nsresult
NS_CreateSVGStringProxyValue(nsISVGValue* proxiedValue, nsISVGValue** aResult);
#endif // __NS_ISVGVALUE_H__

View File

@@ -0,0 +1,74 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ----- BEGIN LICENSE BLOCK -----
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is the Mozilla SVG project.
*
* The Initial Developer of the Original Code is
* Crocodile Clips Ltd..
* Portions created by the Initial Developer are Copyright (C) 2002
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Alex Fritze <alex.fritze@crocodile-clips.com> (original author)
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ----- END LICENSE BLOCK ----- */
#ifndef __NS_ISVGVALUEUTILS_H__
#define __NS_ISVGVALUEUTILS_H__
// NS_ADD_SVGVALUE_OBSERVER() :
// add *this* as an observer to 'value'
#define NS_ADD_SVGVALUE_OBSERVER(value) \
PR_BEGIN_MACRO \
{ \
nsCOMPtr<nsISVGValue> v = do_QueryInterface(value); \
NS_ASSERTION(v, "can't find nsISVGValue interface on " #value ); \
if (v) \
v->AddObserver(this); \
} \
PR_END_MACRO
// NS_REMOVE_SVGVALUE_OBSERVER() :
// remove *this* as an observer to 'value'
#define NS_REMOVE_SVGVALUE_OBSERVER(value) \
PR_BEGIN_MACRO \
{ \
nsCOMPtr<nsISVGValue> v = do_QueryInterface(value); \
NS_ASSERTION(v, "can't find nsISVGValue interface on " #value ); \
if (v) \
v->RemoveObserver(this); \
} \
PR_END_MACRO
#endif // __NS_ISVGVALUEUTILS_H__

View File

@@ -0,0 +1,65 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ----- BEGIN LICENSE BLOCK -----
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is the Mozilla SVG project.
*
* The Initial Developer of the Original Code is
* Crocodile Clips Ltd..
* Portions created by the Initial Developer are Copyright (C) 2002
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Alex Fritze <alex.fritze@crocodile-clips.com> (original author)
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ----- END LICENSE BLOCK ----- */
#ifndef __NS_ISVGVIEWPORTAXIS_H__
#define __NS_ISVGVIEWPORTAXIS_H__
#include "nsISupports.h"
class nsIDOMSVGNumber;
////////////////////////////////////////////////////////////////////////
// nsISVGViewportAxis: private interface used as a context for
// percentage/unit-based calculations on svg lengths
// {62C247BD-0CF0-43B6-A937-6BD7875B5E0E}
#define NS_ISVGVIEWPORTAXIS_IID \
{ 0x62c247bd, 0x0cf0, 0x43b6, { 0xa9, 0x37, 0x6b, 0xd7, 0x87, 0x5b, 0x5e, 0x0e } }
class nsISVGViewportAxis : public nsISupports
{
public:
static const nsIID& GetIID() { static nsIID iid = NS_ISVGVIEWPORTAXIS_IID; return iid; }
NS_IMETHOD GetMillimeterPerPixel(nsIDOMSVGNumber **scale)=0;
NS_IMETHOD GetLength(nsIDOMSVGNumber **length)=0;
};
#endif // __NS_ISVGVIEWPORTAXIS_H__

View File

@@ -0,0 +1,75 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ----- BEGIN LICENSE BLOCK -----
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is the Mozilla SVG project.
*
* The Initial Developer of the Original Code is
* Crocodile Clips Ltd..
* Portions created by the Initial Developer are Copyright (C) 2002
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Alex Fritze <alex.fritze@crocodile-clips.com> (original author)
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ----- END LICENSE BLOCK ----- */
#ifndef __NS_ISVGVIEWPORTRECT_H__
#define __NS_ISVGVIEWPORTRECT_H__
#include "nsIDOMSVGRect.h"
class nsISVGViewportAxis;
////////////////////////////////////////////////////////////////////////
// nsISVGViewportRect: private viewport interface
// {96547374-899B-434C-9566-0E23C58712F6}
#define NS_ISVGVIEWPORTRECT_IID \
{ 0x96547374, 0x899b, 0x434c, { 0x95, 0x66, 0x0e, 0x23, 0xc5, 0x87, 0x12, 0xf6 } }
class nsISVGViewportRect : public nsIDOMSVGRect
{
public:
static const nsIID& GetIID() { static nsIID iid = NS_ISVGVIEWPORTRECT_IID; return iid; }
NS_IMETHOD GetXAxis(nsISVGViewportAxis **xaxis)=0;
NS_IMETHOD GetYAxis(nsISVGViewportAxis **yaxis)=0;
NS_IMETHOD GetUnspecifiedAxis(nsISVGViewportAxis **axis)=0;
};
//////////////////////////////////////////////////////////////////////
class nsIDOMSVGNumber;
extern nsresult
NS_NewSVGViewportRect(nsISVGViewportRect **result,
nsIDOMSVGNumber* scalex,
nsIDOMSVGNumber* scaley,
nsIDOMSVGNumber* lengthx,
nsIDOMSVGNumber* lengthy);
#endif // __NS_ISVGVIEWPORTRECT_H__

View File

@@ -0,0 +1,202 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ----- BEGIN LICENSE BLOCK -----
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is the Mozilla SVG project.
*
* The Initial Developer of the Original Code is
* Crocodile Clips Ltd..
* Portions created by the Initial Developer are Copyright (C) 2001
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Alex Fritze <alex.fritze@crocodile-clips.com> (original author)
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ----- END LICENSE BLOCK ----- */
#include "nsSVGValue.h"
#include "nsWeakReference.h"
#include "nsSVGAnimatedLength.h"
#include "nsSVGLength.h"
////////////////////////////////////////////////////////////////////////
// nsSVGAnimatedLength
class nsSVGAnimatedLength : public nsIDOMSVGAnimatedLength,
public nsSVGValue,
public nsISVGValueObserver,
public nsSupportsWeakReference
{
protected:
friend nsresult NS_NewSVGAnimatedLength(nsIDOMSVGAnimatedLength** result,
nsIDOMSVGLength* baseVal);
nsSVGAnimatedLength();
~nsSVGAnimatedLength();
void Init(nsIDOMSVGLength* baseVal);
public:
// nsISupports interface:
NS_DECL_ISUPPORTS
// nsIDOMSVGAnimatedLength interface:
NS_DECL_NSIDOMSVGANIMATEDLENGTH
// remainder of nsISVGValue interface:
NS_IMETHOD SetValueString(const nsAString& aValue);
NS_IMETHOD GetValueString(nsAString& aValue);
// nsISVGValueObserver
NS_IMETHOD WillModifySVGObservable(nsISVGValue* observable);
NS_IMETHOD DidModifySVGObservable (nsISVGValue* observable);
// nsISupportsWeakReference
// implementation inherited from nsSupportsWeakReference
protected:
nsCOMPtr<nsIDOMSVGLength> mBaseVal;
};
//----------------------------------------------------------------------
// Implementation
nsSVGAnimatedLength::nsSVGAnimatedLength()
{
}
nsSVGAnimatedLength::~nsSVGAnimatedLength()
{
if (!mBaseVal) return;
nsCOMPtr<nsISVGValue> val = do_QueryInterface(mBaseVal);
if (!val) return;
val->RemoveObserver(this);
}
void
nsSVGAnimatedLength::Init(nsIDOMSVGLength* baseVal)
{
mBaseVal = baseVal;
if (!mBaseVal) return;
nsCOMPtr<nsISVGValue> val = do_QueryInterface(mBaseVal);
NS_ASSERTION(val, "baseval needs to implement nsISVGValue interface");
if (!val) return;
val->AddObserver(this);
}
//----------------------------------------------------------------------
// nsISupports methods:
NS_IMPL_ADDREF(nsSVGAnimatedLength)
NS_IMPL_RELEASE(nsSVGAnimatedLength)
NS_INTERFACE_MAP_BEGIN(nsSVGAnimatedLength)
NS_INTERFACE_MAP_ENTRY(nsISVGValue)
NS_INTERFACE_MAP_ENTRY(nsIDOMSVGAnimatedLength)
NS_INTERFACE_MAP_ENTRY(nsISupportsWeakReference)
NS_INTERFACE_MAP_ENTRY(nsISVGValueObserver)
NS_INTERFACE_MAP_ENTRY_CONTENT_CLASSINFO(SVGAnimatedLength)
NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsISVGValue)
NS_INTERFACE_MAP_END
//----------------------------------------------------------------------
// nsISVGValue methods:
NS_IMETHODIMP
nsSVGAnimatedLength::SetValueString(const nsAString& aValue)
{
nsCOMPtr<nsISVGValue> value = do_QueryInterface(mBaseVal);
return value->SetValueString(aValue);
}
NS_IMETHODIMP
nsSVGAnimatedLength::GetValueString(nsAString& aValue)
{
nsCOMPtr<nsISVGValue> value = do_QueryInterface(mBaseVal);
return value->GetValueString(aValue);
}
//----------------------------------------------------------------------
// nsIDOMSVGAnimatedLength methods:
/* readonly attribute nsIDOMSVGLength baseVal; */
NS_IMETHODIMP
nsSVGAnimatedLength::GetBaseVal(nsIDOMSVGLength * *aBaseVal)
{
*aBaseVal = mBaseVal;
NS_ADDREF(*aBaseVal);
return NS_OK;
}
/* readonly attribute nsIDOMSVGLength animVal; */
NS_IMETHODIMP
nsSVGAnimatedLength::GetAnimVal(nsIDOMSVGLength * *aAnimVal)
{
*aAnimVal = mBaseVal;
NS_ADDREF(*aAnimVal);
return NS_OK;
}
//----------------------------------------------------------------------
// nsISVGValueObserver methods
NS_IMETHODIMP
nsSVGAnimatedLength::WillModifySVGObservable(nsISVGValue* observable)
{
WillModify();
return NS_OK;
}
NS_IMETHODIMP
nsSVGAnimatedLength::DidModifySVGObservable (nsISVGValue* observable)
{
DidModify();
return NS_OK;
}
////////////////////////////////////////////////////////////////////////
// Exported creation functions
nsresult
NS_NewSVGAnimatedLength(nsIDOMSVGAnimatedLength** aResult,
nsIDOMSVGLength* baseVal)
{
*aResult = nsnull;
nsSVGAnimatedLength* animatedLength = new nsSVGAnimatedLength();
if(!animatedLength) return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(animatedLength);
// nsCOMPtr<nsIDOMSVGLength> baseVal;
// NS_NewSVGLength(getter_AddRefs(baseVal), context);
animatedLength->Init(baseVal);
*aResult = (nsIDOMSVGAnimatedLength*) animatedLength;
return NS_OK;
}

View File

@@ -0,0 +1,200 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ----- BEGIN LICENSE BLOCK -----
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is the Mozilla SVG project.
*
* The Initial Developer of the Original Code is
* Crocodile Clips Ltd..
* Portions created by the Initial Developer are Copyright (C) 2002
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Alex Fritze <alex.fritze@crocodile-clips.com> (original author)
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ----- END LICENSE BLOCK ----- */
#include "nsSVGAnimatedLengthList.h"
#include "nsSVGLengthList.h"
#include "nsSVGValue.h"
#include "nsWeakReference.h"
////////////////////////////////////////////////////////////////////////
// nsSVGAnimatedTransformList
class nsSVGAnimatedLengthList : public nsIDOMSVGAnimatedLengthList,
public nsSVGValue,
public nsISVGValueObserver,
public nsSupportsWeakReference
{
protected:
friend nsresult
NS_NewSVGAnimatedLengthList(nsIDOMSVGAnimatedLengthList** result,
nsIDOMSVGLengthList* baseVal);
nsSVGAnimatedLengthList();
~nsSVGAnimatedLengthList();
void Init(nsIDOMSVGLengthList* baseVal);
public:
// nsISupports interface:
NS_DECL_ISUPPORTS
// nsIDOMSVGAnimatedLengthList interface:
NS_DECL_NSIDOMSVGANIMATEDLENGTHLIST
// remainder of nsISVGValue interface:
NS_IMETHOD SetValueString(const nsAString& aValue);
NS_IMETHOD GetValueString(nsAString& aValue);
// nsISVGValueObserver
NS_IMETHOD WillModifySVGObservable(nsISVGValue* observable);
NS_IMETHOD DidModifySVGObservable (nsISVGValue* observable);
// nsISupportsWeakReference
// implementation inherited from nsSupportsWeakReference
protected:
nsCOMPtr<nsIDOMSVGLengthList> mBaseVal;
};
//----------------------------------------------------------------------
// Implementation
nsSVGAnimatedLengthList::nsSVGAnimatedLengthList()
{
}
nsSVGAnimatedLengthList::~nsSVGAnimatedLengthList()
{
if (!mBaseVal) return;
nsCOMPtr<nsISVGValue> val = do_QueryInterface(mBaseVal);
if (!val) return;
val->RemoveObserver(this);
}
void
nsSVGAnimatedLengthList::Init(nsIDOMSVGLengthList* baseVal)
{
mBaseVal = baseVal;
if (!mBaseVal) return;
nsCOMPtr<nsISVGValue> val = do_QueryInterface(mBaseVal);
if (!val) return;
val->AddObserver(this);
}
//----------------------------------------------------------------------
// nsISupports methods:
NS_IMPL_ADDREF(nsSVGAnimatedLengthList)
NS_IMPL_RELEASE(nsSVGAnimatedLengthList)
NS_INTERFACE_MAP_BEGIN(nsSVGAnimatedLengthList)
NS_INTERFACE_MAP_ENTRY(nsISVGValue)
NS_INTERFACE_MAP_ENTRY(nsIDOMSVGAnimatedLengthList)
NS_INTERFACE_MAP_ENTRY(nsISupportsWeakReference)
NS_INTERFACE_MAP_ENTRY(nsISVGValueObserver)
NS_INTERFACE_MAP_ENTRY_CONTENT_CLASSINFO(SVGAnimatedLengthList)
NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsISVGValue)
NS_INTERFACE_MAP_END
//----------------------------------------------------------------------
// nsISVGValue methods:
NS_IMETHODIMP
nsSVGAnimatedLengthList::SetValueString(const nsAString& aValue)
{
nsCOMPtr<nsISVGValue> value = do_QueryInterface(mBaseVal);
return value->SetValueString(aValue);
}
NS_IMETHODIMP
nsSVGAnimatedLengthList::GetValueString(nsAString& aValue)
{
nsCOMPtr<nsISVGValue> value = do_QueryInterface(mBaseVal);
return value->GetValueString(aValue);
}
//----------------------------------------------------------------------
// nsIDOMSVGAnimatedLengthList methods:
/* readonly attribute nsIDOMSVGLengthList baseVal; */
NS_IMETHODIMP
nsSVGAnimatedLengthList::GetBaseVal(nsIDOMSVGLengthList * *aBaseVal)
{
*aBaseVal = mBaseVal;
NS_ADDREF(*aBaseVal);
return NS_OK;
}
/* readonly attribute nsIDOMSVGLengthList animVal; */
NS_IMETHODIMP
nsSVGAnimatedLengthList::GetAnimVal(nsIDOMSVGLengthList * *aAnimVal)
{
*aAnimVal = mBaseVal;
NS_ADDREF(*aAnimVal);
return NS_OK;
}
//----------------------------------------------------------------------
// nsISVGValueObserver methods
NS_IMETHODIMP
nsSVGAnimatedLengthList::WillModifySVGObservable(nsISVGValue* observable)
{
WillModify();
return NS_OK;
}
NS_IMETHODIMP
nsSVGAnimatedLengthList::DidModifySVGObservable (nsISVGValue* observable)
{
DidModify();
return NS_OK;
}
////////////////////////////////////////////////////////////////////////
// Exported creation functions:
nsresult
NS_NewSVGAnimatedLengthList(nsIDOMSVGAnimatedLengthList** result,
nsIDOMSVGLengthList* baseVal)
{
*result = nsnull;
nsSVGAnimatedLengthList* animatedLengthList = new nsSVGAnimatedLengthList();
if(!animatedLengthList) return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(animatedLengthList);
animatedLengthList->Init(baseVal);
*result = (nsIDOMSVGAnimatedLengthList*) animatedLengthList;
return NS_OK;
}

View File

@@ -0,0 +1,49 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ----- BEGIN LICENSE BLOCK -----
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is the Mozilla SVG project.
*
* The Initial Developer of the Original Code is
* Crocodile Clips Ltd..
* Portions created by the Initial Developer are Copyright (C) 2001
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Alex Fritze <alex.fritze@crocodile-clips.com> (original author)
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ----- END LICENSE BLOCK ----- */
#ifndef __NS_SVGANIMATEDLENGTHLIST_H__
#define __NS_SVGANIMATEDLENGTHLIST_H__
#include "nsIDOMSVGAnimatedLengthList.h"
#include "nsIDOMSVGLengthList.h"
nsresult
NS_NewSVGAnimatedLengthList(nsIDOMSVGAnimatedLengthList** result,
nsIDOMSVGLengthList* baseVal);
#endif //__NS_SVGANIMATEDLENGTHLIST_H__

View File

@@ -0,0 +1,164 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ----- BEGIN LICENSE BLOCK -----
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is the Mozilla SVG project.
*
* The Initial Developer of the Original Code is
* Crocodile Clips Ltd..
* Portions created by the Initial Developer are Copyright (C) 2003
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Alex Fritze <alex.fritze@crocodile-clips.com> (original author)
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ----- END LICENSE BLOCK ----- */
#include "nsSVGValue.h"
#include "nsWeakReference.h"
#include "nsSVGAnimatedString.h"
////////////////////////////////////////////////////////////////////////
// nsSVGAnimatedString
class nsSVGAnimatedString : public nsIDOMSVGAnimatedString,
public nsSVGValue
{
protected:
friend nsresult NS_NewSVGAnimatedString(nsIDOMSVGAnimatedString** result);
nsSVGAnimatedString();
~nsSVGAnimatedString();
void Init();
public:
// nsISupports interface:
NS_DECL_ISUPPORTS
// nsIDOMSVGAnimatedString interface:
NS_DECL_NSIDOMSVGANIMATEDSTRING
// remainder of nsISVGValue interface:
NS_IMETHOD SetValueString(const nsAString& aValue);
NS_IMETHOD GetValueString(nsAString& aValue);
protected:
nsString mBaseVal;
};
//----------------------------------------------------------------------
// Implementation
nsSVGAnimatedString::nsSVGAnimatedString()
{
}
nsSVGAnimatedString::~nsSVGAnimatedString()
{
}
void
nsSVGAnimatedString::Init()
{
}
//----------------------------------------------------------------------
// nsISupports methods:
NS_IMPL_ADDREF(nsSVGAnimatedString)
NS_IMPL_RELEASE(nsSVGAnimatedString)
NS_INTERFACE_MAP_BEGIN(nsSVGAnimatedString)
NS_INTERFACE_MAP_ENTRY(nsISVGValue)
NS_INTERFACE_MAP_ENTRY(nsIDOMSVGAnimatedString)
NS_INTERFACE_MAP_ENTRY_CONTENT_CLASSINFO(SVGAnimatedString)
NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsISVGValue)
NS_INTERFACE_MAP_END
//----------------------------------------------------------------------
// nsISVGValue methods:
NS_IMETHODIMP
nsSVGAnimatedString::SetValueString(const nsAString& aValue)
{
WillModify();
mBaseVal = aValue;
DidModify();
return NS_OK;
}
NS_IMETHODIMP
nsSVGAnimatedString::GetValueString(nsAString& aValue)
{
aValue = mBaseVal;
return NS_OK;
}
//----------------------------------------------------------------------
// nsIDOMSVGAnimatedString methods:
/* attribute DOMString baseVal; */
NS_IMETHODIMP
nsSVGAnimatedString::GetBaseVal(nsAString & aBaseVal)
{
aBaseVal = mBaseVal;
return NS_OK;
}
NS_IMETHODIMP
nsSVGAnimatedString::SetBaseVal(const nsAString & aBaseVal)
{
mBaseVal = aBaseVal;
return NS_OK;
}
/* readonly attribute DOMString animVal; */
NS_IMETHODIMP
nsSVGAnimatedString::GetAnimVal(nsAString & aAnimVal)
{
aAnimVal = mBaseVal;
return NS_OK;
}
////////////////////////////////////////////////////////////////////////
// Exported creation functions
nsresult
NS_NewSVGAnimatedString(nsIDOMSVGAnimatedString** aResult)
{
*aResult = nsnull;
nsSVGAnimatedString* animatedString = new nsSVGAnimatedString();
if(!animatedString) return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(animatedString);
animatedString->Init();
*aResult = (nsIDOMSVGAnimatedString*) animatedString;
return NS_OK;
}

View File

@@ -0,0 +1,49 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ----- BEGIN LICENSE BLOCK -----
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is the Mozilla SVG project.
*
* The Initial Developer of the Original Code is
* Crocodile Clips Ltd..
* Portions created by the Initial Developer are Copyright (C) 2003
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Alex Fritze <alex.fritze@crocodile-clips.com> (original author)
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ----- END LICENSE BLOCK ----- */
#ifndef __NS_SVGANIMATEDSTRING_H__
#define __NS_SVGANIMATEDSTRING_H__
#include "nsIDOMSVGAnimatedString.h"
nsresult NS_NewSVGAnimatedString(nsIDOMSVGAnimatedString** result);
#endif //__NS_SVGANIMATEDSTRING_H__

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,218 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ----- BEGIN LICENSE BLOCK -----
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is the Mozilla SVG project.
*
* The Initial Developer of the Original Code is
* Crocodile Clips Ltd..
* Portions created by the Initial Developer are Copyright (C) 2001
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Alex Fritze <alex.fritze@crocodile-clips.com> (original author)
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ----- END LICENSE BLOCK ----- */
#ifndef __NS_SVGATTRIBUTES_H__
#define __NS_SVGATTRIBUTES_H__
#include "nsCOMPtr.h"
#include "nsISVGAttribute.h"
#include "nsIDOMNamedNodeMap.h"
#include "nsString.h"
#include "nsIAtom.h"
#include "nsVoidArray.h"
#include "nsINodeInfo.h"
#include "nsISVGValue.h"
#include "nsISVGValueObserver.h"
#include "nsWeakReference.h"
#include "nsICSSStyleRule.h"
#include "nsINameSpaceManager.h"
#include "nsAttrName.h"
class nsIStyledContent;
class nsSVGAttributes;
////////////////////////////////////////////////////////////////////////
// SVG Attribute Flags
// XXX these flags are not used yet
typedef PRUint32 nsSVGAttributeFlags;
// This is a #REQUIRED-attribute. Should not be allowed to unset
#define NS_SVGATTRIBUTE_FLAGS_REQUIRED 0x0001
// This is a #FIXED-attribute. Should not be allowed to set/unset
#define NS_SVGATTRIBUTE_FLAGS_FIXED 0x0002
// this attribute is a mapped value. if it is being unset we keep it
// around to be reused:
#define NS_SVGATTRIBUTE_FLAGS_MAPPED 0x0004
////////////////////////////////////////////////////////////////////////
// nsSVGAttribute
class nsSVGAttribute : public nsISVGAttribute, // :nsIDOMAttr
public nsISVGValueObserver,
public nsSupportsWeakReference
{
public:
static nsresult
Create(const nsAttrName& aName,
nsISVGValue* value,
nsSVGAttributeFlags flags,
nsSVGAttribute** aResult);
// create a generic string attribute:
static nsresult
Create(const nsAttrName& aName,
const nsAString& value,
nsSVGAttribute** aResult);
protected:
nsSVGAttribute(const nsAttrName& aName,
nsISVGValue* value,
nsSVGAttributeFlags flags);
virtual ~nsSVGAttribute();
public:
// nsISupports interface
NS_DECL_ISUPPORTS
// nsIDOMNode interface
NS_DECL_NSIDOMNODE
// nsIDOMAttr interface
NS_DECL_NSIDOMATTR
// nsISVGAttribute interface
NS_IMETHOD GetSVGValue(nsISVGValue** value);
// nsISVGValueObserver
NS_IMETHOD WillModifySVGObservable(nsISVGValue* observable);
NS_IMETHOD DidModifySVGObservable (nsISVGValue* observable);
// nsISupportsWeakReference
// implementation inherited from nsSupportsWeakReference
// other implementation functions
const nsAttrName* Name() const { return &mName; }
void GetQualifiedName(nsAString& aQualifiedName)const;
nsISVGValue* GetValue() { return mValue; }
void SetValueString(const nsAString& aValue);
nsSVGAttributeFlags GetFlags()const { return mFlags; }
PRBool IsRequired()const { return mFlags & NS_SVGATTRIBUTE_FLAGS_REQUIRED; }
PRBool IsFixed()const { return mFlags & NS_SVGATTRIBUTE_FLAGS_FIXED; }
protected:
friend class nsSVGAttributes;
nsSVGAttributeFlags mFlags;
nsSVGAttributes* mOwner;
nsAttrName mName;
nsCOMPtr<nsISVGValue> mValue;
};
////////////////////////////////////////////////////////////////////////
// nsSVGAttributes: the collection of attribs for one content element
class nsSVGAttributes : public nsIDOMNamedNodeMap
{
public:
static nsresult
Create(nsIStyledContent* aElement, nsSVGAttributes** aResult);
protected:
nsSVGAttributes(nsIStyledContent* aContent);
virtual ~nsSVGAttributes();
public:
// nsISupports interface
NS_DECL_ISUPPORTS
// nsIDOMNamedNodeMap interface
NS_DECL_NSIDOMNAMEDNODEMAP
// interface exposed to the content element:
PRInt32 Count() const;
nsresult GetAttr(PRInt32 aNameSpaceID, nsIAtom* aName,
nsAString& aResult);
nsresult SetAttr(PRInt32 aNameSpaceID, nsIAtom* aName, nsIAtom* aPrefix,
const nsAString& aValue, PRBool aNotify);
nsresult UnsetAttr(PRInt32 aNameSpaceID, nsIAtom* aName,
PRBool aNotify);
NS_IMETHOD_(PRBool) HasAttr(PRInt32 aNameSpaceID,
nsIAtom* aName) const;
const nsAttrName* GetExistingAttrNameFromQName(const nsAString& aStr);
nsresult GetAttrNameAt(PRInt32 aIndex,
PRInt32* aNameSpaceID,
nsIAtom** aName,
nsIAtom** aPrefix);
nsresult AddMappedSVGValue(nsIAtom* name, nsISupports* value,
PRInt32 namespaceID=kNameSpaceID_None);
nsresult CopyAttributes(nsSVGAttributes* dest);
void GetContentStyleRule(nsIStyleRule** rule);
// interface exposed to our attributes:
nsIStyledContent* GetContent(){ return mContent; }
void AttributeWasModified(nsSVGAttribute* caller);
protected:
// implementation helpers:
void ReleaseAttributes();
void ReleaseMappedAttributes();
PRBool GetMappedAttribute(PRInt32 aNamespaceID, nsIAtom* aName,
nsSVGAttribute** attrib);
PRBool IsExplicitAttribute(nsSVGAttribute* attrib);
PRBool IsMappedAttribute(nsSVGAttribute* attrib);
nsSVGAttribute* ElementAt(PRInt32 index) const;
void AppendElement(nsSVGAttribute* aElement);
void RemoveElementAt(PRInt32 aIndex);
PRBool AffectsContentStyleRule(const nsIAtom* aAttribute);
void UpdateContentStyleRule();
nsIStyledContent* mContent; // our owner
nsCOMPtr<nsICSSStyleRule> mContentStyleRule;
nsAutoVoidArray mAttributes;
nsAutoVoidArray mMappedAttributes;
};
#endif // __NS_SVGATTRIBUTES_H__

View File

@@ -0,0 +1,318 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ----- BEGIN LICENSE BLOCK -----
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is the Mozilla SVG project.
*
* The Initial Developer of the Original Code is
* Crocodile Clips Ltd..
* Portions created by the Initial Developer are Copyright (C) 2001
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Alex Fritze <alex.fritze@crocodile-clips.com> (original author)
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ----- END LICENSE BLOCK ----- */
#include "nsSVGGraphicElement.h"
#include "nsSVGAtoms.h"
#include "nsSVGAnimatedLength.h"
#include "nsSVGLength.h"
#include "nsIDOMSVGCircleElement.h"
#include "nsCOMPtr.h"
#include "nsISVGSVGElement.h"
#include "nsISVGViewportAxis.h"
#include "nsISVGViewportRect.h"
typedef nsSVGGraphicElement nsSVGCircleElementBase;
class nsSVGCircleElement : public nsSVGCircleElementBase,
public nsIDOMSVGCircleElement
{
protected:
friend nsresult NS_NewSVGCircleElement(nsIContent **aResult,
nsINodeInfo *aNodeInfo);
nsSVGCircleElement();
virtual ~nsSVGCircleElement();
virtual nsresult Init();
public:
NS_DECL_ISUPPORTS_INHERITED
NS_DECL_NSIDOMSVGCIRCLEELEMENT
// xxx I wish we could use virtual inheritance
NS_FORWARD_NSIDOMNODE_NO_CLONENODE(nsSVGCircleElementBase::)
NS_FORWARD_NSIDOMELEMENT(nsSVGCircleElementBase::)
NS_FORWARD_NSIDOMSVGELEMENT(nsSVGCircleElementBase::)
protected:
virtual void ParentChainChanged();
nsCOMPtr<nsIDOMSVGAnimatedLength> mCx;
nsCOMPtr<nsIDOMSVGAnimatedLength> mCy;
nsCOMPtr<nsIDOMSVGAnimatedLength> mR;
};
nsresult NS_NewSVGCircleElement(nsIContent **aResult, nsINodeInfo *aNodeInfo)
{
*aResult = nsnull;
nsSVGCircleElement* it = new nsSVGCircleElement();
if (!it) return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(it);
nsresult rv = NS_STATIC_CAST(nsGenericElement*,it)->Init(aNodeInfo);
if (NS_FAILED(rv)) {
it->Release();
return rv;
}
rv = it->Init();
if (NS_FAILED(rv)) {
it->Release();
return rv;
}
*aResult = NS_STATIC_CAST(nsIContent *, it);
return NS_OK;
}
//----------------------------------------------------------------------
// nsISupports methods
NS_IMPL_ADDREF_INHERITED(nsSVGCircleElement,nsSVGCircleElementBase)
NS_IMPL_RELEASE_INHERITED(nsSVGCircleElement,nsSVGCircleElementBase)
NS_INTERFACE_MAP_BEGIN(nsSVGCircleElement)
NS_INTERFACE_MAP_ENTRY(nsIDOMSVGCircleElement)
NS_INTERFACE_MAP_ENTRY_CONTENT_CLASSINFO(SVGCircleElement)
NS_INTERFACE_MAP_END_INHERITING(nsSVGCircleElementBase)
//----------------------------------------------------------------------
// Implementation
nsSVGCircleElement::nsSVGCircleElement()
{
}
nsSVGCircleElement::~nsSVGCircleElement()
{
if (mCx) {
nsCOMPtr<nsISVGValue> value = do_QueryInterface(mCx);
value->RemoveObserver(this);
}
if (mCy) {
nsCOMPtr<nsISVGValue> value = do_QueryInterface(mCy);
value->RemoveObserver(this);
}
if (mR) {
nsCOMPtr<nsISVGValue> value = do_QueryInterface(mR);
value->RemoveObserver(this);
}
}
nsresult
nsSVGCircleElement::Init()
{
nsresult rv;
rv = nsSVGCircleElementBase::Init();
NS_ENSURE_SUCCESS(rv,rv);
// Create mapped properties:
// DOM property: cx , #IMPLIED attrib: cx
{
nsCOMPtr<nsISVGLength> length;
rv = NS_NewSVGLength(getter_AddRefs(length), 0.0f);
NS_ENSURE_SUCCESS(rv,rv);
rv = NS_NewSVGAnimatedLength(getter_AddRefs(mCx), length);
NS_ENSURE_SUCCESS(rv,rv);
rv = mAttributes->AddMappedSVGValue(nsSVGAtoms::cx, mCx);
NS_ENSURE_SUCCESS(rv,rv);
}
// DOM property: cy , #IMPLIED attrib: cy
{
nsCOMPtr<nsISVGLength> length;
rv = NS_NewSVGLength(getter_AddRefs(length), 0.0f);
NS_ENSURE_SUCCESS(rv,rv);
rv = NS_NewSVGAnimatedLength(getter_AddRefs(mCy), length);
NS_ENSURE_SUCCESS(rv,rv);
rv = mAttributes->AddMappedSVGValue(nsSVGAtoms::cy, mCy);
NS_ENSURE_SUCCESS(rv,rv);
}
// DOM property: r , #REQUIRED attrib: r
// XXX: enforce requiredness
{
nsCOMPtr<nsISVGLength> length;
rv = NS_NewSVGLength(getter_AddRefs(length), 0.0f);
NS_ENSURE_SUCCESS(rv,rv);
rv = NS_NewSVGAnimatedLength(getter_AddRefs(mR), length);
NS_ENSURE_SUCCESS(rv,rv);
rv = mAttributes->AddMappedSVGValue(nsSVGAtoms::r, mR);
NS_ENSURE_SUCCESS(rv,rv);
}
return NS_OK;
}
//----------------------------------------------------------------------
// nsIDOMNode methods
NS_IMETHODIMP
nsSVGCircleElement::CloneNode(PRBool aDeep, nsIDOMNode** aReturn)
{
*aReturn = nsnull;
nsSVGCircleElement* it = new nsSVGCircleElement();
if (!it) return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(it);
nsresult rv = NS_STATIC_CAST(nsGenericElement*,it)->Init(mNodeInfo);
if (NS_FAILED(rv)) {
it->Release();
return rv;
}
rv = it->Init();
if (NS_FAILED(rv)) {
it->Release();
return rv;
}
rv = CopyNode(it, aDeep);
if (NS_FAILED(rv)) {
it->Release();
return rv;
}
*aReturn = NS_STATIC_CAST(nsSVGCircleElementBase*, it);
return NS_OK;
}
//----------------------------------------------------------------------
// nsIDOMSVGCircleElement methods
/* readonly attribute nsIDOMSVGAnimatedLength cx; */
NS_IMETHODIMP nsSVGCircleElement::GetCx(nsIDOMSVGAnimatedLength * *aCx)
{
*aCx = mCx;
NS_IF_ADDREF(*aCx);
return NS_OK;
}
/* readonly attribute nsIDOMSVGAnimatedLength cy; */
NS_IMETHODIMP nsSVGCircleElement::GetCy(nsIDOMSVGAnimatedLength * *aCy)
{
*aCy = mCy;
NS_IF_ADDREF(*aCy);
return NS_OK;
}
/* readonly attribute nsIDOMSVGAnimatedLength r; */
NS_IMETHODIMP nsSVGCircleElement::GetR(nsIDOMSVGAnimatedLength * *aR)
{
*aR = mR;
NS_IF_ADDREF(*aR);
return NS_OK;
}
//----------------------------------------------------------------------
//
void nsSVGCircleElement::ParentChainChanged()
{
// set new context information on our length-properties:
nsCOMPtr<nsIDOMSVGSVGElement> dom_elem;
GetOwnerSVGElement(getter_AddRefs(dom_elem));
if (!dom_elem) return;
nsCOMPtr<nsISVGSVGElement> svg_elem = do_QueryInterface(dom_elem);
NS_ASSERTION(svg_elem, "<svg> element missing interface");
// cx:
{
nsCOMPtr<nsIDOMSVGLength> dom_length;
mCx->GetBaseVal(getter_AddRefs(dom_length));
nsCOMPtr<nsISVGLength> length = do_QueryInterface(dom_length);
NS_ASSERTION(length, "svg length missing interface");
nsCOMPtr<nsIDOMSVGRect> vp_dom;
svg_elem->GetViewport(getter_AddRefs(vp_dom));
nsCOMPtr<nsISVGViewportRect> vp = do_QueryInterface(vp_dom);
nsCOMPtr<nsISVGViewportAxis> ctx;
vp->GetXAxis(getter_AddRefs(ctx));
length->SetContext(ctx);
}
// cy:
{
nsCOMPtr<nsIDOMSVGLength> dom_length;
mCy->GetBaseVal(getter_AddRefs(dom_length));
nsCOMPtr<nsISVGLength> length = do_QueryInterface(dom_length);
NS_ASSERTION(length, "svg length missing interface");
nsCOMPtr<nsIDOMSVGRect> vp_dom;
svg_elem->GetViewport(getter_AddRefs(vp_dom));
nsCOMPtr<nsISVGViewportRect> vp = do_QueryInterface(vp_dom);
nsCOMPtr<nsISVGViewportAxis> ctx;
vp->GetYAxis(getter_AddRefs(ctx));
length->SetContext(ctx);
}
// r:
{
nsCOMPtr<nsIDOMSVGLength> dom_length;
mR->GetBaseVal(getter_AddRefs(dom_length));
nsCOMPtr<nsISVGLength> length = do_QueryInterface(dom_length);
NS_ASSERTION(length, "svg length missing interface");
nsCOMPtr<nsIDOMSVGRect> vp_dom;
svg_elem->GetViewport(getter_AddRefs(vp_dom));
nsCOMPtr<nsISVGViewportRect> vp = do_QueryInterface(vp_dom);
nsCOMPtr<nsISVGViewportAxis> ctx;
vp->GetUnspecifiedAxis(getter_AddRefs(ctx));
length->SetContext(ctx);
}
}

View File

@@ -0,0 +1,646 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ----- BEGIN LICENSE BLOCK -----
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Mozilla Communicator client code.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Alex Fritze <alex.fritze@crocodile-clips.com>
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ----- END LICENSE BLOCK ----- */
#include "nsSVGElement.h"
#include "nsIDocument.h"
#include "nsRange.h"
#include "nsIDOMEventReceiver.h"
#include "nsIDOMMutationEvent.h"
#include "nsMutationEvent.h"
#include "nsIBindingManager.h"
#include "nsIXBLBinding.h"
#include "nsStyleConsts.h"
#include "nsDOMError.h"
#include "nsIPresShell.h"
#include "nsIDOMViewCSS.h"
#include "nsIDOMCSSStyleDeclaration.h"
#include "nsIServiceManager.h"
#include "nsIXBLService.h"
#include "nsSVGAtoms.h"
#include "nsICSSStyleRule.h"
#include "nsISVGSVGElement.h"
#include "nsRuleWalker.h"
#include "nsSVGStyleValue.h"
nsSVGElement::nsSVGElement()
: mAttributes(nsnull)
{
}
nsSVGElement::~nsSVGElement()
{
PRInt32 count = mChildren.Count();
PRInt32 index;
for (index = 0; index < count; index++) {
mChildren[index]->SetParent(nsnull);
}
if (mAttributes)
NS_RELEASE(mAttributes);
}
//----------------------------------------------------------------------
// nsISupports methods
NS_IMPL_ADDREF_INHERITED(nsSVGElement,nsGenericElement)
NS_IMPL_RELEASE_INHERITED(nsSVGElement,nsGenericElement)
NS_INTERFACE_MAP_BEGIN(nsSVGElement)
NS_INTERFACE_MAP_ENTRY(nsIXMLContent)
NS_INTERFACE_MAP_ENTRY(nsIDOMSVGElement)
NS_INTERFACE_MAP_ENTRY(nsIDOMElement)
NS_INTERFACE_MAP_ENTRY(nsIDOMNode)
NS_INTERFACE_MAP_ENTRY_TEAROFF(nsIDOM3Node, new nsNode3Tearoff(this))
NS_INTERFACE_MAP_ENTRY(nsISupportsWeakReference)
NS_INTERFACE_MAP_ENTRY(nsISVGValueObserver)
NS_INTERFACE_MAP_ENTRY(nsISVGContent)
// provided by nsGenericElement:
// NS_INTERFACE_MAP_ENTRY(nsIStyledContent)
// NS_INTERFACE_MAP_ENTRY(nsIContent)
NS_INTERFACE_MAP_END_INHERITING(nsGenericElement)
//----------------------------------------------------------------------
// Implementation
nsresult
nsSVGElement::Init()
{
nsresult rv;
rv = nsSVGAttributes::Create(this,&mAttributes);
NS_ENSURE_SUCCESS(rv,rv);
nsCOMPtr<nsINodeInfo> ni;
// Create mapped properties:
// style #IMPLIED
rv = NS_NewSVGStyleValue(getter_AddRefs(mStyle));
NS_ENSURE_SUCCESS(rv,rv);
rv = mAttributes->AddMappedSVGValue(nsSVGAtoms::style, mStyle);
NS_ENSURE_SUCCESS(rv,rv);
return NS_OK;
}
//----------------------------------------------------------------------
// nsIContent methods
void
nsSVGElement::SetParent(nsIContent* aParent)
{
nsGenericElement::SetParent(aParent);
ParentChainChanged();
}
PRBool
nsSVGElement::CanContainChildren() const
{
return PR_TRUE;
}
PRUint32
nsSVGElement::GetChildCount() const
{
return mChildren.Count();
}
nsIContent *
nsSVGElement::GetChildAt(PRUint32 aIndex) const
{
return mChildren.SafeObjectAt(aIndex);
}
PRInt32
nsSVGElement::IndexOf(nsIContent* aPossibleChild) const
{
return mChildren.IndexOf(aPossibleChild);
}
nsIAtom *
nsSVGElement::GetIDAttributeName() const
{
return nsSVGAtoms::id;
}
const nsAttrName*
nsSVGElement::InternalGetExistingAttrNameFromQName(const nsAString& aStr) const
{
return mAttributes->GetExistingAttrNameFromQName(aStr);
}
nsresult
nsSVGElement::SetAttr(PRInt32 aNamespaceID, nsIAtom* aName, nsIAtom* aPrefix,
const nsAString& aValue,
PRBool aNotify)
{
return mAttributes->SetAttr(aNamespaceID, aName, aPrefix, aValue, aNotify);
}
nsresult
nsSVGElement::GetAttr(PRInt32 aNameSpaceID, nsIAtom* aName,
nsAString& aResult) const
{
NS_ASSERTION(aNameSpaceID != kNameSpaceID_Unknown,
"must have a real namespace ID!");
return mAttributes->GetAttr(aNameSpaceID, aName, aResult);
}
nsresult
nsSVGElement::UnsetAttr(PRInt32 aNameSpaceID, nsIAtom* aName,
PRBool aNotify)
{
return mAttributes->UnsetAttr(aNameSpaceID, aName, aNotify);
}
PRBool
nsSVGElement::HasAttr(PRInt32 aNameSpaceID, nsIAtom* aName) const
{
NS_ASSERTION(aNameSpaceID != kNameSpaceID_Unknown,
"must have a real namespace ID!");
return mAttributes->HasAttr(aNameSpaceID, aName);
}
nsresult
nsSVGElement::GetAttrNameAt(PRUint32 aIndex,
PRInt32* aNameSpaceID,
nsIAtom** aName,
nsIAtom** aPrefix) const
{
return mAttributes->GetAttrNameAt(aIndex, aNameSpaceID, aName, aPrefix);
}
PRUint32
nsSVGElement::GetAttrCount() const
{
return mAttributes->Count();
}
#ifdef DEBUG
void
nsSVGElement::List(FILE* out, PRInt32 aIndent) const
{
// XXX
fprintf(out, "some SVG element\n");
}
void
nsSVGElement::DumpContent(FILE* out, PRInt32 aIndent,PRBool aDumpAll) const
{
// XXX
fprintf(out, "some SVG element\n");
}
#endif // DEBUG
nsresult
nsSVGElement::SetBindingParent(nsIContent* aParent)
{
nsresult rv = nsGenericElement::SetBindingParent(aParent);
// XXX Are parent and bindingparent always in sync? (in which case
// we don't have to call ParentChainChanged() here)
ParentChainChanged();
return rv;
}
//----------------------------------------------------------------------
// nsIStyledContent methods
NS_IMETHODIMP
nsSVGElement::GetID(nsIAtom** aId)const
{
nsAutoString value;
nsresult rv = NS_CONST_CAST(nsSVGElement*,this)->
GetAttribute(NS_LITERAL_STRING("id"), value);
if (NS_SUCCEEDED(rv))
*aId = NS_NewAtom(value);
else
*aId = nsnull;
return rv;
}
NS_IMETHODIMP
nsSVGElement::WalkContentStyleRules(nsRuleWalker* aRuleWalker)
{
#ifdef DEBUG
// printf("nsSVGElement(%p)::WalkContentStyleRules()\n", this);
#endif
nsCOMPtr<nsIStyleRule> rule;
mAttributes->GetContentStyleRule(getter_AddRefs(rule));
if (rule)
aRuleWalker->Forward(rule);
return NS_OK;
}
NS_IMETHODIMP
nsSVGElement::GetInlineStyleRule(nsICSSStyleRule** aStyleRule)
{
return mStyle->GetStyleRule(this, aStyleRule);
}
//----------------------------------------------------------------------
// nsIDOMNode methods
NS_IMETHODIMP
nsSVGElement::GetNodeName(nsAString& aNodeName)
{
mNodeInfo->GetQualifiedName(aNodeName);
return NS_OK;
}
NS_IMETHODIMP
nsSVGElement::GetNodeValue(nsAString& aNodeValue)
{
SetDOMStringToNull(aNodeValue);
return NS_OK;
}
NS_IMETHODIMP
nsSVGElement::SetNodeValue(const nsAString& aNodeValue)
{
// The DOM spec says that when nodeValue is defined to be null "setting it
// has no effect", so we don't throw an exception.
return NS_OK;
}
NS_IMETHODIMP
nsSVGElement::GetNodeType(PRUint16* aNodeType)
{
*aNodeType = (PRUint16)nsIDOMNode::ELEMENT_NODE;
return NS_OK;
}
NS_IMETHODIMP
nsSVGElement::GetParentNode(nsIDOMNode** aParentNode)
{
if (GetParent()) {
return CallQueryInterface(GetParent(), aParentNode);
}
if (mDocument) {
// we're the root content
return CallQueryInterface(mDocument, aParentNode);
}
// A standalone element (i.e. one without a parent or a document)
*aParentNode = nsnull;
return NS_OK;
}
NS_IMETHODIMP
nsSVGElement::GetChildNodes(nsIDOMNodeList** aChildNodes)
{
nsDOMSlots *slots = GetDOMSlots();
if (!slots->mChildNodes) {
slots->mChildNodes = new nsChildContentList(this);
if (!slots->mChildNodes) {
return NS_ERROR_OUT_OF_MEMORY;
}
}
NS_ADDREF(*aChildNodes = slots->mChildNodes);
return NS_OK;
}
NS_IMETHODIMP
nsSVGElement::GetFirstChild(nsIDOMNode** aNode)
{
nsIContent *child = mChildren.SafeObjectAt(0);
if (child) {
nsresult res = CallQueryInterface(child, aNode);
NS_ASSERTION(NS_SUCCEEDED(res), "Must be a DOM Node"); // must be a DOM Node
return res;
}
*aNode = nsnull;
return NS_OK;
}
NS_IMETHODIMP
nsSVGElement::GetLastChild(nsIDOMNode** aNode)
{
PRInt32 count = mChildren.Count();
if (count) {
nsresult res = CallQueryInterface(mChildren[count - 1], aNode);
NS_ASSERTION(NS_SUCCEEDED(res), "Must be a DOM Node"); // must be a DOM Node
return res;
}
*aNode = nsnull;
return NS_OK;
}
NS_IMETHODIMP
nsSVGElement::GetPreviousSibling(nsIDOMNode** aPreviousSibling)
{
return nsGenericElement::GetPreviousSibling(aPreviousSibling);
}
NS_IMETHODIMP
nsSVGElement::GetNextSibling(nsIDOMNode** aNextSibling)
{
return nsGenericElement::GetNextSibling(aNextSibling);
}
NS_IMETHODIMP
nsSVGElement::GetAttributes(nsIDOMNamedNodeMap** aAttributes)
{
*aAttributes = mAttributes;
NS_ADDREF(*aAttributes);
return NS_OK;
}
NS_IMETHODIMP
nsSVGElement::GetOwnerDocument(nsIDOMDocument** aOwnerDocument)
{
return nsGenericElement::GetOwnerDocument(aOwnerDocument);
}
NS_IMETHODIMP
nsSVGElement::GetNamespaceURI(nsAString& aNamespaceURI)
{
return mNodeInfo->GetNamespaceURI(aNamespaceURI);
}
NS_IMETHODIMP
nsSVGElement::GetPrefix(nsAString& aPrefix)
{
return nsGenericElement::GetPrefix(aPrefix);
}
NS_IMETHODIMP
nsSVGElement::SetPrefix(const nsAString& aPrefix)
{
return nsGenericElement::SetPrefix(aPrefix);
}
NS_IMETHODIMP
nsSVGElement::GetLocalName(nsAString& aLocalName)
{
return nsGenericElement::GetLocalName(aLocalName);
}
NS_IMETHODIMP
nsSVGElement::InsertBefore(nsIDOMNode* aNewChild, nsIDOMNode* aRefChild, nsIDOMNode** aReturn)
{
return nsGenericElement::doInsertBefore(this, aNewChild, aRefChild, aReturn);
}
NS_IMETHODIMP
nsSVGElement::ReplaceChild(nsIDOMNode* aNewChild, nsIDOMNode* aOldChild, nsIDOMNode** aReturn)
{
return nsGenericElement::doReplaceChild(this, aNewChild, aOldChild, aReturn);
}
NS_IMETHODIMP
nsSVGElement::RemoveChild(nsIDOMNode* aOldChild, nsIDOMNode** aReturn)
{
return nsGenericElement::doRemoveChild(this, aOldChild, aReturn);
}
NS_IMETHODIMP
nsSVGElement::AppendChild(nsIDOMNode* aNewChild, nsIDOMNode** aReturn)
{
return nsGenericElement::doInsertBefore(this, aNewChild, nsnull, aReturn);
}
NS_IMETHODIMP
nsSVGElement::HasChildNodes(PRBool* aReturn)
{
if (0 != mChildren.Count()) {
*aReturn = PR_TRUE;
}
else {
*aReturn = PR_FALSE;
}
return NS_OK;
}
NS_IMETHODIMP
nsSVGElement::CloneNode(PRBool aDeep, nsIDOMNode** aReturn)
{
NS_ASSERTION(1==0,"CloneNode must be implemented by subclass!");
return NS_ERROR_FAILURE;
}
NS_IMETHODIMP
nsSVGElement::Normalize()
{
return nsGenericElement::Normalize();
}
NS_IMETHODIMP
nsSVGElement::IsSupported(const nsAString& aFeature, const nsAString& aVersion, PRBool* aReturn)
{
NS_NOTYETIMPLEMENTED("write me!");
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsSVGElement::HasAttributes(PRBool* aReturn)
{
NS_ENSURE_ARG_POINTER(aReturn);
*aReturn = GetAttrCount() > 0;
return NS_OK;
}
//----------------------------------------------------------------------
// nsIDOMElement methods
// forwarded to nsGenericElement implementations
//----------------------------------------------------------------------
// nsIDOMSVGElement methods
/* attribute DOMString id; */
NS_IMETHODIMP nsSVGElement::GetId(nsAString & aId)
{
return GetAttribute(NS_LITERAL_STRING("id"), aId);
}
NS_IMETHODIMP nsSVGElement::SetId(const nsAString & aId)
{
return SetAttribute(NS_LITERAL_STRING("id"), aId);
}
/* readonly attribute nsIDOMSVGSVGElement ownerSVGElement; */
NS_IMETHODIMP
nsSVGElement::GetOwnerSVGElement(nsIDOMSVGSVGElement * *aOwnerSVGElement)
{
*aOwnerSVGElement = nsnull;
nsIBindingManager *bindingManager = nsnull;
if (mDocument) {
bindingManager = mDocument->GetBindingManager();
}
nsCOMPtr<nsIContent> parent;
if (bindingManager) {
// we have a binding manager -- do we have an anonymous parent?
bindingManager->GetInsertionParent(this, getter_AddRefs(parent));
}
if (!parent) {
// if we didn't find an anonymous parent, use the explicit one,
// whether it's null or not...
parent = GetParent();
}
while (parent) {
nsCOMPtr<nsIDOMSVGSVGElement> SVGSVGElement = do_QueryInterface(parent);
if (SVGSVGElement) {
*aOwnerSVGElement = SVGSVGElement;
NS_ADDREF(*aOwnerSVGElement);
return NS_OK;
}
nsCOMPtr<nsIContent> next;
if (bindingManager) {
bindingManager->GetInsertionParent(parent, getter_AddRefs(next));
}
if (!next) {
// no anonymous parent, so use explicit one
next = parent->GetParent();
}
parent = next;
}
// we don't have a parent SVG element...
// are _we_ the outermost SVG element? If yes, return nsnull, but don't fail
nsCOMPtr<nsIDOMSVGSVGElement> SVGSVGElement = do_QueryInterface((nsIDOMSVGElement*)this);
if (SVGSVGElement) return NS_OK;
// no owner found and we aren't the outermost SVG element either.
// this situation can e.g. occur during content tree teardown.
return NS_ERROR_FAILURE;
}
/* readonly attribute nsIDOMSVGElement viewportElement; */
NS_IMETHODIMP
nsSVGElement::GetViewportElement(nsIDOMSVGElement * *aViewportElement)
{
*aViewportElement = nsnull;
nsCOMPtr<nsIDOMSVGSVGElement> SVGSVGElement;
nsresult rv = GetOwnerSVGElement(getter_AddRefs(SVGSVGElement));
NS_ENSURE_SUCCESS(rv,rv);
if (SVGSVGElement) {
nsCOMPtr<nsIDOMSVGElement> SVGElement = do_QueryInterface(SVGSVGElement);
*aViewportElement = SVGElement;
NS_IF_ADDREF(*aViewportElement);
}
return NS_OK;
}
//----------------------------------------------------------------------
// nsISVGValueObserver methods:
NS_IMETHODIMP
nsSVGElement::WillModifySVGObservable(nsISVGValue* observable)
{
NS_NOTYETIMPLEMENTED("write me!");
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsSVGElement::DidModifySVGObservable (nsISVGValue* observable)
{
NS_NOTYETIMPLEMENTED("write me!");
return NS_ERROR_NOT_IMPLEMENTED;
}
//----------------------------------------------------------------------
// Implementation Helpers:
nsresult
nsSVGElement::CopyNode(nsSVGElement* dest, PRBool deep)
{
nsresult rv;
// copy attributes:
NS_ASSERTION(mAttributes, "null pointer");
NS_ASSERTION(dest->mAttributes, "null pointer");
rv = mAttributes->CopyAttributes(dest->mAttributes);
NS_ENSURE_SUCCESS(rv,rv);
if (deep) {
// copy children:
PRInt32 count = mChildren.Count();
for (PRInt32 i = 0; i < count; ++i) {
nsIContent* child = mChildren[i];
NS_ASSERTION(child != nsnull, "null ptr");
if (!child)
return NS_ERROR_UNEXPECTED;
nsCOMPtr<nsIDOMNode> domchild = do_QueryInterface(child);
NS_ASSERTION(domchild != nsnull, "child is not a DOM node");
if (! domchild)
return NS_ERROR_UNEXPECTED;
nsCOMPtr<nsIDOMNode> newdomchild;
rv = domchild->CloneNode(PR_TRUE, getter_AddRefs(newdomchild));
if (NS_FAILED(rv)) return rv;
nsCOMPtr<nsIContent> newchild = do_QueryInterface(newdomchild);
NS_ASSERTION(newchild != nsnull, "newdomchild is not an nsIContent");
if (!newchild)
return NS_ERROR_UNEXPECTED;
rv = dest->AppendChildTo(newchild, PR_FALSE, PR_FALSE);
if (NS_FAILED(rv)) return rv;
}
}
return rv;
}

View File

@@ -0,0 +1,161 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ----- BEGIN LICENSE BLOCK -----
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is the Mozilla SVG project.
*
* The Initial Developer of the Original Code is
* Crocodile Clips Ltd..
* Portions created by the Initial Developer are Copyright (C) 2001
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Alex Fritze <alex.fritze@crocodile-clips.com> (original author)
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ----- END LICENSE BLOCK ----- */
#ifndef __NS_SVGELEMENT_H__
#define __NS_SVGELEMENT_H__
/*
nsSVGElement is the base class for all SVG content elements.
It implements all the common DOM interfaces and handles attributes.
*/
#include "nsString.h"
#include "nsCOMPtr.h"
#include "nsIDOMSVGElement.h"
#include "nsGenericElement.h"
#include "nsSVGAttributes.h"
#include "nsISVGValue.h"
#include "nsISVGValueObserver.h"
#include "nsWeakReference.h"
#include "nsISVGStyleValue.h"
#include "nsISVGContent.h"
class nsSVGElement : public nsGenericElement, // :nsIHTMLContent:nsIXMLContent:nsIStyledContent:nsIContent
public nsIDOMSVGElement, // :nsIDOMElement:nsIDOMNode
public nsISVGValueObserver,
public nsSupportsWeakReference, // :nsISupportsWeakReference
public nsISVGContent
{
protected:
nsSVGElement();
virtual ~nsSVGElement();
virtual nsresult Init();
public:
// nsISupports
NS_DECL_ISUPPORTS_INHERITED
// nsIContent interface methods
virtual void SetParent(nsIContent* aParent);
virtual PRBool CanContainChildren() const;
virtual PRUint32 GetChildCount() const;
virtual nsIContent *GetChildAt(PRUint32 aIndex) const;
virtual PRInt32 IndexOf(nsIContent* aPossibleChild) const;
virtual nsIAtom *GetIDAttributeName() const;
nsresult SetAttr(PRInt32 aNameSpaceID, nsIAtom* aName,
const nsAString& aValue, PRBool aNotify)
{
return SetAttr(aNameSpaceID, aName, nsnull, aValue, aNotify);
}
virtual nsresult SetAttr(PRInt32 aNameSpaceID, nsIAtom* aName,
nsIAtom* aPrefix, const nsAString& aValue,
PRBool aNotify);
virtual nsresult GetAttr(PRInt32 aNameSpaceID, nsIAtom* aName,
nsAString& aResult) const;
virtual PRBool HasAttr(PRInt32 aNameSpaceID, nsIAtom* aName) const;
virtual nsresult UnsetAttr(PRInt32 aNameSpaceID, nsIAtom* aAttribute,
PRBool aNotify);
virtual nsresult GetAttrNameAt(PRUint32 aIndex, PRInt32* aNameSpaceID,
nsIAtom** aName, nsIAtom** aPrefix) const;
virtual PRUint32 GetAttrCount() const;
#ifdef DEBUG
virtual void List(FILE* out, PRInt32 aIndent) const;
virtual void DumpContent(FILE* out, PRInt32 aIndent,PRBool aDumpAll) const;
#endif // DEBUG
// Child list modification hooks
virtual PRBool InternalInsertChildAt(nsIContent* aKid, PRUint32 aIndex) {
return mChildren.InsertObjectAt(aKid, aIndex);
}
virtual PRBool InternalReplaceChildAt(nsIContent* aKid, PRUint32 aIndex) {
return mChildren.ReplaceObjectAt(aKid, aIndex);
}
virtual PRBool InternalAppendChildTo(nsIContent* aKid) {
return mChildren.AppendObject(aKid);
}
virtual PRBool InternalRemoveChildAt(PRUint32 aIndex) {
return mChildren.RemoveObjectAt(aIndex);
}
virtual const nsAttrName* InternalGetExistingAttrNameFromQName(const nsAString& aStr) const;
virtual nsresult SetBindingParent(nsIContent* aParent);
// nsIStyledContent
NS_IMETHOD GetID(nsIAtom** aResult) const;
// NS_IMETHOD GetClasses(nsVoidArray& aArray) const;
// NS_IMETHOD HasClass(nsIAtom* aClass) const;
NS_IMETHOD WalkContentStyleRules(nsRuleWalker* aRuleWalker);
NS_IMETHOD GetInlineStyleRule(nsICSSStyleRule** aStyleRule);
// nsIDOMNode
NS_DECL_NSIDOMNODE
// nsIDOMElement
// NS_DECL_IDOMELEMENT
NS_FORWARD_NSIDOMELEMENT(nsGenericElement::)
// nsIDOMSVGElement
NS_DECL_NSIDOMSVGELEMENT
// nsISVGValueObserver
NS_IMETHOD WillModifySVGObservable(nsISVGValue* observable);
NS_IMETHOD DidModifySVGObservable (nsISVGValue* observable);
// nsISupportsWeakReference
// implementation inherited from nsSupportsWeakReference
// nsISVGContent interface
NS_IMETHOD IsPresentationAttribute(const nsIAtom* attribute, PRBool* retval){*retval=PR_FALSE; return NS_OK;}
protected:
nsresult CopyNode(nsSVGElement* dest, PRBool deep);
virtual void ParentChainChanged(){};
nsCOMArray<nsIContent> mChildren;
nsSVGAttributes* mAttributes;
nsCOMPtr<nsISVGStyleValue> mStyle;
};
#endif // __NS_SVGELEMENT_H__

View File

@@ -0,0 +1,160 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ----- BEGIN LICENSE BLOCK -----
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is the Mozilla SVG project.
*
* The Initial Developer of the Original Code is
* Crocodile Clips Ltd..
* Portions created by the Initial Developer are Copyright (C) 2001
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Alex Fritze <alex.fritze@crocodile-clips.com> (original author)
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ----- END LICENSE BLOCK ----- */
#include "nsCOMPtr.h"
#include "nsIElementFactory.h"
#include "nsIAtom.h"
#include "nsINodeInfo.h"
#include "nsSVGAtoms.h"
#include "nsIXMLContent.h"
nsresult
NS_NewSVGPolylineElement(nsIContent **aResult, nsINodeInfo *aNodeInfo);
nsresult
NS_NewSVGPolygonElement(nsIContent **aResult, nsINodeInfo *aNodeInfo);
nsresult
NS_NewSVGCircleElement(nsIContent **aResult, nsINodeInfo *aNodeInfo);
nsresult
NS_NewSVGEllipseElement(nsIContent **aResult, nsINodeInfo *aNodeInfo);
nsresult
NS_NewSVGLineElement(nsIContent **aResult, nsINodeInfo *aNodeInfo);
nsresult
NS_NewSVGRectElement(nsIContent **aResult, nsINodeInfo *aNodeInfo);
nsresult
NS_NewSVGGElement(nsIContent **aResult, nsINodeInfo *aNodeInfo);
nsresult
NS_NewSVGSVGElement(nsIContent **aResult, nsINodeInfo *aNodeInfo);
nsresult
NS_NewSVGForeignObjectElement(nsIContent **aResult, nsINodeInfo *aNodeInfo);
nsresult
NS_NewSVGPathElement(nsIContent **aResult, nsINodeInfo *aNodeInfo);
nsresult
NS_NewSVGTextElement(nsIContent **aResult, nsINodeInfo *aNodeInfo);
nsresult
NS_NewSVGTSpanElement(nsIContent **aResult, nsINodeInfo *aNodeInfo);
nsresult
NS_NewSVGImageElement(nsIContent **aResult, nsINodeInfo *aNodeInfo);
class nsSVGElementFactory : public nsIElementFactory
{
protected:
nsSVGElementFactory();
virtual ~nsSVGElementFactory();
// nsISupports interface
NS_DECL_ISUPPORTS
// nsIElementFactory interface
NS_IMETHOD CreateInstanceByTag(nsINodeInfo *aNodeInfo, nsIContent** aResult);
public:
friend nsresult NS_NewSVGElementFactory(nsIElementFactory** aResult);
};
nsSVGElementFactory::nsSVGElementFactory()
{
}
nsSVGElementFactory::~nsSVGElementFactory()
{
}
NS_IMPL_ISUPPORTS1(nsSVGElementFactory, nsIElementFactory)
nsresult
NS_NewSVGElementFactory(nsIElementFactory** aResult)
{
NS_PRECONDITION(aResult != nsnull, "null ptr");
if (! aResult)
return NS_ERROR_NULL_POINTER;
nsSVGElementFactory* result = new nsSVGElementFactory();
if (! result)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(result);
*aResult = result;
return NS_OK;
}
NS_IMETHODIMP
nsSVGElementFactory::CreateInstanceByTag(nsINodeInfo *aNodeInfo,
nsIContent** aResult)
{
nsIAtom *name = aNodeInfo->NameAtom();
if (name == nsSVGAtoms::polyline)
return NS_NewSVGPolylineElement(aResult, aNodeInfo);
if (name == nsSVGAtoms::polygon)
return NS_NewSVGPolygonElement(aResult, aNodeInfo);
if (name == nsSVGAtoms::circle)
return NS_NewSVGCircleElement(aResult, aNodeInfo);
if (name == nsSVGAtoms::ellipse)
return NS_NewSVGEllipseElement(aResult, aNodeInfo);
if (name == nsSVGAtoms::line)
return NS_NewSVGLineElement(aResult, aNodeInfo);
if (name == nsSVGAtoms::rect)
return NS_NewSVGRectElement(aResult, aNodeInfo);
if (name == nsSVGAtoms::svg)
return NS_NewSVGSVGElement(aResult, aNodeInfo);
if (name == nsSVGAtoms::g)
return NS_NewSVGGElement(aResult, aNodeInfo);
if (name == nsSVGAtoms::foreignObject)
return NS_NewSVGForeignObjectElement(aResult, aNodeInfo);
if (name == nsSVGAtoms::path)
return NS_NewSVGPathElement(aResult, aNodeInfo);
else if (name == nsSVGAtoms::text)
return NS_NewSVGTextElement(aResult, aNodeInfo);
else if (name == nsSVGAtoms::tspan)
return NS_NewSVGTSpanElement(aResult, aNodeInfo);
else if (name == nsSVGAtoms::image)
return NS_NewSVGImageElement(aResult, aNodeInfo);
// if we don't know what to create, just create a standard xml element:
return NS_NewXMLElement(aResult, aNodeInfo);
}

View File

@@ -0,0 +1,367 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ----- BEGIN LICENSE BLOCK -----
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is the Mozilla SVG project.
*
* The Initial Developer of the Original Code is
* Crocodile Clips Ltd..
* Portions created by the Initial Developer are Copyright (C) 2001
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* William Cook <william.cook@crocodile-clips.com> (original author)
* Alex Fritze <alex.fritze@crocodile-clips.com>
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ----- END LICENSE BLOCK ----- */
#include "nsSVGGraphicElement.h"
#include "nsSVGAtoms.h"
#include "nsSVGAnimatedLength.h"
#include "nsSVGLength.h"
#include "nsIDOMSVGEllipseElement.h"
#include "nsCOMPtr.h"
#include "nsISVGSVGElement.h"
#include "nsISVGViewportAxis.h"
#include "nsISVGViewportRect.h"
typedef nsSVGGraphicElement nsSVGEllipseElementBase;
class nsSVGEllipseElement : public nsSVGEllipseElementBase,
public nsIDOMSVGEllipseElement
{
protected:
friend nsresult NS_NewSVGEllipseElement(nsIContent **aResult,
nsINodeInfo *aNodeInfo);
nsSVGEllipseElement();
virtual ~nsSVGEllipseElement();
virtual nsresult Init();
public:
// interfaces:
NS_DECL_ISUPPORTS_INHERITED
NS_DECL_NSIDOMSVGELLIPSEELEMENT
// xxx I wish we could use virtual inheritance
NS_FORWARD_NSIDOMNODE_NO_CLONENODE(nsSVGEllipseElementBase::)
NS_FORWARD_NSIDOMELEMENT(nsSVGEllipseElementBase::)
NS_FORWARD_NSIDOMSVGELEMENT(nsSVGEllipseElementBase::)
protected:
virtual void ParentChainChanged();
nsCOMPtr<nsIDOMSVGAnimatedLength> mCx;
nsCOMPtr<nsIDOMSVGAnimatedLength> mCy;
nsCOMPtr<nsIDOMSVGAnimatedLength> mRx;
nsCOMPtr<nsIDOMSVGAnimatedLength> mRy;
};
nsresult NS_NewSVGEllipseElement(nsIContent **aResult, nsINodeInfo *aNodeInfo)
{
*aResult = nsnull;
nsSVGEllipseElement* it = new nsSVGEllipseElement();
if (!it) return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(it);
nsresult rv = NS_STATIC_CAST(nsGenericElement*,it)->Init(aNodeInfo);
if (NS_FAILED(rv)) {
it->Release();
return rv;
}
rv = it->Init();
if (NS_FAILED(rv)) {
it->Release();
return rv;
}
*aResult = NS_STATIC_CAST(nsIContent *, it);
return NS_OK;
}
//----------------------------------------------------------------------
// nsISupports methods
NS_IMPL_ADDREF_INHERITED(nsSVGEllipseElement,nsSVGEllipseElementBase)
NS_IMPL_RELEASE_INHERITED(nsSVGEllipseElement,nsSVGEllipseElementBase)
NS_INTERFACE_MAP_BEGIN(nsSVGEllipseElement)
NS_INTERFACE_MAP_ENTRY(nsIDOMSVGEllipseElement)
NS_INTERFACE_MAP_ENTRY_CONTENT_CLASSINFO(SVGEllipseElement)
NS_INTERFACE_MAP_END_INHERITING(nsSVGEllipseElementBase)
//----------------------------------------------------------------------
// Implementation
nsSVGEllipseElement::nsSVGEllipseElement()
{
}
nsSVGEllipseElement::~nsSVGEllipseElement()
{
if (mCx) {
nsCOMPtr<nsISVGValue> value = do_QueryInterface(mCx);
value->RemoveObserver(this);
}
if (mCy) {
nsCOMPtr<nsISVGValue> value = do_QueryInterface(mCy);
value->RemoveObserver(this);
}
if (mRx) {
nsCOMPtr<nsISVGValue> value = do_QueryInterface(mRx);
value->RemoveObserver(this);
}
if (mRy) {
nsCOMPtr<nsISVGValue> value = do_QueryInterface(mRy);
value->RemoveObserver(this);
}
}
nsresult
nsSVGEllipseElement::Init()
{
nsresult rv;
rv = nsSVGEllipseElementBase::Init();
NS_ENSURE_SUCCESS(rv,rv);
// Create mapped properties:
// DOM property: cx , #IMPLIED attrib: cx
{
nsCOMPtr<nsISVGLength> length;
rv = NS_NewSVGLength(getter_AddRefs(length),
0.0f);
NS_ENSURE_SUCCESS(rv,rv);
rv = NS_NewSVGAnimatedLength(getter_AddRefs(mCx), length);
NS_ENSURE_SUCCESS(rv,rv);
rv = mAttributes->AddMappedSVGValue(nsSVGAtoms::cx, mCx);
NS_ENSURE_SUCCESS(rv,rv);
}
// DOM property: cy , #IMPLIED attrib: cy
{
nsCOMPtr<nsISVGLength> length;
rv = NS_NewSVGLength(getter_AddRefs(length),
0.0f);
NS_ENSURE_SUCCESS(rv,rv);
rv = NS_NewSVGAnimatedLength(getter_AddRefs(mCy), length);
NS_ENSURE_SUCCESS(rv,rv);
rv = mAttributes->AddMappedSVGValue(nsSVGAtoms::cy, mCy);
NS_ENSURE_SUCCESS(rv,rv);
}
// DOM property: rx , #REQUIRED attrib: rx
// XXX: enforce requiredness
{
nsCOMPtr<nsISVGLength> length;
rv = NS_NewSVGLength(getter_AddRefs(length),
0.0f);
NS_ENSURE_SUCCESS(rv,rv);
rv = NS_NewSVGAnimatedLength(getter_AddRefs(mRx), length);
NS_ENSURE_SUCCESS(rv,rv);
rv = mAttributes->AddMappedSVGValue(nsSVGAtoms::rx, mRx);
NS_ENSURE_SUCCESS(rv,rv);
}
// DOM property: ry , #REQUIRED attrib: ry
// XXX: enforce requiredness
{
nsCOMPtr<nsISVGLength> length;
rv = NS_NewSVGLength(getter_AddRefs(length),
0.0f);
NS_ENSURE_SUCCESS(rv,rv);
rv = NS_NewSVGAnimatedLength(getter_AddRefs(mRy), length);
NS_ENSURE_SUCCESS(rv,rv);
rv = mAttributes->AddMappedSVGValue(nsSVGAtoms::ry, mRy);
NS_ENSURE_SUCCESS(rv,rv);
}
return NS_OK;
}
//----------------------------------------------------------------------
// nsIDOMNode methods
NS_IMETHODIMP
nsSVGEllipseElement::CloneNode(PRBool aDeep, nsIDOMNode** aReturn)
{
*aReturn = nsnull;
nsSVGEllipseElement* it = new nsSVGEllipseElement();
if (!it) return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(it);
nsresult rv = NS_STATIC_CAST(nsGenericElement*,it)->Init(mNodeInfo);
if (NS_FAILED(rv)) {
it->Release();
return rv;
}
rv = it->Init();
if (NS_FAILED(rv)) {
it->Release();
return rv;
}
rv = CopyNode(it, aDeep);
if (NS_FAILED(rv)) {
it->Release();
return rv;
}
*aReturn = NS_STATIC_CAST(nsSVGEllipseElementBase*, it);
return NS_OK;
}
//----------------------------------------------------------------------
// nsIDOMSVGEllipseElement methods
/* readonly attribute nsIDOMSVGAnimatedLength cx; */
NS_IMETHODIMP nsSVGEllipseElement::GetCx(nsIDOMSVGAnimatedLength * *aCx)
{
*aCx = mCx;
NS_IF_ADDREF(*aCx);
return NS_OK;
}
/* readonly attribute nsIDOMSVGAnimatedLength cy; */
NS_IMETHODIMP nsSVGEllipseElement::GetCy(nsIDOMSVGAnimatedLength * *aCy)
{
*aCy = mCy;
NS_IF_ADDREF(*aCy);
return NS_OK;
}
/* readonly attribute nsIDOMSVGAnimatedLength rx; */
NS_IMETHODIMP nsSVGEllipseElement::GetRx(nsIDOMSVGAnimatedLength * *aRx)
{
*aRx = mRx;
NS_IF_ADDREF(*aRx);
return NS_OK;
}
/* readonly attribute nsIDOMSVGAnimatedLength ry; */
NS_IMETHODIMP nsSVGEllipseElement::GetRy(nsIDOMSVGAnimatedLength * *aRy)
{
*aRy = mRy;
NS_IF_ADDREF(*aRy);
return NS_OK;
}
//----------------------------------------------------------------------
//
void nsSVGEllipseElement::ParentChainChanged()
{
// set new context information on our length-properties:
nsCOMPtr<nsIDOMSVGSVGElement> dom_elem;
GetOwnerSVGElement(getter_AddRefs(dom_elem));
if (!dom_elem) return;
nsCOMPtr<nsISVGSVGElement> svg_elem = do_QueryInterface(dom_elem);
NS_ASSERTION(svg_elem, "<svg> element missing interface");
// cx:
{
nsCOMPtr<nsIDOMSVGLength> dom_length;
mCx->GetBaseVal(getter_AddRefs(dom_length));
nsCOMPtr<nsISVGLength> length = do_QueryInterface(dom_length);
NS_ASSERTION(length, "svg length missing interface");
nsCOMPtr<nsIDOMSVGRect> vp_dom;
svg_elem->GetViewport(getter_AddRefs(vp_dom));
nsCOMPtr<nsISVGViewportRect> vp = do_QueryInterface(vp_dom);
nsCOMPtr<nsISVGViewportAxis> ctx;
vp->GetXAxis(getter_AddRefs(ctx));
length->SetContext(ctx);
}
// cy:
{
nsCOMPtr<nsIDOMSVGLength> dom_length;
mCy->GetBaseVal(getter_AddRefs(dom_length));
nsCOMPtr<nsISVGLength> length = do_QueryInterface(dom_length);
NS_ASSERTION(length, "svg length missing interface");
nsCOMPtr<nsIDOMSVGRect> vp_dom;
svg_elem->GetViewport(getter_AddRefs(vp_dom));
nsCOMPtr<nsISVGViewportRect> vp = do_QueryInterface(vp_dom);
nsCOMPtr<nsISVGViewportAxis> ctx;
vp->GetYAxis(getter_AddRefs(ctx));
length->SetContext(ctx);
}
// rx:
{
nsCOMPtr<nsIDOMSVGLength> dom_length;
mRx->GetBaseVal(getter_AddRefs(dom_length));
nsCOMPtr<nsISVGLength> length = do_QueryInterface(dom_length);
NS_ASSERTION(length, "svg length missing interface");
nsCOMPtr<nsIDOMSVGRect> vp_dom;
svg_elem->GetViewport(getter_AddRefs(vp_dom));
nsCOMPtr<nsISVGViewportRect> vp = do_QueryInterface(vp_dom);
nsCOMPtr<nsISVGViewportAxis> ctx;
vp->GetXAxis(getter_AddRefs(ctx));
length->SetContext(ctx);
}
// rx:
{
nsCOMPtr<nsIDOMSVGLength> dom_length;
mRy->GetBaseVal(getter_AddRefs(dom_length));
nsCOMPtr<nsISVGLength> length = do_QueryInterface(dom_length);
NS_ASSERTION(length, "svg length missing interface");
nsCOMPtr<nsIDOMSVGRect> vp_dom;
svg_elem->GetViewport(getter_AddRefs(vp_dom));
nsCOMPtr<nsISVGViewportRect> vp = do_QueryInterface(vp_dom);
nsCOMPtr<nsISVGViewportAxis> ctx;
vp->GetYAxis(getter_AddRefs(ctx));
length->SetContext(ctx);
}
}

View File

@@ -0,0 +1,363 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ----- BEGIN LICENSE BLOCK -----
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is the Mozilla SVG project.
*
* The Initial Developer of the Original Code is
* Crocodile Clips Ltd..
* Portions created by the Initial Developer are Copyright (C) 2001
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Alex Fritze <alex.fritze@crocodile-clips.com> (original author)
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ----- END LICENSE BLOCK ----- */
#include "nsSVGGraphicElement.h"
#include "nsSVGAtoms.h"
#include "nsIDOMSVGForeignObjectElem.h"
#include "nsSVGLength.h"
#include "nsSVGAnimatedLength.h"
#include "nsCOMPtr.h"
#include "nsISVGSVGElement.h"
#include "nsISVGViewportAxis.h"
#include "nsISVGViewportRect.h"
typedef nsSVGGraphicElement nsSVGForeignObjectElementBase;
class nsSVGForeignObjectElement : public nsSVGForeignObjectElementBase,
public nsIDOMSVGForeignObjectElement
{
protected:
friend nsresult NS_NewSVGForeignObjectElement(nsIContent **aResult,
nsINodeInfo *aNodeInfo);
nsSVGForeignObjectElement();
virtual ~nsSVGForeignObjectElement();
virtual nsresult Init();
public:
// interfaces:
NS_DECL_ISUPPORTS_INHERITED
NS_DECL_NSIDOMSVGFOREIGNOBJECTELEMENT
// xxx I wish we could use virtual inheritance
NS_FORWARD_NSIDOMNODE_NO_CLONENODE(nsSVGForeignObjectElementBase::)
NS_FORWARD_NSIDOMELEMENT(nsSVGForeignObjectElementBase::)
NS_FORWARD_NSIDOMSVGELEMENT(nsSVGForeignObjectElementBase::)
protected:
virtual void ParentChainChanged();
nsCOMPtr<nsIDOMSVGAnimatedLength> mX;
nsCOMPtr<nsIDOMSVGAnimatedLength> mY;
nsCOMPtr<nsIDOMSVGAnimatedLength> mWidth;
nsCOMPtr<nsIDOMSVGAnimatedLength> mHeight;
};
nsresult NS_NewSVGForeignObjectElement(nsIContent **aResult, nsINodeInfo *aNodeInfo)
{
*aResult = nsnull;
nsSVGForeignObjectElement* it = new nsSVGForeignObjectElement();
if (!it) return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(it);
nsresult rv = NS_STATIC_CAST(nsGenericElement*,it)->Init(aNodeInfo);
if (NS_FAILED(rv)) {
it->Release();
return rv;
}
rv = it->Init();
if (NS_FAILED(rv)) {
it->Release();
return rv;
}
*aResult = NS_STATIC_CAST(nsIContent *, it);
return NS_OK;
}
//----------------------------------------------------------------------
// nsISupports methods
NS_IMPL_ADDREF_INHERITED(nsSVGForeignObjectElement,nsSVGForeignObjectElementBase)
NS_IMPL_RELEASE_INHERITED(nsSVGForeignObjectElement,nsSVGForeignObjectElementBase)
NS_INTERFACE_MAP_BEGIN(nsSVGForeignObjectElement)
NS_INTERFACE_MAP_ENTRY(nsIDOMSVGForeignObjectElement)
NS_INTERFACE_MAP_ENTRY_CONTENT_CLASSINFO(SVGForeignObjectElement)
NS_INTERFACE_MAP_END_INHERITING(nsSVGForeignObjectElementBase)
//----------------------------------------------------------------------
// Implementation
nsSVGForeignObjectElement::nsSVGForeignObjectElement()
{
}
nsSVGForeignObjectElement::~nsSVGForeignObjectElement()
{
if (mX) {
nsCOMPtr<nsISVGValue> value = do_QueryInterface(mX);
value->RemoveObserver(this);
}
if (mY) {
nsCOMPtr<nsISVGValue> value = do_QueryInterface(mY);
value->RemoveObserver(this);
}
if (mWidth) {
nsCOMPtr<nsISVGValue> value = do_QueryInterface(mWidth);
value->RemoveObserver(this);
}
if (mHeight) {
nsCOMPtr<nsISVGValue> value = do_QueryInterface(mHeight);
value->RemoveObserver(this);
}
}
nsresult
nsSVGForeignObjectElement::Init()
{
nsresult rv;
rv = nsSVGForeignObjectElementBase::Init();
NS_ENSURE_SUCCESS(rv,rv);
// Create mapped properties:
// DOM property: x , #IMPLIED attrib: x
{
nsCOMPtr<nsISVGLength> length;
rv = NS_NewSVGLength(getter_AddRefs(length),
0.0f);
NS_ENSURE_SUCCESS(rv,rv);
rv = NS_NewSVGAnimatedLength(getter_AddRefs(mX), length);
NS_ENSURE_SUCCESS(rv,rv);
rv = mAttributes->AddMappedSVGValue(nsSVGAtoms::x, mX);
NS_ENSURE_SUCCESS(rv,rv);
}
// DOM property: y , #IMPLIED attrib: y
{
nsCOMPtr<nsISVGLength> length;
rv = NS_NewSVGLength(getter_AddRefs(length),
0.0f);
NS_ENSURE_SUCCESS(rv,rv);
rv = NS_NewSVGAnimatedLength(getter_AddRefs(mY), length);
NS_ENSURE_SUCCESS(rv,rv);
rv = mAttributes->AddMappedSVGValue(nsSVGAtoms::y, mY);
NS_ENSURE_SUCCESS(rv,rv);
}
// DOM property: width , #REQUIRED attrib: width
// XXX: enforce requiredness
{
nsCOMPtr<nsISVGLength> length;
rv = NS_NewSVGLength(getter_AddRefs(length),
100.0f);
NS_ENSURE_SUCCESS(rv,rv);
rv = NS_NewSVGAnimatedLength(getter_AddRefs(mWidth), length);
NS_ENSURE_SUCCESS(rv,rv);
rv = mAttributes->AddMappedSVGValue(nsSVGAtoms::width, mWidth);
NS_ENSURE_SUCCESS(rv,rv);
}
// DOM property: height , #REQUIRED attrib: height
// XXX: enforce requiredness
{
nsCOMPtr<nsISVGLength> length;
rv = NS_NewSVGLength(getter_AddRefs(length),
100.0f);
NS_ENSURE_SUCCESS(rv,rv);
rv = NS_NewSVGAnimatedLength(getter_AddRefs(mHeight), length);
NS_ENSURE_SUCCESS(rv,rv);
rv = mAttributes->AddMappedSVGValue(nsSVGAtoms::height, mHeight);
NS_ENSURE_SUCCESS(rv,rv);
}
return NS_OK;
}
//----------------------------------------------------------------------
// nsIDOMNode methods
NS_IMETHODIMP
nsSVGForeignObjectElement::CloneNode(PRBool aDeep, nsIDOMNode** aReturn)
{
*aReturn = nsnull;
nsSVGForeignObjectElement* it = new nsSVGForeignObjectElement();
if (!it) return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(it);
nsresult rv = NS_STATIC_CAST(nsGenericElement*,it)->Init(mNodeInfo);
if (NS_FAILED(rv)) {
it->Release();
return rv;
}
rv = it->Init();
if (NS_FAILED(rv)) {
it->Release();
return rv;
}
rv = CopyNode(it, aDeep);
if (NS_FAILED(rv)) {
it->Release();
return rv;
}
*aReturn = NS_STATIC_CAST(nsSVGForeignObjectElementBase*, it);
return NS_OK;
}
//----------------------------------------------------------------------
// nsIDOMSVGForeignObjectElement methods:
/* readonly attribute nsIDOMSVGAnimatedLength x; */
NS_IMETHODIMP nsSVGForeignObjectElement::GetX(nsIDOMSVGAnimatedLength * *aX)
{
*aX = mX;
NS_IF_ADDREF(*aX);
return NS_OK;
}
/* readonly attribute nsIDOMSVGAnimatedLength y; */
NS_IMETHODIMP nsSVGForeignObjectElement::GetY(nsIDOMSVGAnimatedLength * *aY)
{
*aY = mY;
NS_IF_ADDREF(*aY);
return NS_OK;
}
/* readonly attribute nsIDOMSVGAnimatedLength width; */
NS_IMETHODIMP nsSVGForeignObjectElement::GetWidth(nsIDOMSVGAnimatedLength * *aWidth)
{
*aWidth = mWidth;
NS_IF_ADDREF(*aWidth);
return NS_OK;
}
/* readonly attribute nsIDOMSVGAnimatedLength height; */
NS_IMETHODIMP nsSVGForeignObjectElement::GetHeight(nsIDOMSVGAnimatedLength * *aHeight)
{
*aHeight = mHeight;
NS_IF_ADDREF(*aHeight);
return NS_OK;
}
//----------------------------------------------------------------------
//
void nsSVGForeignObjectElement::ParentChainChanged()
{
// set new context information on our length-properties:
nsCOMPtr<nsIDOMSVGSVGElement> dom_elem;
GetOwnerSVGElement(getter_AddRefs(dom_elem));
if (!dom_elem) return;
nsCOMPtr<nsISVGSVGElement> svg_elem = do_QueryInterface(dom_elem);
NS_ASSERTION(svg_elem, "<svg> element missing interface");
// x:
{
nsCOMPtr<nsIDOMSVGLength> dom_length;
mX->GetBaseVal(getter_AddRefs(dom_length));
nsCOMPtr<nsISVGLength> length = do_QueryInterface(dom_length);
NS_ASSERTION(length, "svg length missing interface");
nsCOMPtr<nsIDOMSVGRect> vp_dom;
svg_elem->GetViewport(getter_AddRefs(vp_dom));
nsCOMPtr<nsISVGViewportRect> vp = do_QueryInterface(vp_dom);
nsCOMPtr<nsISVGViewportAxis> ctx;
vp->GetXAxis(getter_AddRefs(ctx));
length->SetContext(ctx);
}
// y:
{
nsCOMPtr<nsIDOMSVGLength> dom_length;
mY->GetBaseVal(getter_AddRefs(dom_length));
nsCOMPtr<nsISVGLength> length = do_QueryInterface(dom_length);
NS_ASSERTION(length, "svg length missing interface");
nsCOMPtr<nsIDOMSVGRect> vp_dom;
svg_elem->GetViewport(getter_AddRefs(vp_dom));
nsCOMPtr<nsISVGViewportRect> vp = do_QueryInterface(vp_dom);
nsCOMPtr<nsISVGViewportAxis> ctx;
vp->GetYAxis(getter_AddRefs(ctx));
length->SetContext(ctx);
}
// width:
{
nsCOMPtr<nsIDOMSVGLength> dom_length;
mWidth->GetBaseVal(getter_AddRefs(dom_length));
nsCOMPtr<nsISVGLength> length = do_QueryInterface(dom_length);
NS_ASSERTION(length, "svg length missing interface");
nsCOMPtr<nsIDOMSVGRect> vp_dom;
svg_elem->GetViewport(getter_AddRefs(vp_dom));
nsCOMPtr<nsISVGViewportRect> vp = do_QueryInterface(vp_dom);
nsCOMPtr<nsISVGViewportAxis> ctx;
vp->GetXAxis(getter_AddRefs(ctx));
length->SetContext(ctx);
}
// height:
{
nsCOMPtr<nsIDOMSVGLength> dom_length;
mHeight->GetBaseVal(getter_AddRefs(dom_length));
nsCOMPtr<nsISVGLength> length = do_QueryInterface(dom_length);
NS_ASSERTION(length, "svg length missing interface");
nsCOMPtr<nsIDOMSVGRect> vp_dom;
svg_elem->GetViewport(getter_AddRefs(vp_dom));
nsCOMPtr<nsISVGViewportRect> vp = do_QueryInterface(vp_dom);
nsCOMPtr<nsISVGViewportAxis> ctx;
vp->GetYAxis(getter_AddRefs(ctx));
length->SetContext(ctx);
}
}

View File

@@ -0,0 +1,209 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ----- BEGIN LICENSE BLOCK -----
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is the Mozilla SVG project.
*
* The Initial Developer of the Original Code is
* Crocodile Clips Ltd..
* Portions created by the Initial Developer are Copyright (C) 2001
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Alex Fritze <alex.fritze@crocodile-clips.com> (original author)
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ----- END LICENSE BLOCK ----- */
#include "nsSVGGraphicElement.h"
#include "nsIDOMSVGGElement.h"
#include "nsSVGAtoms.h"
typedef nsSVGGraphicElement nsSVGGElementBase;
class nsSVGGElement : public nsSVGGElementBase,
public nsIDOMSVGGElement
{
protected:
friend nsresult NS_NewSVGGElement(nsIContent **aResult,
nsINodeInfo *aNodeInfo);
nsSVGGElement();
virtual ~nsSVGGElement();
virtual nsresult Init();
public:
// interfaces:
NS_DECL_ISUPPORTS_INHERITED
NS_DECL_NSIDOMSVGGELEMENT
// xxx I wish we could use virtual inheritance
NS_FORWARD_NSIDOMNODE_NO_CLONENODE(nsSVGGElementBase::)
NS_FORWARD_NSIDOMELEMENT(nsSVGGElementBase::)
NS_FORWARD_NSIDOMSVGELEMENT(nsSVGGElementBase::)
// nsISVGContent interface
NS_IMETHOD IsPresentationAttribute(const nsIAtom* attribute, PRBool* retval);
protected:
};
////////////////////////////////////////////////////////////////////////
// implementation
nsresult NS_NewSVGGElement(nsIContent **aResult, nsINodeInfo *aNodeInfo)
{
*aResult = nsnull;
nsSVGGElement* it = new nsSVGGElement();
if (!it) return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(it);
nsresult rv = NS_STATIC_CAST(nsGenericElement*,it)->Init(aNodeInfo);
if (NS_FAILED(rv)) {
it->Release();
return rv;
}
rv = it->Init();
if (NS_FAILED(rv)) {
it->Release();
return rv;
}
*aResult = NS_STATIC_CAST(nsIContent *, it);
return NS_OK;
}
//----------------------------------------------------------------------
// nsISupports methods
NS_IMPL_ADDREF_INHERITED(nsSVGGElement,nsSVGGElementBase)
NS_IMPL_RELEASE_INHERITED(nsSVGGElement,nsSVGGElementBase)
NS_INTERFACE_MAP_BEGIN(nsSVGGElement)
NS_INTERFACE_MAP_ENTRY(nsIDOMSVGGElement)
NS_INTERFACE_MAP_ENTRY_CONTENT_CLASSINFO(SVGGElement)
NS_INTERFACE_MAP_END_INHERITING(nsSVGGElementBase)
//----------------------------------------------------------------------
// Implementation
nsSVGGElement::nsSVGGElement()
{
}
nsSVGGElement::~nsSVGGElement()
{
}
nsresult
nsSVGGElement::Init()
{
nsresult rv;
rv = nsSVGGElementBase::Init();
NS_ENSURE_SUCCESS(rv,rv);
return NS_OK;
}
//----------------------------------------------------------------------
// nsIDOMNode methods
NS_IMETHODIMP
nsSVGGElement::CloneNode(PRBool aDeep, nsIDOMNode** aReturn)
{
*aReturn = nsnull;
nsSVGGElement* it = new nsSVGGElement();
if (!it) return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(it);
nsresult rv = NS_STATIC_CAST(nsGenericElement*,it)->Init(mNodeInfo);
if (NS_FAILED(rv)) {
it->Release();
return rv;
}
rv = it->Init();
if (NS_FAILED(rv)) {
it->Release();
return rv;
}
rv = CopyNode(it, aDeep);
if (NS_FAILED(rv)) {
it->Release();
return rv;
}
*aReturn = NS_STATIC_CAST(nsSVGGElementBase*, it);
return NS_OK;
}
//----------------------------------------------------------------------
// nsISVGContent methods
NS_IMETHODIMP
nsSVGGElement::IsPresentationAttribute(const nsIAtom* name, PRBool *retval)
{
if (
// PresentationAttributes-TextContentElements
name==nsSVGAtoms::alignment_baseline ||
name==nsSVGAtoms::baseline_shift ||
name==nsSVGAtoms::direction ||
name==nsSVGAtoms::dominant_baseline ||
name==nsSVGAtoms::glyph_orientation_horizontal ||
name==nsSVGAtoms::glyph_orientation_vertical ||
name==nsSVGAtoms::kerning ||
name==nsSVGAtoms::letter_spacing ||
name==nsSVGAtoms::text_anchor ||
name==nsSVGAtoms::text_decoration ||
name==nsSVGAtoms::unicode_bidi ||
name==nsSVGAtoms::word_spacing ||
// PresentationAttributes-FontSpecification
name==nsSVGAtoms::font_family ||
name==nsSVGAtoms::font_size ||
name==nsSVGAtoms::font_size_adjust ||
name==nsSVGAtoms::font_stretch ||
name==nsSVGAtoms::font_style ||
name==nsSVGAtoms::font_variant ||
name==nsSVGAtoms::font_weight
) {
*retval = PR_TRUE;
return NS_OK;
}
else
return nsSVGGElementBase::IsPresentationAttribute(name, retval);
}

View File

@@ -0,0 +1,345 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ----- BEGIN LICENSE BLOCK -----
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is the Mozilla SVG project.
*
* The Initial Developer of the Original Code is
* Crocodile Clips Ltd..
* Portions created by the Initial Developer are Copyright (C) 2001
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Alex Fritze <alex.fritze@crocodile-clips.com> (original author)
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ----- END LICENSE BLOCK ----- */
#include "nsSVGGraphicElement.h"
#include "nsSVGTransformList.h"
#include "nsSVGAnimatedTransformList.h"
#include "nsSVGAtoms.h"
#include "nsSVGMatrix.h"
#include "nsISVGSVGElement.h"
#include "nsIDOMEventTarget.h"
#include "nsIBindingManager.h"
#include "nsIDocument.h"
#include "nsIPresShell.h"
#include "nsIFrame.h"
#include "nsISVGChildFrame.h"
//----------------------------------------------------------------------
// nsISupports methods
NS_IMPL_ADDREF_INHERITED(nsSVGGraphicElement, nsSVGGraphicElementBase)
NS_IMPL_RELEASE_INHERITED(nsSVGGraphicElement, nsSVGGraphicElementBase)
NS_INTERFACE_MAP_BEGIN(nsSVGGraphicElement)
NS_INTERFACE_MAP_ENTRY(nsIDOMSVGLocatable)
NS_INTERFACE_MAP_ENTRY(nsIDOMSVGTransformable)
NS_INTERFACE_MAP_END_INHERITING(nsSVGGraphicElementBase)
//----------------------------------------------------------------------
// Implementation
nsresult
nsSVGGraphicElement::Init()
{
nsresult rv;
rv = nsSVGGraphicElementBase::Init();
NS_ENSURE_SUCCESS(rv,rv);
// Create mapped properties:
// DOM property: transform, #IMPLIED attrib: transform
{
nsCOMPtr<nsIDOMSVGTransformList> transformList;
rv = nsSVGTransformList::Create(getter_AddRefs(transformList));
NS_ENSURE_SUCCESS(rv,rv);
rv = NS_NewSVGAnimatedTransformList(getter_AddRefs(mTransforms),
transformList);
NS_ENSURE_SUCCESS(rv,rv);
rv = mAttributes->AddMappedSVGValue(nsSVGAtoms::transform, mTransforms);
NS_ENSURE_SUCCESS(rv,rv);
}
return NS_OK;
}
//----------------------------------------------------------------------
// nsIDOMSVGLocatable methods
/* readonly attribute nsIDOMSVGElement nearestViewportElement; */
NS_IMETHODIMP nsSVGGraphicElement::GetNearestViewportElement(nsIDOMSVGElement * *aNearestViewportElement)
{
NS_NOTYETIMPLEMENTED("write me!");
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIDOMSVGElement farthestViewportElement; */
NS_IMETHODIMP nsSVGGraphicElement::GetFarthestViewportElement(nsIDOMSVGElement * *aFarthestViewportElement)
{
NS_NOTYETIMPLEMENTED("write me!");
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIDOMSVGRect getBBox (); */
NS_IMETHODIMP nsSVGGraphicElement::GetBBox(nsIDOMSVGRect **_retval)
{
*_retval = nsnull;
if (!mDocument) return NS_ERROR_FAILURE;
nsIPresShell *presShell = mDocument->GetShellAt(0);
NS_ASSERTION(presShell, "no presShell");
if (!presShell) return NS_ERROR_FAILURE;
nsIFrame* frame;
presShell->GetPrimaryFrameFor(NS_STATIC_CAST(nsIStyledContent*, this), &frame);
NS_ASSERTION(frame, "can't get bounding box for element without frame");
if (frame) {
nsISVGChildFrame* svgframe;
frame->QueryInterface(NS_GET_IID(nsISVGChildFrame),(void**)&svgframe);
NS_ASSERTION(svgframe, "wrong frame type");
if (svgframe) {
return svgframe->GetBBox(_retval);
}
}
return NS_ERROR_FAILURE;
}
/* nsIDOMSVGMatrix getCTM (); */
NS_IMETHODIMP nsSVGGraphicElement::GetCTM(nsIDOMSVGMatrix **_retval)
{
nsCOMPtr<nsIDOMSVGMatrix> CTM;
nsIBindingManager *bindingManager = nsnull;
if (mDocument) {
bindingManager = mDocument->GetBindingManager();
}
nsCOMPtr<nsIContent> parent;
if (bindingManager) {
// we have a binding manager -- do we have an anonymous parent?
bindingManager->GetInsertionParent(this, getter_AddRefs(parent));
}
if (!parent) {
// if we didn't find an anonymous parent, use the explicit one,
// whether it's null or not...
parent = GetParent();
}
while (parent) {
nsCOMPtr<nsIDOMSVGSVGElement> viewportElement = do_QueryInterface(parent);
if (viewportElement) {
// Our nearest SVG parent is a viewport element.
viewportElement->GetViewboxToViewportTransform(getter_AddRefs(CTM));
break;
}
nsCOMPtr<nsIDOMSVGLocatable> locatableElement = do_QueryInterface(parent);
if (locatableElement) {
// Our nearest SVG parent is a locatable object that is not a
// viewport. Its GetCTM function will give us a ctm from the
// viewport to itself:
locatableElement->GetCTM(getter_AddRefs(CTM));
break;
}
// Our parent was not svg content. We allow interdispersed non-SVG
// content to coexist with XBL. Loop until we find the first SVG
// parent.
nsCOMPtr<nsIContent> next;
if (bindingManager) {
bindingManager->GetInsertionParent(parent, getter_AddRefs(next));
}
if (!next) {
// no anonymous parent, so use explicit one
next = parent->GetParent();
}
parent = next;
}
if (!CTM) {
// We either didn't find an SVG parent, or our parent failed in
// giving us a CTM. In either case:
NS_WARNING("Couldn't get CTM");
nsSVGMatrix::Create(getter_AddRefs(CTM));
}
// append our local transformations:
nsCOMPtr<nsIDOMSVGTransformList> transforms;
mTransforms->GetAnimVal(getter_AddRefs(transforms));
NS_ENSURE_TRUE(transforms, NS_ERROR_FAILURE);
nsCOMPtr<nsIDOMSVGMatrix> matrix;
transforms->GetConsolidation(getter_AddRefs(matrix));
return CTM->Multiply(matrix, _retval);
}
/* nsIDOMSVGMatrix getScreenCTM (); */
NS_IMETHODIMP nsSVGGraphicElement::GetScreenCTM(nsIDOMSVGMatrix **_retval)
{
nsCOMPtr<nsIDOMSVGMatrix> screenCTM;
nsIBindingManager *bindingManager = nsnull;
if (mDocument) {
bindingManager = mDocument->GetBindingManager();
}
nsCOMPtr<nsIContent> parent;
if (bindingManager) {
// we have a binding manager -- do we have an anonymous parent?
bindingManager->GetInsertionParent(this, getter_AddRefs(parent));
}
if (!parent) {
// if we didn't find an anonymous parent, use the explicit one,
// whether it's null or not...
parent = GetParent();
}
while (parent) {
nsCOMPtr<nsIDOMSVGLocatable> locatableElement = do_QueryInterface(parent);
if (locatableElement) {
nsCOMPtr<nsIDOMSVGMatrix> ctm;
locatableElement->GetScreenCTM(getter_AddRefs(ctm));
if (!ctm) break;
nsCOMPtr<nsIDOMSVGSVGElement> viewportElement = do_QueryInterface(parent);
if (viewportElement) {
// It is a viewport element. we need to append the viewbox xform:
nsCOMPtr<nsIDOMSVGMatrix> matrix;
viewportElement->GetViewboxToViewportTransform(getter_AddRefs(matrix));
ctm->Multiply(matrix, getter_AddRefs(screenCTM));
}
else
screenCTM = ctm;
break;
}
// Our parent was not svg content. We allow interdispersed non-SVG
// content to coexist with XBL. Loop until we find the first SVG
// parent.
nsCOMPtr<nsIContent> next;
if (bindingManager) {
bindingManager->GetInsertionParent(parent, getter_AddRefs(next));
}
if (!next) {
// no anonymous parent, so use explicit one
next = parent->GetParent();
}
parent = next;
}
if (!screenCTM) {
// We either didn't find an SVG parent, or our parent failed in
// giving us a CTM. In either case:
NS_ERROR("couldn't get ctm");
nsSVGMatrix::Create(getter_AddRefs(screenCTM));
}
// append our local transformations:
nsCOMPtr<nsIDOMSVGTransformList> transforms;
mTransforms->GetAnimVal(getter_AddRefs(transforms));
NS_ENSURE_TRUE(transforms, NS_ERROR_FAILURE);
nsCOMPtr<nsIDOMSVGMatrix> matrix;
transforms->GetConsolidation(getter_AddRefs(matrix));
return screenCTM->Multiply(matrix, _retval);
}
/* nsIDOMSVGMatrix getTransformToElement (in nsIDOMSVGElement element); */
NS_IMETHODIMP nsSVGGraphicElement::GetTransformToElement(nsIDOMSVGElement *element, nsIDOMSVGMatrix **_retval)
{
NS_NOTYETIMPLEMENTED("write me!");
return NS_ERROR_NOT_IMPLEMENTED;
}
//----------------------------------------------------------------------
// nsIDOMSVGTransformable methods
/* readonly attribute nsIDOMSVGAnimatedTransformList transform; */
NS_IMETHODIMP nsSVGGraphicElement::GetTransform(nsIDOMSVGAnimatedTransformList * *aTransform)
{
*aTransform = mTransforms;
NS_IF_ADDREF(*aTransform);
return NS_OK;
}
//----------------------------------------------------------------------
// nsISVGContent methods
NS_IMETHODIMP
nsSVGGraphicElement::IsPresentationAttribute(const nsIAtom* name, PRBool *retval)
{
if (
// PresentationAttributes-FillStroke
name==nsSVGAtoms::fill ||
name==nsSVGAtoms::fill_opacity ||
name==nsSVGAtoms::fill_rule ||
name==nsSVGAtoms::stroke ||
name==nsSVGAtoms::stroke_dasharray ||
name==nsSVGAtoms::stroke_dashoffset ||
name==nsSVGAtoms::stroke_linecap ||
name==nsSVGAtoms::stroke_linejoin ||
name==nsSVGAtoms::stroke_miterlimit ||
name==nsSVGAtoms::stroke_opacity ||
name==nsSVGAtoms::stroke_width ||
// PresentationAttributes-Graphics
name==nsSVGAtoms::clip_path ||
name==nsSVGAtoms::clip_rule ||
name==nsSVGAtoms::cursor ||
name==nsSVGAtoms::display ||
name==nsSVGAtoms::filter ||
name==nsSVGAtoms::image_rendering ||
name==nsSVGAtoms::mask ||
name==nsSVGAtoms::opacity ||
name==nsSVGAtoms::pointer_events ||
name==nsSVGAtoms::shape_rendering ||
name==nsSVGAtoms::text_rendering ||
name==nsSVGAtoms::visibility
) {
*retval = PR_TRUE;
return NS_OK;
}
else
return nsSVGGraphicElementBase::IsPresentationAttribute(name, retval);
}

View File

@@ -0,0 +1,69 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ----- BEGIN LICENSE BLOCK -----
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is the Mozilla SVG project.
*
* The Initial Developer of the Original Code is
* Crocodile Clips Ltd..
* Portions created by the Initial Developer are Copyright (C) 2001
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Alex Fritze <alex.fritze@crocodile-clips.com> (original author)
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ----- END LICENSE BLOCK ----- */
#ifndef __NS_SVGGRAPHICELEMENT_H__
#define __NS_SVGGRAPHICELEMENT_H__
#include "nsSVGElement.h"
#include "nsIDOMSVGLocatable.h"
#include "nsIDOMSVGTransformable.h"
#include "nsIDOMSVGAnimTransformList.h"
typedef nsSVGElement nsSVGGraphicElementBase;
class nsSVGGraphicElement : public nsSVGGraphicElementBase,
public nsIDOMSVGTransformable // : nsIDOMSVGLocatable
{
protected:
virtual nsresult Init();
public:
// interfaces:
NS_DECL_ISUPPORTS_INHERITED
NS_DECL_NSIDOMSVGLOCATABLE
NS_DECL_NSIDOMSVGTRANSFORMABLE
// nsISVGContent interface
NS_IMETHOD IsPresentationAttribute(const nsIAtom* attribute, PRBool* retval);
protected:
nsCOMPtr<nsIDOMSVGAnimatedTransformList> mTransforms;
};
#endif // __NS_SVGGRAPHICELEMENT_H__

View File

@@ -0,0 +1,427 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ----- BEGIN LICENSE BLOCK -----
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is the Mozilla SVG project.
*
* The Initial Developer of the Original Code is
* Crocodile Clips Ltd..
* Portions created by the Initial Developer are Copyright (C) 2003
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Alex Fritze <alex.fritze@crocodile-clips.com> (original author)
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ----- END LICENSE BLOCK ----- */
#include "nsSVGGraphicElement.h"
#include "nsSVGAtoms.h"
#include "nsIDOMSVGImageElement.h"
#include "nsIDOMSVGURIReference.h"
#include "nsSVGLength.h"
#include "nsSVGAnimatedLength.h"
#include "nsSVGAnimatedString.h"
#include "nsCOMPtr.h"
#include "nsISVGSVGElement.h"
#include "nsISVGViewportAxis.h"
#include "nsISVGViewportRect.h"
#include "nsIURI.h"
#include "nsNetUtil.h"
typedef nsSVGGraphicElement nsSVGImageElementBase;
class nsSVGImageElement : public nsSVGImageElementBase,
public nsIDOMSVGImageElement,
public nsIDOMSVGURIReference
{
protected:
friend nsresult NS_NewSVGImageElement(nsIContent **aResult,
nsINodeInfo *aNodeInfo);
nsSVGImageElement();
virtual ~nsSVGImageElement();
virtual nsresult Init();
public:
// interfaces:
NS_DECL_ISUPPORTS_INHERITED
NS_DECL_NSIDOMSVGIMAGEELEMENT
NS_DECL_NSIDOMSVGURIREFERENCE
// xxx I wish we could use virtual inheritance
NS_FORWARD_NSIDOMNODE_NO_CLONENODE(nsSVGImageElementBase::)
NS_FORWARD_NSIDOMELEMENT(nsSVGImageElementBase::)
NS_FORWARD_NSIDOMSVGELEMENT(nsSVGImageElementBase::)
protected:
void GetSrc(nsAString& src);
virtual void ParentChainChanged();
nsCOMPtr<nsIDOMSVGAnimatedLength> mX;
nsCOMPtr<nsIDOMSVGAnimatedLength> mY;
nsCOMPtr<nsIDOMSVGAnimatedLength> mWidth;
nsCOMPtr<nsIDOMSVGAnimatedLength> mHeight;
nsCOMPtr<nsIDOMSVGAnimatedString> mHref;
};
nsresult NS_NewSVGImageElement(nsIContent **aResult, nsINodeInfo *aNodeInfo)
{
*aResult = nsnull;
nsSVGImageElement* it = new nsSVGImageElement();
if (!it) return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(it);
nsresult rv = NS_STATIC_CAST(nsGenericElement*,it)->Init(aNodeInfo);
if (NS_FAILED(rv)) {
it->Release();
return rv;
}
rv = it->Init();
if (NS_FAILED(rv)) {
it->Release();
return rv;
}
*aResult = NS_STATIC_CAST(nsIContent *, it);
return NS_OK;
}
//----------------------------------------------------------------------
// nsISupports methods
NS_IMPL_ADDREF_INHERITED(nsSVGImageElement,nsSVGImageElementBase)
NS_IMPL_RELEASE_INHERITED(nsSVGImageElement,nsSVGImageElementBase)
NS_INTERFACE_MAP_BEGIN(nsSVGImageElement)
NS_INTERFACE_MAP_ENTRY(nsIDOMSVGImageElement)
NS_INTERFACE_MAP_ENTRY(nsIDOMSVGURIReference)
NS_INTERFACE_MAP_ENTRY_CONTENT_CLASSINFO(SVGImageElement)
NS_INTERFACE_MAP_END_INHERITING(nsSVGImageElementBase)
//----------------------------------------------------------------------
// Implementation
nsSVGImageElement::nsSVGImageElement()
{
}
nsSVGImageElement::~nsSVGImageElement()
{
if (mX) {
nsCOMPtr<nsISVGValue> value = do_QueryInterface(mX);
value->RemoveObserver(this);
}
if (mY) {
nsCOMPtr<nsISVGValue> value = do_QueryInterface(mY);
value->RemoveObserver(this);
}
if (mWidth) {
nsCOMPtr<nsISVGValue> value = do_QueryInterface(mWidth);
value->RemoveObserver(this);
}
if (mHeight) {
nsCOMPtr<nsISVGValue> value = do_QueryInterface(mHeight);
value->RemoveObserver(this);
}
}
nsresult
nsSVGImageElement::Init()
{
nsresult rv;
rv = nsSVGImageElementBase::Init();
NS_ENSURE_SUCCESS(rv,rv);
// Create mapped properties:
// nsIDOMSVGImage properties
// DOM property: x , #IMPLIED attrib: x
{
nsCOMPtr<nsISVGLength> length;
rv = NS_NewSVGLength(getter_AddRefs(length),
0.0f);
NS_ENSURE_SUCCESS(rv,rv);
rv = NS_NewSVGAnimatedLength(getter_AddRefs(mX), length);
NS_ENSURE_SUCCESS(rv,rv);
rv = mAttributes->AddMappedSVGValue(nsSVGAtoms::x, mX);
NS_ENSURE_SUCCESS(rv,rv);
}
// DOM property: y , #IMPLIED attrib: y
{
nsCOMPtr<nsISVGLength> length;
rv = NS_NewSVGLength(getter_AddRefs(length),
0.0f);
NS_ENSURE_SUCCESS(rv,rv);
rv = NS_NewSVGAnimatedLength(getter_AddRefs(mY), length);
NS_ENSURE_SUCCESS(rv,rv);
rv = mAttributes->AddMappedSVGValue(nsSVGAtoms::y, mY);
NS_ENSURE_SUCCESS(rv,rv);
}
// DOM property: width , #REQUIRED attrib: width
// XXX: enforce requiredness
{
nsCOMPtr<nsISVGLength> length;
rv = NS_NewSVGLength(getter_AddRefs(length),
100.0f);
NS_ENSURE_SUCCESS(rv,rv);
rv = NS_NewSVGAnimatedLength(getter_AddRefs(mWidth), length);
NS_ENSURE_SUCCESS(rv,rv);
rv = mAttributes->AddMappedSVGValue(nsSVGAtoms::width, mWidth);
NS_ENSURE_SUCCESS(rv,rv);
}
// DOM property: height , #REQUIRED attrib: height
// XXX: enforce requiredness
{
nsCOMPtr<nsISVGLength> length;
rv = NS_NewSVGLength(getter_AddRefs(length),
100.0f);
NS_ENSURE_SUCCESS(rv,rv);
rv = NS_NewSVGAnimatedLength(getter_AddRefs(mHeight), length);
NS_ENSURE_SUCCESS(rv,rv);
rv = mAttributes->AddMappedSVGValue(nsSVGAtoms::height, mHeight);
NS_ENSURE_SUCCESS(rv,rv);
}
// nsIDOMSVGURIReference properties
// DOM property: href , #REQUIRED attrib: xlink:href
// XXX: enforce requiredness
{
rv = NS_NewSVGAnimatedString(getter_AddRefs(mHref));
NS_ENSURE_SUCCESS(rv,rv);
rv = mAttributes->AddMappedSVGValue(nsSVGAtoms::href, mHref, kNameSpaceID_XLink);
NS_ENSURE_SUCCESS(rv,rv);
}
return NS_OK;
}
//----------------------------------------------------------------------
// nsIDOMNode methods
NS_IMETHODIMP
nsSVGImageElement::CloneNode(PRBool aDeep, nsIDOMNode** aReturn)
{
*aReturn = nsnull;
nsSVGImageElement* it = new nsSVGImageElement();
if (!it) return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(it);
nsresult rv = NS_STATIC_CAST(nsGenericElement*,it)->Init(mNodeInfo);
if (NS_FAILED(rv)) {
it->Release();
return rv;
}
rv = it->Init();
if (NS_FAILED(rv)) {
it->Release();
return rv;
}
rv = CopyNode(it, aDeep);
if (NS_FAILED(rv)) {
it->Release();
return rv;
}
*aReturn = NS_STATIC_CAST(nsSVGImageElementBase*, it);
return NS_OK;
}
//----------------------------------------------------------------------
// nsIDOMSVGImageElement methods:
/* readonly attribute nsIDOMSVGAnimatedLength x; */
NS_IMETHODIMP nsSVGImageElement::GetX(nsIDOMSVGAnimatedLength * *aX)
{
*aX = mX;
NS_IF_ADDREF(*aX);
return NS_OK;
}
/* readonly attribute nsIDOMSVGAnimatedLength y; */
NS_IMETHODIMP nsSVGImageElement::GetY(nsIDOMSVGAnimatedLength * *aY)
{
*aY = mY;
NS_IF_ADDREF(*aY);
return NS_OK;
}
/* readonly attribute nsIDOMSVGAnimatedLength width; */
NS_IMETHODIMP nsSVGImageElement::GetWidth(nsIDOMSVGAnimatedLength * *aWidth)
{
*aWidth = mWidth;
NS_IF_ADDREF(*aWidth);
return NS_OK;
}
/* readonly attribute nsIDOMSVGAnimatedLength height; */
NS_IMETHODIMP nsSVGImageElement::GetHeight(nsIDOMSVGAnimatedLength * *aHeight)
{
*aHeight = mHeight;
NS_IF_ADDREF(*aHeight);
return NS_OK;
}
/* readonly attribute nsIDOMSVGAnimatedPreserveAspectRatio preserveAspectRatio; */
NS_IMETHODIMP
nsSVGImageElement::GetPreserveAspectRatio(nsIDOMSVGAnimatedPreserveAspectRatio
**aPreserveAspectRatio)
{
NS_NOTYETIMPLEMENTED("write me!");
return NS_ERROR_UNEXPECTED;
}
//----------------------------------------------------------------------
// nsIDOMSVGURIReference methods:
/* readonly attribute nsIDOMSVGAnimatedString href; */
NS_IMETHODIMP
nsSVGImageElement::GetHref(nsIDOMSVGAnimatedString * *aHref)
{
*aHref = mHref;
NS_IF_ADDREF(*aHref);
return NS_OK;
}
//----------------------------------------------------------------------
//
void nsSVGImageElement::ParentChainChanged()
{
// set new context information on our length-properties:
nsCOMPtr<nsIDOMSVGSVGElement> dom_elem;
GetOwnerSVGElement(getter_AddRefs(dom_elem));
if (!dom_elem) return;
nsCOMPtr<nsISVGSVGElement> svg_elem = do_QueryInterface(dom_elem);
NS_ASSERTION(svg_elem, "<svg> element missing interface");
// x:
{
nsCOMPtr<nsIDOMSVGLength> dom_length;
mX->GetBaseVal(getter_AddRefs(dom_length));
nsCOMPtr<nsISVGLength> length = do_QueryInterface(dom_length);
NS_ASSERTION(length, "svg length missing interface");
nsCOMPtr<nsIDOMSVGRect> vp_dom;
svg_elem->GetViewport(getter_AddRefs(vp_dom));
nsCOMPtr<nsISVGViewportRect> vp = do_QueryInterface(vp_dom);
nsCOMPtr<nsISVGViewportAxis> ctx;
vp->GetXAxis(getter_AddRefs(ctx));
length->SetContext(ctx);
}
// y:
{
nsCOMPtr<nsIDOMSVGLength> dom_length;
mY->GetBaseVal(getter_AddRefs(dom_length));
nsCOMPtr<nsISVGLength> length = do_QueryInterface(dom_length);
NS_ASSERTION(length, "svg length missing interface");
nsCOMPtr<nsIDOMSVGRect> vp_dom;
svg_elem->GetViewport(getter_AddRefs(vp_dom));
nsCOMPtr<nsISVGViewportRect> vp = do_QueryInterface(vp_dom);
nsCOMPtr<nsISVGViewportAxis> ctx;
vp->GetYAxis(getter_AddRefs(ctx));
length->SetContext(ctx);
}
// width:
{
nsCOMPtr<nsIDOMSVGLength> dom_length;
mWidth->GetBaseVal(getter_AddRefs(dom_length));
nsCOMPtr<nsISVGLength> length = do_QueryInterface(dom_length);
NS_ASSERTION(length, "svg length missing interface");
nsCOMPtr<nsIDOMSVGRect> vp_dom;
svg_elem->GetViewport(getter_AddRefs(vp_dom));
nsCOMPtr<nsISVGViewportRect> vp = do_QueryInterface(vp_dom);
nsCOMPtr<nsISVGViewportAxis> ctx;
vp->GetXAxis(getter_AddRefs(ctx));
length->SetContext(ctx);
}
// height:
{
nsCOMPtr<nsIDOMSVGLength> dom_length;
mHeight->GetBaseVal(getter_AddRefs(dom_length));
nsCOMPtr<nsISVGLength> length = do_QueryInterface(dom_length);
NS_ASSERTION(length, "svg length missing interface");
nsCOMPtr<nsIDOMSVGRect> vp_dom;
svg_elem->GetViewport(getter_AddRefs(vp_dom));
nsCOMPtr<nsISVGViewportRect> vp = do_QueryInterface(vp_dom);
nsCOMPtr<nsISVGViewportAxis> ctx;
vp->GetYAxis(getter_AddRefs(ctx));
length->SetContext(ctx);
}
}
//----------------------------------------------------------------------
void nsSVGImageElement::GetSrc(nsAString& src)
{
// resolve href attribute
nsCOMPtr<nsIURI> baseURI = GetBaseURI();
nsAutoString relURIStr;
mHref->GetAnimVal(relURIStr);
relURIStr.Trim(" \t\n\r");
if (baseURI && !relURIStr.IsEmpty())
NS_MakeAbsoluteURI(src, relURIStr, baseURI);
else
src = relURIStr;
}

View File

@@ -0,0 +1,644 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ----- BEGIN LICENSE BLOCK -----
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is the Mozilla SVG project.
*
* The Initial Developer of the Original Code is
* Crocodile Clips Ltd..
* Portions created by the Initial Developer are Copyright (C) 2001
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Alex Fritze <alex.fritze@crocodile-clips.com> (original author)
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ----- END LICENSE BLOCK ----- */
#include "nsSVGLength.h"
#include "prdtoa.h"
#include "nsIDOMSVGMatrix.h"
#include "nsSVGAtoms.h"
#include "nsSVGValue.h"
#include "nsReadableUtils.h"
#include "nsTextFormatter.h"
#include "nsCRT.h"
#include "nsISVGViewportAxis.h"
#include "nsIDOMSVGNumber.h"
#include "nsISVGValueUtils.h"
#include "nsWeakReference.h"
////////////////////////////////////////////////////////////////////////
// nsSVGLength class
class nsSVGLength : public nsISVGLength,
public nsSVGValue,
public nsISVGValueObserver,
public nsSupportsWeakReference
{
protected:
friend nsresult NS_NewSVGLength(nsISVGLength** result,
float value,
PRUint16 unit);
friend nsresult NS_NewSVGLength(nsISVGLength** result,
const nsAString &value);
nsSVGLength(float value, PRUint16 unit);
nsSVGLength();
virtual ~nsSVGLength();
public:
// nsISupports interface:
NS_DECL_ISUPPORTS
// nsIDOMSVGLength interface:
NS_DECL_NSIDOMSVGLENGTH
// nsISVGLength interface:
NS_IMETHOD SetContext(nsISVGViewportAxis* context);
// nsISVGValue interface:
NS_IMETHOD SetValueString(const nsAString& aValue);
NS_IMETHOD GetValueString(nsAString& aValue);
// nsISVGValueObserver interface:
NS_IMETHOD WillModifySVGObservable(nsISVGValue* observable);
NS_IMETHOD DidModifySVGObservable (nsISVGValue* observable);
// nsISupportsWeakReference
// implementation inherited from nsSupportsWeakReference
protected:
// implementation helpers:
float UserUnitsPerPixel();
float mmPerPixel();
float AxisLength();
void GetUnitString(nsAString& unit);
PRUint16 GetUnitTypeForString(const char* unitStr);
PRBool IsValidUnitType(PRUint16 unit);
void MaybeAddAsObserver();
void MaybeRemoveAsObserver();
float mValueInSpecifiedUnits;
PRUint16 mSpecifiedUnitType;
nsCOMPtr<nsISVGViewportAxis> mContext;
};
//----------------------------------------------------------------------
// Implementation
nsresult
NS_NewSVGLength(nsISVGLength** result,
float value,
PRUint16 unit)
{
nsSVGLength *pl = new nsSVGLength(value, unit);
NS_ENSURE_TRUE(pl, NS_ERROR_OUT_OF_MEMORY);
NS_ADDREF(pl);
*result = pl;
return NS_OK;
}
nsresult
NS_NewSVGLength(nsISVGLength** result,
const nsAString &value)
{
*result = nsnull;
nsSVGLength *pl = new nsSVGLength();
NS_ENSURE_TRUE(pl, NS_ERROR_OUT_OF_MEMORY);
NS_ADDREF(pl);
if (NS_FAILED(pl->SetValueAsString(value))) {
NS_RELEASE(pl);
return NS_ERROR_FAILURE;
}
*result = pl;
return NS_OK;
}
nsSVGLength::nsSVGLength(float value,
PRUint16 unit)
: mValueInSpecifiedUnits(value),
mSpecifiedUnitType(unit)
{
MaybeAddAsObserver();
}
nsSVGLength::nsSVGLength()
{
}
nsSVGLength::~nsSVGLength()
{
MaybeRemoveAsObserver();
}
//----------------------------------------------------------------------
// nsISupports methods:
NS_IMPL_ADDREF(nsSVGLength)
NS_IMPL_RELEASE(nsSVGLength)
NS_INTERFACE_MAP_BEGIN(nsSVGLength)
NS_INTERFACE_MAP_ENTRY(nsISVGValue)
NS_INTERFACE_MAP_ENTRY(nsISVGValueObserver)
NS_INTERFACE_MAP_ENTRY(nsISVGLength)
NS_INTERFACE_MAP_ENTRY(nsIDOMSVGLength)
NS_INTERFACE_MAP_ENTRY(nsISupportsWeakReference)
NS_INTERFACE_MAP_ENTRY_CONTENT_CLASSINFO(SVGLength)
NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsISVGValue)
NS_INTERFACE_MAP_END
//----------------------------------------------------------------------
// nsISVGValue methods:
NS_IMETHODIMP
nsSVGLength::SetValueString(const nsAString& aValue)
{
return SetValueAsString(aValue);
}
NS_IMETHODIMP
nsSVGLength::GetValueString(nsAString& aValue)
{
return GetValueAsString(aValue);
}
//----------------------------------------------------------------------
// nsISVGValueObserver methods
NS_IMETHODIMP
nsSVGLength::WillModifySVGObservable(nsISVGValue* observable)
{
WillModify();
return NS_OK;
}
NS_IMETHODIMP
nsSVGLength::DidModifySVGObservable(nsISVGValue* observable)
{
DidModify();
return NS_OK;
}
//----------------------------------------------------------------------
// nsISVGLength methods:
/* readonly attribute unsigned short unitType; */
NS_IMETHODIMP
nsSVGLength::GetUnitType(PRUint16 *aUnitType)
{
*aUnitType = mSpecifiedUnitType;
return NS_OK;
}
/* attribute float value; */
NS_IMETHODIMP
nsSVGLength::GetValue(float *aValue)
{
nsresult rv = NS_OK;
switch (mSpecifiedUnitType) {
case SVG_LENGTHTYPE_NUMBER:
*aValue = mValueInSpecifiedUnits;
break;
case SVG_LENGTHTYPE_PX:
*aValue = mValueInSpecifiedUnits * UserUnitsPerPixel();
break;
case SVG_LENGTHTYPE_MM:
*aValue = mValueInSpecifiedUnits / mmPerPixel() * UserUnitsPerPixel();
break;
case SVG_LENGTHTYPE_CM:
*aValue = mValueInSpecifiedUnits * 10.0f / mmPerPixel() * UserUnitsPerPixel();
break;
case SVG_LENGTHTYPE_IN:
*aValue = mValueInSpecifiedUnits * 25.4f / mmPerPixel() * UserUnitsPerPixel();
break;
case SVG_LENGTHTYPE_PT:
*aValue = mValueInSpecifiedUnits * 25.4f/72.0f / mmPerPixel() * UserUnitsPerPixel();
break;
case SVG_LENGTHTYPE_PC:
*aValue = mValueInSpecifiedUnits * 25.4f*12.0f/72.0f / mmPerPixel() * UserUnitsPerPixel();
break;
case SVG_LENGTHTYPE_PERCENTAGE:
*aValue = mValueInSpecifiedUnits * AxisLength() / 100.0f;
break;
case SVG_LENGTHTYPE_EMS:
case SVG_LENGTHTYPE_EXS:
//XXX
NS_ASSERTION(PR_FALSE, "unit not implemented yet");
default:
rv = NS_ERROR_FAILURE;
break;
}
return rv;
}
NS_IMETHODIMP
nsSVGLength::SetValue(float aValue)
{
nsresult rv = NS_OK;
WillModify();
switch (mSpecifiedUnitType) {
case SVG_LENGTHTYPE_NUMBER:
mValueInSpecifiedUnits = aValue;
break;
case SVG_LENGTHTYPE_PX:
mValueInSpecifiedUnits = aValue / UserUnitsPerPixel();
break;
case SVG_LENGTHTYPE_MM:
mValueInSpecifiedUnits = aValue / UserUnitsPerPixel() * mmPerPixel();
break;
case SVG_LENGTHTYPE_CM:
mValueInSpecifiedUnits = aValue / UserUnitsPerPixel() * mmPerPixel() / 10.0f;
break;
case SVG_LENGTHTYPE_IN:
mValueInSpecifiedUnits = aValue / UserUnitsPerPixel() * mmPerPixel() / 25.4f;
break;
case SVG_LENGTHTYPE_PT:
mValueInSpecifiedUnits = aValue / UserUnitsPerPixel() * mmPerPixel() * 72.0f/25.4f;
break;
case SVG_LENGTHTYPE_PC:
mValueInSpecifiedUnits = aValue / UserUnitsPerPixel() * mmPerPixel() * 72.0f/24.4f/12.0f;
break;
case SVG_LENGTHTYPE_PERCENTAGE:
mValueInSpecifiedUnits = aValue * 100.0f / AxisLength();
break;
case SVG_LENGTHTYPE_EMS:
case SVG_LENGTHTYPE_EXS:
//XXX
NS_ASSERTION(PR_FALSE, "unit not implemented yet");
default:
rv = NS_ERROR_FAILURE;
break;
}
DidModify();
return rv;
}
/* attribute float valueInSpecifiedUnits; */
NS_IMETHODIMP
nsSVGLength::GetValueInSpecifiedUnits(float *aValueInSpecifiedUnits)
{
*aValueInSpecifiedUnits = mValueInSpecifiedUnits;
return NS_OK;
}
NS_IMETHODIMP
nsSVGLength::SetValueInSpecifiedUnits(float aValueInSpecifiedUnits)
{
WillModify();
mValueInSpecifiedUnits = aValueInSpecifiedUnits;
DidModify();
return NS_OK;
}
/* attribute DOMString valueAsString; */
NS_IMETHODIMP
nsSVGLength::GetValueAsString(nsAString & aValueAsString)
{
aValueAsString.Truncate();
PRUnichar buf[24];
nsTextFormatter::snprintf(buf, sizeof(buf)/sizeof(PRUnichar),
NS_LITERAL_STRING("%g").get(),
(double)mValueInSpecifiedUnits);
aValueAsString.Append(buf);
nsAutoString unitString;
GetUnitString(unitString);
aValueAsString.Append(unitString);
return NS_OK;
}
NS_IMETHODIMP
nsSVGLength::SetValueAsString(const nsAString & aValueAsString)
{
nsresult rv = NS_OK;
char *str = ToNewCString(aValueAsString);
char* number = str;
while (*number && isspace(*number))
++number;
if (*number) {
char *rest;
double value = PR_strtod(number, &rest);
if (rest!=number) {
PRUint16 unitType = GetUnitTypeForString(nsCRT::strtok(rest, "\x20\x9\xD\xA", &rest));
if (IsValidUnitType(unitType)){
WillModify();
mValueInSpecifiedUnits = (float)value;
mSpecifiedUnitType = unitType;
DidModify();
}
else { // parse error
// not a valid unit type
rv = NS_ERROR_FAILURE;
NS_ERROR("invalid length type");
}
}
else { // parse error
// no number
rv = NS_ERROR_FAILURE;
}
}
nsMemory::Free(str);
return rv;
}
/* void newValueSpecifiedUnits (in unsigned short unitType, in float valueInSpecifiedUnits); */
NS_IMETHODIMP
nsSVGLength::NewValueSpecifiedUnits(PRUint16 unitType, float valueInSpecifiedUnits)
{
if (!IsValidUnitType(unitType)) return NS_ERROR_FAILURE;
bool observer_change = (unitType != mSpecifiedUnitType);
WillModify();
if (observer_change)
MaybeRemoveAsObserver();
mValueInSpecifiedUnits = valueInSpecifiedUnits;
mSpecifiedUnitType = unitType;
if (observer_change)
MaybeAddAsObserver();
DidModify();
return NS_OK;
}
/* void convertToSpecifiedUnits (in unsigned short unitType); */
NS_IMETHODIMP
nsSVGLength::ConvertToSpecifiedUnits(PRUint16 unitType)
{
if (!IsValidUnitType(unitType)) return NS_ERROR_FAILURE;
bool observer_change = (unitType != mSpecifiedUnitType);
WillModify();
if (observer_change)
MaybeRemoveAsObserver();
float valueInUserUnits;
GetValue(&valueInUserUnits);
mSpecifiedUnitType = unitType;
SetValue(valueInUserUnits);
if (observer_change)
MaybeAddAsObserver();
DidModify();
return NS_OK;
}
/* float getTransformedValue (in nsIDOMSVGMatrix matrix); */
NS_IMETHODIMP
nsSVGLength::GetTransformedValue(nsIDOMSVGMatrix *matrix,
float *_retval)
{
// XXX we don't have enough information here. is it the length part of
// a coordinate pair (in which case it should transform like a point)
// or is it used like a vector-component (in which case it doesn't
// translate)
NS_NOTYETIMPLEMENTED("write me!");
return NS_ERROR_UNEXPECTED;
}
//----------------------------------------------------------------------
// nsISVGLength methods:
NS_IMETHODIMP
nsSVGLength::SetContext(nsISVGViewportAxis* context)
{
// XXX should we bracket this inbetween WillModify/DidModify pairs?
MaybeRemoveAsObserver();
mContext = context;
MaybeAddAsObserver();
return NS_OK;
}
//----------------------------------------------------------------------
// Implementation helpers:
float nsSVGLength::UserUnitsPerPixel()
{
float UUPerPx = 1.0f;
// SVG CR 20001102: New: A px unit and a user unit are defined to be
// equivalent in SVG. Thus, a length of "5px" is the same as a
// length of "5".
//
// old way of mapping pixels:
// if (!mOwnerElement) return UUPerPx;
// nsCOMPtr<nsIDOMSVGLocatable> locatable;
// locatable = do_QueryInterface(mOwnerElement);
// if (!locatable) return UUPerPx;
// nsCOMPtr<nsIDOMSVGMatrix> matrix;
// locatable->GetCTM( getter_AddRefs(matrix) );
// if (!matrix) return UUPerPx;
// nsCOMPtr<nsIDOMSVGPoint> point, XFormedPoint;
// nsSVGPoint::Create(1.0, 1.0, getter_AddRefs(point));
// point->MatrixTransform(matrix, getter_AddRefs(XFormedPoint));
// switch (mDirection) {
// case eXDirection:
// XFormedPoint->GetX(&UUPerPx);
// break;
// case eYDirection:
// XFormedPoint->GetY(&UUPerPx);
// break;
// case eNoDirection:
// {
// float x,y;
// XFormedPoint->GetX(&x);
// XFormedPoint->GetY(&y);
// UUPerPx = (x==y ? x : (x+y)/2);
// break;
// }
// }
// if (UUPerPx == 0.0f) {
// NS_ASSERTION(PR_FALSE, "invalid uu/pixels");
// UUPerPx = 1e-20f; // some small value
// }
return UUPerPx;
}
float nsSVGLength::mmPerPixel()
{
if (!mContext) {
NS_WARNING("no context in mmPerPixel()");
return 1e-20f;
}
nsCOMPtr<nsIDOMSVGNumber> num;
mContext->GetMillimeterPerPixel(getter_AddRefs(num));
NS_ASSERTION(num, "null interface");
float mmPerPx;
num->GetValue(&mmPerPx);
if (mmPerPx == 0.0f) {
NS_ASSERTION(PR_FALSE, "invalid mm/pixels");
mmPerPx = 1e-20f; // some small value
}
return mmPerPx;
}
float nsSVGLength::AxisLength()
{
if (!mContext) {
NS_WARNING("no context in AxisLength()");
return 1e-20f;
}
nsCOMPtr<nsIDOMSVGNumber> num;
mContext->GetLength(getter_AddRefs(num));
NS_ASSERTION(num, "null interface");
float d;
num->GetValue(&d);
NS_ASSERTION(d!=0.0f, "zero axis length");
if (d == 0.0f)
d = 1e-20f;
return d;
}
void nsSVGLength::GetUnitString(nsAString& unit)
{
nsIAtom* UnitAtom = nsnull;
switch (mSpecifiedUnitType) {
case SVG_LENGTHTYPE_NUMBER:
UnitAtom = nsnull;
break;
case SVG_LENGTHTYPE_PX:
UnitAtom = nsSVGAtoms::px;
break;
case SVG_LENGTHTYPE_MM:
UnitAtom = nsSVGAtoms::mm;
break;
case SVG_LENGTHTYPE_CM:
UnitAtom = nsSVGAtoms::cm;
break;
case SVG_LENGTHTYPE_IN:
UnitAtom = nsSVGAtoms::in;
break;
case SVG_LENGTHTYPE_PT:
UnitAtom = nsSVGAtoms::pt;
break;
case SVG_LENGTHTYPE_PC:
UnitAtom = nsSVGAtoms::pc;
break;
case SVG_LENGTHTYPE_EMS:
UnitAtom = nsSVGAtoms::ems;
break;
case SVG_LENGTHTYPE_EXS:
UnitAtom = nsSVGAtoms::exs;
break;
case SVG_LENGTHTYPE_PERCENTAGE:
UnitAtom = nsSVGAtoms::percentage;
break;
default:
NS_ASSERTION(PR_FALSE, "unknown unit");
break;
}
if (!UnitAtom) return;
UnitAtom->ToString(unit);
}
PRUint16 nsSVGLength::GetUnitTypeForString(const char* unitStr)
{
if (!unitStr || *unitStr=='\0') return SVG_LENGTHTYPE_NUMBER;
nsCOMPtr<nsIAtom> unitAtom = do_GetAtom(unitStr);
if (unitAtom == nsSVGAtoms::px)
return SVG_LENGTHTYPE_PX;
else if (unitAtom == nsSVGAtoms::mm)
return SVG_LENGTHTYPE_MM;
else if (unitAtom == nsSVGAtoms::cm)
return SVG_LENGTHTYPE_CM;
else if (unitAtom == nsSVGAtoms::in)
return SVG_LENGTHTYPE_IN;
else if (unitAtom == nsSVGAtoms::pt)
return SVG_LENGTHTYPE_PT;
else if (unitAtom == nsSVGAtoms::pc)
return SVG_LENGTHTYPE_PC;
else if (unitAtom == nsSVGAtoms::ems)
return SVG_LENGTHTYPE_EMS;
else if (unitAtom == nsSVGAtoms::exs)
return SVG_LENGTHTYPE_EXS;
else if (unitAtom == nsSVGAtoms::percentage)
return SVG_LENGTHTYPE_PERCENTAGE;
return SVG_LENGTHTYPE_UNKNOWN;
}
PRBool nsSVGLength::IsValidUnitType(PRUint16 unit)
{
if (unit>0 && unit<=10)
return PR_TRUE;
return PR_FALSE;
}
void nsSVGLength::MaybeAddAsObserver()
{
if ((mSpecifiedUnitType==SVG_LENGTHTYPE_PERCENTAGE) &&
mContext) {
nsCOMPtr<nsIDOMSVGNumber> num;
mContext->GetLength(getter_AddRefs(num));
NS_ADD_SVGVALUE_OBSERVER(num);
}
}
void nsSVGLength::MaybeRemoveAsObserver()
{
if ((mSpecifiedUnitType==SVG_LENGTHTYPE_PERCENTAGE) &&
mContext) {
nsCOMPtr<nsIDOMSVGNumber> num;
mContext->GetLength(getter_AddRefs(num));
NS_REMOVE_SVGVALUE_OBSERVER(num);
}
}

View File

@@ -0,0 +1,59 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ----- BEGIN LICENSE BLOCK -----
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is the Mozilla SVG project.
*
* The Initial Developer of the Original Code is
* Crocodile Clips Ltd..
* Portions created by the Initial Developer are Copyright (C) 2001
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Alex Fritze <alex.fritze@crocodile-clips.com> (original author)
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ----- END LICENSE BLOCK ----- */
#ifndef __NS_SVGLENGTH_H__
#define __NS_SVGLENGTH_H__
#include "nsISVGLength.h"
#include "nsAString.h"
nsresult
NS_NewSVGLength(nsISVGLength** result,
float value=0.0f,
PRUint16 unit=nsIDOMSVGLength::SVG_LENGTHTYPE_NUMBER);
nsresult
NS_NewSVGLength(nsISVGLength** result,
const nsAString &value);
// XXX we'll need this prototype-based stuff to support unsetting:
//nsresult NS_NewSVGLength(nsIDOMSVGLength** result,
// nsIDOMSVGLength* prototype);
#endif //__NS_SVGLENGTH_H__

View File

@@ -0,0 +1,400 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ----- BEGIN LICENSE BLOCK -----
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is the Mozilla SVG project.
*
* The Initial Developer of the Original Code is
* Crocodile Clips Ltd..
* Portions created by the Initial Developer are Copyright (C) 2002
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Alex Fritze <alex.fritze@crocodile-clips.com> (original author)
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ----- END LICENSE BLOCK ----- */
#include "nsSVGLengthList.h"
#include "nsSVGLength.h"
#include "nsSVGValue.h"
#include "nsWeakReference.h"
#include "nsVoidArray.h"
#include "nsDOMError.h"
#include "nsReadableUtils.h"
#include "nsISVGViewportAxis.h"
#include "nsCRT.h"
#include "nsISVGValueUtils.h"
////////////////////////////////////////////////////////////////////////
// nsSVGLengthList
class nsSVGLengthList : public nsISVGLengthList,
public nsSVGValue,
public nsISVGValueObserver,
public nsSupportsWeakReference
{
protected:
friend nsresult NS_NewSVGLengthList(nsISVGLengthList** result);
nsSVGLengthList();
~nsSVGLengthList();
// void Init();
public:
// nsISupports interface:
NS_DECL_ISUPPORTS
// nsIDOMSVGLengthList interface:
NS_DECL_NSIDOMSVGLENGTHLIST
// nsISVGLengthList interface:
NS_IMETHOD SetContext(nsISVGViewportAxis* context);
// remainder of nsISVGValue interface:
NS_IMETHOD SetValueString(const nsAString& aValue);
NS_IMETHOD GetValueString(nsAString& aValue);
// nsISVGValueObserver interface:
NS_IMETHOD WillModifySVGObservable(nsISVGValue* observable);
NS_IMETHOD DidModifySVGObservable (nsISVGValue* observable);
// nsISupportsWeakReference
// implementation inherited from nsSupportsWeakReference
protected:
// implementation helpers:
nsISVGLength* ElementAt(PRInt32 index);
void AppendElement(nsISVGLength* aElement);
void RemoveElementAt(PRInt32 index);
void InsertElementAt(nsISVGLength* aElement, PRInt32 index);
void ReleaseLengths();
nsAutoVoidArray mLengths;
nsCOMPtr<nsISVGViewportAxis> mContext;
};
//----------------------------------------------------------------------
// Implementation
nsSVGLengthList::nsSVGLengthList()
{
}
nsSVGLengthList::~nsSVGLengthList()
{
ReleaseLengths();
}
//----------------------------------------------------------------------
// nsISupports methods:
NS_IMPL_ADDREF(nsSVGLengthList)
NS_IMPL_RELEASE(nsSVGLengthList)
NS_INTERFACE_MAP_BEGIN(nsSVGLengthList)
NS_INTERFACE_MAP_ENTRY(nsISVGValue)
NS_INTERFACE_MAP_ENTRY(nsIDOMSVGLengthList)
NS_INTERFACE_MAP_ENTRY(nsISVGLengthList)
NS_INTERFACE_MAP_ENTRY(nsISupportsWeakReference)
NS_INTERFACE_MAP_ENTRY(nsISVGValueObserver)
NS_INTERFACE_MAP_ENTRY_CONTENT_CLASSINFO(SVGLengthList)
NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsISVGValue)
NS_INTERFACE_MAP_END
//----------------------------------------------------------------------
// nsISVGValue methods:
NS_IMETHODIMP
nsSVGLengthList::SetValueString(const nsAString& aValue)
{
WillModify();
ReleaseLengths();
nsresult rv = NS_OK;
char* str;
str = ToNewCString(aValue);
char* rest = str;
char* token;
const char* delimiters = ",\x20\x9\xD\xA";
while ((token = nsCRT::strtok(rest, delimiters, &rest))) {
nsCOMPtr<nsISVGLength> length;
NS_NewSVGLength(getter_AddRefs(length), NS_ConvertASCIItoUCS2(token));
if (!length) {
rv = NS_ERROR_FAILURE;
break;
}
AppendElement(length);
}
nsMemory::Free(str);
DidModify();
return rv;
}
NS_IMETHODIMP
nsSVGLengthList::GetValueString(nsAString& aValue)
{
aValue.Truncate();
PRInt32 count = mLengths.Count();
if (count<=0) return NS_OK;
PRInt32 i = 0;
while (1) {
nsISVGLength* length = ElementAt(i);
nsCOMPtr<nsISVGValue> val = do_QueryInterface(length);
NS_ASSERTION(val, "length doesn't implement required interface");
if (!val) continue;
nsAutoString str;
val->GetValueString(str);
aValue.Append(str);
if (++i >= count) break;
aValue.Append(NS_LITERAL_STRING(" "));
}
return NS_OK;
}
//----------------------------------------------------------------------
// nsIDOMSVGLengthList methods:
/* readonly attribute unsigned long numberOfItems; */
NS_IMETHODIMP nsSVGLengthList::GetNumberOfItems(PRUint32 *aNumberOfItems)
{
*aNumberOfItems = mLengths.Count();
return NS_OK;
}
/* void clear (); */
NS_IMETHODIMP nsSVGLengthList::Clear()
{
WillModify();
ReleaseLengths();
DidModify();
return NS_OK;
}
/* nsIDOMSVGLength initialize (in nsIDOMSVGLength newItem); */
NS_IMETHODIMP nsSVGLengthList::Initialize(nsIDOMSVGLength *newItem, nsIDOMSVGLength **_retval)
{
Clear();
return AppendItem(newItem, _retval);
}
/* nsIDOMSVGLength getItem (in unsigned long index); */
NS_IMETHODIMP nsSVGLengthList::GetItem(PRUint32 index, nsIDOMSVGLength **_retval)
{
if ((PRInt32)index >= mLengths.Count()) {
*_retval = nsnull;
return NS_ERROR_DOM_INDEX_SIZE_ERR;
}
*_retval = ElementAt(index);
NS_ADDREF(*_retval);
return NS_OK;
}
/* nsIDOMSVGLength insertItemBefore (in nsIDOMSVGLength newItem, in unsigned long index); */
NS_IMETHODIMP
nsSVGLengthList::InsertItemBefore(nsIDOMSVGLength *newItem, PRUint32 index, nsIDOMSVGLength **_retval)
{
NS_NOTYETIMPLEMENTED("write me");
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIDOMSVGLength replaceItem (in nsIDOMSVGLength newItem, in unsigned long index); */
NS_IMETHODIMP
nsSVGLengthList::ReplaceItem(nsIDOMSVGLength *newItem, PRUint32 index, nsIDOMSVGLength **_retval)
{
NS_NOTYETIMPLEMENTED("write me!");
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIDOMSVGLengthList removeItem (in unsigned long index); */
NS_IMETHODIMP nsSVGLengthList::RemoveItem(PRUint32 index, nsIDOMSVGLength **_retval)
{
if ((PRInt32)index >= mLengths.Count()) {
*_retval = nsnull;
return NS_ERROR_DOM_INDEX_SIZE_ERR;
}
*_retval = ElementAt(index);
NS_ADDREF(*_retval);
WillModify();
RemoveElementAt(index);
DidModify();
return NS_OK;
}
/* nsIDOMSVGLengthList appendItem (in nsIDOMSVGLengthList newItem); */
NS_IMETHODIMP
nsSVGLengthList::AppendItem(nsIDOMSVGLength *newItem, nsIDOMSVGLength **_retval)
{
nsCOMPtr<nsISVGLength> length = do_QueryInterface(newItem);
if (!length) {
NS_ERROR("length doesn't implement required interface");
*_retval = nsnull;
return NS_ERROR_FAILURE;
}
AppendElement(length);
*_retval = newItem;
NS_ADDREF(*_retval);
return NS_OK;
}
//----------------------------------------------------------------------
// nsISVGLength methods:
NS_IMETHODIMP
nsSVGLengthList::SetContext(nsISVGViewportAxis *context)
{
mContext = context;
PRInt32 count = mLengths.Count();
for (PRInt32 i = 0; i < count; ++i) {
nsISVGLength* length = ElementAt(i);
length->SetContext(mContext);
}
return NS_OK;
}
//----------------------------------------------------------------------
// nsISVGValueObserver methods
NS_IMETHODIMP
nsSVGLengthList::WillModifySVGObservable(nsISVGValue* observable)
{
WillModify();
return NS_OK;
}
NS_IMETHODIMP
nsSVGLengthList::DidModifySVGObservable(nsISVGValue* observable)
{
DidModify();
return NS_OK;
}
//----------------------------------------------------------------------
// Implementation helpers
void
nsSVGLengthList::ReleaseLengths()
{
WillModify();
PRInt32 count = mLengths.Count();
for (PRInt32 i = 0; i < count; ++i) {
nsISVGLength* length = ElementAt(i);
length->SetContext(nsnull);
NS_REMOVE_SVGVALUE_OBSERVER(length);
NS_RELEASE(length);
}
mLengths.Clear();
DidModify();
}
nsISVGLength*
nsSVGLengthList::ElementAt(PRInt32 index)
{
return (nsISVGLength*)mLengths.ElementAt(index);
}
void
nsSVGLengthList::AppendElement(nsISVGLength* aElement)
{
WillModify();
NS_ADDREF(aElement);
// The SVG specs state that 'if newItem is already in a list, it
// is removed from its previous list before it is inserted into this
// list':
// aElement->SetListOwner(this);
aElement->SetContext(mContext);
mLengths.AppendElement((void*)aElement);
NS_ADD_SVGVALUE_OBSERVER(aElement);
DidModify();
}
void
nsSVGLengthList::RemoveElementAt(PRInt32 index)
{
WillModify();
nsISVGLength* length = ElementAt(index);
NS_ASSERTION(length, "null length");
NS_REMOVE_SVGVALUE_OBSERVER(length);
mLengths.RemoveElementAt(index);
NS_RELEASE(length);
DidModify();
}
void
nsSVGLengthList::InsertElementAt(nsISVGLength* aElement, PRInt32 index)
{
WillModify();
NS_ADDREF(aElement);
// The SVG specs state that 'if newItem is already in a list, it
// is removed from its previous list before it is inserted into this
// list':
// aElement->SetListOwner(this);
aElement->SetContext(mContext);
mLengths.InsertElementAt((void*)aElement, index);
NS_ADD_SVGVALUE_OBSERVER(aElement);
DidModify();
}
////////////////////////////////////////////////////////////////////////
// Exported creation functions:
nsresult
NS_NewSVGLengthList(nsISVGLengthList** result)
{
*result = nsnull;
nsSVGLengthList* lengthList = new nsSVGLengthList();
if (!lengthList) return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(lengthList);
*result = lengthList;
return NS_OK;
}

View File

@@ -0,0 +1,47 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ----- BEGIN LICENSE BLOCK -----
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is the Mozilla SVG project.
*
* The Initial Developer of the Original Code is
* Crocodile Clips Ltd..
* Portions created by the Initial Developer are Copyright (C) 2002
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Alex Fritze <alex.fritze@crocodile-clips.com> (original author)
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ----- END LICENSE BLOCK ----- */
#ifndef __NS_SVGLENGTHLIST_H__
#define __NS_SVGLENGTHLIST_H__
#include "nsISVGLengthList.h"
nsresult
NS_NewSVGLengthList(nsISVGLengthList** result);
#endif //__NS_SVGLENGTHLIST_H__

View File

@@ -0,0 +1,362 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ----- BEGIN LICENSE BLOCK -----
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is the Mozilla SVG project.
*
* The Initial Developer of the Original Code is
* Crocodile Clips Ltd..
* Portions created by the Initial Developer are Copyright (C) 2001
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* William Cook <william.cook@crocodile-clips.com> (original author)
* Alex Fritze <alex.fritze@crocodile-clips.com>
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ----- END LICENSE BLOCK ----- */
#include "nsSVGGraphicElement.h"
#include "nsSVGAtoms.h"
#include "nsSVGAnimatedLength.h"
#include "nsSVGLength.h"
#include "nsIDOMSVGLineElement.h"
#include "nsCOMPtr.h"
#include "nsISVGSVGElement.h"
#include "nsISVGViewportAxis.h"
#include "nsISVGViewportRect.h"
typedef nsSVGGraphicElement nsSVGLineElementBase;
class nsSVGLineElement : public nsSVGLineElementBase,
public nsIDOMSVGLineElement
{
protected:
friend nsresult NS_NewSVGLineElement(nsIContent **aResult,
nsINodeInfo *aNodeInfo);
nsSVGLineElement();
virtual ~nsSVGLineElement();
virtual nsresult Init();
public:
// interfaces:
NS_DECL_ISUPPORTS_INHERITED
NS_DECL_NSIDOMSVGLINEELEMENT
// xxx I wish we could use virtual inheritance
NS_FORWARD_NSIDOMNODE_NO_CLONENODE(nsSVGLineElementBase::)
NS_FORWARD_NSIDOMELEMENT(nsSVGLineElementBase::)
NS_FORWARD_NSIDOMSVGELEMENT(nsSVGLineElementBase::)
protected:
virtual void ParentChainChanged();
nsCOMPtr<nsIDOMSVGAnimatedLength> mX1;
nsCOMPtr<nsIDOMSVGAnimatedLength> mY1;
nsCOMPtr<nsIDOMSVGAnimatedLength> mX2;
nsCOMPtr<nsIDOMSVGAnimatedLength> mY2;
};
nsresult NS_NewSVGLineElement(nsIContent **aResult, nsINodeInfo *aNodeInfo)
{
*aResult = nsnull;
nsSVGLineElement* it = new nsSVGLineElement();
if (!it) return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(it);
nsresult rv = NS_STATIC_CAST(nsGenericElement*,it)->Init(aNodeInfo);
if (NS_FAILED(rv)) {
it->Release();
return rv;
}
rv = it->Init();
if (NS_FAILED(rv)) {
it->Release();
return rv;
}
*aResult = NS_STATIC_CAST(nsIContent *, it);
return NS_OK;
}
//----------------------------------------------------------------------
// nsISupports methods
NS_IMPL_ADDREF_INHERITED(nsSVGLineElement,nsSVGLineElementBase)
NS_IMPL_RELEASE_INHERITED(nsSVGLineElement,nsSVGLineElementBase)
NS_INTERFACE_MAP_BEGIN(nsSVGLineElement)
NS_INTERFACE_MAP_ENTRY(nsIDOMSVGLineElement)
NS_INTERFACE_MAP_ENTRY_CONTENT_CLASSINFO(SVGLineElement)
NS_INTERFACE_MAP_END_INHERITING(nsSVGLineElementBase)
//----------------------------------------------------------------------
// Implementation
nsSVGLineElement::nsSVGLineElement()
{
}
nsSVGLineElement::~nsSVGLineElement()
{
if (mX1) {
nsCOMPtr<nsISVGValue> value = do_QueryInterface(mX1);
value->RemoveObserver(this);
}
if (mY1) {
nsCOMPtr<nsISVGValue> value = do_QueryInterface(mY1);
value->RemoveObserver(this);
}
if (mX2) {
nsCOMPtr<nsISVGValue> value = do_QueryInterface(mX2);
value->RemoveObserver(this);
}
if (mY2) {
nsCOMPtr<nsISVGValue> value = do_QueryInterface(mY2);
value->RemoveObserver(this);
}
}
nsresult
nsSVGLineElement::Init()
{
nsresult rv;
rv = nsSVGLineElementBase::Init();
NS_ENSURE_SUCCESS(rv,rv);
// Create mapped properties:
// DOM property: x1 , #IMPLIED attrib: x1
{
nsCOMPtr<nsISVGLength> length;
rv = NS_NewSVGLength(getter_AddRefs(length),
0.0f);
NS_ENSURE_SUCCESS(rv,rv);
rv = NS_NewSVGAnimatedLength(getter_AddRefs(mX1), length);
NS_ENSURE_SUCCESS(rv,rv);
rv = mAttributes->AddMappedSVGValue(nsSVGAtoms::x1, mX1);
NS_ENSURE_SUCCESS(rv,rv);
}
// DOM property: y1 , #IMPLIED attrib: y1
{
nsCOMPtr<nsISVGLength> length;
rv = NS_NewSVGLength(getter_AddRefs(length),
0.0f);
NS_ENSURE_SUCCESS(rv,rv);
rv = NS_NewSVGAnimatedLength(getter_AddRefs(mY1), length);
NS_ENSURE_SUCCESS(rv,rv);
rv = mAttributes->AddMappedSVGValue(nsSVGAtoms::y1, mY1);
NS_ENSURE_SUCCESS(rv,rv);
}
// DOM property: x2 , #IMPLIED attrib: x2
{
nsCOMPtr<nsISVGLength> length;
rv = NS_NewSVGLength(getter_AddRefs(length),
0.0f);
NS_ENSURE_SUCCESS(rv,rv);
rv = NS_NewSVGAnimatedLength(getter_AddRefs(mX2), length);
NS_ENSURE_SUCCESS(rv,rv);
rv = mAttributes->AddMappedSVGValue(nsSVGAtoms::x2, mX2);
NS_ENSURE_SUCCESS(rv,rv);
}
// DOM property: y2 , #IMPLIED attrib: y2
{
nsCOMPtr<nsISVGLength> length;
rv = NS_NewSVGLength(getter_AddRefs(length),
0.0f);
NS_ENSURE_SUCCESS(rv,rv);
rv = NS_NewSVGAnimatedLength(getter_AddRefs(mY2), length);
NS_ENSURE_SUCCESS(rv,rv);
rv = mAttributes->AddMappedSVGValue(nsSVGAtoms::y2, mY2);
NS_ENSURE_SUCCESS(rv,rv);
}
return NS_OK;
}
//----------------------------------------------------------------------
// nsIDOMNode methods
NS_IMETHODIMP
nsSVGLineElement::CloneNode(PRBool aDeep, nsIDOMNode** aReturn)
{
*aReturn = nsnull;
nsSVGLineElement* it = new nsSVGLineElement();
if (!it) return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(it);
nsresult rv = NS_STATIC_CAST(nsGenericElement*,it)->Init(mNodeInfo);
if (NS_FAILED(rv)) {
it->Release();
return rv;
}
rv = it->Init();
if (NS_FAILED(rv)) {
it->Release();
return rv;
}
rv = CopyNode(it, aDeep);
if (NS_FAILED(rv)) {
it->Release();
return rv;
}
*aReturn = NS_STATIC_CAST(nsSVGLineElementBase*, it);
return NS_OK;
}
//----------------------------------------------------------------------
// nsIDOMSVGLineElement methods
/* readonly attribute nsIDOMSVGAnimatedLength cx; */
NS_IMETHODIMP nsSVGLineElement::GetX1(nsIDOMSVGAnimatedLength * *aX1)
{
*aX1 = mX1;
NS_IF_ADDREF(*aX1);
return NS_OK;
}
/* readonly attribute nsIDOMSVGAnimatedLength cy; */
NS_IMETHODIMP nsSVGLineElement::GetY1(nsIDOMSVGAnimatedLength * *aY1)
{
*aY1 = mY1;
NS_IF_ADDREF(*aY1);
return NS_OK;
}
/* readonly attribute nsIDOMSVGAnimatedLength rx; */
NS_IMETHODIMP nsSVGLineElement::GetX2(nsIDOMSVGAnimatedLength * *aX2)
{
*aX2 = mX2;
NS_IF_ADDREF(*aX2);
return NS_OK;
}
/* readonly attribute nsIDOMSVGAnimatedLength ry; */
NS_IMETHODIMP nsSVGLineElement::GetY2(nsIDOMSVGAnimatedLength * *aY2)
{
*aY2 = mY2;
NS_IF_ADDREF(*aY2);
return NS_OK;
}
//----------------------------------------------------------------------
//
void nsSVGLineElement::ParentChainChanged()
{
// set new context information on our length-properties:
nsCOMPtr<nsIDOMSVGSVGElement> dom_elem;
GetOwnerSVGElement(getter_AddRefs(dom_elem));
if (!dom_elem) return;
nsCOMPtr<nsISVGSVGElement> svg_elem = do_QueryInterface(dom_elem);
NS_ASSERTION(svg_elem, "<svg> element missing interface");
// x1:
{
nsCOMPtr<nsIDOMSVGLength> dom_length;
mX1->GetBaseVal(getter_AddRefs(dom_length));
nsCOMPtr<nsISVGLength> length = do_QueryInterface(dom_length);
NS_ASSERTION(length, "svg length missing interface");
nsCOMPtr<nsIDOMSVGRect> vp_dom;
svg_elem->GetViewport(getter_AddRefs(vp_dom));
nsCOMPtr<nsISVGViewportRect> vp = do_QueryInterface(vp_dom);
nsCOMPtr<nsISVGViewportAxis> ctx;
vp->GetXAxis(getter_AddRefs(ctx));
length->SetContext(ctx);
}
// y1:
{
nsCOMPtr<nsIDOMSVGLength> dom_length;
mY1->GetBaseVal(getter_AddRefs(dom_length));
nsCOMPtr<nsISVGLength> length = do_QueryInterface(dom_length);
NS_ASSERTION(length, "svg length missing interface");
nsCOMPtr<nsIDOMSVGRect> vp_dom;
svg_elem->GetViewport(getter_AddRefs(vp_dom));
nsCOMPtr<nsISVGViewportRect> vp = do_QueryInterface(vp_dom);
nsCOMPtr<nsISVGViewportAxis> ctx;
vp->GetYAxis(getter_AddRefs(ctx));
length->SetContext(ctx);
}
// x2:
{
nsCOMPtr<nsIDOMSVGLength> dom_length;
mX2->GetBaseVal(getter_AddRefs(dom_length));
nsCOMPtr<nsISVGLength> length = do_QueryInterface(dom_length);
NS_ASSERTION(length, "svg length missing interface");
nsCOMPtr<nsIDOMSVGRect> vp_dom;
svg_elem->GetViewport(getter_AddRefs(vp_dom));
nsCOMPtr<nsISVGViewportRect> vp = do_QueryInterface(vp_dom);
nsCOMPtr<nsISVGViewportAxis> ctx;
vp->GetXAxis(getter_AddRefs(ctx));
length->SetContext(ctx);
}
// y2:
{
nsCOMPtr<nsIDOMSVGLength> dom_length;
mY2->GetBaseVal(getter_AddRefs(dom_length));
nsCOMPtr<nsISVGLength> length = do_QueryInterface(dom_length);
NS_ASSERTION(length, "svg length missing interface");
nsCOMPtr<nsIDOMSVGRect> vp_dom;
svg_elem->GetViewport(getter_AddRefs(vp_dom));
nsCOMPtr<nsISVGViewportRect> vp = do_QueryInterface(vp_dom);
nsCOMPtr<nsISVGViewportAxis> ctx;
vp->GetYAxis(getter_AddRefs(ctx));
length->SetContext(ctx);
}
}

View File

@@ -0,0 +1,352 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ----- BEGIN LICENSE BLOCK -----
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is the Mozilla SVG project.
*
* The Initial Developer of the Original Code is
* Crocodile Clips Ltd..
* Portions created by the Initial Developer are Copyright (C) 2001
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Alex Fritze <alex.fritze@crocodile-clips.com> (original author)
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ----- END LICENSE BLOCK ----- */
#include "nsSVGMatrix.h"
#include <math.h>
const double radPerDegree = 2.0*3.1415926535 / 360.0;
nsresult
nsSVGMatrix::Create(nsIDOMSVGMatrix** aResult,
float a, float b, float c,
float d, float e, float f)
{
*aResult = (nsIDOMSVGMatrix*) new nsSVGMatrix(a, b, c, d, e, f);
if(!*aResult) return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(*aResult);
return NS_OK;
}
nsSVGMatrix::nsSVGMatrix(float a, float b, float c,
float d, float e, float f)
: mA(a), mB(b), mC(c), mD(d), mE(e), mF(f)
{
}
//----------------------------------------------------------------------
// nsISupports methods:
NS_IMPL_ADDREF(nsSVGMatrix)
NS_IMPL_RELEASE(nsSVGMatrix)
NS_INTERFACE_MAP_BEGIN(nsSVGMatrix)
NS_INTERFACE_MAP_ENTRY(nsISVGValue)
NS_INTERFACE_MAP_ENTRY(nsIDOMSVGMatrix)
// NS_INTERFACE_MAP_ENTRY(nsISupportsWeakReference)
// NS_INTERFACE_MAP_ENTRY(nsISVGValueObserver)
NS_INTERFACE_MAP_ENTRY_CONTENT_CLASSINFO(SVGMatrix)
NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsISVGValue)
NS_INTERFACE_MAP_END
//----------------------------------------------------------------------
// nsIDOMSVGMatrix methods:
/* attribute float a; */
NS_IMETHODIMP nsSVGMatrix::GetA(float *aA)
{
*aA = mA;
return NS_OK;
}
NS_IMETHODIMP nsSVGMatrix::SetA(float aA)
{
WillModify();
mA = aA;
DidModify();
return NS_OK;
}
/* attribute float b; */
NS_IMETHODIMP nsSVGMatrix::GetB(float *aB)
{
*aB = mB;
return NS_OK;
}
NS_IMETHODIMP nsSVGMatrix::SetB(float aB)
{
WillModify();
mB = aB;
DidModify();
return NS_OK;
}
/* attribute float c; */
NS_IMETHODIMP nsSVGMatrix::GetC(float *aC)
{
*aC = mC;
return NS_OK;
}
NS_IMETHODIMP nsSVGMatrix::SetC(float aC)
{
WillModify();
mC = aC;
DidModify();
return NS_OK;
}
/* attribute float d; */
NS_IMETHODIMP nsSVGMatrix::GetD(float *aD)
{
*aD = mD;
return NS_OK;
}
NS_IMETHODIMP nsSVGMatrix::SetD(float aD)
{
WillModify();
mD = aD;
DidModify();
return NS_OK;
}
/* attribute float e; */
NS_IMETHODIMP nsSVGMatrix::GetE(float *aE)
{
*aE = mE;
return NS_OK;
}
NS_IMETHODIMP nsSVGMatrix::SetE(float aE)
{
WillModify();
mE = aE;
DidModify();
return NS_OK;
}
/* attribute float f; */
NS_IMETHODIMP nsSVGMatrix::GetF(float *aF)
{
*aF = mF;
return NS_OK;
}
NS_IMETHODIMP nsSVGMatrix::SetF(float aF)
{
WillModify();
mF = aF;
DidModify();
return NS_OK;
}
/* nsIDOMSVGMatrix multiply (in nsIDOMSVGMatrix secondMatrix); */
NS_IMETHODIMP nsSVGMatrix::Multiply(nsIDOMSVGMatrix *secondMatrix, nsIDOMSVGMatrix **_retval)
{
if (!secondMatrix) return NS_ERROR_FAILURE;
float sa,sb,sc,sd,se,sf;
secondMatrix->GetA(&sa);
secondMatrix->GetB(&sb);
secondMatrix->GetC(&sc);
secondMatrix->GetD(&sd);
secondMatrix->GetE(&se);
secondMatrix->GetF(&sf);
Create(_retval);
if (!*_retval) return NS_ERROR_OUT_OF_MEMORY;
(*_retval)->SetA( mA*sa + mC*sb );
(*_retval)->SetB( mB*sa + mD*sb );
(*_retval)->SetC( mA*sc + mC*sd );
(*_retval)->SetD( mB*sc + mD*sd );
(*_retval)->SetE( mA*se + mC*sf + mE );
(*_retval)->SetF( mB*se + mD*sf + mF );
return NS_OK;
}
/* nsIDOMSVGMatrix inverse (); */
NS_IMETHODIMP nsSVGMatrix::Inverse(nsIDOMSVGMatrix **_retval)
{
double det = mA*mD - mC*mB;
if (det == 0.0) {
return NS_ERROR_FAILURE;
// XXX should return SVG_MATRIX_NOT_INVERTABLE
}
Create(_retval);
if (!*_retval) return NS_ERROR_OUT_OF_MEMORY;
(*_retval)->SetA( (float)( mD/det) );
(*_retval)->SetB( (float)(-mB/det) );
(*_retval)->SetC( (float)(-mC/det) );
(*_retval)->SetD( (float)( mA/det) );
(*_retval)->SetE( (float)((mC*mF - mE*mD)/det) );
(*_retval)->SetF( (float)((mE*mB - mA*mF)/det) );
return NS_OK;
}
/* nsIDOMSVGMatrix translate (in float x, in float y); */
NS_IMETHODIMP nsSVGMatrix::Translate(float x, float y, nsIDOMSVGMatrix **_retval)
{
Create(_retval);
if (!*_retval) return NS_ERROR_OUT_OF_MEMORY;
(*_retval)->SetA( mA );
(*_retval)->SetB( mB );
(*_retval)->SetC( mC );
(*_retval)->SetD( mD );
(*_retval)->SetE( mA*x + mC*y + mE );
(*_retval)->SetF( mB*x + mD*y + mF );
return NS_OK;
}
/* nsIDOMSVGMatrix scale (in float scaleFactor); */
NS_IMETHODIMP nsSVGMatrix::Scale(float scaleFactor, nsIDOMSVGMatrix **_retval)
{
Create(_retval);
if (!*_retval) return NS_ERROR_OUT_OF_MEMORY;
(*_retval)->SetA( mA*scaleFactor );
(*_retval)->SetB( mB*scaleFactor );
(*_retval)->SetC( mC*scaleFactor );
(*_retval)->SetD( mD*scaleFactor );
(*_retval)->SetE( mE );
(*_retval)->SetF( mF );
return NS_OK;
}
/* nsIDOMSVGMatrix scaleNonUniform (in float scaleFactorX, in float scaleFactorY); */
NS_IMETHODIMP nsSVGMatrix::ScaleNonUniform(float scaleFactorX, float scaleFactorY, nsIDOMSVGMatrix **_retval)
{
Create(_retval);
if (!*_retval) return NS_ERROR_OUT_OF_MEMORY;
(*_retval)->SetA( mA*scaleFactorX );
(*_retval)->SetB( mB*scaleFactorX );
(*_retval)->SetC( mC*scaleFactorY );
(*_retval)->SetD( mD*scaleFactorY );
(*_retval)->SetE( mE );
(*_retval)->SetF( mF );
return NS_OK;
}
/* nsIDOMSVGMatrix rotate (in float angle); */
NS_IMETHODIMP nsSVGMatrix::Rotate(float angle, nsIDOMSVGMatrix **_retval)
{
Create(_retval);
if (!*_retval) return NS_ERROR_OUT_OF_MEMORY;
double ca = cos( angle*radPerDegree );
double sa = sin( angle*radPerDegree );
(*_retval)->SetA( (float) (mA*ca + mC*sa) );
(*_retval)->SetB( (float) (mB*ca + mD*sa) );
(*_retval)->SetC( (float) (mC*ca - mA*sa) );
(*_retval)->SetD( (float) (mD*ca - mB*sa) );
(*_retval)->SetE( mE );
(*_retval)->SetF( mF );
return NS_OK;
}
/* nsIDOMSVGMatrix rotateFromVector (in float x, in float y); */
NS_IMETHODIMP nsSVGMatrix::RotateFromVector(float x, float y, nsIDOMSVGMatrix **_retval)
{
NS_NOTYETIMPLEMENTED("write me!");
return NS_ERROR_UNEXPECTED;
}
/* nsIDOMSVGMatrix flipX (); */
NS_IMETHODIMP nsSVGMatrix::FlipX(nsIDOMSVGMatrix **_retval)
{
NS_NOTYETIMPLEMENTED("write me!");
return NS_ERROR_UNEXPECTED;
}
/* nsIDOMSVGMatrix flipY (); */
NS_IMETHODIMP nsSVGMatrix::FlipY(nsIDOMSVGMatrix **_retval)
{
NS_NOTYETIMPLEMENTED("write me!");
return NS_ERROR_UNEXPECTED;
}
/* nsIDOMSVGMatrix skewX (in float angle); */
NS_IMETHODIMP nsSVGMatrix::SkewX(float angle, nsIDOMSVGMatrix **_retval)
{
Create(_retval);
if (!*_retval) return NS_ERROR_OUT_OF_MEMORY;
double ta = tan( angle*radPerDegree );
(*_retval)->SetA( mA );
(*_retval)->SetB( mB );
(*_retval)->SetC( (float) ( mC + mA*ta) );
(*_retval)->SetD( (float) ( mD + mB*ta) );
(*_retval)->SetE( mE );
(*_retval)->SetF( mF );
return NS_OK;
}
/* nsIDOMSVGMatrix skewY (in float angle); */
NS_IMETHODIMP nsSVGMatrix::SkewY(float angle, nsIDOMSVGMatrix **_retval)
{
Create(_retval);
if (!*_retval) return NS_ERROR_OUT_OF_MEMORY;
double ta = tan( angle*radPerDegree );
(*_retval)->SetA( (float) (mA + mC*ta) );
(*_retval)->SetB( (float) (mB + mD*ta) );
(*_retval)->SetC( mC );
(*_retval)->SetD( mD );
(*_retval)->SetE( mE );
(*_retval)->SetF( mF );
return NS_OK;
}
//----------------------------------------------------------------------
// nsISVGValue methods:
NS_IMETHODIMP
nsSVGMatrix::SetValueString(const nsAString& aValue)
{
NS_NOTYETIMPLEMENTED("write me!");
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsSVGMatrix::GetValueString(nsAString& aValue)
{
NS_NOTYETIMPLEMENTED("write me!");
return NS_ERROR_NOT_IMPLEMENTED;
}

View File

@@ -0,0 +1,80 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ----- BEGIN LICENSE BLOCK -----
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is the Mozilla SVG project.
*
* The Initial Developer of the Original Code is
* Crocodile Clips Ltd..
* Portions created by the Initial Developer are Copyright (C) 2001
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Alex Fritze <alex.fritze@crocodile-clips.com> (original author)
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ----- END LICENSE BLOCK ----- */
#ifndef __NS_SVGMATRIX_H__
#define __NS_SVGMATRIX_H__
#include "nsIDOMSVGMatrix.h"
#include "nsSVGValue.h"
class nsSVGMatrix : public nsIDOMSVGMatrix,
public nsSVGValue
{
public:
// XXX the first parameter 'a' is renamed to 'xxx_a' to work around
// what seems to be a VC++ compiler problem; see bug#122363, comment#2
static nsresult Create(nsIDOMSVGMatrix** aResult,
float xxx_a=1.0f, float b=0.0f, float c=0.0f,
float d=1.0f, float e=0.0f, float f=0.0f);
protected:
nsSVGMatrix(float a=1.0f,
float b=0.0f,
float c=0.0f,
float d=1.0f,
float e=0.0f,
float f=0.0f);
public:
// nsISupports interface:
NS_DECL_ISUPPORTS
// nsIDOMSVGMatrix interface:
NS_DECL_NSIDOMSVGMATRIX
// nsISVGValue interface:
NS_IMETHOD SetValueString(const nsAString& aValue);
NS_IMETHOD GetValueString(nsAString& aValue);
protected:
float mA, mB, mC, mD, mE, mF;
};
#endif //__NS_SVGMATRIX_H__

View File

@@ -0,0 +1,133 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ----- BEGIN LICENSE BLOCK -----
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is the Mozilla SVG project.
*
* The Initial Developer of the Original Code is
* Crocodile Clips Ltd..
* Portions created by the Initial Developer are Copyright (C) 2002
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Alex Fritze <alex.fritze@crocodile-clips.com> (original author)
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ----- END LICENSE BLOCK ----- */
#include "nsSVGNumber.h"
#include "prdtoa.h"
#include "nsSVGValue.h"
////////////////////////////////////////////////////////////////////////
// nsSVGNumber class
class nsSVGNumber : public nsIDOMSVGNumber,
public nsSVGValue
{
protected:
friend nsresult NS_NewSVGNumber(nsIDOMSVGNumber** result,
float val);
nsSVGNumber(float val);
public:
// nsISupports interface:
NS_DECL_ISUPPORTS
// nsIDOMSVGNumber interface:
NS_DECL_NSIDOMSVGNUMBER
// nsISVGValue interface:
NS_IMETHOD SetValueString(const nsAString& aValue);
NS_IMETHOD GetValueString(nsAString& aValue);
protected:
float mValue;
};
//----------------------------------------------------------------------
// implementation:
nsresult
NS_NewSVGNumber(nsIDOMSVGNumber** result, float val)
{
*result = new nsSVGNumber(val);
if(!*result) return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(*result);
return NS_OK;
}
nsSVGNumber::nsSVGNumber(float val)
: mValue(val)
{
}
//----------------------------------------------------------------------
// nsISupports methods:
NS_IMPL_ADDREF(nsSVGNumber)
NS_IMPL_RELEASE(nsSVGNumber)
NS_INTERFACE_MAP_BEGIN(nsSVGNumber)
NS_INTERFACE_MAP_ENTRY(nsISVGValue)
NS_INTERFACE_MAP_ENTRY(nsIDOMSVGNumber)
NS_INTERFACE_MAP_ENTRY_CONTENT_CLASSINFO(SVGNumber)
NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsISVGValue)
NS_INTERFACE_MAP_END
//----------------------------------------------------------------------
// nsISVGValue methods:
NS_IMETHODIMP
nsSVGNumber::SetValueString(const nsAString& aValue)
{
NS_NOTYETIMPLEMENTED("write me!");
return NS_ERROR_UNEXPECTED;
}
NS_IMETHODIMP
nsSVGNumber::GetValueString(nsAString& aValue)
{
NS_NOTYETIMPLEMENTED("write me!");
return NS_ERROR_UNEXPECTED;
}
//----------------------------------------------------------------------
// nsIDOMSVGNumber methods:
/* attribute float value; */
NS_IMETHODIMP nsSVGNumber::GetValue(float *aValue)
{
*aValue = mValue;
return NS_OK;
}
NS_IMETHODIMP nsSVGNumber::SetValue(float aValue)
{
WillModify();
mValue = aValue;
DidModify();
return NS_OK;
}

View File

@@ -0,0 +1,48 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ----- BEGIN LICENSE BLOCK -----
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is the Mozilla SVG project.
*
* The Initial Developer of the Original Code is
* Crocodile Clips Ltd..
* Portions created by the Initial Developer are Copyright (C) 2002
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Alex Fritze <alex.fritze@crocodile-clips.com> (original author)
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ----- END LICENSE BLOCK ----- */
#ifndef __NS_SVGNUMBER_H__
#define __NS_SVGNUMBER_H__
#include "nsIDOMSVGNumber.h"
nsresult
NS_NewSVGNumber(nsIDOMSVGNumber** result,
float value=0.0f);
#endif //__NS_SVGNUMBER_H__

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,164 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ----- BEGIN LICENSE BLOCK -----
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is the Mozilla SVG project.
*
* The Initial Developer of the Original Code is
* Crocodile Clips Ltd..
* Portions created by the Initial Developer are Copyright (C) 2001
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Alex Fritze <alex.fritze@crocodile-clips.com> (original author)
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ----- END LICENSE BLOCK ----- */
#ifndef __NS_SVGPATHDATAPARSER_H__
#define __NS_SVGPATHDATAPARSER_H__
#include "nsCOMPtr.h"
#include "nsVoidArray.h"
#include "nsIDOMSVGPathSeg.h"
////////////////////////////////////////////////////////////////////////
// nsSVGPathDataParser: a simple recursive descent parser that builds
// nsIDOMPathSegs from path data strings. The grammar for path data
// can be found in SVG CR 20001102, chapter 8.
class nsSVGPathDataParser
{
public:
nsSVGPathDataParser(nsVoidArray* data);
nsresult Parse(const char* str);
protected:
nsVoidArray *mData;
const char* inputpos;
char tokenval;
const char* tokenpos;
enum { DIGIT, WSP, COMMA, POINT, SIGN, OTHER, END } tokentype;
// helpers
nsresult AppendSegment(nsIDOMSVGPathSeg* seg);
void getNextToken();
void windBack(const char* pos);
nsresult match(char tok);
nsresult matchSvgPath();
nsresult matchSubPaths();
PRBool isTokenSubPathsStarter();
nsresult matchSubPath();
PRBool isTokenSubPathStarter();
nsresult matchSubPathElements();
PRBool isTokenSubPathElementsStarter();
nsresult matchSubPathElement();
PRBool isTokenSubPathElementStarter();
nsresult matchMoveto();
nsresult matchMovetoArgSeq(PRBool absCoords);
nsresult matchClosePath();
nsresult matchLineto();
nsresult matchLinetoArgSeq(PRBool absCoords);
PRBool isTokenLinetoArgSeqStarter();
nsresult matchHorizontalLineto();
nsresult matchHorizontalLinetoArgSeq(PRBool absCoords);
nsresult matchVerticalLineto();
nsresult matchVerticalLinetoArgSeq(PRBool absCoords);
nsresult matchCurveto();
nsresult matchCurvetoArgSeq(PRBool absCoords);
nsresult matchCurvetoArg(float* x, float* y, float* x1,
float* y1, float* x2, float* y2);
PRBool isTokenCurvetoArgStarter();
nsresult matchSmoothCurveto();
nsresult matchSmoothCurvetoArgSeq(PRBool absCoords);
nsresult matchSmoothCurvetoArg(float* x, float* y, float* x2, float* y2);
PRBool isTokenSmoothCurvetoArgStarter();
nsresult matchQuadBezierCurveto();
nsresult matchQuadBezierCurvetoArgSeq(PRBool absCoords);
nsresult matchQuadBezierCurvetoArg(float* x, float* y, float* x1, float* y1);
PRBool isTokenQuadBezierCurvetoArgStarter();
nsresult matchSmoothQuadBezierCurveto();
nsresult matchSmoothQuadBezierCurvetoArgSeq(PRBool absCoords);
nsresult matchEllipticalArc();
nsresult matchEllipticalArcArgSeq(PRBool absCoords);
nsresult matchEllipticalArcArg(float* x, float* y,
float* r1, float* r2, float* angle,
PRBool* largeArcFlag, PRBool* sweepFlag);
PRBool isTokenEllipticalArcArgStarter();
nsresult matchCoordPair(float* x, float* y);
PRBool isTokenCoordPairStarter();
nsresult matchCoord(float* x);
PRBool isTokenCoordStarter();
nsresult matchNonNegativeNumber(float* x);
PRBool isTokenNonNegativeNumberStarter();
nsresult matchNumber(float* x);
PRBool isTokenNumberStarter();
nsresult matchFlag(PRBool* f);
nsresult matchCommaWsp();
PRBool isTokenCommaWspStarter();
nsresult matchIntegerConst();
nsresult matchFloatingPointConst();
nsresult matchFractConst();
nsresult matchExponent();
PRBool isTokenExponentStarter();
nsresult matchDigitSeq();
PRBool isTokenDigitSeqStarter();
nsresult matchWsp();
PRBool isTokenWspStarter();
};
#endif // __NS_SVGPATHDATAPARSER_H__

View File

@@ -0,0 +1,386 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ----- BEGIN LICENSE BLOCK -----
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is the Mozilla SVG project.
*
* The Initial Developer of the Original Code is
* Crocodile Clips Ltd..
* Portions created by the Initial Developer are Copyright (C) 2001
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Alex Fritze <alex.fritze@crocodile-clips.com> (original author)
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ----- END LICENSE BLOCK ----- */
#include "nsSVGGraphicElement.h"
#include "nsSVGAtoms.h"
#include "nsSVGPathSegList.h"
#include "nsIDOMSVGPathElement.h"
#include "nsIDOMSVGAnimatedPathData.h"
#include "nsIDOMSVGPathSeg.h"
#include "nsSVGPathSeg.h"
#include "nsCOMPtr.h"
typedef nsSVGGraphicElement nsSVGPathElementBase;
class nsSVGPathElement : public nsSVGPathElementBase,
public nsIDOMSVGPathElement,
public nsIDOMSVGAnimatedPathData
{
protected:
friend nsresult NS_NewSVGPathElement(nsIContent **aResult,
nsINodeInfo *aNodeInfo);
nsSVGPathElement();
virtual ~nsSVGPathElement();
virtual nsresult Init();
public:
// interfaces:
NS_DECL_ISUPPORTS_INHERITED
NS_DECL_NSIDOMSVGPATHELEMENT
NS_DECL_NSIDOMSVGANIMATEDPATHDATA
// xxx I wish we could use virtual inheritance
NS_FORWARD_NSIDOMNODE_NO_CLONENODE(nsSVGPathElementBase::)
NS_FORWARD_NSIDOMELEMENT(nsSVGPathElementBase::)
NS_FORWARD_NSIDOMSVGELEMENT(nsSVGPathElementBase::)
protected:
nsCOMPtr<nsIDOMSVGPathSegList> mSegments;
};
nsresult NS_NewSVGPathElement(nsIContent **aResult, nsINodeInfo *aNodeInfo)
{
*aResult = nsnull;
nsSVGPathElement* it = new nsSVGPathElement();
if (!it) return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(it);
nsresult rv = NS_STATIC_CAST(nsGenericElement*,it)->Init(aNodeInfo);
if (NS_FAILED(rv)) {
it->Release();
return rv;
}
rv = it->Init();
if (NS_FAILED(rv)) {
it->Release();
return rv;
}
*aResult = NS_STATIC_CAST(nsIContent *, it);
return NS_OK;
}
//----------------------------------------------------------------------
// nsISupports methods
NS_IMPL_ADDREF_INHERITED(nsSVGPathElement,nsSVGPathElementBase)
NS_IMPL_RELEASE_INHERITED(nsSVGPathElement,nsSVGPathElementBase)
NS_INTERFACE_MAP_BEGIN(nsSVGPathElement)
NS_INTERFACE_MAP_ENTRY(nsIDOMSVGPathElement)
NS_INTERFACE_MAP_ENTRY(nsIDOMSVGAnimatedPathData)
NS_INTERFACE_MAP_ENTRY_CONTENT_CLASSINFO(SVGPathElement)
NS_INTERFACE_MAP_END_INHERITING(nsSVGPathElementBase)
//----------------------------------------------------------------------
// Implementation
nsSVGPathElement::nsSVGPathElement()
{
}
nsSVGPathElement::~nsSVGPathElement()
{
if (mSegments) {
nsCOMPtr<nsISVGValue> value = do_QueryInterface(mSegments);
value->RemoveObserver(this);
}
}
nsresult
nsSVGPathElement::Init()
{
nsresult rv;
rv = nsSVGPathElementBase::Init();
NS_ENSURE_SUCCESS(rv,rv);
// Create mapped properties:
// d #REQUIRED
rv = NS_NewSVGPathSegList(getter_AddRefs(mSegments));
NS_ENSURE_SUCCESS(rv,rv);
rv = mAttributes->AddMappedSVGValue(nsSVGAtoms::d, mSegments);
NS_ENSURE_SUCCESS(rv,rv);
return NS_OK;
}
//----------------------------------------------------------------------
// nsIDOMNode methods
NS_IMETHODIMP
nsSVGPathElement::CloneNode(PRBool aDeep, nsIDOMNode** aReturn)
{
*aReturn = nsnull;
nsSVGPathElement* it = new nsSVGPathElement();
if (!it) return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(it);
nsresult rv = NS_STATIC_CAST(nsGenericElement*,it)->Init(mNodeInfo);
if (NS_FAILED(rv)) {
it->Release();
return rv;
}
rv = it->Init();
if (NS_FAILED(rv)) {
it->Release();
return rv;
}
rv = CopyNode(it, aDeep);
if (NS_FAILED(rv)) {
it->Release();
return rv;
}
*aReturn = NS_STATIC_CAST(nsSVGPathElementBase*, it);
return NS_OK;
}
//----------------------------------------------------------------------
// nsIDOMSVGPathElement methods:
/* readonly attribute nsIDOMSVGAnimatedNumber pathLength; */
NS_IMETHODIMP
nsSVGPathElement::GetPathLength(nsIDOMSVGAnimatedNumber * *aPathLength)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* float getTotalLength (); */
NS_IMETHODIMP
nsSVGPathElement::GetTotalLength(float *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIDOMSVGPoint getPointAtLength (in float distance); */
NS_IMETHODIMP
nsSVGPathElement::GetPointAtLength(float distance, nsIDOMSVGPoint **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* unsigned long getPathSegAtLength (in float distance); */
NS_IMETHODIMP
nsSVGPathElement::GetPathSegAtLength(float distance, PRUint32 *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIDOMSVGPathSegClosePath createSVGPathSegClosePath (); */
NS_IMETHODIMP
nsSVGPathElement::CreateSVGPathSegClosePath(nsIDOMSVGPathSegClosePath **_retval)
{
return NS_NewSVGPathSegClosePath(_retval);
}
/* nsIDOMSVGPathSegMovetoAbs createSVGPathSegMovetoAbs (in float x, in float y); */
NS_IMETHODIMP
nsSVGPathElement::CreateSVGPathSegMovetoAbs(float x, float y, nsIDOMSVGPathSegMovetoAbs **_retval)
{
return NS_NewSVGPathSegMovetoAbs(_retval, x, y);
}
/* nsIDOMSVGPathSegMovetoRel createSVGPathSegMovetoRel (in float x, in float y); */
NS_IMETHODIMP
nsSVGPathElement::CreateSVGPathSegMovetoRel(float x, float y, nsIDOMSVGPathSegMovetoRel **_retval)
{
return NS_NewSVGPathSegMovetoRel(_retval, x, y);
}
/* nsIDOMSVGPathSegLinetoAbs createSVGPathSegLinetoAbs (in float x, in float y); */
NS_IMETHODIMP
nsSVGPathElement::CreateSVGPathSegLinetoAbs(float x, float y, nsIDOMSVGPathSegLinetoAbs **_retval)
{
return NS_NewSVGPathSegLinetoAbs(_retval, x, y);
}
/* nsIDOMSVGPathSegLinetoRel createSVGPathSegLinetoRel (in float x, in float y); */
NS_IMETHODIMP
nsSVGPathElement::CreateSVGPathSegLinetoRel(float x, float y, nsIDOMSVGPathSegLinetoRel **_retval)
{
return NS_NewSVGPathSegLinetoRel(_retval, x, y);
}
/* nsIDOMSVGPathSegCurvetoCubicAbs createSVGPathSegCurvetoCubicAbs (in float x, in float y, in float x1, in float y1, in float x2, in float y2); */
NS_IMETHODIMP
nsSVGPathElement::CreateSVGPathSegCurvetoCubicAbs(float x, float y, float x1, float y1, float x2, float y2, nsIDOMSVGPathSegCurvetoCubicAbs **_retval)
{
return NS_NewSVGPathSegCurvetoCubicAbs(_retval, x, y, x1, y1, x2, y2);
}
/* nsIDOMSVGPathSegCurvetoCubicRel createSVGPathSegCurvetoCubicRel (in float x, in float y, in float x1, in float y1, in float x2, in float y2); */
NS_IMETHODIMP
nsSVGPathElement::CreateSVGPathSegCurvetoCubicRel(float x, float y, float x1, float y1, float x2, float y2, nsIDOMSVGPathSegCurvetoCubicRel **_retval)
{
return NS_NewSVGPathSegCurvetoCubicRel(_retval, x, y, x1, y1, x2, y2);
}
/* nsIDOMSVGPathSegCurvetoQuadraticAbs createSVGPathSegCurvetoQuadraticAbs (in float x, in float y, in float x1, in float y1); */
NS_IMETHODIMP
nsSVGPathElement::CreateSVGPathSegCurvetoQuadraticAbs(float x, float y, float x1, float y1, nsIDOMSVGPathSegCurvetoQuadraticAbs **_retval)
{
return NS_NewSVGPathSegCurvetoQuadraticAbs(_retval, x, y, x1, y1);
}
/* nsIDOMSVGPathSegCurvetoQuadraticRel createSVGPathSegCurvetoQuadraticRel (in float x, in float y, in float x1, in float y1); */
NS_IMETHODIMP
nsSVGPathElement::CreateSVGPathSegCurvetoQuadraticRel(float x, float y, float x1, float y1, nsIDOMSVGPathSegCurvetoQuadraticRel **_retval)
{
return NS_NewSVGPathSegCurvetoQuadraticRel(_retval, x, y, x1, y1);
}
/* nsIDOMSVGPathSegArcAbs createSVGPathSegArcAbs (in float x, in float y, in float r1, in float r2, in float angle, in boolean largeArcFlag, in boolean sweepFlag); */
NS_IMETHODIMP
nsSVGPathElement::CreateSVGPathSegArcAbs(float x, float y, float r1, float r2, float angle, PRBool largeArcFlag, PRBool sweepFlag, nsIDOMSVGPathSegArcAbs **_retval)
{
return NS_NewSVGPathSegArcAbs(_retval, x, y, r1, r2, angle, largeArcFlag, sweepFlag);
}
/* nsIDOMSVGPathSegArcRel createSVGPathSegArcRel (in float x, in float y, in float r1, in float r2, in float angle, in boolean largeArcFlag, in boolean sweepFlag); */
NS_IMETHODIMP
nsSVGPathElement::CreateSVGPathSegArcRel(float x, float y, float r1, float r2, float angle, PRBool largeArcFlag, PRBool sweepFlag, nsIDOMSVGPathSegArcRel **_retval)
{
return NS_NewSVGPathSegArcRel(_retval, x, y, r1, r2, angle, largeArcFlag, sweepFlag);
}
/* nsIDOMSVGPathSegLinetoHorizontalAbs createSVGPathSegLinetoHorizontalAbs (in float x); */
NS_IMETHODIMP
nsSVGPathElement::CreateSVGPathSegLinetoHorizontalAbs(float x, nsIDOMSVGPathSegLinetoHorizontalAbs **_retval)
{
return NS_NewSVGPathSegLinetoHorizontalAbs(_retval, x);
}
/* nsIDOMSVGPathSegLinetoHorizontalRel createSVGPathSegLinetoHorizontalRel (in float x); */
NS_IMETHODIMP
nsSVGPathElement::CreateSVGPathSegLinetoHorizontalRel(float x, nsIDOMSVGPathSegLinetoHorizontalRel **_retval)
{
return NS_NewSVGPathSegLinetoHorizontalRel(_retval, x);
}
/* nsIDOMSVGPathSegLinetoVerticalAbs createSVGPathSegLinetoVerticalAbs (in float y); */
NS_IMETHODIMP
nsSVGPathElement::CreateSVGPathSegLinetoVerticalAbs(float y, nsIDOMSVGPathSegLinetoVerticalAbs **_retval)
{
return NS_NewSVGPathSegLinetoVerticalAbs(_retval, y);
}
/* nsIDOMSVGPathSegLinetoVerticalRel createSVGPathSegLinetoVerticalRel (in float y); */
NS_IMETHODIMP
nsSVGPathElement::CreateSVGPathSegLinetoVerticalRel(float y, nsIDOMSVGPathSegLinetoVerticalRel **_retval)
{
return NS_NewSVGPathSegLinetoVerticalRel(_retval, y);
}
/* nsIDOMSVGPathSegCurvetoCubicSmoothAbs createSVGPathSegCurvetoCubicSmoothAbs (in float x, in float y, in float x2, in float y2); */
NS_IMETHODIMP
nsSVGPathElement::CreateSVGPathSegCurvetoCubicSmoothAbs(float x, float y, float x2, float y2, nsIDOMSVGPathSegCurvetoCubicSmoothAbs **_retval)
{
return NS_NewSVGPathSegCurvetoCubicSmoothAbs(_retval, x, y, x2, y2);
}
/* nsIDOMSVGPathSegCurvetoCubicSmoothRel createSVGPathSegCurvetoCubicSmoothRel (in float x, in float y, in float x2, in float y2); */
NS_IMETHODIMP
nsSVGPathElement::CreateSVGPathSegCurvetoCubicSmoothRel(float x, float y, float x2, float y2, nsIDOMSVGPathSegCurvetoCubicSmoothRel **_retval)
{
return NS_NewSVGPathSegCurvetoCubicSmoothRel(_retval, x, y, x2, y2);
}
/* nsIDOMSVGPathSegCurvetoQuadraticSmoothAbs createSVGPathSegCurvetoQuadraticSmoothAbs (in float x, in float y); */
NS_IMETHODIMP
nsSVGPathElement::CreateSVGPathSegCurvetoQuadraticSmoothAbs(float x, float y, nsIDOMSVGPathSegCurvetoQuadraticSmoothAbs **_retval)
{
return NS_NewSVGPathSegCurvetoQuadraticSmoothAbs(_retval, x, y);
}
/* nsIDOMSVGPathSegCurvetoQuadraticSmoothRel createSVGPathSegCurvetoQuadraticSmoothRel (in float x, in float y); */
NS_IMETHODIMP
nsSVGPathElement::CreateSVGPathSegCurvetoQuadraticSmoothRel(float x, float y, nsIDOMSVGPathSegCurvetoQuadraticSmoothRel **_retval)
{
return NS_NewSVGPathSegCurvetoQuadraticSmoothRel(_retval, x, y);
}
//----------------------------------------------------------------------
// nsIDOMSVGAnimatedPathData methods:
/* readonly attribute nsIDOMSVGPathSegList pathSegList; */
NS_IMETHODIMP nsSVGPathElement::GetPathSegList(nsIDOMSVGPathSegList * *aPathSegList)
{
*aPathSegList = mSegments;
NS_ADDREF(*aPathSegList);
return NS_OK;
}
/* readonly attribute nsIDOMSVGPathSegList normalizedPathSegList; */
NS_IMETHODIMP nsSVGPathElement::GetNormalizedPathSegList(nsIDOMSVGPathSegList * *aNormalizedPathSegList)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIDOMSVGPathSegList animatedPathSegList; */
NS_IMETHODIMP nsSVGPathElement::GetAnimatedPathSegList(nsIDOMSVGPathSegList * *aAnimatedPathSegList)
{
*aAnimatedPathSegList = mSegments;
NS_ADDREF(*aAnimatedPathSegList);
return NS_OK;
}
/* readonly attribute nsIDOMSVGPathSegList animatedNormalizedPathSegList; */
NS_IMETHODIMP nsSVGPathElement::GetAnimatedNormalizedPathSegList(nsIDOMSVGPathSegList * *aAnimatedNormalizedPathSegList)
{
return NS_ERROR_NOT_IMPLEMENTED;
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,132 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ----- BEGIN LICENSE BLOCK -----
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is the Mozilla SVG project.
*
* The Initial Developer of the Original Code is
* Crocodile Clips Ltd..
* Portions created by the Initial Developer are Copyright (C) 2001
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Alex Fritze <alex.fritze@crocodile-clips.com> (original author)
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ----- END LICENSE BLOCK ----- */
#ifndef __NS_SVGPATHSEG_H__
#define __NS_SVGPATHSEG_H__
#include "nsIDOMSVGPathSeg.h"
nsresult
NS_NewSVGPathSegClosePath(nsIDOMSVGPathSegClosePath** result);
nsresult
NS_NewSVGPathSegMovetoAbs(nsIDOMSVGPathSegMovetoAbs** result,
float x, float y);
nsresult
NS_NewSVGPathSegMovetoRel(nsIDOMSVGPathSegMovetoRel** result,
float x, float y);
nsresult
NS_NewSVGPathSegLinetoAbs(nsIDOMSVGPathSegLinetoAbs** result,
float x, float y);
nsresult
NS_NewSVGPathSegLinetoRel(nsIDOMSVGPathSegLinetoRel** result,
float x, float y);
nsresult
NS_NewSVGPathSegCurvetoCubicAbs(nsIDOMSVGPathSegCurvetoCubicAbs** result,
float x, float y,
float x1, float y1,
float x2, float y2);
nsresult
NS_NewSVGPathSegCurvetoCubicRel(nsIDOMSVGPathSegCurvetoCubicRel** result,
float x, float y,
float x1, float y1,
float x2, float y2);
nsresult
NS_NewSVGPathSegCurvetoQuadraticAbs(nsIDOMSVGPathSegCurvetoQuadraticAbs** result,
float x, float y,
float x1, float y1);
nsresult
NS_NewSVGPathSegCurvetoQuadraticRel(nsIDOMSVGPathSegCurvetoQuadraticRel** result,
float x, float y,
float x1, float y1);
nsresult
NS_NewSVGPathSegArcAbs(nsIDOMSVGPathSegArcAbs** result,
float x, float y,
float r1, float r2, float angle,
PRBool largeArcFlag, PRBool sweepFlag);
nsresult
NS_NewSVGPathSegArcRel(nsIDOMSVGPathSegArcRel** result,
float x, float y,
float r1, float r2, float angle,
PRBool largeArcFlag, PRBool sweepFlag);
nsresult
NS_NewSVGPathSegLinetoHorizontalAbs(nsIDOMSVGPathSegLinetoHorizontalAbs** result,
float x);
nsresult
NS_NewSVGPathSegLinetoHorizontalRel(nsIDOMSVGPathSegLinetoHorizontalRel** result,
float x);
nsresult
NS_NewSVGPathSegLinetoVerticalAbs(nsIDOMSVGPathSegLinetoVerticalAbs** result,
float y);
nsresult
NS_NewSVGPathSegLinetoVerticalRel(nsIDOMSVGPathSegLinetoVerticalRel** result,
float y);
nsresult
NS_NewSVGPathSegCurvetoCubicSmoothAbs(nsIDOMSVGPathSegCurvetoCubicSmoothAbs** result,
float x, float y,
float x2, float y2);
nsresult
NS_NewSVGPathSegCurvetoCubicSmoothRel(nsIDOMSVGPathSegCurvetoCubicSmoothRel** result,
float x, float y,
float x2, float y2);
nsresult
NS_NewSVGPathSegCurvetoQuadraticSmoothAbs(nsIDOMSVGPathSegCurvetoQuadraticSmoothAbs** result,
float x, float y);
nsresult
NS_NewSVGPathSegCurvetoQuadraticSmoothRel(nsIDOMSVGPathSegCurvetoQuadraticSmoothRel** result,
float x, float y);
#endif //__NS_SVGPATHSEG_H__

View File

@@ -0,0 +1,371 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ----- BEGIN LICENSE BLOCK -----
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is the Mozilla SVG project.
*
* The Initial Developer of the Original Code is
* Crocodile Clips Ltd..
* Portions created by the Initial Developer are Copyright (C) 2001
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Alex Fritze <alex.fritze@crocodile-clips.com> (original author)
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ----- END LICENSE BLOCK ----- */
#include "nsSVGPathSegList.h"
#include "nsSVGPathSeg.h"
#include "nsSVGValue.h"
#include "nsWeakReference.h"
#include "nsVoidArray.h"
#include "nsDOMError.h"
#include "nsSVGPathDataParser.h"
#include "nsReadableUtils.h"
////////////////////////////////////////////////////////////////////////
// nsSVGPathSegList
class nsSVGPathSegList : public nsIDOMSVGPathSegList,
public nsSVGValue,
public nsISVGValueObserver,
public nsSupportsWeakReference
{
protected:
friend nsresult NS_NewSVGPathSegList(nsIDOMSVGPathSegList** result);
nsSVGPathSegList();
~nsSVGPathSegList();
// void Init();
public:
// nsISupports interface:
NS_DECL_ISUPPORTS
// nsIDOMSVGPathSegList interface:
NS_DECL_NSIDOMSVGPATHSEGLIST
// remainder of nsISVGValue interface:
NS_IMETHOD SetValueString(const nsAString& aValue);
NS_IMETHOD GetValueString(nsAString& aValue);
// nsISVGValueObserver
NS_IMETHOD WillModifySVGObservable(nsISVGValue* observable);
NS_IMETHOD DidModifySVGObservable (nsISVGValue* observable);
// nsISupportsWeakReference
// implementation inherited from nsSupportsWeakReference
protected:
// implementation helpers:
nsIDOMSVGPathSeg* ElementAt(PRInt32 index);
void AppendElement(nsIDOMSVGPathSeg* aElement);
void RemoveElementAt(PRInt32 index);
void InsertElementAt(nsIDOMSVGPathSeg* aElement, PRInt32 index);
void ReleaseSegments();
nsVoidArray mSegments;
};
//----------------------------------------------------------------------
// Implementation
nsSVGPathSegList::nsSVGPathSegList()
{
}
nsSVGPathSegList::~nsSVGPathSegList()
{
ReleaseSegments();
}
//----------------------------------------------------------------------
// nsISupports methods:
NS_IMPL_ADDREF(nsSVGPathSegList)
NS_IMPL_RELEASE(nsSVGPathSegList)
NS_INTERFACE_MAP_BEGIN(nsSVGPathSegList)
NS_INTERFACE_MAP_ENTRY(nsISVGValue)
NS_INTERFACE_MAP_ENTRY(nsIDOMSVGPathSegList)
NS_INTERFACE_MAP_ENTRY(nsISupportsWeakReference)
NS_INTERFACE_MAP_ENTRY(nsISVGValueObserver)
NS_INTERFACE_MAP_ENTRY_CONTENT_CLASSINFO(SVGPathSegList)
NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsISVGValue)
NS_INTERFACE_MAP_END
//----------------------------------------------------------------------
// nsISVGValue methods:
NS_IMETHODIMP
nsSVGPathSegList::SetValueString(const nsAString& aValue)
{
nsresult rv;
char *str = ToNewCString(aValue);
nsVoidArray data;
nsSVGPathDataParser parser(&data);
rv = parser.Parse(str);
if (NS_SUCCEEDED(rv)) {
WillModify();
ReleaseSegments();
mSegments = data;
PRInt32 count = mSegments.Count();
for (PRInt32 i=0; i<count; ++i) {
nsIDOMSVGPathSeg* seg = ElementAt(i);
nsCOMPtr<nsISVGValue> val = do_QueryInterface(seg);
if (val)
val->AddObserver(this);
}
DidModify();
}
else {
NS_ERROR("path data parse error!");
PRInt32 count = data.Count();
for (PRInt32 i=0; i<count; ++i) {
nsIDOMSVGPathSeg* seg = ElementAt(i);
NS_RELEASE(seg);
}
}
nsMemory::Free(str);
return rv;
}
NS_IMETHODIMP
nsSVGPathSegList::GetValueString(nsAString& aValue)
{
aValue.Truncate();
PRInt32 count = mSegments.Count();
if (count<=0) return NS_OK;
PRInt32 i = 0;
while (1) {
nsIDOMSVGPathSeg* seg = ElementAt(i);
nsCOMPtr<nsISVGValue> val = do_QueryInterface(seg);
NS_ASSERTION(val, "path segment doesn't implement required interface");
if (!val) continue;
nsAutoString str;
val->GetValueString(str);
aValue.Append(str);
if (++i >= count) break;
aValue.Append(NS_LITERAL_STRING(" "));
}
return NS_OK;
}
//----------------------------------------------------------------------
// nsIDOMSVGPathSegList methods:
/* readonly attribute unsigned long numberOfItems; */
NS_IMETHODIMP nsSVGPathSegList::GetNumberOfItems(PRUint32 *aNumberOfItems)
{
*aNumberOfItems = mSegments.Count();
return NS_OK;
}
/* void clear (); */
NS_IMETHODIMP nsSVGPathSegList::Clear()
{
WillModify();
ReleaseSegments();
DidModify();
return NS_OK;
}
/* nsIDOMSVGPathSeg initialize (in nsIDOMSVGPathSeg newItem); */
NS_IMETHODIMP nsSVGPathSegList::Initialize(nsIDOMSVGPathSeg *newItem, nsIDOMSVGPathSeg **_retval)
{
Clear();
return AppendItem(newItem, _retval);
}
/* nsIDOMSVGPathSeg getItem (in unsigned long index); */
NS_IMETHODIMP nsSVGPathSegList::GetItem(PRUint32 index, nsIDOMSVGPathSeg **_retval)
{
if ((PRInt32)index >= mSegments.Count()) {
*_retval = nsnull;
return NS_ERROR_DOM_INDEX_SIZE_ERR;
}
*_retval = ElementAt(index);
NS_ADDREF(*_retval);
return NS_OK;
}
/* nsIDOMSVGPathSeg insertItemBefore (in nsIDOMSVGPathSeg newItem, in unsigned long index); */
NS_IMETHODIMP nsSVGPathSegList::InsertItemBefore(nsIDOMSVGPathSeg *newItem, PRUint32 index, nsIDOMSVGPathSeg **_retval)
{
NS_NOTYETIMPLEMENTED("write me");
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIDOMSVGPathSeg replaceItem (in nsIDOMSVGPathSeg newItem, in unsigned long index); */
NS_IMETHODIMP nsSVGPathSegList::ReplaceItem(nsIDOMSVGPathSeg *newItem, PRUint32 index, nsIDOMSVGPathSeg **_retval)
{
NS_NOTYETIMPLEMENTED("write me!");
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIDOMSVGPathSeg removeItem (in unsigned long index); */
NS_IMETHODIMP nsSVGPathSegList::RemoveItem(PRUint32 index, nsIDOMSVGPathSeg **_retval)
{
if ((PRInt32)index >= mSegments.Count()) {
*_retval = nsnull;
return NS_ERROR_DOM_INDEX_SIZE_ERR;
}
*_retval = ElementAt(index);
NS_ADDREF(*_retval);
WillModify();
RemoveElementAt(index);
DidModify();
return NS_OK;
}
/* nsIDOMSVGPathSeg appendItem (in nsIDOMSVGPathSeg newItem); */
NS_IMETHODIMP nsSVGPathSegList::AppendItem(nsIDOMSVGPathSeg *newItem, nsIDOMSVGPathSeg **_retval)
{
// XXX The SVG specs state that 'if newItem is already in a list, it
// is removed from its previous list before it is inserted into this
// list'. We don't do that. Should we?
*_retval = newItem;
NS_ADDREF(*_retval);
AppendElement(newItem);
return NS_OK;
}
//----------------------------------------------------------------------
// nsISVGValueObserver methods
NS_IMETHODIMP
nsSVGPathSegList::WillModifySVGObservable(nsISVGValue* observable)
{
WillModify();
return NS_OK;
}
NS_IMETHODIMP
nsSVGPathSegList::DidModifySVGObservable (nsISVGValue* observable)
{
DidModify();
return NS_OK;
}
//----------------------------------------------------------------------
// Implementation helpers
void
nsSVGPathSegList::ReleaseSegments()
{
WillModify();
PRInt32 count = mSegments.Count();
for (PRInt32 i = 0; i < count; ++i) {
nsIDOMSVGPathSeg* seg = ElementAt(i);
nsCOMPtr<nsISVGValue> val = do_QueryInterface(seg);
if (val)
val->RemoveObserver(this);
NS_RELEASE(seg);
}
mSegments.Clear();
DidModify();
}
nsIDOMSVGPathSeg*
nsSVGPathSegList::ElementAt(PRInt32 index)
{
return (nsIDOMSVGPathSeg*)mSegments.ElementAt(index);
}
void
nsSVGPathSegList::AppendElement(nsIDOMSVGPathSeg* aElement)
{
WillModify();
NS_ADDREF(aElement);
mSegments.AppendElement((void*)aElement);
nsCOMPtr<nsISVGValue> val = do_QueryInterface(aElement);
if (val)
val->AddObserver(this);
DidModify();
}
void
nsSVGPathSegList::RemoveElementAt(PRInt32 index)
{
WillModify();
nsIDOMSVGPathSeg* seg = ElementAt(index);
NS_ASSERTION(seg, "null pathsegment");
nsCOMPtr<nsISVGValue> val = do_QueryInterface(seg);
if (val)
val->RemoveObserver(this);
mSegments.RemoveElementAt(index);
NS_RELEASE(seg);
DidModify();
}
void
nsSVGPathSegList::InsertElementAt(nsIDOMSVGPathSeg* aElement, PRInt32 index)
{
WillModify();
NS_ADDREF(aElement);
mSegments.InsertElementAt((void*)aElement, index);
nsCOMPtr<nsISVGValue> val = do_QueryInterface(aElement);
if (val)
val->AddObserver(this);
DidModify();
}
////////////////////////////////////////////////////////////////////////
// Exported creation functions:
nsresult
NS_NewSVGPathSegList(nsIDOMSVGPathSegList** result)
{
*result = nsnull;
nsSVGPathSegList* pathSegList = new nsSVGPathSegList();
if (!pathSegList) return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(pathSegList);
// pathSegList->Init();
*result = (nsIDOMSVGPathSegList*) pathSegList;
return NS_OK;
}

View File

@@ -0,0 +1,342 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ----- BEGIN LICENSE BLOCK -----
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is the Mozilla SVG project.
*
* The Initial Developer of the Original Code is
* Crocodile Clips Ltd..
* Portions created by the Initial Developer are Copyright (C) 2001
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Alex Fritze <alex.fritze@crocodile-clips.com> (original author)
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ----- END LICENSE BLOCK ----- */
#include "nsSVGPointList.h"
#include "nsSVGPoint.h"
#include "nsDOMError.h"
#include "prdtoa.h"
#include "nsReadableUtils.h"
#include "nsTextFormatter.h"
#include "nsCRT.h"
#include "nsCOMArray.h"
nsresult
nsSVGPointList::Create(const nsAString& aValue,
nsISVGValue** aResult)
{
*aResult = (nsISVGValue*) new nsSVGPointList();
if(!*aResult) return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(*aResult);
(*aResult)->SetValueString(aValue);
return NS_OK;
}
nsresult
nsSVGPointList::Create(nsIDOMSVGPointList** aResult)
{
*aResult = (nsIDOMSVGPointList*) new nsSVGPointList();
if(!*aResult) return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(*aResult);
return NS_OK;
}
nsSVGPointList::nsSVGPointList()
{
}
nsSVGPointList::~nsSVGPointList()
{
ReleasePoints();
}
void
nsSVGPointList::ReleasePoints()
{
WillModify();
PRInt32 count = mPoints.Count();
for (PRInt32 i = 0; i < count; ++i) {
nsIDOMSVGPoint* point = ElementAt(i);
nsCOMPtr<nsISVGValue> val = do_QueryInterface(point);
if (val)
val->RemoveObserver(this);
NS_RELEASE(point);
}
mPoints.Clear();
DidModify();
}
nsIDOMSVGPoint*
nsSVGPointList::ElementAt(PRInt32 index)
{
return (nsIDOMSVGPoint*)mPoints.ElementAt(index);
}
void
nsSVGPointList::AppendElement(nsIDOMSVGPoint* aElement)
{
WillModify();
NS_ADDREF(aElement);
mPoints.AppendElement((void*)aElement);
nsCOMPtr<nsISVGValue> val = do_QueryInterface(aElement);
if (val)
val->AddObserver(this);
DidModify();
}
void
nsSVGPointList::RemoveElementAt(PRInt32 index)
{
WillModify();
nsIDOMSVGPoint* point = ElementAt(index);
NS_ASSERTION(point, "null point");
nsCOMPtr<nsISVGValue> val = do_QueryInterface(point);
if (val)
val->RemoveObserver(this);
mPoints.RemoveElementAt(index);
NS_RELEASE(point);
DidModify();
}
void
nsSVGPointList::InsertElementAt(nsIDOMSVGPoint* aElement, PRInt32 index)
{
WillModify();
NS_ADDREF(aElement);
mPoints.InsertElementAt((void*)aElement, index);
nsCOMPtr<nsISVGValue> val = do_QueryInterface(aElement);
if (val)
val->AddObserver(this);
DidModify();
}
//----------------------------------------------------------------------
// nsISupports methods:
NS_IMPL_ADDREF(nsSVGPointList)
NS_IMPL_RELEASE(nsSVGPointList)
NS_INTERFACE_MAP_BEGIN(nsSVGPointList)
NS_INTERFACE_MAP_ENTRY(nsISVGValue)
NS_INTERFACE_MAP_ENTRY(nsIDOMSVGPointList)
NS_INTERFACE_MAP_ENTRY(nsISupportsWeakReference)
NS_INTERFACE_MAP_ENTRY(nsISVGValueObserver)
NS_INTERFACE_MAP_ENTRY_CONTENT_CLASSINFO(SVGPointList)
NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsISVGValue)
NS_INTERFACE_MAP_END
//----------------------------------------------------------------------
// nsISVGValue methods:
NS_IMETHODIMP
nsSVGPointList::SetValueString(const nsAString& aValue)
{
nsresult rv = NS_OK;
char* str = ToNewCString(aValue);
char* rest = str;
char* token1;
char* token2;
const char* delimiters = ",\x20\x9\xD\xA";
nsCOMArray<nsIDOMSVGPoint> points;
while ( (token1 = nsCRT::strtok(rest, delimiters, &rest)) &&
(token2 = nsCRT::strtok(rest, delimiters, &rest)) ) {
char *end;
double x = PR_strtod(token1, &end);
if (*end != '\0') {
rv = NS_ERROR_FAILURE;
break; // parse error
}
double y = PR_strtod(token2, &end);
if (*end != '\0') {
rv = NS_ERROR_FAILURE;
break; // parse error
}
nsCOMPtr<nsIDOMSVGPoint> point;
nsSVGPoint::Create((float)x, (float)y, getter_AddRefs(point));
if (!point) {
rv = NS_ERROR_OUT_OF_MEMORY;
break;
}
points.AppendObject(point);
}
if (token1 || NS_FAILED(rv)) {
// there was a parse error.
rv = NS_ERROR_FAILURE;
}
else {
WillModify();
ReleasePoints();
PRInt32 count = points.Count();
for (PRInt32 i=0; i<count; ++i) {
AppendElement(points.ObjectAt(i));
}
DidModify();
}
nsMemory::Free(str);
return rv;
}
NS_IMETHODIMP
nsSVGPointList::GetValueString(nsAString& aValue)
{
aValue.Truncate();
PRInt32 count = mPoints.Count();
if (count<=0) return NS_OK;
PRInt32 i = 0;
PRUnichar buf[48];
while (1) {
nsIDOMSVGPoint* point = ElementAt(i);
float x, y;
point->GetX(&x);
point->GetY(&y);
nsTextFormatter::snprintf(buf, sizeof(buf)/sizeof(PRUnichar), NS_LITERAL_STRING("%g,%g").get(), (double)x, (double)y);
aValue.Append(buf);
if (++i >= count) break;
aValue.Append(NS_LITERAL_STRING(" "));
}
return NS_OK;
}
//----------------------------------------------------------------------
// nsIDOMSVGPointList methods:
/* readonly attribute unsigned long numberOfItems; */
NS_IMETHODIMP nsSVGPointList::GetNumberOfItems(PRUint32 *aNumberOfItems)
{
*aNumberOfItems = mPoints.Count();
return NS_OK;
}
/* void clear (); */
NS_IMETHODIMP nsSVGPointList::Clear()
{
WillModify();
ReleasePoints();
DidModify();
return NS_OK;
}
/* nsIDOMSVGPoint initialize (in nsIDOMSVGPoint newItem); */
NS_IMETHODIMP nsSVGPointList::Initialize(nsIDOMSVGPoint *newItem, nsIDOMSVGPoint **_retval)
{
Clear();
return AppendItem(newItem, _retval);
}
/* nsIDOMSVGPoint getItem (in unsigned long index); */
NS_IMETHODIMP nsSVGPointList::GetItem(PRUint32 index, nsIDOMSVGPoint **_retval)
{
if ((PRInt32)index >= mPoints.Count()) {
*_retval = nsnull;
return NS_ERROR_DOM_INDEX_SIZE_ERR;
}
*_retval = ElementAt(index);
NS_ADDREF(*_retval);
return NS_OK;
}
/* nsIDOMSVGPoint insertItemBefore (in nsIDOMSVGPoint newItem, in unsigned long index); */
NS_IMETHODIMP nsSVGPointList::InsertItemBefore(nsIDOMSVGPoint *newItem, PRUint32 index, nsIDOMSVGPoint **_retval)
{
NS_NOTYETIMPLEMENTED("write me");
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIDOMSVGPoint replaceItem (in nsIDOMSVGPoint newItem, in unsigned long index); */
NS_IMETHODIMP nsSVGPointList::ReplaceItem(nsIDOMSVGPoint *newItem, PRUint32 index, nsIDOMSVGPoint **_retval)
{
NS_NOTYETIMPLEMENTED("write me");
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIDOMSVGPoint removeItem (in unsigned long index); */
NS_IMETHODIMP nsSVGPointList::RemoveItem(PRUint32 index, nsIDOMSVGPoint **_retval)
{
if ((PRInt32)index >= mPoints.Count()) {
*_retval = nsnull;
return NS_ERROR_DOM_INDEX_SIZE_ERR;
}
*_retval = ElementAt(index);
NS_ADDREF(*_retval);
WillModify();
RemoveElementAt(index);
DidModify();
return NS_OK;
}
/* nsIDOMSVGPoint appendItem (in nsIDOMSVGPoint newItem); */
NS_IMETHODIMP nsSVGPointList::AppendItem(nsIDOMSVGPoint *newItem, nsIDOMSVGPoint **_retval)
{
// XXX The SVG specs state that 'if newItem is already in a list, it
// is removed from its previous list before it is inserted into this
// list'. We don't do that. Should we?
*_retval = newItem;
NS_ADDREF(*_retval);
AppendElement(newItem);
return NS_OK;
}
//----------------------------------------------------------------------
// nsISVGValueObserver methods
NS_IMETHODIMP
nsSVGPointList::WillModifySVGObservable(nsISVGValue* observable)
{
WillModify();
return NS_OK;
}
NS_IMETHODIMP
nsSVGPointList::DidModifySVGObservable (nsISVGValue* observable)
{
DidModify();
return NS_OK;
}

View File

@@ -0,0 +1,408 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ----- BEGIN LICENSE BLOCK -----
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is the Mozilla SVG project.
*
* The Initial Developer of the Original Code is
* Crocodile Clips Ltd..
* Portions created by the Initial Developer are Copyright (C) 2001
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Alex Fritze <alex.fritze@crocodile-clips.com> (original author)
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ----- END LICENSE BLOCK ----- */
#include "nsSVGRect.h"
#include "prdtoa.h"
#include "nsSVGValue.h"
#include "nsTextFormatter.h"
#include "nsCRT.h"
////////////////////////////////////////////////////////////////////////
// nsSVGRect class
class nsSVGRect : public nsIDOMSVGRect,
public nsSVGValue
{
public:
static nsresult Create(nsIDOMSVGRect** result,
float x=0.0f, float y=0.0f,
float w=0.0f, float h=0.0f);
protected:
nsSVGRect(float x, float y, float w, float h);
public:
// nsISupports interface:
NS_DECL_ISUPPORTS
// nsIDOMSVGRect interface:
NS_DECL_NSIDOMSVGRECT
// nsISVGValue interface:
NS_IMETHOD SetValueString(const nsAString& aValue);
NS_IMETHOD GetValueString(nsAString& aValue);
protected:
float mX, mY, mWidth, mHeight;
};
//----------------------------------------------------------------------
// implementation:
nsresult
nsSVGRect::Create(nsIDOMSVGRect** result,
float x, float y, float w, float h)
{
*result = (nsIDOMSVGRect*) new nsSVGRect(x,y,w,h);
if(!*result) return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(*result);
return NS_OK;
}
nsSVGRect::nsSVGRect(float x, float y, float w, float h)
: mX(x), mY(y), mWidth(w), mHeight(h)
{
}
//----------------------------------------------------------------------
// nsISupports methods:
NS_IMPL_ADDREF(nsSVGRect)
NS_IMPL_RELEASE(nsSVGRect)
NS_INTERFACE_MAP_BEGIN(nsSVGRect)
NS_INTERFACE_MAP_ENTRY(nsISVGValue)
NS_INTERFACE_MAP_ENTRY(nsIDOMSVGRect)
NS_INTERFACE_MAP_ENTRY_CONTENT_CLASSINFO(SVGRect)
NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsISVGValue)
NS_INTERFACE_MAP_END
//----------------------------------------------------------------------
// nsISVGValue methods:
NS_IMETHODIMP
nsSVGRect::SetValueString(const nsAString& aValue)
{
nsresult rv = NS_OK;
char* str = ToNewCString(aValue);
char* rest = str;
char* token;
const char* delimiters = ",\x20\x9\xD\xA";
double vals[4];
int i;
for (i=0;i<4;++i) {
if (!(token = nsCRT::strtok(rest, delimiters, &rest))) break; // parse error
char *end;
vals[i] = PR_strtod(token, &end);
if (*end != '\0') break; // parse error
}
if (i!=4 || (nsCRT::strtok(rest, delimiters, &rest)!=0)) {
// there was a parse error.
rv = NS_ERROR_FAILURE;
}
else {
WillModify();
mX = (double)vals[0];
mY = (double)vals[1];
mWidth = (double)vals[2];
mHeight = (double)vals[3];
DidModify();
}
return rv;
}
NS_IMETHODIMP
nsSVGRect::GetValueString(nsAString& aValue)
{
PRUnichar buf[200];
nsTextFormatter::snprintf(buf, sizeof(buf)/sizeof(PRUnichar),
NS_LITERAL_STRING("%g %g %g %g").get(),
(double)mX, (double)mY,
(double)mWidth, (double)mHeight);
aValue.Append(buf);
return NS_OK;
}
//----------------------------------------------------------------------
// nsIDOMSVGRect methods:
/* attribute float x; */
NS_IMETHODIMP nsSVGRect::GetX(float *aX)
{
*aX = mX;
return NS_OK;
}
NS_IMETHODIMP nsSVGRect::SetX(float aX)
{
WillModify();
mX = aX;
DidModify();
return NS_OK;
}
/* attribute float y; */
NS_IMETHODIMP nsSVGRect::GetY(float *aY)
{
*aY = mY;
return NS_OK;
}
NS_IMETHODIMP nsSVGRect::SetY(float aY)
{
WillModify();
mY = aY;
DidModify();
return NS_OK;
}
/* attribute float width; */
NS_IMETHODIMP nsSVGRect::GetWidth(float *aWidth)
{
*aWidth = mWidth;
return NS_OK;
}
NS_IMETHODIMP nsSVGRect::SetWidth(float aWidth)
{
WillModify();
mWidth = aWidth;
DidModify();
return NS_OK;
}
/* attribute float height; */
NS_IMETHODIMP nsSVGRect::GetHeight(float *aHeight)
{
*aHeight = mHeight;
return NS_OK;
}
NS_IMETHODIMP nsSVGRect::SetHeight(float aHeight)
{
WillModify();
mHeight = aHeight;
DidModify();
return NS_OK;
}
////////////////////////////////////////////////////////////////////////
// nsSVGRect prototype wrapper class
// delegates all 'getter' calls to the given prototype if the property
// hasn't been set on the object directly
class nsSVGRectPrototypeWrapper : public nsIDOMSVGRect,
public nsSVGValue
{
public:
static nsresult Create(nsIDOMSVGRect** result,
nsIDOMSVGRect* prototype,
nsIDOMSVGRect* body=nsnull);
protected:
nsSVGRectPrototypeWrapper(nsIDOMSVGRect* prototype,
nsIDOMSVGRect* body);
virtual ~nsSVGRectPrototypeWrapper();
public:
// nsISupports interface:
NS_DECL_ISUPPORTS
// nsIDOMSVGRect interface:
NS_DECL_NSIDOMSVGRECT
// nsISVGValue interface:
NS_IMETHOD SetValueString(const nsAString& aValue);
NS_IMETHOD GetValueString(nsAString& aValue);
protected:
void EnsureBody();
nsIDOMSVGRect* Delegate() { return mBody ? mBody.get() : mPrototype.get(); }
nsCOMPtr<nsIDOMSVGRect> mPrototype;
nsCOMPtr<nsIDOMSVGRect> mBody;
};
//----------------------------------------------------------------------
// implementation:
nsresult
nsSVGRectPrototypeWrapper::Create(nsIDOMSVGRect** result,
nsIDOMSVGRect* prototype,
nsIDOMSVGRect* body)
{
*result = (nsIDOMSVGRect*) new nsSVGRectPrototypeWrapper(prototype, body);
if(!*result) return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(*result);
return NS_OK;
}
nsSVGRectPrototypeWrapper::nsSVGRectPrototypeWrapper(nsIDOMSVGRect* prototype,
nsIDOMSVGRect* body)
: mPrototype(prototype), mBody(body)
{
NS_ASSERTION(mPrototype, "need prototype");
}
nsSVGRectPrototypeWrapper::~nsSVGRectPrototypeWrapper()
{
// if (mBody) {
// nsCOMPtr<nsISVGValue> val = do_QueryInterface(mBody);
// if (val)
// val->RemoveObserver(this);
// }
}
void nsSVGRectPrototypeWrapper::EnsureBody()
{
if (mBody) return;
nsSVGRect::Create(getter_AddRefs(mBody));
NS_ASSERTION(mBody, "couldn't create body");
// nsCOMPtr<nsISVGValue> val = do_QueryInterface(mBody);
// if (val)
// val->AddObserver(this);
}
//----------------------------------------------------------------------
// nsISupports methods:
NS_IMPL_ADDREF(nsSVGRectPrototypeWrapper)
NS_IMPL_RELEASE(nsSVGRectPrototypeWrapper)
NS_INTERFACE_MAP_BEGIN(nsSVGRectPrototypeWrapper)
NS_INTERFACE_MAP_ENTRY(nsISVGValue)
NS_INTERFACE_MAP_ENTRY(nsIDOMSVGRect)
NS_INTERFACE_MAP_ENTRY_CONTENT_CLASSINFO(SVGRect)
NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsISVGValue)
NS_INTERFACE_MAP_END
//----------------------------------------------------------------------
// nsISVGValue methods:
NS_IMETHODIMP
nsSVGRectPrototypeWrapper::SetValueString(const nsAString& aValue)
{
EnsureBody();
nsCOMPtr<nsISVGValue> val = do_QueryInterface(mBody);
NS_ASSERTION(val, "missing interface on body");
return val->SetValueString(aValue);
}
NS_IMETHODIMP
nsSVGRectPrototypeWrapper::GetValueString(nsAString& aValue)
{
nsCOMPtr<nsISVGValue> val = do_QueryInterface( Delegate() );
NS_ASSERTION(val, "missing interface on body");
return val->GetValueString(aValue);
}
//----------------------------------------------------------------------
// nsIDOMSVGRect methods:
/* attribute float x; */
NS_IMETHODIMP nsSVGRectPrototypeWrapper::GetX(float *aX)
{
return Delegate()->GetX(aX);
}
NS_IMETHODIMP nsSVGRectPrototypeWrapper::SetX(float aX)
{
WillModify();
EnsureBody();
nsresult rv = mBody->SetX(aX);
DidModify();
return rv;
}
/* attribute float y; */
NS_IMETHODIMP nsSVGRectPrototypeWrapper::GetY(float *aY)
{
return Delegate()->GetY(aY);
}
NS_IMETHODIMP nsSVGRectPrototypeWrapper::SetY(float aY)
{
WillModify();
EnsureBody();
nsresult rv = mBody->SetY(aY);
DidModify();
return rv;
}
/* attribute float width; */
NS_IMETHODIMP nsSVGRectPrototypeWrapper::GetWidth(float *aWidth)
{
return Delegate()->GetWidth(aWidth);
}
NS_IMETHODIMP nsSVGRectPrototypeWrapper::SetWidth(float aWidth)
{
WillModify();
EnsureBody();
nsresult rv = mBody->SetWidth(aWidth);
DidModify();
return rv;
}
/* attribute float height; */
NS_IMETHODIMP nsSVGRectPrototypeWrapper::GetHeight(float *aHeight)
{
return Delegate()->GetHeight(aHeight);
}
NS_IMETHODIMP nsSVGRectPrototypeWrapper::SetHeight(float aHeight)
{
WillModify();
EnsureBody();
nsresult rv = mBody->SetHeight(aHeight);
DidModify();
return rv;
}
////////////////////////////////////////////////////////////////////////
// Exported creation functions:
nsresult
NS_NewSVGRect(nsIDOMSVGRect** result, float x, float y,
float width, float height)
{
return nsSVGRect::Create(result, x, y, width, height);
}
nsresult
NS_NewSVGRectPrototypeWrapper(nsIDOMSVGRect** result,
nsIDOMSVGRect* prototype)
{
return nsSVGRectPrototypeWrapper::Create(result, prototype);
}

View File

@@ -0,0 +1,447 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ----- BEGIN LICENSE BLOCK -----
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is the Mozilla SVG project.
*
* The Initial Developer of the Original Code is
* Crocodile Clips Ltd..
* Portions created by the Initial Developer are Copyright (C) 2001
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* William Cook <william.cook@crocodile-clips.com> (original author)
* Alex Fritze <alex.fritze@crocodile-clips.com>
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ----- END LICENSE BLOCK ----- */
#include "nsSVGGraphicElement.h"
#include "nsSVGAtoms.h"
#include "nsSVGAnimatedLength.h"
#include "nsSVGLength.h"
#include "nsIDOMSVGRectElement.h"
#include "nsCOMPtr.h"
#include "nsISVGSVGElement.h"
#include "nsISVGViewportAxis.h"
#include "nsISVGViewportRect.h"
typedef nsSVGGraphicElement nsSVGRectElementBase;
class nsSVGRectElement : public nsSVGRectElementBase,
public nsIDOMSVGRectElement
{
protected:
friend nsresult NS_NewSVGRectElement(nsIContent **aResult,
nsINodeInfo *aNodeInfo);
nsSVGRectElement();
virtual ~nsSVGRectElement();
virtual nsresult Init();
public:
// interfaces:
NS_DECL_ISUPPORTS_INHERITED
NS_DECL_NSIDOMSVGRECTELEMENT
// xxx I wish we could use virtual inheritance
NS_FORWARD_NSIDOMNODE_NO_CLONENODE(nsSVGRectElementBase::)
NS_FORWARD_NSIDOMELEMENT(nsSVGRectElementBase::)
NS_FORWARD_NSIDOMSVGELEMENT(nsSVGRectElementBase::)
protected:
virtual void ParentChainChanged();
nsCOMPtr<nsIDOMSVGAnimatedLength> mX;
nsCOMPtr<nsIDOMSVGAnimatedLength> mY;
nsCOMPtr<nsIDOMSVGAnimatedLength> mWidth;
nsCOMPtr<nsIDOMSVGAnimatedLength> mHeight;
nsCOMPtr<nsIDOMSVGAnimatedLength> mRx;
nsCOMPtr<nsIDOMSVGAnimatedLength> mRy;
};
nsresult NS_NewSVGRectElement(nsIContent **aResult, nsINodeInfo *aNodeInfo)
{
*aResult = nsnull;
nsSVGRectElement* it = new nsSVGRectElement();
if (!it) return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(it);
nsresult rv = NS_STATIC_CAST(nsGenericElement*,it)->Init(aNodeInfo);
if (NS_FAILED(rv)) {
it->Release();
return rv;
}
rv = it->Init();
if (NS_FAILED(rv)) {
it->Release();
return rv;
}
*aResult = NS_STATIC_CAST(nsIContent *, it);
return NS_OK;
}
//----------------------------------------------------------------------
// nsISupports methods
NS_IMPL_ADDREF_INHERITED(nsSVGRectElement,nsSVGRectElementBase)
NS_IMPL_RELEASE_INHERITED(nsSVGRectElement,nsSVGRectElementBase)
NS_INTERFACE_MAP_BEGIN(nsSVGRectElement)
NS_INTERFACE_MAP_ENTRY(nsIDOMSVGRectElement)
NS_INTERFACE_MAP_ENTRY_CONTENT_CLASSINFO(SVGRectElement)
NS_INTERFACE_MAP_END_INHERITING(nsSVGRectElementBase)
//----------------------------------------------------------------------
// Implementation
nsSVGRectElement::nsSVGRectElement()
{
}
nsSVGRectElement::~nsSVGRectElement()
{
if (mX) {
nsCOMPtr<nsISVGValue> value = do_QueryInterface(mX);
value->RemoveObserver(this);
}
if (mY) {
nsCOMPtr<nsISVGValue> value = do_QueryInterface(mY);
value->RemoveObserver(this);
}
if (mWidth) {
nsCOMPtr<nsISVGValue> value = do_QueryInterface(mWidth);
value->RemoveObserver(this);
}
if (mHeight) {
nsCOMPtr<nsISVGValue> value = do_QueryInterface(mHeight);
value->RemoveObserver(this);
}
if (mRx) {
nsCOMPtr<nsISVGValue> value = do_QueryInterface(mRx);
value->RemoveObserver(this);
}
if (mRy) {
nsCOMPtr<nsISVGValue> value = do_QueryInterface(mRy);
value->RemoveObserver(this);
}
}
nsresult
nsSVGRectElement::Init()
{
nsresult rv;
rv = nsSVGRectElementBase::Init();
NS_ENSURE_SUCCESS(rv,rv);
// Create mapped properties:
// DOM property: x , #IMPLIED attrib: x
{
nsCOMPtr<nsISVGLength> length;
rv = NS_NewSVGLength(getter_AddRefs(length),
0.0f);
NS_ENSURE_SUCCESS(rv,rv);
rv = NS_NewSVGAnimatedLength(getter_AddRefs(mX), length);
NS_ENSURE_SUCCESS(rv,rv);
rv = mAttributes->AddMappedSVGValue(nsSVGAtoms::x, mX);
NS_ENSURE_SUCCESS(rv,rv);
}
// DOM property: y , #IMPLIED attrib: y
{
nsCOMPtr<nsISVGLength> length;
rv = NS_NewSVGLength(getter_AddRefs(length),
0.0f);
NS_ENSURE_SUCCESS(rv,rv);
rv = NS_NewSVGAnimatedLength(getter_AddRefs(mY), length);
NS_ENSURE_SUCCESS(rv,rv);
rv = mAttributes->AddMappedSVGValue(nsSVGAtoms::y, mY);
NS_ENSURE_SUCCESS(rv,rv);
}
// DOM property: width , #REQUIRED attrib: width
// XXX: enforce requiredness
{
nsCOMPtr<nsISVGLength> length;
rv = NS_NewSVGLength(getter_AddRefs(length),
0.0f);
NS_ENSURE_SUCCESS(rv,rv);
rv = NS_NewSVGAnimatedLength(getter_AddRefs(mWidth), length);
NS_ENSURE_SUCCESS(rv,rv);
rv = mAttributes->AddMappedSVGValue(nsSVGAtoms::width, mWidth);
NS_ENSURE_SUCCESS(rv,rv);
}
// DOM property: height , #REQUIRED attrib: height
// XXX: enforce requiredness
{
nsCOMPtr<nsISVGLength> length;
rv = NS_NewSVGLength(getter_AddRefs(length),
0.0f);
NS_ENSURE_SUCCESS(rv,rv);
rv = NS_NewSVGAnimatedLength(getter_AddRefs(mHeight), length);
NS_ENSURE_SUCCESS(rv,rv);
rv = mAttributes->AddMappedSVGValue(nsSVGAtoms::height, mHeight);
NS_ENSURE_SUCCESS(rv,rv);
}
// DOM property: rx , #IMPLIED attrib: rx
// XXX: enforce requiredness
{
nsCOMPtr<nsISVGLength> length;
rv = NS_NewSVGLength(getter_AddRefs(length),
0.0f);
NS_ENSURE_SUCCESS(rv,rv);
rv = NS_NewSVGAnimatedLength(getter_AddRefs(mRx), length);
NS_ENSURE_SUCCESS(rv,rv);
rv = mAttributes->AddMappedSVGValue(nsSVGAtoms::rx, mRx);
NS_ENSURE_SUCCESS(rv,rv);
}
// DOM property: ry , #IMPLIED attrib: ry
// XXX: enforce requiredness
{
nsCOMPtr<nsISVGLength> length;
rv = NS_NewSVGLength(getter_AddRefs(length),
0.0f);
NS_ENSURE_SUCCESS(rv,rv);
rv = NS_NewSVGAnimatedLength(getter_AddRefs(mRy), length);
NS_ENSURE_SUCCESS(rv,rv);
rv = mAttributes->AddMappedSVGValue(nsSVGAtoms::ry, mRy);
NS_ENSURE_SUCCESS(rv,rv);
}
return NS_OK;
}
//----------------------------------------------------------------------
// nsIDOMNode methods
NS_IMETHODIMP
nsSVGRectElement::CloneNode(PRBool aDeep, nsIDOMNode** aReturn)
{
*aReturn = nsnull;
nsSVGRectElement* it = new nsSVGRectElement();
if (!it) return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(it);
nsresult rv = NS_STATIC_CAST(nsGenericElement*,it)->Init(mNodeInfo);
if (NS_FAILED(rv)) {
it->Release();
return rv;
}
rv = it->Init();
if (NS_FAILED(rv)) {
it->Release();
return rv;
}
rv = CopyNode(it, aDeep);
if (NS_FAILED(rv)) {
it->Release();
return rv;
}
*aReturn = NS_STATIC_CAST(nsSVGRectElementBase*, it);
return NS_OK;
}
//----------------------------------------------------------------------
// nsIDOMSVGRectElement methods
/* readonly attribute nsIDOMSVGAnimatedLength x; */
NS_IMETHODIMP nsSVGRectElement::GetX(nsIDOMSVGAnimatedLength * *aX)
{
*aX = mX;
NS_IF_ADDREF(*aX);
return NS_OK;
}
/* readonly attribute nsIDOMSVGAnimatedLength y; */
NS_IMETHODIMP nsSVGRectElement::GetY(nsIDOMSVGAnimatedLength * *aY)
{
*aY = mY;
NS_IF_ADDREF(*aY);
return NS_OK;
}
/* readonly attribute nsIDOMSVGAnimatedLength width; */
NS_IMETHODIMP nsSVGRectElement::GetWidth(nsIDOMSVGAnimatedLength * *aWidth)
{
*aWidth = mWidth;
NS_IF_ADDREF(*aWidth);
return NS_OK;
}
/* readonly attribute nsIDOMSVGAnimatedLength height; */
NS_IMETHODIMP nsSVGRectElement::GetHeight(nsIDOMSVGAnimatedLength * *aHeight)
{
*aHeight = mHeight;
NS_IF_ADDREF(*aHeight);
return NS_OK;
}
/* readonly attribute nsIDOMSVGAnimatedLength rx; */
NS_IMETHODIMP nsSVGRectElement::GetRx(nsIDOMSVGAnimatedLength * *aRx)
{
*aRx = mRx;
NS_IF_ADDREF(*aRx);
return NS_OK;
}
/* readonly attribute nsIDOMSVGAnimatedLength ry; */
NS_IMETHODIMP nsSVGRectElement::GetRy(nsIDOMSVGAnimatedLength * *aRy)
{
*aRy = mRy;
NS_IF_ADDREF(*aRy);
return NS_OK;
}
//----------------------------------------------------------------------
//
void nsSVGRectElement::ParentChainChanged()
{
// set new context information on our length-properties:
nsCOMPtr<nsIDOMSVGSVGElement> dom_elem;
GetOwnerSVGElement(getter_AddRefs(dom_elem));
if (!dom_elem) return;
nsCOMPtr<nsISVGSVGElement> svg_elem = do_QueryInterface(dom_elem);
NS_ASSERTION(svg_elem, "<svg> element missing interface");
// x:
{
nsCOMPtr<nsIDOMSVGLength> dom_length;
mX->GetBaseVal(getter_AddRefs(dom_length));
nsCOMPtr<nsISVGLength> length = do_QueryInterface(dom_length);
NS_ASSERTION(length, "svg length missing interface");
nsCOMPtr<nsIDOMSVGRect> vp_dom;
svg_elem->GetViewport(getter_AddRefs(vp_dom));
nsCOMPtr<nsISVGViewportRect> vp = do_QueryInterface(vp_dom);
nsCOMPtr<nsISVGViewportAxis> ctx;
vp->GetXAxis(getter_AddRefs(ctx));
length->SetContext(ctx);
}
// y:
{
nsCOMPtr<nsIDOMSVGLength> dom_length;
mY->GetBaseVal(getter_AddRefs(dom_length));
nsCOMPtr<nsISVGLength> length = do_QueryInterface(dom_length);
NS_ASSERTION(length, "svg length missing interface");
nsCOMPtr<nsIDOMSVGRect> vp_dom;
svg_elem->GetViewport(getter_AddRefs(vp_dom));
nsCOMPtr<nsISVGViewportRect> vp = do_QueryInterface(vp_dom);
nsCOMPtr<nsISVGViewportAxis> ctx;
vp->GetYAxis(getter_AddRefs(ctx));
length->SetContext(ctx);
}
// width:
{
nsCOMPtr<nsIDOMSVGLength> dom_length;
mWidth->GetBaseVal(getter_AddRefs(dom_length));
nsCOMPtr<nsISVGLength> length = do_QueryInterface(dom_length);
NS_ASSERTION(length, "svg length missing interface");
nsCOMPtr<nsIDOMSVGRect> vp_dom;
svg_elem->GetViewport(getter_AddRefs(vp_dom));
nsCOMPtr<nsISVGViewportRect> vp = do_QueryInterface(vp_dom);
nsCOMPtr<nsISVGViewportAxis> ctx;
vp->GetXAxis(getter_AddRefs(ctx));
length->SetContext(ctx);
}
// height:
{
nsCOMPtr<nsIDOMSVGLength> dom_length;
mHeight->GetBaseVal(getter_AddRefs(dom_length));
nsCOMPtr<nsISVGLength> length = do_QueryInterface(dom_length);
NS_ASSERTION(length, "svg length missing interface");
nsCOMPtr<nsIDOMSVGRect> vp_dom;
svg_elem->GetViewport(getter_AddRefs(vp_dom));
nsCOMPtr<nsISVGViewportRect> vp = do_QueryInterface(vp_dom);
nsCOMPtr<nsISVGViewportAxis> ctx;
vp->GetYAxis(getter_AddRefs(ctx));
length->SetContext(ctx);
}
// rx:
{
nsCOMPtr<nsIDOMSVGLength> dom_length;
mRx->GetBaseVal(getter_AddRefs(dom_length));
nsCOMPtr<nsISVGLength> length = do_QueryInterface(dom_length);
NS_ASSERTION(length, "svg length missing interface");
nsCOMPtr<nsIDOMSVGRect> vp_dom;
svg_elem->GetViewport(getter_AddRefs(vp_dom));
nsCOMPtr<nsISVGViewportRect> vp = do_QueryInterface(vp_dom);
nsCOMPtr<nsISVGViewportAxis> ctx;
vp->GetXAxis(getter_AddRefs(ctx));
length->SetContext(ctx);
}
// ry:
{
nsCOMPtr<nsIDOMSVGLength> dom_length;
mRy->GetBaseVal(getter_AddRefs(dom_length));
nsCOMPtr<nsISVGLength> length = do_QueryInterface(dom_length);
NS_ASSERTION(length, "svg length missing interface");
nsCOMPtr<nsIDOMSVGRect> vp_dom;
svg_elem->GetViewport(getter_AddRefs(vp_dom));
nsCOMPtr<nsISVGViewportRect> vp = do_QueryInterface(vp_dom);
nsCOMPtr<nsISVGViewportAxis> ctx;
vp->GetYAxis(getter_AddRefs(ctx));
length->SetContext(ctx);
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,196 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ----- BEGIN LICENSE BLOCK -----
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is the Mozilla SVG project.
*
* The Initial Developer of the Original Code is
* Crocodile Clips Ltd..
* Portions created by the Initial Developer are Copyright (C) 2004
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Alex Fritze <alex@croczilla.com> (original author)
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ----- END LICENSE BLOCK ----- */
#include "nsSVGValue.h"
#include "nsWeakReference.h"
////////////////////////////////////////////////////////////////////////
// nsSVGStringProxyValue implementation
//
// This class is intended to sit between a client and an nsISVGValue object.
// It is used to allow mapped SVG attributes (which store their value in parsed
// form) to assume any string value. This is needed for SVG to work properly with
// XUL templates, where we have XML like this: <svg:circle r="?r"/>.
//
// When nsSVGStringProxyValue::SetValueString() will attempt to call its
// proxied object's SetValueString method. If that call fails, nsSVGStringProxyValue
// will cache the string and return it for subsequent invocations of GetValueString().
// If the call succeeds, however, invocations of GetValueString() will call the
// proxied objects's GetValueString() method.
// If the proxied object's data is changed internally, invocations of GetValueString()
// will also return the proxied object's GetValueString().
class nsSVGStringProxyValue : public nsSVGValue,
public nsISVGValueObserver,
public nsSupportsWeakReference
{
protected:
friend nsresult
NS_CreateSVGStringProxyValue(nsISVGValue* proxiedValue, nsISVGValue** aResult);
nsSVGStringProxyValue();
virtual ~nsSVGStringProxyValue();
PRBool Init(nsISVGValue* proxiedValue);
public:
NS_DECL_ISUPPORTS
// nsISVGValue interface:
NS_IMETHOD SetValueString(const nsAString& aValue);
NS_IMETHOD GetValueString(nsAString& aValue);
// nsISVGValueObserver
NS_IMETHOD WillModifySVGObservable(nsISVGValue* observable);
NS_IMETHOD DidModifySVGObservable (nsISVGValue* observable);
// nsISupportsWeakReference
// implementation inherited from nsSupportsWeakReference
protected:
nsString mCachedValue;
nsCOMPtr<nsISVGValue> mProxiedValue;
PRBool mUseCachedValue;
};
//----------------------------------------------------------------------
nsresult
NS_CreateSVGStringProxyValue(nsISVGValue* proxiedValue,
nsISVGValue** aResult)
{
*aResult = nsnull;
nsSVGStringProxyValue *sp = new nsSVGStringProxyValue();
if(!sp) return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(sp);
if (!sp->Init(proxiedValue)) {
NS_RELEASE(sp);
return NS_ERROR_FAILURE;
}
*aResult = sp;
return NS_OK;
}
nsSVGStringProxyValue::nsSVGStringProxyValue()
{
#ifdef DEBUG
printf("nsSVGStringProxyValue CTOR\n");
#endif
}
nsSVGStringProxyValue::~nsSVGStringProxyValue()
{
mProxiedValue->RemoveObserver(this);
#ifdef DEBUG
printf("nsSVGStringProxyValue DTOR\n");
#endif
}
PRBool nsSVGStringProxyValue::Init(nsISVGValue* proxiedValue)
{
mProxiedValue = proxiedValue;
mProxiedValue->AddObserver(this);
return PR_TRUE;
}
//----------------------------------------------------------------------
// nsISupports methods:
NS_IMPL_ADDREF(nsSVGStringProxyValue)
NS_IMPL_RELEASE(nsSVGStringProxyValue)
NS_INTERFACE_MAP_BEGIN(nsSVGStringProxyValue)
NS_INTERFACE_MAP_ENTRY(nsISVGValue)
NS_INTERFACE_MAP_ENTRY(nsISVGValueObserver)
NS_INTERFACE_MAP_ENTRY(nsISupportsWeakReference)
NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsISVGValue)
NS_INTERFACE_MAP_END
//----------------------------------------------------------------------
// nsISVGValue methods:
NS_IMETHODIMP
nsSVGStringProxyValue::SetValueString(const nsAString& aValue)
{
#ifdef DEBUG
printf("nsSVGStringProxyValue(%p)::SetValueString(%s)\n", this, NS_ConvertUCS2toUTF8(aValue).get());
#endif
if (NS_FAILED(mProxiedValue->SetValueString(aValue))) {
#ifdef DEBUG
printf(" -> call failed, now using cached value\n");
#endif
mUseCachedValue = PR_TRUE; // mUseCachedValue will be reset in DidModifySVGObservable,
// should the inner object ever change state internally
mCachedValue = aValue;
}
return NS_OK;
}
NS_IMETHODIMP
nsSVGStringProxyValue::GetValueString(nsAString& aValue)
{
if (!mUseCachedValue)
return mProxiedValue->GetValueString(aValue);
aValue = mCachedValue;
return NS_OK;
}
//----------------------------------------------------------------------
// nsISVGValueObserver methods
NS_IMETHODIMP
nsSVGStringProxyValue::WillModifySVGObservable(nsISVGValue* observable)
{
WillModify();
return NS_OK;
}
NS_IMETHODIMP
nsSVGStringProxyValue::DidModifySVGObservable (nsISVGValue* observable)
{
// Our internal proxied object has set its state internally.
// Make sure its new value takes priority over our cached string:
mUseCachedValue = PR_FALSE;
DidModify();
return NS_OK;
}

View File

@@ -0,0 +1,449 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ----- BEGIN LICENSE BLOCK -----
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is the Mozilla SVG project.
*
* The Initial Developer of the Original Code is
* Crocodile Clips Ltd..
* Portions created by the Initial Developer are Copyright (C) 2002
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Alex Fritze <alex.fritze@crocodile-clips.com> (original author)
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ----- END LICENSE BLOCK ----- */
#include "nsSVGElement.h"
#include "nsSVGAtoms.h"
#include "nsIDOMSVGTSpanElement.h"
#include "nsCOMPtr.h"
#include "nsSVGAnimatedLengthList.h"
#include "nsSVGLengthList.h"
#include "nsISVGSVGElement.h"
#include "nsISVGViewportAxis.h"
#include "nsISVGViewportRect.h"
typedef nsSVGElement nsSVGTSpanElementBase;
class nsSVGTSpanElement : public nsSVGTSpanElementBase,
public nsIDOMSVGTSpanElement // : nsIDOMSVGTextPositioningElement
// : nsIDOMSVGTextContentElement
{
protected:
friend nsresult NS_NewSVGTSpanElement(nsIContent **aResult,
nsINodeInfo *aNodeInfo);
nsSVGTSpanElement();
virtual ~nsSVGTSpanElement();
virtual nsresult Init();
public:
// interfaces:
NS_DECL_ISUPPORTS_INHERITED
NS_DECL_NSIDOMSVGTSPANELEMENT
NS_DECL_NSIDOMSVGTEXTPOSITIONINGELEMENT
NS_DECL_NSIDOMSVGTEXTCONTENTELEMENT
// xxx If xpcom allowed virtual inheritance we wouldn't need to
// forward here :-(
NS_FORWARD_NSIDOMNODE_NO_CLONENODE(nsSVGTSpanElementBase::)
NS_FORWARD_NSIDOMELEMENT(nsSVGTSpanElementBase::)
NS_FORWARD_NSIDOMSVGELEMENT(nsSVGTSpanElementBase::)
// nsISVGContent interface
NS_IMETHOD IsPresentationAttribute(const nsIAtom* attribute, PRBool* retval);
protected:
virtual void ParentChainChanged();
// nsIDOMSVGTextPositioning properties:
nsCOMPtr<nsIDOMSVGAnimatedLengthList> mX;
nsCOMPtr<nsIDOMSVGAnimatedLengthList> mY;
nsCOMPtr<nsIDOMSVGAnimatedLengthList> mdX;
nsCOMPtr<nsIDOMSVGAnimatedLengthList> mdY;
};
nsresult NS_NewSVGTSpanElement(nsIContent **aResult, nsINodeInfo *aNodeInfo)
{
*aResult = nsnull;
nsSVGTSpanElement* it = new nsSVGTSpanElement();
if (!it) return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(it);
nsresult rv = NS_STATIC_CAST(nsGenericElement*,it)->Init(aNodeInfo);
if (NS_FAILED(rv)) {
it->Release();
return rv;
}
rv = it->Init();
if (NS_FAILED(rv)) {
it->Release();
return rv;
}
*aResult = NS_STATIC_CAST(nsIContent *, it);
return NS_OK;
}
//----------------------------------------------------------------------
// nsISupports methods
NS_IMPL_ADDREF_INHERITED(nsSVGTSpanElement,nsSVGTSpanElementBase)
NS_IMPL_RELEASE_INHERITED(nsSVGTSpanElement,nsSVGTSpanElementBase)
NS_INTERFACE_MAP_BEGIN(nsSVGTSpanElement)
NS_INTERFACE_MAP_ENTRY(nsIDOMSVGTSpanElement)
NS_INTERFACE_MAP_ENTRY(nsIDOMSVGTextPositioningElement)
NS_INTERFACE_MAP_ENTRY(nsIDOMSVGTextContentElement)
NS_INTERFACE_MAP_ENTRY_CONTENT_CLASSINFO(SVGTSpanElement)
NS_INTERFACE_MAP_END_INHERITING(nsSVGTSpanElementBase)
//----------------------------------------------------------------------
// Implementation
nsSVGTSpanElement::nsSVGTSpanElement()
{
}
nsSVGTSpanElement::~nsSVGTSpanElement()
{
}
nsresult
nsSVGTSpanElement::Init()
{
nsresult rv;
rv = nsSVGTSpanElementBase::Init();
NS_ENSURE_SUCCESS(rv,rv);
// Create mapped properties:
// DOM property: nsIDOMSVGTextPositioningElement::x, #IMPLIED attrib: x
{
nsCOMPtr<nsISVGLengthList> lengthList;
rv = NS_NewSVGLengthList(getter_AddRefs(lengthList));
NS_ENSURE_SUCCESS(rv,rv);
rv = NS_NewSVGAnimatedLengthList(getter_AddRefs(mX),
lengthList);
NS_ENSURE_SUCCESS(rv,rv);
rv = mAttributes->AddMappedSVGValue(nsSVGAtoms::x, mX);
NS_ENSURE_SUCCESS(rv,rv);
}
// DOM property: nsIDOMSVGTextPositioningElement::y, #IMPLIED attrib: y
{
nsCOMPtr<nsISVGLengthList> lengthList;
rv = NS_NewSVGLengthList(getter_AddRefs(lengthList));
NS_ENSURE_SUCCESS(rv,rv);
rv = NS_NewSVGAnimatedLengthList(getter_AddRefs(mY),
lengthList);
NS_ENSURE_SUCCESS(rv,rv);
rv = mAttributes->AddMappedSVGValue(nsSVGAtoms::y, mY);
NS_ENSURE_SUCCESS(rv,rv);
}
return NS_OK;
}
//----------------------------------------------------------------------
// nsIDOMNode methods
NS_IMETHODIMP
nsSVGTSpanElement::CloneNode(PRBool aDeep, nsIDOMNode** aReturn)
{
*aReturn = nsnull;
nsSVGTSpanElement* it = new nsSVGTSpanElement();
if (!it) return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(it);
nsresult rv = NS_STATIC_CAST(nsGenericElement*,it)->Init(mNodeInfo);
if (NS_FAILED(rv)) {
it->Release();
return rv;
}
rv = it->Init();
if (NS_FAILED(rv)) {
it->Release();
return rv;
}
rv = CopyNode(it, aDeep);
if (NS_FAILED(rv)) {
it->Release();
return rv;
}
*aReturn = NS_STATIC_CAST(nsSVGTSpanElementBase*, it);
return NS_OK;
}
//----------------------------------------------------------------------
// nsIDOMSVGTSpanElement methods
// - no methods -
//----------------------------------------------------------------------
// nsIDOMSVGTextPositioningElement methods
/* readonly attribute nsIDOMSVGAnimatedLengthList x; */
NS_IMETHODIMP nsSVGTSpanElement::GetX(nsIDOMSVGAnimatedLengthList * *aX)
{
*aX = mX;
NS_IF_ADDREF(*aX);
return NS_OK;
}
/* readonly attribute nsIDOMSVGAnimatedLengthList y; */
NS_IMETHODIMP nsSVGTSpanElement::GetY(nsIDOMSVGAnimatedLengthList * *aY)
{
*aY = mY;
NS_IF_ADDREF(*aY);
return NS_OK;
}
/* readonly attribute nsIDOMSVGAnimatedLengthList dx; */
NS_IMETHODIMP nsSVGTSpanElement::GetDx(nsIDOMSVGAnimatedLengthList * *aDx)
{
NS_NOTYETIMPLEMENTED("write me!");
return NS_ERROR_UNEXPECTED;
}
/* readonly attribute nsIDOMSVGAnimatedLengthList dy; */
NS_IMETHODIMP nsSVGTSpanElement::GetDy(nsIDOMSVGAnimatedLengthList * *aDy)
{
NS_NOTYETIMPLEMENTED("write me!");
return NS_ERROR_UNEXPECTED;
}
/* readonly attribute nsIDOMSVGAnimatedNumberList rotate; */
NS_IMETHODIMP nsSVGTSpanElement::GetRotate(nsIDOMSVGAnimatedNumberList * *aRotate)
{
NS_NOTYETIMPLEMENTED("write me!");
return NS_ERROR_UNEXPECTED;
}
//----------------------------------------------------------------------
// nsIDOMSVGTextContentElement methods
/* readonly attribute nsIDOMSVGAnimatedLength textLength; */
NS_IMETHODIMP nsSVGTSpanElement::GetTextLength(nsIDOMSVGAnimatedLength * *aTextLength)
{
NS_NOTYETIMPLEMENTED("write me!");
return NS_ERROR_UNEXPECTED;
}
/* readonly attribute nsIDOMSVGAnimatedEnumeration lengthAdjust; */
NS_IMETHODIMP nsSVGTSpanElement::GetLengthAdjust(nsIDOMSVGAnimatedEnumeration * *aLengthAdjust)
{
NS_NOTYETIMPLEMENTED("write me!");
return NS_ERROR_UNEXPECTED;
}
/* long getNumberOfChars (); */
NS_IMETHODIMP nsSVGTSpanElement::GetNumberOfChars(PRInt32 *_retval)
{
NS_NOTYETIMPLEMENTED("write me!");
return NS_ERROR_UNEXPECTED;
}
/* float getComputedTextLength (); */
NS_IMETHODIMP nsSVGTSpanElement::GetComputedTextLength(float *_retval)
{
NS_NOTYETIMPLEMENTED("write me!");
return NS_ERROR_UNEXPECTED;
}
/* float getSubStringLength (in unsigned long charnum, in unsigned long nchars); */
NS_IMETHODIMP nsSVGTSpanElement::GetSubStringLength(PRUint32 charnum, PRUint32 nchars, float *_retval)
{
NS_NOTYETIMPLEMENTED("write me!");
return NS_ERROR_UNEXPECTED;
}
/* nsIDOMSVGPoint getStartPositionOfChar (in unsigned long charnum); */
NS_IMETHODIMP nsSVGTSpanElement::GetStartPositionOfChar(PRUint32 charnum, nsIDOMSVGPoint **_retval)
{
NS_NOTYETIMPLEMENTED("write me!");
return NS_ERROR_UNEXPECTED;
}
/* nsIDOMSVGPoint getEndPositionOfChar (in unsigned long charnum); */
NS_IMETHODIMP nsSVGTSpanElement::GetEndPositionOfChar(PRUint32 charnum, nsIDOMSVGPoint **_retval)
{
NS_NOTYETIMPLEMENTED("write me!");
return NS_ERROR_UNEXPECTED;
}
/* nsIDOMSVGRect getExtentOfChar (in unsigned long charnum); */
NS_IMETHODIMP nsSVGTSpanElement::GetExtentOfChar(PRUint32 charnum, nsIDOMSVGRect **_retval)
{
NS_NOTYETIMPLEMENTED("write me!");
return NS_ERROR_UNEXPECTED;
}
/* float getRotationOfChar (in unsigned long charnum); */
NS_IMETHODIMP nsSVGTSpanElement::GetRotationOfChar(PRUint32 charnum, float *_retval)
{
NS_NOTYETIMPLEMENTED("write me!");
return NS_ERROR_UNEXPECTED;
}
/* long getCharNumAtPosition (in nsIDOMSVGPoint point); */
NS_IMETHODIMP nsSVGTSpanElement::GetCharNumAtPosition(nsIDOMSVGPoint *point, PRInt32 *_retval)
{
NS_NOTYETIMPLEMENTED("write me!");
return NS_ERROR_UNEXPECTED;
}
/* void selectSubString (in unsigned long charnum, in unsigned long nchars); */
NS_IMETHODIMP nsSVGTSpanElement::SelectSubString(PRUint32 charnum, PRUint32 nchars)
{
NS_NOTYETIMPLEMENTED("write me!");
return NS_ERROR_UNEXPECTED;
}
//----------------------------------------------------------------------
// nsISVGContent methods
NS_IMETHODIMP
nsSVGTSpanElement::IsPresentationAttribute(const nsIAtom* name, PRBool *retval)
{
if (
// PresentationAttributes-FillStroke
name==nsSVGAtoms::fill ||
name==nsSVGAtoms::fill_opacity ||
name==nsSVGAtoms::fill_rule ||
name==nsSVGAtoms::stroke ||
name==nsSVGAtoms::stroke_dasharray ||
name==nsSVGAtoms::stroke_dashoffset ||
name==nsSVGAtoms::stroke_linecap ||
name==nsSVGAtoms::stroke_linejoin ||
name==nsSVGAtoms::stroke_miterlimit ||
name==nsSVGAtoms::stroke_opacity ||
name==nsSVGAtoms::stroke_width ||
// PresentationAttributes-Graphics
name==nsSVGAtoms::clip_path ||
name==nsSVGAtoms::clip_rule ||
name==nsSVGAtoms::cursor ||
name==nsSVGAtoms::display ||
name==nsSVGAtoms::filter ||
name==nsSVGAtoms::image_rendering ||
name==nsSVGAtoms::mask ||
name==nsSVGAtoms::opacity ||
name==nsSVGAtoms::pointer_events ||
name==nsSVGAtoms::shape_rendering ||
name==nsSVGAtoms::text_rendering ||
name==nsSVGAtoms::visibility ||
// PresentationAttributes-TextContentElements
name==nsSVGAtoms::alignment_baseline ||
name==nsSVGAtoms::baseline_shift ||
name==nsSVGAtoms::direction ||
name==nsSVGAtoms::dominant_baseline ||
name==nsSVGAtoms::glyph_orientation_horizontal ||
name==nsSVGAtoms::glyph_orientation_vertical ||
name==nsSVGAtoms::kerning ||
name==nsSVGAtoms::letter_spacing ||
name==nsSVGAtoms::text_anchor ||
name==nsSVGAtoms::text_decoration ||
name==nsSVGAtoms::unicode_bidi ||
name==nsSVGAtoms::word_spacing ||
// PresentationAttributes-FontSpecification
name==nsSVGAtoms::font_family ||
name==nsSVGAtoms::font_size ||
name==nsSVGAtoms::font_size_adjust ||
name==nsSVGAtoms::font_stretch ||
name==nsSVGAtoms::font_style ||
name==nsSVGAtoms::font_variant ||
name==nsSVGAtoms::font_weight
) {
*retval = PR_TRUE;
return NS_OK;
}
else
return nsSVGTSpanElementBase::IsPresentationAttribute(name, retval);
}
//----------------------------------------------------------------------
//
void nsSVGTSpanElement::ParentChainChanged()
{
// set new context information on our length-properties:
nsCOMPtr<nsIDOMSVGSVGElement> dom_elem;
GetOwnerSVGElement(getter_AddRefs(dom_elem));
if (!dom_elem) return;
nsCOMPtr<nsISVGSVGElement> svg_elem = do_QueryInterface(dom_elem);
NS_ASSERTION(svg_elem, "<svg> element missing interface");
// x:
{
nsCOMPtr<nsIDOMSVGLengthList> dom_lengthlist;
mX->GetBaseVal(getter_AddRefs(dom_lengthlist));
nsCOMPtr<nsISVGLengthList> lengthlist = do_QueryInterface(dom_lengthlist);
NS_ASSERTION(lengthlist, "svg lengthlist missing interface");
nsCOMPtr<nsIDOMSVGRect> vp_dom;
svg_elem->GetViewport(getter_AddRefs(vp_dom));
nsCOMPtr<nsISVGViewportRect> vp = do_QueryInterface(vp_dom);
nsCOMPtr<nsISVGViewportAxis> ctx;
vp->GetXAxis(getter_AddRefs(ctx));
lengthlist->SetContext(ctx);
}
// y:
{
nsCOMPtr<nsIDOMSVGLengthList> dom_lengthlist;
mY->GetBaseVal(getter_AddRefs(dom_lengthlist));
nsCOMPtr<nsISVGLengthList> lengthlist = do_QueryInterface(dom_lengthlist);
NS_ASSERTION(lengthlist, "svg lengthlist missing interface");
nsCOMPtr<nsIDOMSVGRect> vp_dom;
svg_elem->GetViewport(getter_AddRefs(vp_dom));
nsCOMPtr<nsISVGViewportRect> vp = do_QueryInterface(vp_dom);
nsCOMPtr<nsISVGViewportAxis> ctx;
vp->GetYAxis(getter_AddRefs(ctx));
lengthlist->SetContext(ctx);
}
}

View File

@@ -0,0 +1,461 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ----- BEGIN LICENSE BLOCK -----
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is the Mozilla SVG project.
*
* The Initial Developer of the Original Code is
* Crocodile Clips Ltd..
* Portions created by the Initial Developer are Copyright (C) 2002
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Alex Fritze <alex.fritze@crocodile-clips.com> (original author)
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ----- END LICENSE BLOCK ----- */
#include "nsSVGGraphicElement.h"
#include "nsSVGAtoms.h"
#include "nsIDOMSVGTextElement.h"
#include "nsCOMPtr.h"
#include "nsSVGAnimatedLengthList.h"
#include "nsSVGLengthList.h"
#include "nsISVGSVGElement.h"
#include "nsISVGViewportAxis.h"
#include "nsISVGViewportRect.h"
#include "nsISVGTextContentMetrics.h"
#include "nsIPresShell.h"
#include "nsIFrame.h"
#include "nsIDocument.h"
typedef nsSVGGraphicElement nsSVGTextElementBase;
class nsSVGTextElement : public nsSVGTextElementBase,
public nsIDOMSVGTextElement // : nsIDOMSVGTextPositioningElement
// : nsIDOMSVGTextContentElement
{
protected:
friend nsresult NS_NewSVGTextElement(nsIContent **aResult,
nsINodeInfo *aNodeInfo);
nsSVGTextElement();
virtual ~nsSVGTextElement();
virtual nsresult Init();
public:
// interfaces:
NS_DECL_ISUPPORTS_INHERITED
NS_DECL_NSIDOMSVGTEXTELEMENT
NS_DECL_NSIDOMSVGTEXTPOSITIONINGELEMENT
NS_DECL_NSIDOMSVGTEXTCONTENTELEMENT
// xxx If xpcom allowed virtual inheritance we wouldn't need to
// forward here :-(
NS_FORWARD_NSIDOMNODE_NO_CLONENODE(nsSVGTextElementBase::)
NS_FORWARD_NSIDOMELEMENT(nsSVGTextElementBase::)
NS_FORWARD_NSIDOMSVGELEMENT(nsSVGTextElementBase::)
// nsISVGContent interface
NS_IMETHOD IsPresentationAttribute(const nsIAtom* attribute, PRBool* retval);
protected:
virtual void ParentChainChanged();
already_AddRefed<nsISVGTextContentMetrics> GetTextContentMetrics();
// nsIDOMSVGTextPositioning properties:
nsCOMPtr<nsIDOMSVGAnimatedLengthList> mX;
nsCOMPtr<nsIDOMSVGAnimatedLengthList> mY;
nsCOMPtr<nsIDOMSVGAnimatedLengthList> mdX;
nsCOMPtr<nsIDOMSVGAnimatedLengthList> mdY;
};
nsresult NS_NewSVGTextElement(nsIContent **aResult, nsINodeInfo *aNodeInfo)
{
*aResult = nsnull;
nsSVGTextElement* it = new nsSVGTextElement();
if (!it) return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(it);
nsresult rv = NS_STATIC_CAST(nsGenericElement*,it)->Init(aNodeInfo);
if (NS_FAILED(rv)) {
it->Release();
return rv;
}
rv = it->Init();
if (NS_FAILED(rv)) {
it->Release();
return rv;
}
*aResult = NS_STATIC_CAST(nsIContent *, it);
return NS_OK;
}
//----------------------------------------------------------------------
// nsISupports methods
NS_IMPL_ADDREF_INHERITED(nsSVGTextElement,nsSVGTextElementBase)
NS_IMPL_RELEASE_INHERITED(nsSVGTextElement,nsSVGTextElementBase)
NS_INTERFACE_MAP_BEGIN(nsSVGTextElement)
NS_INTERFACE_MAP_ENTRY(nsIDOMSVGTextElement)
NS_INTERFACE_MAP_ENTRY(nsIDOMSVGTextPositioningElement)
NS_INTERFACE_MAP_ENTRY(nsIDOMSVGTextContentElement)
NS_INTERFACE_MAP_ENTRY_CONTENT_CLASSINFO(SVGTextElement)
NS_INTERFACE_MAP_END_INHERITING(nsSVGTextElementBase)
//----------------------------------------------------------------------
// Implementation
nsSVGTextElement::nsSVGTextElement()
{
}
nsSVGTextElement::~nsSVGTextElement()
{
}
nsresult
nsSVGTextElement::Init()
{
nsresult rv;
rv = nsSVGTextElementBase::Init();
NS_ENSURE_SUCCESS(rv,rv);
// Create mapped properties:
// DOM property: nsIDOMSVGTextPositioningElement::x, #IMPLIED attrib: x
{
nsCOMPtr<nsISVGLengthList> lengthList;
rv = NS_NewSVGLengthList(getter_AddRefs(lengthList));
NS_ENSURE_SUCCESS(rv,rv);
rv = NS_NewSVGAnimatedLengthList(getter_AddRefs(mX),
lengthList);
NS_ENSURE_SUCCESS(rv,rv);
rv = mAttributes->AddMappedSVGValue(nsSVGAtoms::x, mX);
NS_ENSURE_SUCCESS(rv,rv);
}
// DOM property: nsIDOMSVGTextPositioningElement::y, #IMPLIED attrib: y
{
nsCOMPtr<nsISVGLengthList> lengthList;
rv = NS_NewSVGLengthList(getter_AddRefs(lengthList));
NS_ENSURE_SUCCESS(rv,rv);
rv = NS_NewSVGAnimatedLengthList(getter_AddRefs(mY),
lengthList);
NS_ENSURE_SUCCESS(rv,rv);
rv = mAttributes->AddMappedSVGValue(nsSVGAtoms::y, mY);
NS_ENSURE_SUCCESS(rv,rv);
}
return NS_OK;
}
//----------------------------------------------------------------------
// nsIDOMNode methods
NS_IMETHODIMP
nsSVGTextElement::CloneNode(PRBool aDeep, nsIDOMNode** aReturn)
{
*aReturn = nsnull;
nsSVGTextElement* it = new nsSVGTextElement();
if (!it) return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(it);
nsresult rv = NS_STATIC_CAST(nsGenericElement*,it)->Init(mNodeInfo);
if (NS_FAILED(rv)) {
it->Release();
return rv;
}
rv = it->Init();
if (NS_FAILED(rv)) {
it->Release();
return rv;
}
rv = CopyNode(it, aDeep);
if (NS_FAILED(rv)) {
it->Release();
return rv;
}
*aReturn = NS_STATIC_CAST(nsSVGTextElementBase*, it);
return NS_OK;
}
//----------------------------------------------------------------------
// nsIDOMSVGTextElement methods
// - no methods -
//----------------------------------------------------------------------
// nsIDOMSVGTextPositioningElement methods
/* readonly attribute nsIDOMSVGAnimatedLengthList x; */
NS_IMETHODIMP nsSVGTextElement::GetX(nsIDOMSVGAnimatedLengthList * *aX)
{
*aX = mX;
NS_IF_ADDREF(*aX);
return NS_OK;
}
/* readonly attribute nsIDOMSVGAnimatedLengthList y; */
NS_IMETHODIMP nsSVGTextElement::GetY(nsIDOMSVGAnimatedLengthList * *aY)
{
*aY = mY;
NS_IF_ADDREF(*aY);
return NS_OK;
}
/* readonly attribute nsIDOMSVGAnimatedLengthList dx; */
NS_IMETHODIMP nsSVGTextElement::GetDx(nsIDOMSVGAnimatedLengthList * *aDx)
{
NS_NOTYETIMPLEMENTED("write me!");
return NS_ERROR_UNEXPECTED;
}
/* readonly attribute nsIDOMSVGAnimatedLengthList dy; */
NS_IMETHODIMP nsSVGTextElement::GetDy(nsIDOMSVGAnimatedLengthList * *aDy)
{
NS_NOTYETIMPLEMENTED("write me!");
return NS_ERROR_UNEXPECTED;
}
/* readonly attribute nsIDOMSVGAnimatedNumberList rotate; */
NS_IMETHODIMP nsSVGTextElement::GetRotate(nsIDOMSVGAnimatedNumberList * *aRotate)
{
NS_NOTYETIMPLEMENTED("write me!");
return NS_ERROR_UNEXPECTED;
}
//----------------------------------------------------------------------
// nsIDOMSVGTextContentElement methods
/* readonly attribute nsIDOMSVGAnimatedLength textLength; */
NS_IMETHODIMP nsSVGTextElement::GetTextLength(nsIDOMSVGAnimatedLength * *aTextLength)
{
NS_NOTYETIMPLEMENTED("write me!");
return NS_ERROR_UNEXPECTED;
}
/* readonly attribute nsIDOMSVGAnimatedEnumeration lengthAdjust; */
NS_IMETHODIMP nsSVGTextElement::GetLengthAdjust(nsIDOMSVGAnimatedEnumeration * *aLengthAdjust)
{
NS_NOTYETIMPLEMENTED("write me!");
return NS_ERROR_UNEXPECTED;
}
/* long getNumberOfChars (); */
NS_IMETHODIMP nsSVGTextElement::GetNumberOfChars(PRInt32 *_retval)
{
NS_NOTYETIMPLEMENTED("write me!");
return NS_ERROR_UNEXPECTED;
}
/* float getComputedTextLength (); */
NS_IMETHODIMP nsSVGTextElement::GetComputedTextLength(float *_retval)
{
NS_NOTYETIMPLEMENTED("write me!");
return NS_ERROR_UNEXPECTED;
}
/* float getSubStringLength (in unsigned long charnum, in unsigned long nchars); */
NS_IMETHODIMP nsSVGTextElement::GetSubStringLength(PRUint32 charnum, PRUint32 nchars, float *_retval)
{
NS_NOTYETIMPLEMENTED("write me!");
return NS_ERROR_UNEXPECTED;
}
/* nsIDOMSVGPoint getStartPositionOfChar (in unsigned long charnum); */
NS_IMETHODIMP nsSVGTextElement::GetStartPositionOfChar(PRUint32 charnum, nsIDOMSVGPoint **_retval)
{
NS_NOTYETIMPLEMENTED("write me!");
return NS_ERROR_UNEXPECTED;
}
/* nsIDOMSVGPoint getEndPositionOfChar (in unsigned long charnum); */
NS_IMETHODIMP nsSVGTextElement::GetEndPositionOfChar(PRUint32 charnum, nsIDOMSVGPoint **_retval)
{
NS_NOTYETIMPLEMENTED("write me!");
return NS_ERROR_UNEXPECTED;
}
/* nsIDOMSVGRect getExtentOfChar (in unsigned long charnum); */
NS_IMETHODIMP nsSVGTextElement::GetExtentOfChar(PRUint32 charnum, nsIDOMSVGRect **_retval)
{
*_retval = nsnull;
nsCOMPtr<nsISVGTextContentMetrics> metrics = GetTextContentMetrics();
if (!metrics) return NS_ERROR_FAILURE;
return metrics->GetExtentOfChar(charnum, _retval);
}
/* float getRotationOfChar (in unsigned long charnum); */
NS_IMETHODIMP nsSVGTextElement::GetRotationOfChar(PRUint32 charnum, float *_retval)
{
NS_NOTYETIMPLEMENTED("write me!");
return NS_ERROR_UNEXPECTED;
}
/* long getCharNumAtPosition (in nsIDOMSVGPoint point); */
NS_IMETHODIMP nsSVGTextElement::GetCharNumAtPosition(nsIDOMSVGPoint *point, PRInt32 *_retval)
{
NS_NOTYETIMPLEMENTED("write me!");
return NS_ERROR_UNEXPECTED;
}
/* void selectSubString (in unsigned long charnum, in unsigned long nchars); */
NS_IMETHODIMP nsSVGTextElement::SelectSubString(PRUint32 charnum, PRUint32 nchars)
{
NS_NOTYETIMPLEMENTED("write me!");
return NS_ERROR_UNEXPECTED;
}
//----------------------------------------------------------------------
// nsISVGContent methods
NS_IMETHODIMP
nsSVGTextElement::IsPresentationAttribute(const nsIAtom* name, PRBool *retval)
{
if (
// PresentationAttributes-TextContentElements
name==nsSVGAtoms::alignment_baseline ||
name==nsSVGAtoms::baseline_shift ||
name==nsSVGAtoms::direction ||
name==nsSVGAtoms::dominant_baseline ||
name==nsSVGAtoms::glyph_orientation_horizontal ||
name==nsSVGAtoms::glyph_orientation_vertical ||
name==nsSVGAtoms::kerning ||
name==nsSVGAtoms::letter_spacing ||
name==nsSVGAtoms::text_anchor ||
name==nsSVGAtoms::text_decoration ||
name==nsSVGAtoms::unicode_bidi ||
name==nsSVGAtoms::word_spacing ||
// PresentationAttributes-FontSpecification
name==nsSVGAtoms::font_family ||
name==nsSVGAtoms::font_size ||
name==nsSVGAtoms::font_size_adjust ||
name==nsSVGAtoms::font_stretch ||
name==nsSVGAtoms::font_style ||
name==nsSVGAtoms::font_variant ||
name==nsSVGAtoms::font_weight
) {
*retval = PR_TRUE;
return NS_OK;
}
else
return nsSVGTextElementBase::IsPresentationAttribute(name, retval);
}
//----------------------------------------------------------------------
//
void nsSVGTextElement::ParentChainChanged()
{
// set new context information on our length-properties:
nsCOMPtr<nsIDOMSVGSVGElement> dom_elem;
GetOwnerSVGElement(getter_AddRefs(dom_elem));
if (!dom_elem) return;
nsCOMPtr<nsISVGSVGElement> svg_elem = do_QueryInterface(dom_elem);
NS_ASSERTION(svg_elem, "<svg> element missing interface");
// x:
{
nsCOMPtr<nsIDOMSVGLengthList> dom_lengthlist;
mX->GetBaseVal(getter_AddRefs(dom_lengthlist));
nsCOMPtr<nsISVGLengthList> lengthlist = do_QueryInterface(dom_lengthlist);
NS_ASSERTION(lengthlist, "svg lengthlist missing interface");
nsCOMPtr<nsIDOMSVGRect> vp_dom;
svg_elem->GetViewport(getter_AddRefs(vp_dom));
nsCOMPtr<nsISVGViewportRect> vp = do_QueryInterface(vp_dom);
nsCOMPtr<nsISVGViewportAxis> ctx;
vp->GetXAxis(getter_AddRefs(ctx));
lengthlist->SetContext(ctx);
}
// y:
{
nsCOMPtr<nsIDOMSVGLengthList> dom_lengthlist;
mY->GetBaseVal(getter_AddRefs(dom_lengthlist));
nsCOMPtr<nsISVGLengthList> lengthlist = do_QueryInterface(dom_lengthlist);
NS_ASSERTION(lengthlist, "svg lengthlist missing interface");
nsCOMPtr<nsIDOMSVGRect> vp_dom;
svg_elem->GetViewport(getter_AddRefs(vp_dom));
nsCOMPtr<nsISVGViewportRect> vp = do_QueryInterface(vp_dom);
nsCOMPtr<nsISVGViewportAxis> ctx;
vp->GetYAxis(getter_AddRefs(ctx));
lengthlist->SetContext(ctx);
}
}
already_AddRefed<nsISVGTextContentMetrics>
nsSVGTextElement::GetTextContentMetrics()
{
if (!mDocument) {
NS_ERROR("no document");
return nsnull;
}
nsIPresShell* presShell = mDocument->GetShellAt(0);
if (!presShell) {
NS_ERROR("no presshell");
return nsnull;
}
nsIFrame* frame;
presShell->GetPrimaryFrameFor(NS_STATIC_CAST(nsIStyledContent*, this), &frame);
if (!frame) {
NS_ERROR("no frame");
return nsnull;
}
nsISVGTextContentMetrics* metrics;
frame->QueryInterface(NS_GET_IID(nsISVGTextContentMetrics),(void**)&metrics);
NS_ASSERTION(metrics, "wrong frame type");
return metrics;
}

View File

@@ -0,0 +1,352 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ----- BEGIN LICENSE BLOCK -----
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is the Mozilla SVG project.
*
* The Initial Developer of the Original Code is
* Crocodile Clips Ltd..
* Portions created by the Initial Developer are Copyright (C) 2001
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Alex Fritze <alex.fritze@crocodile-clips.com> (original author)
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ----- END LICENSE BLOCK ----- */
#include "nsSVGTransform.h"
#include "prdtoa.h"
#include "nsSVGMatrix.h"
#include "nsSVGAtoms.h"
#include "nsSVGValue.h"
#include "nsIWeakReference.h"
#include "nsSVGMatrix.h"
#include "nsTextFormatter.h"
////////////////////////////////////////////////////////////////////////
// nsSVGTransform 'letter' class
class nsSVGTransform : public nsIDOMSVGTransform,
public nsSVGValue
{
public:
static nsresult Create(nsIDOMSVGTransform** aResult);
protected:
nsSVGTransform();
nsresult Init();
public:
// nsISupports interface:
NS_DECL_ISUPPORTS
// nsIDOMSVGTransform interface:
NS_DECL_NSIDOMSVGTRANSFORM
// nsISVGValue interface:
NS_IMETHOD SetValueString(const nsAString& aValue);
NS_IMETHOD GetValueString(nsAString& aValue);
protected:
nsCOMPtr<nsIDOMSVGMatrix> mMatrix;
float mAngle, mOriginX, mOriginY;
PRUint16 mType;
};
//----------------------------------------------------------------------
// Implementation
nsresult
nsSVGTransform::Create(nsIDOMSVGTransform** aResult)
{
nsSVGTransform *pl = new nsSVGTransform();
NS_ENSURE_TRUE(pl, NS_ERROR_OUT_OF_MEMORY);
NS_ADDREF(pl);
if (NS_FAILED(pl->Init())) {
NS_RELEASE(pl);
return NS_ERROR_FAILURE;
}
*aResult = pl;
return NS_OK;
}
nsSVGTransform::nsSVGTransform()
: mAngle(0.0f),
mOriginX(0.0f),
mOriginY(0.0f),
mType( SVG_TRANSFORM_MATRIX )
{
}
nsresult nsSVGTransform::Init()
{
return nsSVGMatrix::Create(getter_AddRefs(mMatrix));
// XXX register as matrix observer
}
//----------------------------------------------------------------------
// nsISupports methods:
NS_IMPL_ADDREF(nsSVGTransform)
NS_IMPL_RELEASE(nsSVGTransform)
NS_INTERFACE_MAP_BEGIN(nsSVGTransform)
NS_INTERFACE_MAP_ENTRY(nsISVGValue)
NS_INTERFACE_MAP_ENTRY(nsIDOMSVGTransform)
// NS_INTERFACE_MAP_ENTRY(nsISupportsWeakReference)
// NS_INTERFACE_MAP_ENTRY(nsISVGValueObserver)
NS_INTERFACE_MAP_ENTRY_CONTENT_CLASSINFO(SVGTransform)
NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsISVGValue)
NS_INTERFACE_MAP_END
//----------------------------------------------------------------------
// nsISVGValue methods:
NS_IMETHODIMP
nsSVGTransform::SetValueString(const nsAString& aValue)
{
NS_NOTYETIMPLEMENTED("write me!");
return NS_ERROR_UNEXPECTED;
}
NS_IMETHODIMP
nsSVGTransform::GetValueString(nsAString& aValue)
{
aValue.Truncate();
PRUnichar buf[256];
switch (mType) {
case nsIDOMSVGTransform::SVG_TRANSFORM_TRANSLATE:
{
float dx, dy;
mMatrix->GetE(&dx);
mMatrix->GetF(&dy);
if (dy != 0.0f)
nsTextFormatter::snprintf(buf, sizeof(buf)/sizeof(PRUnichar), NS_LITERAL_STRING("translate(%g, %g)").get(), dx, dy);
else
nsTextFormatter::snprintf(buf, sizeof(buf)/sizeof(PRUnichar), NS_LITERAL_STRING("translate(%g)").get(), dx);
}
break;
case nsIDOMSVGTransform::SVG_TRANSFORM_ROTATE:
{
if (mOriginX != 0.0f || mOriginY != 0.0f)
nsTextFormatter::snprintf(buf, sizeof(buf)/sizeof(PRUnichar),
NS_LITERAL_STRING("rotate(%g, %g, %g)").get(),
mAngle, mOriginX, mOriginY);
else
nsTextFormatter::snprintf(buf, sizeof(buf)/sizeof(PRUnichar),
NS_LITERAL_STRING("rotate(%g)").get(), mAngle);
}
break;
case nsIDOMSVGTransform::SVG_TRANSFORM_SCALE:
{
float sx, sy;
mMatrix->GetA(&sx);
mMatrix->GetD(&sy);
if (sy != 0.0f)
nsTextFormatter::snprintf(buf, sizeof(buf)/sizeof(PRUnichar),
NS_LITERAL_STRING("scale(%g, %g)").get(), sx, sy);
else
nsTextFormatter::snprintf(buf, sizeof(buf)/sizeof(PRUnichar),
NS_LITERAL_STRING("scale(%g)").get(), sx);
}
break;
case nsIDOMSVGTransform::SVG_TRANSFORM_SKEWX:
{
nsTextFormatter::snprintf(buf, sizeof(buf)/sizeof(PRUnichar),
NS_LITERAL_STRING("skewX(%g)").get(), mAngle);
}
break;
case nsIDOMSVGTransform::SVG_TRANSFORM_SKEWY:
{
nsTextFormatter::snprintf(buf, sizeof(buf)/sizeof(PRUnichar),
NS_LITERAL_STRING("skewY(%g)").get(), mAngle);
}
break;
default:
buf[0] = '\0';
NS_NOTYETIMPLEMENTED("write me!");
break;
}
aValue.Append(buf);
return NS_OK;
}
//----------------------------------------------------------------------
// nsIDOMSVGTransform methods:
/* readonly attribute unsigned short type; */
NS_IMETHODIMP nsSVGTransform::GetType(PRUint16 *aType)
{
*aType = mType;
return NS_OK;
}
/* readonly attribute nsIDOMSVGMatrix matrix; */
NS_IMETHODIMP nsSVGTransform::GetMatrix(nsIDOMSVGMatrix * *aMatrix)
{
// XXX should we make a copy here? is the matrix supposed to be live
// or not?
*aMatrix = mMatrix;
NS_IF_ADDREF(*aMatrix);
return NS_OK;
}
/* readonly attribute float angle; */
NS_IMETHODIMP nsSVGTransform::GetAngle(float *aAngle)
{
*aAngle = mAngle;
return NS_OK;
}
/* void setMatrix (in nsIDOMSVGMatrix matrix); */
NS_IMETHODIMP nsSVGTransform::SetMatrix(nsIDOMSVGMatrix *matrix)
{
WillModify();
mType = SVG_TRANSFORM_MATRIX;
mAngle = 0.0f;
mOriginX = 0.0f;
mOriginY = 0.0f;
// XXX should we copy the matrix instead of replacing?
mMatrix = matrix;
DidModify();
return NS_OK;
}
/* void setTranslate (in float tx, in float ty); */
NS_IMETHODIMP nsSVGTransform::SetTranslate(float tx, float ty)
{
WillModify();
mType = SVG_TRANSFORM_TRANSLATE;
mAngle = 0.0f;
mOriginX = 0.0f;
mOriginY = 0.0f;
mMatrix->SetA(1.0f);
mMatrix->SetB(0.0f);
mMatrix->SetC(0.0f);
mMatrix->SetD(1.0f);
mMatrix->SetE(tx);
mMatrix->SetF(ty);
DidModify();
return NS_OK;
}
/* void setScale (in float sx, in float sy); */
NS_IMETHODIMP nsSVGTransform::SetScale(float sx, float sy)
{
WillModify();
mType = SVG_TRANSFORM_SCALE;
mAngle = 0.0f;
mOriginX = 0.0f;
mOriginY = 0.0f;
mMatrix->SetA(sx);
mMatrix->SetB(0.0f);
mMatrix->SetC(0.0f);
mMatrix->SetD(sy);
mMatrix->SetE(0.0f);
mMatrix->SetF(0.0f);
DidModify();
return NS_OK;
}
/* void setRotate (in float angle, in float cx, in float cy); */
NS_IMETHODIMP nsSVGTransform::SetRotate(float angle, float cx, float cy)
{
WillModify();
mType = SVG_TRANSFORM_ROTATE;
mAngle = angle;
mOriginX = cx;
mOriginY = cy;
nsSVGMatrix::Create(getter_AddRefs(mMatrix));
nsCOMPtr<nsIDOMSVGMatrix> temp;
mMatrix->Translate(cx, cy, getter_AddRefs(temp));
mMatrix = temp;
mMatrix->Rotate(angle, getter_AddRefs(temp));
mMatrix = temp;
mMatrix->Translate(-cx,-cy, getter_AddRefs(temp));
mMatrix = temp;
DidModify();
return NS_OK;
}
/* void setSkewX (in float angle); */
NS_IMETHODIMP nsSVGTransform::SetSkewX(float angle)
{
WillModify();
mType = SVG_TRANSFORM_SKEWX;
mAngle = angle;
nsSVGMatrix::Create(getter_AddRefs(mMatrix));
nsCOMPtr<nsIDOMSVGMatrix> temp;
mMatrix->SkewX(angle, getter_AddRefs(temp));
mMatrix = temp;
DidModify();
return NS_OK;
}
/* void setSkewY (in float angle); */
NS_IMETHODIMP nsSVGTransform::SetSkewY(float angle)
{
WillModify();
mType = SVG_TRANSFORM_SKEWY;
mAngle = angle;
nsSVGMatrix::Create(getter_AddRefs(mMatrix));
nsCOMPtr<nsIDOMSVGMatrix> temp;
mMatrix->SkewY(angle, getter_AddRefs(temp));
mMatrix = temp;
DidModify();
return NS_OK;
}
////////////////////////////////////////////////////////////////////////
// Exported creation functions:
nsresult
NS_NewSVGTransform(nsIDOMSVGTransform** result)
{
return nsSVGTransform::Create(result);
}

View File

@@ -0,0 +1,507 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ----- BEGIN LICENSE BLOCK -----
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is the Mozilla SVG project.
*
* The Initial Developer of the Original Code is
* Crocodile Clips Ltd..
* Portions created by the Initial Developer are Copyright (C) 2001
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Alex Fritze <alex.fritze@crocodile-clips.com> (original author)
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ----- END LICENSE BLOCK ----- */
#include "nsSVGTransformList.h"
#include "nsSVGTransform.h"
#include "nsSVGMatrix.h"
#include "nsDOMError.h"
#include "prdtoa.h"
#include "nsSVGAtoms.h"
#include "nsReadableUtils.h"
#include "nsCRT.h"
#include "nsCOMArray.h"
nsresult
nsSVGTransformList::Create(const nsAString& aValue,
nsISVGValue** aResult)
{
*aResult = (nsISVGValue*) new nsSVGTransformList();
if(!*aResult) return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(*aResult);
(*aResult)->SetValueString(aValue);
return NS_OK;
}
nsresult
nsSVGTransformList::Create(nsIDOMSVGTransformList** aResult)
{
*aResult = (nsIDOMSVGTransformList*) new nsSVGTransformList();
if(!*aResult) return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(*aResult);
return NS_OK;
}
nsSVGTransformList::nsSVGTransformList()
{
}
nsSVGTransformList::~nsSVGTransformList()
{
ReleaseTransforms();
}
void
nsSVGTransformList::ReleaseTransforms()
{
WillModify();
PRInt32 count = mTransforms.Count();
for (PRInt32 i = 0; i < count; ++i) {
nsIDOMSVGTransform* transform = ElementAt(i);
nsCOMPtr<nsISVGValue> val = do_QueryInterface(transform);
if (val)
val->RemoveObserver(this);
NS_RELEASE(transform);
}
mTransforms.Clear();
DidModify();
}
nsIDOMSVGTransform*
nsSVGTransformList::ElementAt(PRInt32 index)
{
return (nsIDOMSVGTransform*)mTransforms.ElementAt(index);
}
void
nsSVGTransformList::AppendElement(nsIDOMSVGTransform* aElement)
{
WillModify();
NS_ADDREF(aElement);
mTransforms.AppendElement((void*)aElement);
nsCOMPtr<nsISVGValue> val = do_QueryInterface(aElement);
if (val)
val->AddObserver(this);
DidModify();
}
void
nsSVGTransformList::RemoveElementAt(PRInt32 index)
{
WillModify();
nsIDOMSVGTransform* transform = ElementAt(index);
NS_ASSERTION(transform, "null transform");
nsCOMPtr<nsISVGValue> val = do_QueryInterface(transform);
if (val)
val->RemoveObserver(this);
mTransforms.RemoveElementAt(index);
NS_RELEASE(transform);
DidModify();
}
void
nsSVGTransformList::InsertElementAt(nsIDOMSVGTransform* aElement, PRInt32 index)
{
WillModify();
NS_ADDREF(aElement);
mTransforms.InsertElementAt((void*)aElement, index);
nsCOMPtr<nsISVGValue> val = do_QueryInterface(aElement);
if (val)
val->AddObserver(this);
DidModify();
}
//----------------------------------------------------------------------
// XPConnect interface list
NS_CLASSINFO_MAP_BEGIN(SVGTransformList)
NS_CLASSINFO_MAP_ENTRY(nsIDOMSVGTransformList)
NS_CLASSINFO_MAP_END
//----------------------------------------------------------------------
// nsISupports methods:
NS_IMPL_ADDREF(nsSVGTransformList)
NS_IMPL_RELEASE(nsSVGTransformList)
NS_INTERFACE_MAP_BEGIN(nsSVGTransformList)
NS_INTERFACE_MAP_ENTRY(nsISVGValue)
NS_INTERFACE_MAP_ENTRY(nsIDOMSVGTransformList)
NS_INTERFACE_MAP_ENTRY(nsISupportsWeakReference)
NS_INTERFACE_MAP_ENTRY(nsISVGValueObserver)
NS_INTERFACE_MAP_ENTRY_CONTENT_CLASSINFO(SVGTransformList)
NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsISVGValue)
NS_INTERFACE_MAP_END
//----------------------------------------------------------------------
// nsISVGValue methods:
NS_IMETHODIMP
nsSVGTransformList::SetValueString(const nsAString& aValue)
{
// XXX: we don't implement the _exact_ BNF given in the
// specs.
nsresult rv = NS_OK;
char *str = ToNewCString(aValue);
char* rest = str;
char* keyword;
char* args;
const char* delimiters1 = "\x20\x9\xD\xA,(";
const char* delimiters2 = "()";
const char* delimiters3 = "\x20\x9\xD\xA,";
nsCOMArray<nsIDOMSVGTransform> xforms;
while ((keyword = nsCRT::strtok(rest, delimiters1, &rest))) {
while (rest && isspace(*rest))
++rest;
if (!(args = nsCRT::strtok(rest, delimiters2, &rest))) {
rv = NS_ERROR_FAILURE;
break; // parse error
}
nsCOMPtr<nsIDOMSVGTransform> transform;
NS_NewSVGTransform(getter_AddRefs(transform));
if (!transform) {
rv = NS_ERROR_OUT_OF_MEMORY;
break;
}
nsCOMPtr<nsIAtom> keyatom = do_GetAtom(keyword);
if (keyatom == nsSVGAtoms::translate) {
char* arg1 = nsCRT::strtok(args, delimiters3, &args);
if (!arg1) {
rv = NS_ERROR_FAILURE;
break; // parse error
}
char* arg2 = nsCRT::strtok(args, delimiters3, &args);
char* end;
float tx = (float) PR_strtod(arg1, &end);
float ty = arg2 ? (float) PR_strtod(arg2, &end) : 0.0f;
transform->SetTranslate(tx, ty);
}
else if (keyatom == nsSVGAtoms::scale) {
char* arg1 = nsCRT::strtok(args, delimiters3, &args);
if (!arg1) {
rv = NS_ERROR_FAILURE;
break; // parse error
}
char* arg2 = nsCRT::strtok(args, delimiters3, &args);
char* end;
float sx = (float) PR_strtod(arg1, &end);
float sy = arg2 ? (float) PR_strtod(arg2, &end) : sx;
transform->SetScale(sx, sy);
}
else if (keyatom == nsSVGAtoms::rotate) {
char* arg1 = nsCRT::strtok(args, delimiters3, &args);
if (!arg1) {
rv = NS_ERROR_FAILURE;
break; // parse error
}
char* arg2 = nsCRT::strtok(args, delimiters3, &args);
char* arg3 = arg2 ? nsCRT::strtok(args, delimiters3, &args) : nsnull;
if (arg2 && !arg3) {
rv = NS_ERROR_FAILURE;
break; // parse error
}
char* end;
float angle = (float) PR_strtod(arg1, &end);
float cx = arg2 ? (float) PR_strtod(arg2, &end) : 0.0f;
float cy = arg3 ? (float) PR_strtod(arg3, &end) : 0.0f;
transform->SetRotate(angle, cx, cy);
}
else if (keyatom == nsSVGAtoms::skewX) {
char* arg1 = nsCRT::strtok(args, delimiters3, &args);
if (!arg1) {
rv = NS_ERROR_FAILURE;
break; // parse error
}
char* end;
float angle = (float) PR_strtod(arg1, &end);
transform->SetSkewX(angle);
}
else if (keyatom == nsSVGAtoms::skewY) {
char* arg1 = nsCRT::strtok(args, delimiters3, &args);
if (!arg1) {
rv = NS_ERROR_FAILURE;
break; // parse error
}
char* end;
float angle = (float) PR_strtod(arg1, &end);
transform->SetSkewY(angle);
}
else if (keyatom == nsSVGAtoms::matrix) {
char *arg, *end;
arg = nsCRT::strtok(args, delimiters3, &args);
if (!arg) {
rv = NS_ERROR_FAILURE;
break; // parse error
}
float a = (float) PR_strtod(arg, &end);
arg = nsCRT::strtok(args, delimiters3, &args);
if (!arg) {
rv = NS_ERROR_FAILURE;
break; // parse error
}
float b = (float) PR_strtod(arg, &end);
arg = nsCRT::strtok(args, delimiters3, &args);
if (!arg) {
rv = NS_ERROR_FAILURE;
break; // parse error
}
float c = (float) PR_strtod(arg, &end);
arg = nsCRT::strtok(args, delimiters3, &args);
if (!arg) {
rv = NS_ERROR_FAILURE;
break; // parse error
}
float d = (float) PR_strtod(arg, &end);
arg = nsCRT::strtok(args, delimiters3, &args);
if (!arg) {
rv = NS_ERROR_FAILURE;
break; // parse error
}
float e = (float) PR_strtod(arg, &end);
arg = nsCRT::strtok(args, delimiters3, &args);
if (!arg) {
rv = NS_ERROR_FAILURE;
break; // parse error
}
float f = (float) PR_strtod(arg, &end);
nsCOMPtr<nsIDOMSVGMatrix> matrix;
nsSVGMatrix::Create(getter_AddRefs(matrix),
a, b, c, d, e, f);
NS_ASSERTION(matrix, "couldn't create matrix");
transform->SetMatrix(matrix);
}
else { // parse error
rv = NS_ERROR_FAILURE;
break;
}
xforms.AppendObject(transform);
}
if (keyword || NS_FAILED(rv)) {
// there was a parse error.
rv = NS_ERROR_FAILURE;
NS_ERROR("transform-attribute parse error");
}
else {
WillModify();
ReleaseTransforms();
PRInt32 count = xforms.Count();
for (PRInt32 i=0; i<count; ++i) {
AppendElement(xforms.ObjectAt(i));
}
DidModify();
}
nsMemory::Free(str);
return rv;
}
NS_IMETHODIMP
nsSVGTransformList::GetValueString(nsAString& aValue)
{
aValue.Truncate();
PRInt32 count = mTransforms.Count();
if (count<=0) return NS_OK;
PRInt32 i = 0;
while (1) {
nsIDOMSVGTransform* transform = ElementAt(i);
nsCOMPtr<nsISVGValue> val = do_QueryInterface(transform);
nsAutoString str;
val->GetValueString(str);
aValue.Append(str);
if (++i >= count) break;
aValue.Append(NS_LITERAL_STRING(" "));
}
return NS_OK;
}
//----------------------------------------------------------------------
// nsIDOMSVGTransformList methods:
/* readonly attribute unsigned long numberOfItems; */
NS_IMETHODIMP nsSVGTransformList::GetNumberOfItems(PRUint32 *aNumberOfItems)
{
*aNumberOfItems = mTransforms.Count();
return NS_OK;
}
/* void clear (); */
NS_IMETHODIMP nsSVGTransformList::Clear()
{
WillModify();
ReleaseTransforms();
DidModify();
return NS_OK;
}
/* nsIDOMSVGTransform initialize (in nsIDOMSVGTransform newItem); */
NS_IMETHODIMP nsSVGTransformList::Initialize(nsIDOMSVGTransform *newItem, nsIDOMSVGTransform **_retval)
{
Clear();
return AppendItem(newItem, _retval);
}
/* nsIDOMSVGTransform getItem (in unsigned long index); */
NS_IMETHODIMP nsSVGTransformList::GetItem(PRUint32 index, nsIDOMSVGTransform **_retval)
{
if ((PRInt32)index >= mTransforms.Count()) {
*_retval = nsnull;
return NS_ERROR_DOM_INDEX_SIZE_ERR;
}
*_retval = ElementAt(index);
NS_ADDREF(*_retval);
return NS_OK;
}
/* nsIDOMSVGTransform insertItemBefore (in nsIDOMSVGTransform newItem, in unsigned long index); */
NS_IMETHODIMP nsSVGTransformList::InsertItemBefore(nsIDOMSVGTransform *newItem, PRUint32 index, nsIDOMSVGTransform **_retval)
{
NS_NOTYETIMPLEMENTED("write me");
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIDOMSVGTransform replaceItem (in nsIDOMSVGTransform newItem, in unsigned long index); */
NS_IMETHODIMP nsSVGTransformList::ReplaceItem(nsIDOMSVGTransform *newItem, PRUint32 index, nsIDOMSVGTransform **_retval)
{
NS_NOTYETIMPLEMENTED("write me");
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIDOMSVGTransform removeItem (in unsigned long index); */
NS_IMETHODIMP nsSVGTransformList::RemoveItem(PRUint32 index, nsIDOMSVGTransform **_retval)
{
if ((PRInt32)index >= mTransforms.Count()) {
*_retval = nsnull;
return NS_ERROR_DOM_INDEX_SIZE_ERR;
}
*_retval = ElementAt(index);
NS_ADDREF(*_retval);
WillModify();
RemoveElementAt(index);
DidModify();
return NS_OK;
}
/* nsIDOMSVGTransform appendItem (in nsIDOMSVGTransform newItem); */
NS_IMETHODIMP nsSVGTransformList::AppendItem(nsIDOMSVGTransform *newItem, nsIDOMSVGTransform **_retval)
{
// XXX The SVG specs state that 'if newItem is already in a list, it
// is removed from its previous list before it is inserted into this
// list'. We don't do that. Should we?
*_retval = newItem;
NS_ADDREF(*_retval);
AppendElement(newItem);
return NS_OK;
}
/* nsIDOMSVGTransform createSVGTransformFromMatrix (in nsIDOMSVGMatrix matrix); */
NS_IMETHODIMP
nsSVGTransformList::CreateSVGTransformFromMatrix(nsIDOMSVGMatrix *matrix,
nsIDOMSVGTransform **_retval)
{
NS_NOTYETIMPLEMENTED("write me!");
return NS_ERROR_UNEXPECTED;
}
/* nsIDOMSVGTransform consolidate (); */
NS_IMETHODIMP nsSVGTransformList::Consolidate(nsIDOMSVGTransform **_retval)
{
NS_NOTYETIMPLEMENTED("write me!");
return NS_ERROR_UNEXPECTED;
}
/* nsIDOMSVGMatrix getConsolidation (); */
NS_IMETHODIMP nsSVGTransformList::GetConsolidation(nsIDOMSVGMatrix **_retval)
{
PRInt32 count = mTransforms.Count();
nsCOMPtr<nsIDOMSVGMatrix> consolidation;
nsSVGMatrix::Create(getter_AddRefs(consolidation));
for (PRInt32 i = 0; i < count; ++i) {
nsIDOMSVGTransform* transform = ElementAt(i);
nsCOMPtr<nsIDOMSVGMatrix> matrix;
transform->GetMatrix(getter_AddRefs(matrix));
nsCOMPtr<nsIDOMSVGMatrix> temp;
consolidation->Multiply(matrix, getter_AddRefs(temp));
consolidation = temp;
}
*_retval = consolidation;
NS_ADDREF(*_retval);
return NS_OK;
}
//----------------------------------------------------------------------
// nsISVGValueObserver methods
NS_IMETHODIMP
nsSVGTransformList::WillModifySVGObservable(nsISVGValue* observable)
{
WillModify();
return NS_OK;
}
NS_IMETHODIMP
nsSVGTransformList::DidModifySVGObservable (nsISVGValue* observable)
{
DidModify();
return NS_OK;
}

View File

@@ -0,0 +1,49 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ----- BEGIN LICENSE BLOCK -----
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is the Mozilla SVG project.
*
* The Initial Developer of the Original Code is
* Crocodile Clips Ltd..
* Portions created by the Initial Developer are Copyright (C) 2001
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Alex Fritze <alex.fritze@crocodile-clips.com> (original author)
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ----- END LICENSE BLOCK ----- */
#ifndef __NS_SVGTYPECIDS_H__
#define __NS_SVGTYPECIDS_H__
// {AAD39B18-B9D3-45E1-B5A6-80C0EB12B23E}
#define NS_SVGRECT_CID \
{ 0xaad39b18, 0xb9d3, 0x45e1, { 0xb5, 0xa6, 0x80, 0xc0, 0xeb, 0x12, 0xb2, 0x3e } }
#define NS_SVGRECT_CONTRACTID \
"@mozilla.org/svg/rect;1"
#endif // __NS_SVGTYPECIDS_H__

View File

@@ -0,0 +1,131 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ----- BEGIN LICENSE BLOCK -----
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is the Mozilla SVG project.
*
* The Initial Developer of the Original Code is
* Crocodile Clips Ltd..
* Portions created by the Initial Developer are Copyright (C) 2001
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Alex Fritze <alex.fritze@crocodile-clips.com> (original author)
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ----- END LICENSE BLOCK ----- */
#include "nsSVGValue.h"
#include "nsIWeakReference.h"
nsSVGValue::nsSVGValue()
: mModifyNestCount(0)
{
}
nsSVGValue::~nsSVGValue()
{
ReleaseObservers();
}
void
nsSVGValue::ReleaseObservers()
{
PRInt32 count = mObservers.Count();
PRInt32 i;
for (i = 0; i < count; ++i) {
nsIWeakReference* wr = NS_STATIC_CAST(nsIWeakReference*,mObservers.ElementAt(i));
NS_RELEASE(wr);
}
while (i)
mObservers.RemoveElementAt(--i);
}
void
nsSVGValue::NotifyObservers(SVGObserverNotifyFunction f)
{
PRInt32 count = mObservers.Count();
for (PRInt32 i = 0; i < count; ++i) {
nsIWeakReference* wr = NS_STATIC_CAST(nsIWeakReference*,mObservers.ElementAt(i));
nsCOMPtr<nsISVGValueObserver> observer = do_QueryReferent(wr);
if(observer)
(NS_STATIC_CAST(nsISVGValueObserver*,observer)->*f)(this);
}
}
void
nsSVGValue::WillModify()
{
if (++mModifyNestCount == 1)
NotifyObservers(&nsISVGValueObserver::WillModifySVGObservable);
}
void
nsSVGValue::DidModify()
{
NS_ASSERTION(mModifyNestCount>0, "unbalanced Will/DidModify calls");
if (--mModifyNestCount == 0) {
OnDidModify();
NotifyObservers(&nsISVGValueObserver::DidModifySVGObservable);
}
}
NS_IMETHODIMP
nsSVGValue::AddObserver(nsISVGValueObserver* observer)
{
nsIWeakReference* wr = NS_GetWeakReference(observer);
if (!wr) return NS_ERROR_FAILURE;
mObservers.AppendElement((void*)wr);
return NS_OK;
}
NS_IMETHODIMP
nsSVGValue::RemoveObserver(nsISVGValueObserver* observer)
{
nsCOMPtr<nsIWeakReference> wr = do_GetWeakReference(observer);
if (!wr) return NS_ERROR_FAILURE;
PRInt32 i = mObservers.IndexOf((void*)wr);
if (i<0) return NS_ERROR_FAILURE;
nsIWeakReference* wr2 = NS_STATIC_CAST(nsIWeakReference*,mObservers.ElementAt(i));
NS_RELEASE(wr2);
mObservers.RemoveElementAt(i);
return NS_OK;
}
NS_IMETHODIMP
nsSVGValue::BeginBatchUpdate()
{
WillModify();
return NS_OK;
}
NS_IMETHODIMP
nsSVGValue::EndBatchUpdate()
{
DidModify();
return NS_OK;
}

View File

@@ -0,0 +1,84 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ----- BEGIN LICENSE BLOCK -----
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is the Mozilla SVG project.
*
* The Initial Developer of the Original Code is
* Crocodile Clips Ltd..
* Portions created by the Initial Developer are Copyright (C) 2001
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Alex Fritze <alex.fritze@crocodile-clips.com> (original author)
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ----- END LICENSE BLOCK ----- */
#ifndef __NS_SVGVALUE_H__
#define __NS_SVGVALUE_H__
#include "nscore.h"
#include "nsISVGValue.h"
#include "nsGenericElement.h" // for nsSmallVoidArray
#include "nsISVGValueObserver.h"
class nsSVGValue : public nsISVGValue
{
protected:
nsSVGValue();
virtual ~nsSVGValue();
// to be called by subclass whenever value is being modified.
// nested calls will be ignored, so calls need to be balanced
void WillModify();
void DidModify();
public:
// Partial Implementation of nsISVGValue interface:
NS_IMETHOD AddObserver(nsISVGValueObserver* observer);
NS_IMETHOD RemoveObserver(nsISVGValueObserver* observer);
NS_IMETHOD BeginBatchUpdate();
NS_IMETHOD EndBatchUpdate();
typedef
NS_STDCALL_FUNCPROTO(nsresult,
SVGObserverNotifyFunction,
nsISVGValueObserver, DidModifySVGObservable,
(nsISVGValue*));
protected:
// implementation helpers
void ReleaseObservers();
void NotifyObservers(SVGObserverNotifyFunction f);
PRInt32 GetModifyNestCount() { return mModifyNestCount; }
private:
virtual void OnDidModify(){}; // hook that will be called before observers are notified
nsSmallVoidArray mObservers;
PRInt32 mModifyNestCount;
};
#endif //__NS_SVGVALUE_H__

View File

@@ -0,0 +1,504 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ----- BEGIN LICENSE BLOCK -----
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is the Mozilla SVG project.
*
* The Initial Developer of the Original Code is
* Crocodile Clips Ltd..
* Portions created by the Initial Developer are Copyright (C) 2002
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Alex Fritze <alex.fritze@crocodile-clips.com> (original author)
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ----- END LICENSE BLOCK ----- */
#include "nsISVGViewportAxis.h"
#include "nsCOMPtr.h"
#include "nsWeakReference.h"
#include "nsISVGViewportRect.h"
#include "nsSVGNumber.h"
#include "nsISVGValue.h"
#include "nsSVGValue.h"
#include "nsISVGValueObserver.h"
#include "nsISVGValueUtils.h"
#include "nsDOMError.h"
#include <math.h>
////////////////////////////////////////////////////////////////////////
// nsSVGViewportAxis : helper class implementing nsISVGViewportAxis
class nsSVGViewportAxis : public nsISVGViewportAxis
// ,public nsISVGValueObserver,
// public nsSupportsWeakReference
{
protected:
friend nsresult NS_NewSVGViewportAxis(nsISVGViewportAxis **result,
nsIDOMSVGNumber* scale,
nsIDOMSVGNumber* length);
nsSVGViewportAxis();
nsresult Init(nsIDOMSVGNumber* scale, nsIDOMSVGNumber* length);
public:
// nsISupports interface:
NS_DECL_ISUPPORTS
// nsISVGViewportAxis methods:
NS_IMETHOD GetMillimeterPerPixel(nsIDOMSVGNumber **scale);
NS_IMETHOD GetLength(nsIDOMSVGNumber **length);
// nsISVGValueObserver
// NS_IMETHOD WillModifySVGObservable(nsISVGValue* observable);
// NS_IMETHOD DidModifySVGObservable (nsISVGValue* observable);
// nsISupportsWeakReference
// implementation inherited from nsSupportsWeakReference
private:
nsCOMPtr<nsIDOMSVGNumber> mScale;
nsCOMPtr<nsIDOMSVGNumber> mLength;
};
//----------------------------------------------------------------------
// Implementation
nsresult
NS_NewSVGViewportAxis(nsISVGViewportAxis **result, nsIDOMSVGNumber* scale,
nsIDOMSVGNumber* length)
{
*result = nsnull;
nsSVGViewportAxis *va = new nsSVGViewportAxis();
NS_ENSURE_TRUE(va, NS_ERROR_OUT_OF_MEMORY);
NS_ADDREF(va);
nsresult rv = va->Init(scale, length);
if (NS_FAILED(rv)) {
NS_RELEASE(va);
return rv;
}
*result = va;
return rv;
}
nsSVGViewportAxis::nsSVGViewportAxis()
{
}
nsresult
nsSVGViewportAxis::Init(nsIDOMSVGNumber* scale,
nsIDOMSVGNumber* length)
{
mScale = scale;
mLength = length;
return NS_OK;
}
//----------------------------------------------------------------------
// nsISupports methods:
NS_IMPL_ADDREF(nsSVGViewportAxis)
NS_IMPL_RELEASE(nsSVGViewportAxis)
NS_INTERFACE_MAP_BEGIN(nsSVGViewportAxis)
NS_INTERFACE_MAP_ENTRY(nsISVGViewportAxis)
// NS_INTERFACE_MAP_ENTRY(nsISupportsWeakReference)
// NS_INTERFACE_MAP_ENTRY(nsISVGValueObserver)
NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsISVGViewportAxis)
NS_INTERFACE_MAP_END
//----------------------------------------------------------------------
// nsISVGViewportAxis methods:
NS_IMETHODIMP
nsSVGViewportAxis::GetMillimeterPerPixel(nsIDOMSVGNumber **scale)
{
*scale = mScale;
NS_ADDREF(*scale);
return NS_OK;
}
NS_IMETHODIMP
nsSVGViewportAxis::GetLength(nsIDOMSVGNumber **length)
{
*length = mLength;
NS_ADDREF(*length);
return NS_OK;
}
//----------------------------------------------------------------------
// nsISVGValueObserver methods
// NS_IMETHODIMP
// nsSVGViewportAxis::WillModifySVGObservable(nsISVGValue* observable)
// {
// return NS_OK;
// }
// NS_IMETHODIMP
// nsSVGViewportAxis::DidModifySVGObservable(nsISVGValue* observable)
// {
// // we only listen in on changes to the length
// UpdateLength();
// return NS_OK;
// }
////////////////////////////////////////////////////////////////////////
// nsSVGViewportRect
class nsSVGViewportRect : public nsISVGViewportRect,
public nsSVGValue,
public nsISVGValueObserver,
public nsSupportsWeakReference
{
protected:
friend nsresult
NS_NewSVGViewportRect(nsISVGViewportRect **result,
nsIDOMSVGNumber* scalex,
nsIDOMSVGNumber* scaley,
nsIDOMSVGNumber* lengthx,
nsIDOMSVGNumber* lengthy);
nsSVGViewportRect();
~nsSVGViewportRect();
nsresult Init(nsIDOMSVGNumber* scalex,
nsIDOMSVGNumber* scaley,
nsIDOMSVGNumber* lengthx,
nsIDOMSVGNumber* lengthy);
public:
// nsISupports interface:
NS_DECL_ISUPPORTS
// nsISVGViewportRect interface:
NS_IMETHOD GetXAxis(nsISVGViewportAxis **xaxis);
NS_IMETHOD GetYAxis(nsISVGViewportAxis **yaxis);
NS_IMETHOD GetUnspecifiedAxis(nsISVGViewportAxis **axis);
// nsIDOMSVGRect interface:
NS_DECL_NSIDOMSVGRECT
// nsISVGValue interface:
NS_IMETHOD SetValueString(const nsAString& aValue);
NS_IMETHOD GetValueString(nsAString& aValue);
// nsISVGValueObserver interface:
NS_IMETHOD WillModifySVGObservable(nsISVGValue* observable);
NS_IMETHOD DidModifySVGObservable (nsISVGValue* observable);
// nsISupportsWeakReference
// implementation inherited from nsSupportsWeakReference
protected:
void UpdateGenericAxisScale();
void UpdateGenericAxisLength();
private:
virtual void OnDidModify();
nsCOMPtr<nsISVGViewportAxis> mAxisX;
nsCOMPtr<nsISVGViewportAxis> mAxisY;
nsCOMPtr<nsISVGViewportAxis> mAxisUnspecified;
};
//----------------------------------------------------------------------
// implementation:
nsresult
NS_NewSVGViewportRect(nsISVGViewportRect **result,
nsIDOMSVGNumber* scalex,
nsIDOMSVGNumber* scaley,
nsIDOMSVGNumber* lengthx,
nsIDOMSVGNumber* lengthy)
{
*result = nsnull;
nsSVGViewportRect *vr = new nsSVGViewportRect();
if (!vr) return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(vr);
nsresult rv = vr->Init(scalex, scaley, lengthx, lengthy);
if (NS_FAILED(rv)) {
NS_RELEASE(vr);
return rv;
}
*result = vr;
return NS_OK;
}
nsSVGViewportRect::nsSVGViewportRect()
{
}
nsSVGViewportRect::~nsSVGViewportRect()
{
if (mAxisX) {
nsCOMPtr<nsIDOMSVGNumber> l;
mAxisX->GetLength(getter_AddRefs(l));
NS_REMOVE_SVGVALUE_OBSERVER(l);
nsCOMPtr<nsIDOMSVGNumber> s;
mAxisX->GetMillimeterPerPixel(getter_AddRefs(s));
NS_REMOVE_SVGVALUE_OBSERVER(s);
}
if (mAxisY) {
nsCOMPtr<nsIDOMSVGNumber> l;
mAxisY->GetLength(getter_AddRefs(l));
NS_REMOVE_SVGVALUE_OBSERVER(l);
nsCOMPtr<nsIDOMSVGNumber> s;
mAxisY->GetMillimeterPerPixel(getter_AddRefs(s));
NS_REMOVE_SVGVALUE_OBSERVER(s);
}
}
nsresult
nsSVGViewportRect::Init(nsIDOMSVGNumber* scalex, nsIDOMSVGNumber* scaley,
nsIDOMSVGNumber* lengthx, nsIDOMSVGNumber* lengthy)
{
nsresult rv;
rv = NS_NewSVGViewportAxis(getter_AddRefs(mAxisX), scalex,lengthx);
NS_ENSURE_SUCCESS(rv,rv);
rv = NS_NewSVGViewportAxis(getter_AddRefs(mAxisY), scaley,lengthy);
NS_ENSURE_SUCCESS(rv,rv);
{
nsCOMPtr<nsIDOMSVGNumber> sqrt_scale;
rv = NS_NewSVGNumber(getter_AddRefs(sqrt_scale));
NS_ENSURE_SUCCESS(rv,rv);
nsCOMPtr<nsIDOMSVGNumber> sqrt_length;
rv = NS_NewSVGNumber(getter_AddRefs(sqrt_length));
NS_ENSURE_SUCCESS(rv,rv);
rv = NS_NewSVGViewportAxis(getter_AddRefs(mAxisUnspecified),
sqrt_scale,sqrt_length);
NS_ENSURE_SUCCESS(rv,rv);
UpdateGenericAxisScale();
UpdateGenericAxisLength();
}
NS_ADD_SVGVALUE_OBSERVER(scalex);
NS_ADD_SVGVALUE_OBSERVER(scaley);
NS_ADD_SVGVALUE_OBSERVER(lengthx);
NS_ADD_SVGVALUE_OBSERVER(lengthy);
return rv;
}
//----------------------------------------------------------------------
// nsISupports methods:
NS_IMPL_ADDREF(nsSVGViewportRect)
NS_IMPL_RELEASE(nsSVGViewportRect)
NS_INTERFACE_MAP_BEGIN(nsSVGViewportRect)
NS_INTERFACE_MAP_ENTRY(nsISVGValue)
NS_INTERFACE_MAP_ENTRY(nsIDOMSVGRect)
NS_INTERFACE_MAP_ENTRY(nsISVGViewportRect)
NS_INTERFACE_MAP_ENTRY(nsISVGValueObserver)
NS_INTERFACE_MAP_ENTRY(nsISupportsWeakReference)
NS_INTERFACE_MAP_ENTRY_CONTENT_CLASSINFO(SVGRect)
NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsISVGValue)
NS_INTERFACE_MAP_END
//----------------------------------------------------------------------
// nsISVGViewportRect methods:
NS_IMETHODIMP
nsSVGViewportRect::GetXAxis(nsISVGViewportAxis **xaxis)
{
*xaxis = mAxisX;
NS_ADDREF(*xaxis);
return NS_OK;
}
NS_IMETHODIMP
nsSVGViewportRect::GetYAxis(nsISVGViewportAxis **yaxis)
{
*yaxis = mAxisY;
NS_ADDREF(*yaxis);
return NS_OK;
}
NS_IMETHODIMP
nsSVGViewportRect::GetUnspecifiedAxis(nsISVGViewportAxis **axis)
{
*axis = mAxisUnspecified;
NS_ADDREF(*axis);
return NS_OK;
}
//----------------------------------------------------------------------
// nsIDOMSVGRect methods:
/* attribute float x; */
NS_IMETHODIMP
nsSVGViewportRect::GetX(float *aX)
{
*aX = 0.0f;
return NS_OK;
}
NS_IMETHODIMP
nsSVGViewportRect::SetX(float aX)
{
return NS_ERROR_DOM_NO_MODIFICATION_ALLOWED_ERR; // XXX return different error
}
/* attribute float y; */
NS_IMETHODIMP
nsSVGViewportRect::GetY(float *aY)
{
*aY = 0.0f;
return NS_OK;
}
NS_IMETHODIMP
nsSVGViewportRect::SetY(float aY)
{
return NS_ERROR_DOM_NO_MODIFICATION_ALLOWED_ERR;
}
/* attribute float width; */
NS_IMETHODIMP
nsSVGViewportRect::GetWidth(float *aWidth)
{
nsCOMPtr<nsIDOMSVGNumber> l;
mAxisX->GetLength(getter_AddRefs(l));
return l->GetValue(aWidth);
}
NS_IMETHODIMP
nsSVGViewportRect::SetWidth(float aWidth)
{
return NS_ERROR_DOM_NO_MODIFICATION_ALLOWED_ERR;
}
/* attribute float height; */
NS_IMETHODIMP
nsSVGViewportRect::GetHeight(float *aHeight)
{
nsCOMPtr<nsIDOMSVGNumber> l;
mAxisY->GetLength(getter_AddRefs(l));
return l->GetValue(aHeight);
}
NS_IMETHODIMP
nsSVGViewportRect::SetHeight(float aHeight)
{
return NS_ERROR_DOM_NO_MODIFICATION_ALLOWED_ERR;
}
//----------------------------------------------------------------------
// nsISVGValue methods:
NS_IMETHODIMP
nsSVGViewportRect::SetValueString(const nsAString& aValue)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsSVGViewportRect::GetValueString(nsAString& aValue)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
//----------------------------------------------------------------------
// nsISVGValueObserver methods:
NS_IMETHODIMP
nsSVGViewportRect::WillModifySVGObservable(nsISVGValue* observable)
{
WillModify();
return NS_OK;
}
NS_IMETHODIMP
nsSVGViewportRect::DidModifySVGObservable (nsISVGValue* observable)
{
DidModify();
return NS_OK;
}
//----------------------------------------------------------------------
// helpers:
void nsSVGViewportRect::UpdateGenericAxisLength()
{
float x;
{
nsCOMPtr<nsIDOMSVGNumber> l_x;
mAxisX->GetLength(getter_AddRefs(l_x));
l_x->GetValue(&x);
}
float y;
{
nsCOMPtr<nsIDOMSVGNumber> l_y;
mAxisY->GetLength(getter_AddRefs(l_y));
l_y->GetValue(&y);
}
nsCOMPtr<nsIDOMSVGNumber> l_sqrt;
mAxisUnspecified->GetLength (getter_AddRefs(l_sqrt));
l_sqrt->SetValue((float)sqrt((x*x + y*y)/2.0f));
}
void nsSVGViewportRect::UpdateGenericAxisScale()
{
float x;
{
nsCOMPtr<nsIDOMSVGNumber> s_x;
mAxisX->GetMillimeterPerPixel(getter_AddRefs(s_x));
s_x->GetValue(&x);
}
float y;
{
nsCOMPtr<nsIDOMSVGNumber> s_y;
mAxisY->GetMillimeterPerPixel(getter_AddRefs(s_y));
s_y->GetValue(&y);
}
nsCOMPtr<nsIDOMSVGNumber> s_sqrt;
mAxisUnspecified->GetMillimeterPerPixel(getter_AddRefs(s_sqrt));
s_sqrt->SetValue((float)sqrt(x*x + y*y));
}
void nsSVGViewportRect::OnDidModify()
{
UpdateGenericAxisLength();
UpdateGenericAxisScale();
}

View File

@@ -0,0 +1,158 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ----- BEGIN LICENSE BLOCK -----
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is the Mozilla SVG project.
*
* The Initial Developer of the Original Code is
* Bradley Baetz.
* Portions created by the Initial Developer are Copyright (C) 2001
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Bradley Baetz <bbaetz@cs.mcgill.ca> (original author)
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ----- END LICENSE BLOCK ----- */
#include "nsSVGDocument.h"
#include "nsIDOMClassInfo.h"
#include "nsContentUtils.h"
#include "nsIHttpChannel.h"
#include "nsString.h"
#include "nsLiteralString.h"
#include "nsReadableUtils.h"
NS_INTERFACE_MAP_BEGIN(nsSVGDocument)
NS_INTERFACE_MAP_ENTRY(nsIDOMSVGDocument)
NS_INTERFACE_MAP_ENTRY(nsIDOMDocumentEvent)
NS_INTERFACE_MAP_ENTRY_CONTENT_CLASSINFO(SVGDocument)
NS_INTERFACE_MAP_END_INHERITING(nsXMLDocument)
NS_IMPL_ADDREF_INHERITED(nsSVGDocument, nsXMLDocument)
NS_IMPL_RELEASE_INHERITED(nsSVGDocument, nsXMLDocument)
nsSVGDocument::nsSVGDocument() {
}
nsSVGDocument::~nsSVGDocument() {
}
nsresult
nsSVGDocument::StartDocumentLoad(const char* aCommand,
nsIChannel* aChannel,
nsILoadGroup* aLoadGroup,
nsISupports* aContainer,
nsIStreamListener **aDocListener,
PRBool aReset,
nsIContentSink* aSink) {
nsresult rv = nsXMLDocument::StartDocumentLoad(aCommand,
aChannel,
aLoadGroup,
aContainer,
aDocListener,
aReset,
aSink);
if (NS_FAILED(rv)) return rv;
nsCOMPtr<nsIHttpChannel> httpChannel = do_QueryInterface(aChannel);
if (httpChannel) {
nsCAutoString referrer;
rv = httpChannel->GetResponseHeader(NS_LITERAL_CSTRING("referrer"), referrer);
if (NS_SUCCEEDED(rv)) {
CopyUTF8toUTF16(referrer, mReferrer);
}
}
return NS_OK;
}
// nsIDOMSVGDocument
NS_IMETHODIMP
nsSVGDocument::GetTitle(nsAString& aTitle) {
return nsXMLDocument::GetTitle(aTitle);
}
NS_IMETHODIMP
nsSVGDocument::GetReferrer(nsAString& aReferrer) {
aReferrer.Assign(mReferrer);
return NS_OK;
}
NS_IMETHODIMP
nsSVGDocument::GetDomain(nsAString& aDomain) {
nsCAutoString domain;
if (mDocumentURI) {
nsresult rv = mDocumentURI->GetHost(domain);
if (NS_FAILED(rv)) return rv;
}
CopyUTF8toUTF16(domain, aDomain);
return NS_OK;
}
NS_IMETHODIMP
nsSVGDocument::GetURL(nsAString& aURL) {
nsCAutoString url;
if (mDocumentURI) {
nsresult rv = mDocumentURI->GetSpec(url);
if (NS_FAILED(rv)) return rv;
}
CopyUTF8toUTF16(url, aURL);
return NS_OK;
}
NS_IMETHODIMP
nsSVGDocument::GetRootElement(nsIDOMSVGSVGElement** aRootElement) {
NS_NOTYETIMPLEMENTED("nsSVGDocument::GetRootElement");
// XXX - writeme
return NS_ERROR_NOT_IMPLEMENTED;
}
nsresult
NS_NewSVGDocument(nsIDocument** aInstancePtrResult)
{
nsSVGDocument* doc = new nsSVGDocument();
NS_ENSURE_TRUE(doc, NS_ERROR_OUT_OF_MEMORY);
NS_ADDREF(doc);
nsresult rv = doc->Init();
if (NS_FAILED(rv)) {
NS_RELEASE(doc);
return rv;
}
*aInstancePtrResult = doc;
return rv;
}

View File

@@ -0,0 +1,74 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ----- BEGIN LICENSE BLOCK -----
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is the Mozilla SVG project.
*
* The Initial Developer of the Original Code is
* Bradley Baetz.
* Portions created by the Initial Developer are Copyright (C) 2001
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Bradley Baetz <bbaetz@cs.mcgill.ca> (original author)
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ----- END LICENSE BLOCK ----- */
#ifndef nsSVGDocument_h__
#define nsSVGDocument_h__
#include "nsXMLDocument.h"
#include "nsIDOMSVGDocument.h"
#include "nsString.h"
#include "nsIURI.h"
class nsSVGDocument : public nsXMLDocument,
public nsIDOMSVGDocument
{
public:
nsSVGDocument();
virtual ~nsSVGDocument();
// Most methods will just fall through to the XMLDocument
virtual nsresult StartDocumentLoad(const char* aCommand,
nsIChannel* aChannel,
nsILoadGroup* aLoadGroup,
nsISupports* aContainer,
nsIStreamListener **aDocListener,
PRBool aReset = PR_TRUE,
nsIContentSink* aSink = nsnull);
NS_DECL_NSIDOMSVGDOCUMENT
NS_FORWARD_NSIDOMDOCUMENT(nsXMLDocument::)
NS_FORWARD_NSIDOMNODE(nsXMLDocument::)
NS_FORWARD_NSIDOMDOCUMENTEVENT(nsXMLDocument::)
NS_DECL_ISUPPORTS_INHERITED
protected:
nsString mReferrer;
};
#endif

View File

@@ -0,0 +1,80 @@
#!nmake
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is Crocodile Clips Ltd code.
#
# The Initial Developer of the Original Code is
# Crocodile Clips Ltd. Portions created by Crocodile Clips are
# Copyright (C) 2001 Crocodile Clips Ltd. All
# Rights Reserved.
DEPTH = ../../../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
MODULE = dom
XPIDL_MODULE = dom_svg
XPIDLSRCS = \
nsIDOMSVGAnimatedEnum.idl \
nsIDOMSVGAnimatedLength.idl \
nsIDOMSVGAnimatedLengthList.idl \
nsIDOMSVGAnimatedNumberList.idl \
nsIDOMSVGAnimatedPathData.idl \
nsIDOMSVGAnimatedPoints.idl \
nsIDOMSVGAnimatedString.idl \
nsIDOMSVGAnimPresAspRatio.idl \
nsIDOMSVGAnimatedRect.idl \
nsIDOMSVGAnimTransformList.idl \
nsIDOMSVGCircleElement.idl \
nsIDOMSVGDocument.idl \
nsIDOMSVGElement.idl \
nsIDOMSVGEllipseElement.idl \
nsIDOMSVGFitToViewBox.idl \
nsIDOMSVGForeignObjectElem.idl \
nsIDOMSVGGElement.idl \
nsIDOMSVGImageElement.idl \
nsIDOMSVGLength.idl \
nsIDOMSVGLengthList.idl \
nsIDOMSVGLineElement.idl \
nsIDOMSVGLocatable.idl \
nsIDOMSVGMatrix.idl \
nsIDOMSVGNumber.idl \
nsIDOMSVGNumberList.idl \
nsIDOMSVGPathElement.idl \
nsIDOMSVGPathSeg.idl \
nsIDOMSVGPathSegList.idl \
nsIDOMSVGPoint.idl \
nsIDOMSVGPointList.idl \
nsIDOMSVGPolygonElement.idl \
nsIDOMSVGPolylineElement.idl \
nsIDOMSVGPresAspectRatio.idl \
nsIDOMSVGRect.idl \
nsIDOMSVGRectElement.idl \
nsIDOMSVGSVGElement.idl \
nsIDOMSVGStylable.idl \
nsIDOMSVGTextContentElement.idl \
nsIDOMSVGTextElement.idl \
nsIDOMSVGTextPositionElem.idl \
nsIDOMSVGTransform.idl \
nsIDOMSVGTransformList.idl \
nsIDOMSVGTransformable.idl \
nsIDOMSVGTSpanElement.idl \
nsIDOMSVGURIReference.idl \
$(NULL)
include $(topsrcdir)/config/rules.mk

View File

@@ -0,0 +1,48 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ----- BEGIN LICENSE BLOCK -----
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is the Mozilla SVG project.
*
* The Initial Developer of the Original Code is
* Crocodile Clips Ltd..
* Portions created by the Initial Developer are Copyright (C) 2003
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Alex Fritze <alex.fritze@crocodile-clips.com> (original author)
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ----- END LICENSE BLOCK ----- */
#include "domstubs.idl"
[scriptable, uuid(36f18f12-61a9-4529-8fa9-30050bd6ac00)]
interface nsIDOMSVGAnimatedString
: nsISupports
{
attribute DOMString baseVal;
// raises DOMException on setting
readonly attribute DOMString animVal;
};

View File

@@ -0,0 +1,68 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ----- BEGIN LICENSE BLOCK -----
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is the Mozilla SVG project.
*
* The Initial Developer of the Original Code is
* Crocodile Clips Ltd..
* Portions created by the Initial Developer are Copyright (C) 2003
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Alex Fritze <alex.fritze@crocodile-clips.com> (original author)
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ----- END LICENSE BLOCK ----- */
#include "nsIDOMSVGElement.idl"
interface nsIDOMSVGAnimatedLength;
interface nsIDOMSVGAnimatedPreserveAspectRatio;
[scriptable, uuid(43ae4efe-2610-4cce-8242-279e556a78fa)]
interface nsIDOMSVGImageElement
: nsIDOMSVGElement
/*
The SVG DOM makes use of multiple interface inheritance.
Since XPCOM only supports single interface inheritance,
the best thing that we can do is to promise that whenever
an object implements _this_ interface it will also
implement the following interfaces. (We then have to QI to
hop between them.)
nsIDOMSVGURIReference,
nsIDOMSVGTests,
nsIDOMSVGLangSpace,
nsIDOMSVGExternalResourcesRequired,
nsIDOMSVGStylable,
nsIDOMSVGTransformable,
events::nsIDOMEventTarget
*/
{
readonly attribute nsIDOMSVGAnimatedLength x;
readonly attribute nsIDOMSVGAnimatedLength y;
readonly attribute nsIDOMSVGAnimatedLength width;
readonly attribute nsIDOMSVGAnimatedLength height;
readonly attribute nsIDOMSVGAnimatedPreserveAspectRatio preserveAspectRatio;
};

View File

@@ -0,0 +1,48 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ----- BEGIN LICENSE BLOCK -----
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is the Mozilla SVG project.
*
* The Initial Developer of the Original Code is
* Crocodile Clips Ltd..
* Portions created by the Initial Developer are Copyright (C) 2003
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Alex Fritze <alex.fritze@crocodile-clips.com> (original author)
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ----- END LICENSE BLOCK ----- */
#include "nsISupports.idl"
interface nsIDOMSVGAnimatedString;
[scriptable, uuid(8092b5f3-dc8a-459c-94f1-92f8011f2438)]
interface nsIDOMSVGURIReference
: nsISupports
{
readonly attribute nsIDOMSVGAnimatedString href;
};

View File

@@ -0,0 +1,474 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Netscape Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 2000
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Johnny Stenback <jst@netscape.com> (original author)
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#ifndef nsIDOMClassInfo_h___
#define nsIDOMClassInfo_h___
#include "nsIClassInfo.h"
#include "nsVoidArray.h"
enum nsDOMClassInfoID {
// Base classes
eDOMClassInfo_Window_id,
eDOMClassInfo_Location_id,
eDOMClassInfo_Navigator_id,
eDOMClassInfo_Plugin_id,
eDOMClassInfo_PluginArray_id,
eDOMClassInfo_MimeType_id,
eDOMClassInfo_MimeTypeArray_id,
eDOMClassInfo_BarProp_id,
eDOMClassInfo_History_id,
eDOMClassInfo_Screen_id,
// Core classes
eDOMClassInfo_XMLDocument_id,
eDOMClassInfo_DocumentType_id,
eDOMClassInfo_DOMImplementation_id,
eDOMClassInfo_DOMException_id,
eDOMClassInfo_DocumentFragment_id,
eDOMClassInfo_Element_id,
eDOMClassInfo_Attr_id,
eDOMClassInfo_Text_id,
eDOMClassInfo_Comment_id,
eDOMClassInfo_CDATASection_id,
eDOMClassInfo_ProcessingInstruction_id,
eDOMClassInfo_Entity_id,
eDOMClassInfo_EntityReference_id,
eDOMClassInfo_Notation_id,
eDOMClassInfo_NodeList_id,
eDOMClassInfo_NamedNodeMap_id,
// StyleSheet classes
eDOMClassInfo_DocumentStyleSheetList_id,
// Event classes
eDOMClassInfo_Event_id,
eDOMClassInfo_MutationEvent_id,
// HTML classes
eDOMClassInfo_HTMLDocument_id,
eDOMClassInfo_HTMLCollection_id,
eDOMClassInfo_HTMLOptionsCollection_id,
eDOMClassInfo_HTMLFormControlCollection_id,
eDOMClassInfo_HTMLGenericCollection_id,
// HTML element classes
eDOMClassInfo_HTMLAnchorElement_id,
eDOMClassInfo_HTMLAppletElement_id,
eDOMClassInfo_HTMLAreaElement_id,
eDOMClassInfo_HTMLBRElement_id,
eDOMClassInfo_HTMLBaseElement_id,
eDOMClassInfo_HTMLBaseFontElement_id,
eDOMClassInfo_HTMLBodyElement_id,
eDOMClassInfo_HTMLButtonElement_id,
eDOMClassInfo_HTMLDListElement_id,
eDOMClassInfo_HTMLDelElement_id,
eDOMClassInfo_HTMLDirectoryElement_id,
eDOMClassInfo_HTMLDivElement_id,
eDOMClassInfo_HTMLEmbedElement_id,
eDOMClassInfo_HTMLFieldSetElement_id,
eDOMClassInfo_HTMLFontElement_id,
eDOMClassInfo_HTMLFormElement_id,
eDOMClassInfo_HTMLFrameElement_id,
eDOMClassInfo_HTMLFrameSetElement_id,
eDOMClassInfo_HTMLHRElement_id,
eDOMClassInfo_HTMLHeadElement_id,
eDOMClassInfo_HTMLHeadingElement_id,
eDOMClassInfo_HTMLHtmlElement_id,
eDOMClassInfo_HTMLIFrameElement_id,
eDOMClassInfo_HTMLImageElement_id,
eDOMClassInfo_HTMLInputElement_id,
eDOMClassInfo_HTMLInsElement_id,
eDOMClassInfo_HTMLIsIndexElement_id,
eDOMClassInfo_HTMLLIElement_id,
eDOMClassInfo_HTMLLabelElement_id,
eDOMClassInfo_HTMLLegendElement_id,
eDOMClassInfo_HTMLLinkElement_id,
eDOMClassInfo_HTMLMapElement_id,
eDOMClassInfo_HTMLMenuElement_id,
eDOMClassInfo_HTMLMetaElement_id,
eDOMClassInfo_HTMLModElement_id,
eDOMClassInfo_HTMLOListElement_id,
eDOMClassInfo_HTMLObjectElement_id,
eDOMClassInfo_HTMLOptGroupElement_id,
eDOMClassInfo_HTMLOptionElement_id,
eDOMClassInfo_HTMLParagraphElement_id,
eDOMClassInfo_HTMLParamElement_id,
eDOMClassInfo_HTMLPreElement_id,
eDOMClassInfo_HTMLQuoteElement_id,
eDOMClassInfo_HTMLScriptElement_id,
eDOMClassInfo_HTMLSelectElement_id,
eDOMClassInfo_HTMLSpacerElement_id,
eDOMClassInfo_HTMLSpanElement_id,
eDOMClassInfo_HTMLStyleElement_id,
eDOMClassInfo_HTMLTableCaptionElement_id,
eDOMClassInfo_HTMLTableCellElement_id,
eDOMClassInfo_HTMLTableColElement_id,
eDOMClassInfo_HTMLTableColGroupElement_id,
eDOMClassInfo_HTMLTableElement_id,
eDOMClassInfo_HTMLTableRowElement_id,
eDOMClassInfo_HTMLTableSectionElement_id,
eDOMClassInfo_HTMLTextAreaElement_id,
eDOMClassInfo_HTMLTitleElement_id,
eDOMClassInfo_HTMLUListElement_id,
eDOMClassInfo_HTMLUnknownElement_id,
eDOMClassInfo_HTMLWBRElement_id,
// CSS classes
eDOMClassInfo_CSSStyleRule_id,
eDOMClassInfo_CSSCharsetRule_id,
eDOMClassInfo_CSSImportRule_id,
eDOMClassInfo_CSSMediaRule_id,
eDOMClassInfo_CSSNameSpaceRule_id,
eDOMClassInfo_CSSRuleList_id,
eDOMClassInfo_CSSGroupRuleRuleList_id,
eDOMClassInfo_MediaList_id,
eDOMClassInfo_StyleSheetList_id,
eDOMClassInfo_CSSStyleSheet_id,
eDOMClassInfo_CSSStyleDeclaration_id,
eDOMClassInfo_ComputedCSSStyleDeclaration_id,
eDOMClassInfo_ROCSSPrimitiveValue_id,
// Range classes
eDOMClassInfo_Range_id,
eDOMClassInfo_Selection_id,
// XUL classes
#ifdef MOZ_XUL
eDOMClassInfo_XULDocument_id,
eDOMClassInfo_XULElement_id,
eDOMClassInfo_XULCommandDispatcher_id,
eDOMClassInfo_XULNodeList_id,
eDOMClassInfo_XULNamedNodeMap_id,
eDOMClassInfo_XULAttr_id,
#endif
eDOMClassInfo_XULControllers_id,
#ifdef MOZ_XUL
eDOMClassInfo_BoxObject_id,
eDOMClassInfo_TreeSelection_id,
eDOMClassInfo_TreeContentView_id,
#endif
// Crypto classes
eDOMClassInfo_Crypto_id,
eDOMClassInfo_CRMFObject_id,
eDOMClassInfo_Pkcs11_id,
// DOM Traversal classes
eDOMClassInfo_TreeWalker_id,
// We are now trying to preserve binary compat in classinfo. No
// more putting things in those categories up there. New entries
// are to be added right before eDOMClassInfoIDCount
// Rect object used by getComputedStyle
eDOMClassInfo_CSSRect_id,
// DOM Chrome Window class, almost identical to Window
eDOMClassInfo_ChromeWindow_id,
// RGBColor object used by getComputedStyle
eDOMClassInfo_CSSRGBColor_id,
eDOMClassInfo_RangeException_id,
// CSSValueList object that represents an nsIDOMCSSValueList, used
// by DOM CSS
eDOMClassInfo_CSSValueList_id,
// ContentList object used for various live NodeLists
eDOMClassInfo_ContentList_id,
// Processing-instruction with target "xml-stylesheet"
eDOMClassInfo_XMLStylesheetProcessingInstruction_id,
eDOMClassInfo_ImageDocument_id,
#ifdef MOZ_XUL
eDOMClassInfo_XULTreeBuilder_id,
#endif
// DOMStringList object
eDOMClassInfo_DOMStringList_id,
// NameList object used by the DOM
eDOMClassInfo_NameList_id,
#ifdef MOZ_SVG
// The SVG document
eDOMClassInfo_SVGDocument_id,
// SVG element classes
eDOMClassInfo_SVGSVGElement_id,
eDOMClassInfo_SVGPolygonElement_id,
eDOMClassInfo_SVGPolylineElement_id,
eDOMClassInfo_SVGCircleElement_id,
eDOMClassInfo_SVGEllipseElement_id,
eDOMClassInfo_SVGLineElement_id,
eDOMClassInfo_SVGRectElement_id,
eDOMClassInfo_SVGGElement_id,
eDOMClassInfo_SVGForeignObjectElement_id,
eDOMClassInfo_SVGPathElement_id,
// other SVG classes
eDOMClassInfo_SVGAnimatedLength_id,
eDOMClassInfo_SVGLength_id,
eDOMClassInfo_SVGAnimatedPoints_id,
eDOMClassInfo_SVGPointList_id,
eDOMClassInfo_SVGPoint_id,
eDOMClassInfo_SVGAnimatedTransformList_id,
eDOMClassInfo_SVGTransformList_id,
eDOMClassInfo_SVGTransform_id,
eDOMClassInfo_SVGMatrix_id,
eDOMClassInfo_SVGPathSegList_id,
eDOMClassInfo_SVGPathSegClosePath_id,
eDOMClassInfo_SVGPathSegMovetoAbs_id,
eDOMClassInfo_SVGPathSegMovetoRel_id,
eDOMClassInfo_SVGPathSegLinetoAbs_id,
eDOMClassInfo_SVGPathSegLinetoRel_id,
eDOMClassInfo_SVGPathSegCurvetoCubicAbs_id,
eDOMClassInfo_SVGPathSegCurvetoCubicRel_id,
eDOMClassInfo_SVGPathSegCurvetoQuadraticAbs_id,
eDOMClassInfo_SVGPathSegCurvetoQuadraticRel_id,
eDOMClassInfo_SVGPathSegArcAbs_id,
eDOMClassInfo_SVGPathSegArcRel_id,
eDOMClassInfo_SVGPathSegLinetoHorizontalAbs_id,
eDOMClassInfo_SVGPathSegLinetoHorizontalRel_id,
eDOMClassInfo_SVGPathSegLinetoVerticalAbs_id,
eDOMClassInfo_SVGPathSegLinetoVerticalRel_id,
eDOMClassInfo_SVGPathSegCurvetoCubicSmoothAbs_id,
eDOMClassInfo_SVGPathSegCurvetoCubicSmoothRel_id,
eDOMClassInfo_SVGPathSegCurvetoQuadraticSmoothAbs_id,
eDOMClassInfo_SVGPathSegCurvetoQuadraticSmoothRel_id,
eDOMClassInfo_SVGRect_id,
eDOMClassInfo_SVGAnimatedRect_id,
eDOMClassInfo_SVGAnimatedLengthList_id,
eDOMClassInfo_SVGLengthList_id,
eDOMClassInfo_SVGNumber_id,
eDOMClassInfo_SVGTextElement_id,
eDOMClassInfo_SVGTSpanElement_id,
eDOMClassInfo_SVGAnimatedString_id,
eDOMClassInfo_SVGImageElement_id,
#endif //MOZ_SVG
// This one better be the last one in this list
eDOMClassInfoIDCount
};
#include "nsIXPCScriptable.h"
#define DEFAULT_SCRIPTABLE_FLAGS \
(nsIXPCScriptable::USE_JSSTUB_FOR_ADDPROPERTY | \
nsIXPCScriptable::USE_JSSTUB_FOR_DELPROPERTY | \
nsIXPCScriptable::USE_JSSTUB_FOR_SETPROPERTY | \
nsIXPCScriptable::ALLOW_PROP_MODS_DURING_RESOLVE | \
nsIXPCScriptable::ALLOW_PROP_MODS_TO_PROTOTYPE | \
nsIXPCScriptable::DONT_ASK_INSTANCE_FOR_SCRIPTABLE | \
nsIXPCScriptable::DONT_REFLECT_INTERFACE_NAMES | \
nsIXPCScriptable::WANT_NEWRESOLVE | \
nsIXPCScriptable::WANT_CHECKACCESS | \
nsIXPCScriptable::WANT_POSTCREATE)
#define DOM_DEFAULT_SCRIPTABLE_FLAGS \
(DEFAULT_SCRIPTABLE_FLAGS | \
nsIXPCScriptable::DONT_ENUM_QUERY_INTERFACE | \
nsIXPCScriptable::CLASSINFO_INTERFACES_ONLY)
typedef nsIClassInfo* (*nsDOMClassInfoExternalConstructorFnc)
(const char* aName);
/**
* nsIClassInfo helper macros
*/
#define NS_CLASSINFO_MAP_BEGIN(_class)
#define NS_CLASSINFO_MAP_BEGIN_EXPORTED(_class)
#define NS_CLASSINFO_MAP_ENTRY(_interface)
#define NS_CLASSINFO_MAP_ENTRY_FUNCTION(_function)
#define NS_CLASSINFO_MAP_END
#include "nsIServiceManager.h"
#include "nsIDOMScriptObjectFactory.h"
#include "nsDOMCID.h"
#define NS_INTERFACE_MAP_ENTRY_DOM_CLASSINFO(_class) \
if (aIID.Equals(NS_GET_IID(nsIClassInfo))) { \
static NS_DEFINE_CID(kDOMSOF_CID, NS_DOM_SCRIPT_OBJECT_FACTORY_CID); \
\
nsresult rv; \
nsCOMPtr<nsIDOMScriptObjectFactory> sof(do_GetService(kDOMSOF_CID, \
&rv)); \
if (NS_FAILED(rv)) { \
*aInstancePtr = nsnull; \
return rv; \
} \
\
foundInterface = \
sof->GetClassInfoInstance(eDOMClassInfo_##_class##_id); \
} else
// Looks up the nsIClassInfo for a class name registered with the
// nsScriptNamespaceManager. Remember to release NS_CLASSINFO_NAME(_class)
// (eg. when your module unloads).
#define NS_INTERFACE_MAP_ENTRY_EXTERNAL_DOM_CLASSINFO(_class) \
if (aIID.Equals(NS_GET_IID(nsIClassInfo))) { \
extern nsISupports *NS_CLASSINFO_NAME(_class); \
if (NS_CLASSINFO_NAME(_class)) { \
foundInterface = NS_CLASSINFO_NAME(_class); \
} else { \
static NS_DEFINE_CID(kDOMSOF_CID, NS_DOM_SCRIPT_OBJECT_FACTORY_CID); \
\
nsresult rv; \
nsCOMPtr<nsIDOMScriptObjectFactory> sof(do_GetService(kDOMSOF_CID, \
&rv)); \
if (NS_FAILED(rv)) { \
*aInstancePtr = nsnull; \
return rv; \
} \
\
foundInterface = \
sof->GetExternalClassInfoInstance(NS_LITERAL_STRING(#_class)); \
\
if (foundInterface) { \
NS_CLASSINFO_NAME(_class) = foundInterface; \
NS_CLASSINFO_NAME(_class)->AddRef(); \
} \
} \
} else
#define NS_DECL_DOM_CLASSINFO(_class) \
nsISupports *NS_CLASSINFO_NAME(_class) = nsnull;
// {891a7b01-1b61-11d6-a7f2-f690b638899c}
#define NS_IDOMCI_EXTENSION_IID \
{ 0x891a7b01, 0x1b61, 0x11d6, \
{ 0xa7, 0xf2, 0xf6, 0x90, 0xb6, 0x38, 0x89, 0x9c } }
class nsIDOMScriptObjectFactory;
class nsIDOMCIExtension : public nsISupports {
public:
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMCI_EXTENSION_IID)
NS_IMETHOD RegisterDOMCI(const char* aName,
nsIDOMScriptObjectFactory* aDOMSOFactory) = 0;
};
#define NS_DOMCI_EXTENSION_NAME(_module) ns##_module##DOMCIExtension
#define NS_DOMCI_EXTENSION_CONSTRUCTOR(_module) \
ns##_module##DOMCIExtensionConstructor
#define NS_DOMCI_EXTENSION_CONSTRUCTOR_IMP(_extension) \
NS_GENERIC_FACTORY_CONSTRUCTOR(_extension)
#define NS_DOMCI_EXTENSION(_module) \
class NS_DOMCI_EXTENSION_NAME(_module) : public nsIDOMCIExtension \
{ \
public: \
NS_DOMCI_EXTENSION_NAME(_module)(); \
virtual ~NS_DOMCI_EXTENSION_NAME(_module)(); \
\
NS_DECL_ISUPPORTS \
\
NS_IMETHOD RegisterDOMCI(const char* aName, \
nsIDOMScriptObjectFactory* aDOMSOFactory); \
}; \
\
NS_DOMCI_EXTENSION_CONSTRUCTOR_IMP(NS_DOMCI_EXTENSION_NAME(_module)) \
\
NS_DOMCI_EXTENSION_NAME(_module)::NS_DOMCI_EXTENSION_NAME(_module)() \
{ \
} \
\
NS_DOMCI_EXTENSION_NAME(_module)::~NS_DOMCI_EXTENSION_NAME(_module)() \
{ \
} \
\
NS_IMPL_ISUPPORTS1(NS_DOMCI_EXTENSION_NAME(_module), nsIDOMCIExtension) \
\
NS_IMETHODIMP \
NS_DOMCI_EXTENSION_NAME(_module)::RegisterDOMCI(const char* aName, \
nsIDOMScriptObjectFactory* aDOMSOFactory) \
{
#define NS_DOMCI_EXTENSION_ENTRY_BEGIN(_class) \
if (nsCRT::strcmp(aName, #_class) == 0) { \
static const nsIID* interfaces[] = {
#define NS_DOMCI_EXTENSION_ENTRY_INTERFACE(_interface) \
&NS_GET_IID(_interface),
// Don't forget to register the primary interface (_proto) in the
// JAVASCRIPT_DOM_INTERFACE category, or prototypes for this class
// won't work (except if the interface name starts with nsIDOM).
#define NS_DOMCI_EXTENSION_ENTRY_END_HELPER(_class, _proto, _hasclassif, \
_constructorcid) \
nsnull \
}; \
aDOMSOFactory->RegisterDOMClassInfo(#_class, nsnull, _proto, \
interfaces, \
DOM_DEFAULT_SCRIPTABLE_FLAGS, \
_hasclassif, _constructorcid); \
return NS_OK; \
}
#define NS_DOMCI_EXTENSION_ENTRY_END(_class, _proto, _hasclassif, \
_constructorcid) \
NS_DOMCI_EXTENSION_ENTRY_END_HELPER(_class, &NS_GET_IID(_proto), \
_hasclassif, _constructorcid)
#define NS_DOMCI_EXTENSION_ENTRY_END_NO_PRIMARY_IF(_class, _hasclassif, \
_constructorcid) \
NS_DOMCI_EXTENSION_ENTRY_END_HELPER(_class, nsnull, _hasclassif, \
_constructorcid)
#define NS_DOMCI_EXTENSION_END \
return NS_ERROR_FAILURE; \
}
#endif /* nsIDOMClassInfo_h___ */

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,141 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Golden Hills Computer Services code.
*
* The Initial Developer of the Original Code is Brian Stell.
* Portions created by the Initial Developer are Copyright (C) 2002
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Brian Stell <bstell@ix.netcom.com>
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "nsISupports.idl"
%{C++
#include <ft2build.h>
#include FT_FREETYPE_H
#include FT_CACHE_H
#include FT_CACHE_IMAGE_H
#include FT_OUTLINE_H
#include FT_TRUETYPE_TABLES_H
#define NS_FREETYPE2_CONTRACTID "@mozilla.org/freetype2;1"
#define NS_FREETYPE2_CID NS_IFREETYPE2_IID
// macros to handle FreeType2 26.6 numbers (26 bit number with 6 bit fraction)
#define FT_REG_TO_16_16(x) ((x)<<16)
#ifndef FT_MulFix
#define FT_MulFix(v, s) (((v)*(s))>>16)
#endif
#define FT_ROUND(x) (((x) + 32) & ~63) // 63 = 2^6 - 1
#define FT_TRUNC(x) ((x) >> 6)
#define FT_DESIGN_UNITS_TO_PIXELS(v, s) FT_TRUNC(FT_ROUND(FT_MulFix((v) , (s))))
%}
[ptr] native constCharPtr(const char);
native FT_Int(FT_Int);
native FT_Long(FT_Long);
native FT_UInt(FT_UInt);
native FT_ULong(FT_ULong);
native FT_BBox(FT_BBox);
native FT_CharMap(FT_CharMap);
native FT_Error(FT_Error);
native FT_Face(FT_Face);
native FT_Glyph(FT_Glyph);
native FT_GlyphSlot(FT_GlyphSlot);
native FT_Library(FT_Library);
[ptr] native FT_Outline_p(FT_Outline);
[ptr] native const_FT_Outline_Funcs_p(const FT_Outline_Funcs);
native FT_Pointer(FT_Pointer);
native FT_Sfnt_Tag(FT_Sfnt_Tag);
native FT_Size(FT_Size);
[ptr] native FTC_Image_Desc_p(FTC_Image_Desc);
native FTC_Face_Requester(FTC_Face_Requester);
native FTC_Font(FTC_Font);
native FTC_Image_Cache(FTC_Image_Cache);
native FTC_Manager(FTC_Manager);
#ifdef MOZ_SVG
[ptr] native FT_Matrix_p(FT_Matrix);
native FT_Vector(FT_Vector);
[ptr] native FT_Vector_p(FT_Vector);
native FT_Render_Mode(FT_Render_Mode);
native FT_Bool(FT_Bool);
#endif
/*
* A XPCOM interface to the run-time loaded functions
*/
[uuid(606eac78-16d4-486a-9f0e-f180aebd449b)]
interface nsIFreeType2 : nsISupports
{
readonly attribute FT_Library library;
readonly attribute FTC_Manager FTCacheManager;
readonly attribute FTC_Image_Cache ImageCache;
void doneFace(in FT_Face face);
void doneFreeType(in FT_Library lib);
void doneGlyph(in FT_Glyph glyph);
FT_UInt getCharIndex(in FT_Face face, in FT_ULong charcode);
void getGlyph(in FT_GlyphSlot slot, out FT_Glyph glyph);
voidPtr getSfntTable(in FT_Face face, in FT_Sfnt_Tag tag);
void glyphGetCBox(in FT_Glyph glyph, in FT_UInt mode, out FT_BBox box);
void initFreeType(out FT_Library lib);
void loadGlyph(in FT_Face face, in FT_UInt gindex, in FT_Int flags);
void newFace(in FT_Library lib, in constCharPtr filename,
in FT_Long face_num, out FT_Face face);
void outlineDecompose(in FT_Outline_p outline,
in const_FT_Outline_Funcs_p funcs, in voidPtr p);
void setCharmap(in FT_Face face, in FT_CharMap charmap);
void imageCacheLookup(in FTC_Image_Cache cache, in FTC_Image_Desc_p desc,
in FT_UInt gindex, out FT_Glyph glyph);
void managerLookupSize(in FTC_Manager manager, in FTC_Font font,
out FT_Face face, out FT_Size size);
void managerDone(in FTC_Manager manager);
void managerNew(in FT_Library lib, in FT_UInt max_faces,
in FT_UInt max_sizes, in FT_ULong max_bytes,
in FTC_Face_Requester requester, in FT_Pointer req_data,
out FTC_Manager manager);
void imageCacheNew(in FTC_Manager manager, out FTC_Image_Cache cache);
#ifdef MOZ_SVG
void glyphTransform(in FT_Glyph glyph, in FT_Matrix_p matrix,
in FT_Vector_p delta);
void getKerning(in FT_Face face, in FT_UInt left_glyph, in FT_UInt right_glyph,
in FT_UInt kern_mode, out FT_Vector akerning);
void glyphCopy(in FT_Glyph source, out FT_Glyph target);
void glyphToBitmap(inout FT_Glyph the_glyph, in FT_Render_Mode render_mode,
in FT_Vector_p origin, in FT_Bool destroy);
#endif
FT_ULong getFirstChar(in FT_Face face, out FT_UInt gindex);
FT_ULong getNextChar(in FT_Face face, in FT_ULong charcode, out FT_UInt gindex);
void supportsExtFunc(out PRBool res);
};

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,307 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
* ex: set tabstop=8 softtabstop=2 shiftwidth=2 expandtab:
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#ifndef nsFreeType_h__
#define nsFreeType_h__
#include "gfx-config.h"
#if (defined(MOZ_ENABLE_FREETYPE2))
#include "nspr.h"
#include "nsHashtable.h"
#include "nsICharsetConverterManager.h"
#include "nsIFontCatalogService.h"
#include "nsIFreeType2.h"
#include <ft2build.h>
#include FT_FREETYPE_H
#include FT_CACHE_H
#include FT_CACHE_IMAGE_H
#include FT_TRUETYPE_TABLES_H
typedef struct FT_FaceRec_* FT_Face;
typedef struct {
const char *mFontFileName;
time_t mMTime;
PRUint32 mFlags;
const char *mFontType;
int mFaceIndex;
int mNumFaces;
const char *mFamilyName;
const char *mStyleName;
FT_UShort mWeight;
FT_UShort mWidth;
int mNumGlyphs;
int mNumUsableGlyphs;
FT_Long mFaceFlags;
FT_Long mStyleFlags;
FT_Long mCodePageRange1;
FT_Long mCodePageRange2;
char mVendorID[5];
const char *mFoundryName;
int mNumEmbeddedBitmaps;
int *mEmbeddedBitmapHeights;
PRUint16 *mCCMap; // compressed char map
} nsFontCatalogEntry;
#define FCE_FLAGS_ISVALID 0x01
#define FCE_FLAGS_UNICODE 0x02
#define FCE_FLAGS_SYMBOL 0x04
#define FCE_FLAGS_SURROGATE 0x08
#define FREE_IF(x) if(x) free((void*)x)
typedef struct {
const char *mConverterName;
PRUint8 mCmapPlatformID;
PRUint8 mCmapEncoding;
nsIUnicodeEncoder* mConverter;
} nsTTFontEncoderInfo;
typedef struct nsTTFontFamilyEncoderInfo {
const char *mFamilyName;
nsTTFontEncoderInfo *mEncodingInfo;
} nsTTFontFamilyEncoderInfo;
typedef struct {
unsigned long bit;
const char *charsetName;
} nsulCodePageRangeCharSetName;
//
// the FreeType2 function type declarations
//
typedef FT_Error (*FT_Done_Face_t)(FT_Face);
typedef FT_Error (*FT_Done_FreeType_t)(FT_Library);
typedef FT_Error (*FT_Done_Glyph_t)(FT_Glyph);
typedef FT_Error (*FT_Get_Char_Index_t)(FT_Face, FT_ULong);
typedef FT_Error (*FT_Get_Glyph_t)(FT_GlyphSlot, FT_Glyph*);
typedef void* (*FT_Get_Sfnt_Table_t)(FT_Face, FT_Sfnt_Tag);
typedef FT_Error (*FT_Glyph_Get_CBox_t)(FT_Glyph, FT_UInt, FT_BBox*);
typedef FT_Error (*FT_Init_FreeType_t)(FT_Library*);
typedef FT_Error (*FT_Load_Glyph_t)(FT_Face, FT_UInt, FT_Int);
typedef FT_Error (*FT_Outline_Decompose_t)
(FT_Outline*, const FT_Outline_Funcs*, void*);
typedef FT_Error (*FT_New_Face_t)(FT_Library, const char*, FT_Long, FT_Face*);
typedef FT_Error (*FT_Set_Charmap_t)(FT_Face face, FT_CharMap charmap);
typedef FT_Error (*FTC_Image_Cache_Lookup_t)
(FTC_Image_Cache, FTC_Image_Desc*, FT_UInt, FT_Glyph*);
typedef FT_Error (*FTC_Manager_Lookup_Size_t)
(FTC_Manager, FTC_Font, FT_Face*, FT_Size*);
typedef FT_Error (*FTC_Manager_Done_t)(FTC_Manager);
typedef FT_Error (*FTC_Manager_New_t)(FT_Library, FT_UInt, FT_UInt, FT_ULong,
FTC_Face_Requester, FT_Pointer, FTC_Manager*);
typedef FT_Error (*FTC_Image_Cache_New_t)(FTC_Manager, FTC_Image_Cache*);
#ifdef MOZ_SVG
typedef FT_Error (*FT_Glyph_Transform_t)(FT_Glyph, FT_Matrix*, FT_Vector*);
typedef FT_Error (*FT_Get_Kerning_t)
(FT_Face, FT_UInt, FT_UInt, FT_UInt, FT_Vector*);
typedef FT_Error (*FT_Glyph_Copy_t)(FT_Glyph, FT_Glyph*);
typedef FT_Error (*FT_Glyph_To_Bitmap_t)
(FT_Glyph*, FT_Render_Mode, FT_Vector*, FT_Bool);
#endif
typedef FT_ULong (*FT_Get_First_Char_t)(FT_Face, FT_UInt*);
typedef FT_ULong (*FT_Get_Next_Char_t)(FT_Face, FT_ULong, FT_UInt*);
class nsFreeTypeFace;
nsFreeTypeFace * nsFreeTypeGetFaceID(nsFontCatalogEntry *aFce);
typedef struct {
const char *FuncName;
int FuncOffset;
const PRBool Required;
} FtFuncList;
// class nsFreeType class definition
class nsFreeType2 : nsIFreeType2 {
NS_DECL_ISUPPORTS
public:
void FreeGlobals();
nsresult Init();
virtual ~nsFreeType2();
NS_DECL_NSIFREETYPE2
// these belong in nsFT2FontCatalog
static PRUint16* GetCCMap(nsFontCatalogEntry *aFce);
static const char* GetRange1CharSetName(unsigned long aBit);
static const char* GetRange2CharSetName(unsigned long aBit);
static nsTTFontFamilyEncoderInfo* GetCustomEncoderInfo(const char *);
protected:
// run time loaded function pointers
FT_Done_Face_t nsFT_Done_Face;
FT_Done_FreeType_t nsFT_Done_FreeType;
FT_Done_Glyph_t nsFT_Done_Glyph;
FT_Get_Char_Index_t nsFT_Get_Char_Index;
FT_Get_Glyph_t nsFT_Get_Glyph;
FT_Get_Sfnt_Table_t nsFT_Get_Sfnt_Table;
FT_Glyph_Get_CBox_t nsFT_Glyph_Get_CBox;
FT_Init_FreeType_t nsFT_Init_FreeType;
FT_Load_Glyph_t nsFT_Load_Glyph;
FT_New_Face_t nsFT_New_Face;
FT_Outline_Decompose_t nsFT_Outline_Decompose;
FT_Set_Charmap_t nsFT_Set_Charmap;
FTC_Image_Cache_Lookup_t nsFTC_Image_Cache_Lookup;
FTC_Manager_Lookup_Size_t nsFTC_Manager_Lookup_Size;
FTC_Manager_Done_t nsFTC_Manager_Done;
FTC_Manager_New_t nsFTC_Manager_New;
FTC_Image_Cache_New_t nsFTC_Image_Cache_New;
#ifdef MOZ_SVG
FT_Glyph_Transform_t nsFT_Glyph_Transform;
FT_Get_Kerning_t nsFT_Get_Kerning;
FT_Glyph_Copy_t nsFT_Glyph_Copy;
FT_Glyph_To_Bitmap_t nsFT_Glyph_To_Bitmap;
#endif
FT_Get_First_Char_t nsFT_Get_First_Char;
FT_Get_Next_Char_t nsFT_Get_Next_Char;
// this array needs to be big enough to hold all the function pointers
// plus one extra for the null at the end
#ifdef MOZ_SVG
static FtFuncList FtFuncs[24];
#else
static FtFuncList FtFuncs[20];
#endif
protected:
PRBool mEnableFreeType2;
char* mFreeType2SharedLibraryName;
public:
// these belong in the nsFontFreeType code
static PRBool gFreeType2Autohinted;
static PRBool gFreeType2Unhinted;
static PRUint8 gAATTDarkTextMinValue;
static double gAATTDarkTextGain;
static PRInt32 gAntiAliasMinimum;
static PRInt32 gEmbeddedBitmapMaximumHeight;
static PRBool gHasExtFunc;
protected:
void ClearGlobals();
void ClearFunctions();
PRBool InitLibrary();
PRBool LoadSharedLib();
void UnloadSharedLib();
// this belongs in nsFT2FontCatalog
static nsICharsetConverterManager* GetCharSetManager();
PRLibrary *mSharedLib;
FT_Library mFreeTypeLibrary;
FTC_Manager mFTCacheManager;
FTC_Image_Cache mImageCache;
static nsHashtable *sFontFamilies;
static nsHashtable *sRange1CharSetNames;
static nsHashtable *sRange2CharSetNames;
static nsICharsetConverterManager* sCharSetManager;
};
/* this simple record is used to model a given `installed' face */
class nsFreeTypeFace : public nsITrueTypeFontCatalogEntry {
public:
NS_DECL_ISUPPORTS
NS_DECL_NSITRUETYPEFONTCATALOGENTRY
nsFreeTypeFace();
virtual ~nsFreeTypeFace();
virtual nsresult Init(nsFontCatalogEntry *aFce);
/* additional members */
NS_IMETHODIMP GetFontCatalogType(PRUint16 *aFontCatalogType);
static PRBool FreeFace(nsHashKey* aKey, void* aData, void* aClosure);
const char *GetFilename()
{ return mFce->mFontFileName; }
int *GetEmbeddedBitmapHeights()
{ return mFce->mEmbeddedBitmapHeights; } ;
int GetFaceIndex()
{ return mFce->mFaceIndex; }
int GetNumEmbeddedBitmaps()
{ return mFce->mNumEmbeddedBitmaps; } ;
PRUint16 *GetCCMap();
nsFontCatalogEntry* GetFce() { return mFce; };
PRBool mHasExtendFuncs;
protected:
nsFontCatalogEntry *mFce;
PRUint16 *mCCMap;
};
#endif /* MOZ_ENABLE_FREETYPE2 */
/*
* Defines for the TrueType codepage bits.
* Used as a hint for the languages supported in a TrueType font.
*/
/*
* ulCodePageRange1
*/
#define TT_OS2_CPR1_LATIN1 (0x00000001) /* Latin 1 */
#define TT_OS2_CPR1_LATIN2 (0x00000002) /* Latin 2: Eastern Europe */
#define TT_OS2_CPR1_CYRILLIC (0x00000004) /* Cyrillic */
#define TT_OS2_CPR1_GREEK (0x00000008) /* Greek */
#define TT_OS2_CPR1_TURKISH (0x00000010) /* Turkish */
#define TT_OS2_CPR1_HEBREW (0x00000020) /* Hebrew */
#define TT_OS2_CPR1_ARABIC (0x00000040) /* Arabic */
#define TT_OS2_CPR1_BALTIC (0x00000080) /* Windows Baltic */
#define TT_OS2_CPR1_VIETNAMESE (0x00000100) /* Vietnamese */
/* 9-15 Reserved for Alternate ANSI */
#define TT_OS2_CPR1_THAI (0x00010000) /* Thai */
#define TT_OS2_CPR1_JAPANESE (0x00020000) /* JIS/Japan */
#define TT_OS2_CPR1_CHINESE_SIMP (0x00040000) /* Chinese: Simplified */
#define TT_OS2_CPR1_KO_WANSUNG (0x00080000) /* Korean Wansung */
#define TT_OS2_CPR1_CHINESE_TRAD (0x00100000) /* Chinese: Traditional */
#define TT_OS2_CPR1_KO_JOHAB (0x00200000) /* Korean Johab */
/* 22-28 Reserved for Alternate ANSI&OEM */
#define TT_OS2_CPR1_MAC_ROMAN (0x20000000) /* Mac (US Roman) */
#define TT_OS2_CPR1_OEM (0x40000000) /* OEM Character Set */
#define TT_OS2_CPR1_SYMBOL (0x80000000) /* Symbol Character Set */
/*
* ulCodePageRange2
*/ /* 32-47 Reserved for OEM */
#define TT_OS2_CPR2_GREEK (0x00010000) /* IBM Greek */
#define TT_OS2_CPR2_RUSSIAN (0x00020000) /* MS-DOS Russian */
#define TT_OS2_CPR2_NORDIC (0x00040000) /* MS-DOS Nordic */
#define TT_OS2_CPR2_ARABIC (0x00080000) /* Arabic */
#define TT_OS2_CPR2_CA_FRENCH (0x00100000) /* MS-DOS Canadian French */
#define TT_OS2_CPR2_HEBREW (0x00200000) /* Hebrew */
#define TT_OS2_CPR2_ICELANDIC (0x00400000) /* MS-DOS Icelandic */
#define TT_OS2_CPR2_PORTUGESE (0x00800000) /* MS-DOS Portuguese */
#define TT_OS2_CPR2_TURKISH (0x01000000) /* IBM Turkish */
#define TT_OS2_CPR2_CYRILLIC (0x02000000)/*IBM Cyrillic; primarily Russian*/
#define TT_OS2_CPR2_LATIN2 (0x04000000) /* Latin 2 */
#define TT_OS2_CPR2_BALTIC (0x08000000) /* MS-DOS Baltic */
#define TT_OS2_CPR2_GREEK_437G (0x10000000) /* Greek; former 437 G */
#define TT_OS2_CPR2_ARABIC_708 (0x20000000) /* Arabic; ASMO 708 */
#define TT_OS2_CPR2_WE_LATIN1 (0x40000000) /* WE/Latin 1 */
#define TT_OS2_CPR2_US (0x80000000) /* US */
#endif

View File

@@ -0,0 +1,942 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Netscape Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#ifdef NGLAYOUT_DDRAW
#define INITGUID
#endif
#include "nsDrawingSurfaceWin.h"
#include "prmem.h"
#include "nsCRT.h"
//#define GFX_DEBUG
#ifdef GFX_DEBUG
#define BREAK_TO_DEBUGGER DebugBreak()
#else
#define BREAK_TO_DEBUGGER
#endif
#ifdef GFX_DEBUG
#define VERIFY(exp) ((exp) ? 0: (GetLastError(), BREAK_TO_DEBUGGER))
#else // !_DEBUG
#define VERIFY(exp) (exp)
#endif // !_DEBUG
static NS_DEFINE_IID(kIDrawingSurfaceIID, NS_IDRAWING_SURFACE_IID);
static NS_DEFINE_IID(kIDrawingSurfaceWinIID, NS_IDRAWING_SURFACE_WIN_IID);
#ifdef NGLAYOUT_DDRAW
IDirectDraw *nsDrawingSurfaceWin::mDDraw = NULL;
IDirectDraw2 *nsDrawingSurfaceWin::mDDraw2 = NULL;
nsresult nsDrawingSurfaceWin::mDDrawResult = NS_OK;
#endif
nsDrawingSurfaceWin :: nsDrawingSurfaceWin()
{
mDC = NULL;
mOrigBitmap = nsnull;
mSelectedBitmap = nsnull;
mKillDC = PR_FALSE;
mBitmapInfo = nsnull;
mDIBits = nsnull;
mLockedBitmap = nsnull;
mWidth = mHeight = 0;
mLockOffset = mLockHeight = 0;
mLockFlags = 0;
#ifdef NGLAYOUT_DDRAW
CreateDDraw();
mSurface = NULL;
mSurfLockCnt = 0;
#endif
}
nsDrawingSurfaceWin :: ~nsDrawingSurfaceWin()
{
if ((nsnull != mDC) && (nsnull != mOrigBitmap))
{
HBITMAP tbits = (HBITMAP)::SelectObject(mDC, mOrigBitmap);
if (nsnull != tbits)
VERIFY(::DeleteObject(tbits));
mOrigBitmap = nsnull;
}
if (nsnull != mBitmapInfo)
{
PR_Free(mBitmapInfo);
mBitmapInfo = nsnull;
}
if ((nsnull != mDIBits) && (nsnull == mSelectedBitmap))
PR_Free(mDIBits);
mDIBits = nsnull;
mSelectedBitmap = nsnull;
#ifdef NGLAYOUT_DDRAW
if (NULL != mSurface)
{
if (NULL != mDC)
{
mSurface->ReleaseDC(mDC);
mDC = NULL;
}
NS_RELEASE(mSurface);
mSurface = NULL;
}
else
#endif
{
if (NULL != mDC)
{
if (PR_TRUE == mKillDC)
::DeleteDC(mDC);
mDC = NULL;
}
}
}
NS_IMETHODIMP nsDrawingSurfaceWin :: QueryInterface(REFNSIID aIID, void** aInstancePtr)
{
if (nsnull == aInstancePtr)
return NS_ERROR_NULL_POINTER;
if (aIID.Equals(kIDrawingSurfaceIID))
{
nsIDrawingSurface* tmp = this;
*aInstancePtr = (void*) tmp;
NS_ADDREF_THIS();
return NS_OK;
}
if (aIID.Equals(kIDrawingSurfaceWinIID))
{
nsIDrawingSurfaceWin* tmp = this;
*aInstancePtr = (void*) tmp;
NS_ADDREF_THIS();
return NS_OK;
}
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
if (aIID.Equals(kISupportsIID))
{
nsIDrawingSurface* tmp = this;
nsISupports* tmp2 = tmp;
*aInstancePtr = (void*) tmp2;
NS_ADDREF_THIS();
return NS_OK;
}
return NS_NOINTERFACE;
}
NS_IMPL_ADDREF(nsDrawingSurfaceWin)
NS_IMPL_RELEASE(nsDrawingSurfaceWin)
NS_IMETHODIMP nsDrawingSurfaceWin :: Lock(PRInt32 aX, PRInt32 aY,
PRUint32 aWidth, PRUint32 aHeight,
void **aBits, PRInt32 *aStride,
PRInt32 *aWidthBytes, PRUint32 aFlags)
{
#ifdef NGLAYOUT_DDRAW
if (mSurfLockCnt == 0)
{
RECT srect;
DWORD lockflags = 0;
srect.left = aX;
srect.top = aY;
srect.right = aX + aWidth;
srect.bottom = aY + aHeight;
if (aFlags & NS_LOCK_SURFACE_READ_ONLY)
lockflags |= DDLOCK_READONLY;
if (aFlags & NS_LOCK_SURFACE_WRITE_ONLY)
lockflags |= DDLOCK_WRITEONLY;
if (PR_TRUE == LockSurface(mSurface, &mSurfDesc, &mBitmap, &srect, lockflags, &mPixFormat))
mSurfLockCnt++;
}
else
{
NS_ASSERTION(0, "nested lock attempt");
return NS_ERROR_FAILURE;
}
if (mSurfLockCnt == 0)
#endif
{
if (nsnull == mLockedBitmap)
{
if (nsnull == mSelectedBitmap)
{
HBITMAP tbits = ::CreateCompatibleBitmap(mDC, 2, 2);
if ( tbits != nsnull )
{
mLockedBitmap = (HBITMAP)::SelectObject(mDC, tbits);
// if the SelectObject fails, or there was no bitmap returned from this DC
if ( mLockedBitmap != nsnull )
{
::GetObject(mLockedBitmap, sizeof(BITMAP), &mBitmap);
if (aY < 0 || aY + aHeight > mBitmap.bmHeight) {
::DeleteObject(tbits);
return NS_ERROR_FAILURE;
}
// GetDIBits always seems to interpret the scanlines as bottom-to-top.
mLockHeight = (PRInt32)aHeight;
mLockOffset = mBitmap.bmHeight - (aY + aHeight);
mBitmapInfo = CreateBitmapInfo(mBitmap.bmWidth, mBitmap.bmHeight, mBitmap.bmBitsPixel, (void **)&mDIBits);
if ( mBitmapInfo != nsnull ) {
if (!(aFlags & NS_LOCK_SURFACE_WRITE_ONLY))
::GetDIBits(mDC, mLockedBitmap, mLockOffset, mLockHeight, mDIBits, mBitmapInfo, DIB_RGB_COLORS);
mBitmap.bmBits = mDIBits;
// Note the width of the DIB-bits rows. DIB rows are DWORD-aligned,
// the original bitmap's rows may not have been DWORD-aligned.
mBitmap.bmWidthBytes = RASWIDTH(mBitmap.bmWidth, mBitmap.bmBitsPixel);
} else {
::DeleteObject(tbits);
return NS_ERROR_FAILURE;
}
}
else
{
::DeleteObject(tbits);
return NS_ERROR_FAILURE;
}
}
else
{
return NS_ERROR_FAILURE;
}
}
else
{
mLockedBitmap = mSelectedBitmap;
mBitmap.bmBits = mDIBits + mBitmap.bmWidthBytes * aY;
}
}
else
{
NS_ASSERTION(0, "nested lock attempt");
return NS_ERROR_FAILURE;
}
}
*aBits = (PRUint8 *)mBitmap.bmBits + (aX * (mBitmap.bmBitsPixel >> 3));
*aStride = mBitmap.bmWidthBytes;
*aWidthBytes = aWidth * (mBitmap.bmBitsPixel >> 3);
mLockFlags = aFlags;
return NS_OK;
}
NS_IMETHODIMP nsDrawingSurfaceWin :: Unlock(void)
{
#ifdef NGLAYOUT_DDRAW
NS_ASSERTION(!(mDC != nsnull), "attempt to unlock with dc");
if (nsnull == mDC)
{
mSurfLockCnt--;
NS_ASSERTION(!(mSurfLockCnt != 0), "nested surface locks");
if (mSurfLockCnt == 0)
mSurface->Unlock(mSurfDesc.lpSurface);
}
else
#endif
{
if (nsnull != mLockedBitmap)
{
if (nsnull == mSelectedBitmap)
{
HBITMAP tbits;
if (!(mLockFlags & NS_LOCK_SURFACE_READ_ONLY))
::SetDIBits(mDC, mLockedBitmap, mLockOffset, mLockHeight, mDIBits, mBitmapInfo, DIB_RGB_COLORS);
tbits = (HBITMAP)::SelectObject(mDC, mLockedBitmap);
::DeleteObject(tbits);
if (nsnull != mBitmapInfo)
{
PR_Free(mBitmapInfo);
mBitmapInfo = nsnull;
}
if (nsnull != mDIBits)
{
PR_Free(mDIBits);
mDIBits = nsnull;
}
}
mLockedBitmap = nsnull;
}
}
return NS_OK;
}
NS_IMETHODIMP nsDrawingSurfaceWin :: GetDimensions(PRUint32 *aWidth, PRUint32 *aHeight)
{
*aWidth = mWidth;
*aHeight = mHeight;
return NS_OK;
}
NS_IMETHODIMP nsDrawingSurfaceWin :: IsOffscreen(PRBool *aOffScreen)
{
*aOffScreen = mKillDC;
return NS_OK;
}
NS_IMETHODIMP nsDrawingSurfaceWin :: IsPixelAddressable(PRBool *aAddressable)
{
#ifdef NGLAYOUT_DDRAW
if (nsnull != mSurface)
*aAddressable = PR_TRUE;
else
#endif
if (nsnull != mSelectedBitmap)
*aAddressable = PR_TRUE;
else
*aAddressable = PR_FALSE;
return NS_OK;
}
NS_IMETHODIMP nsDrawingSurfaceWin :: GetPixelFormat(nsPixelFormat *aFormat)
{
*aFormat = mPixFormat;
return NS_OK;
}
NS_IMETHODIMP nsDrawingSurfaceWin :: Init(HDC aDC)
{
mDC = aDC;
mTechnology = ::GetDeviceCaps(mDC, TECHNOLOGY);
return NS_OK;
}
NS_IMETHODIMP nsDrawingSurfaceWin :: Init(HDC aDC, PRUint32 aWidth,
PRUint32 aHeight, PRUint32 aFlags)
{
NS_ASSERTION(!(aDC == nsnull), "null DC");
#if defined(MOZ_SVG) && defined(SVG_FORCE_PIXEL_ACCESS_SURFACES)
// force pixel access on all surfaces. Improves gdi+ performance
aFlags |= NS_CREATEDRAWINGSURFACE_FOR_PIXEL_ACCESS;
#endif
#ifdef NGLAYOUT_DDRAW
if (aFlags & NS_CREATEDRAWINGSURFACE_FOR_PIXEL_ACCESS)
{
LPDIRECTDRAWSURFACE ddsurf = nsnull;
if ((NULL != mDDraw2) && (aWidth > 0) && (aHeight > 0))
{
DDSURFACEDESC ddsd;
ddsd.dwSize = sizeof(ddsd);
ddsd.dwFlags = DDSD_CAPS | DDSD_WIDTH | DDSD_HEIGHT;
ddsd.ddsCaps.dwCaps = DDSCAPS_OFFSCREENPLAIN |
((aFlags & NS_CREATEDRAWINGSURFACE_FOR_PIXEL_ACCESS) ?
DDSCAPS_SYSTEMMEMORY : 0);
ddsd.dwWidth = aWidth;
ddsd.dwHeight = aHeight;
mDDraw2->CreateSurface(&ddsd, &ddsurf, NULL);
}
if (NULL != ddsurf)
mSurface = ddsurf;
else
{
mDC = ::CreateCompatibleDC(aDC);
mKillDC = PR_TRUE;
}
}
else
#endif
{
mDC = ::CreateCompatibleDC(aDC);
mTechnology = ::GetDeviceCaps(mDC, TECHNOLOGY);
mKillDC = PR_TRUE;
}
#ifdef NGLAYOUT_DDRAW
if (nsnull == mSurface)
#endif
{
HBITMAP tbits;
if ((aWidth > 0) && (aHeight > 0))
{
if (aFlags & NS_CREATEDRAWINGSURFACE_FOR_PIXEL_ACCESS)
{
void *bits;
BITMAPINFO *binfo;
int depth;
depth = ::GetDeviceCaps(aDC, BITSPIXEL);
binfo = CreateBitmapInfo(aWidth, aHeight, depth);
if (nsnull != binfo)
mSelectedBitmap = tbits = ::CreateDIBSection(aDC, binfo, DIB_RGB_COLORS, &bits, NULL, 0);
if (NULL == mSelectedBitmap)
tbits = ::CreateCompatibleBitmap(aDC, aWidth, aHeight);
else
{
mBitmapInfo = binfo;
mDIBits = (PRUint8 *)bits;
mBitmap.bmWidthBytes = RASWIDTH(aWidth, depth);
mBitmap.bmBitsPixel = depth;
}
}
else
tbits = ::CreateCompatibleBitmap(aDC, aWidth, aHeight);
}
else
{
//we do this to make sure that the memory DC knows what the
//bitmap format of the original DC was. this way, later
//operations to create bitmaps from the memory DC will create
//bitmaps with the correct properties.
tbits = ::CreateCompatibleBitmap(aDC, 2, 2);
}
mOrigBitmap = (HBITMAP)::SelectObject(mDC, tbits);
}
mWidth = aWidth;
mHeight = aHeight;
return NS_OK;
}
NS_IMETHODIMP nsDrawingSurfaceWin :: GetDC(HDC *aDC)
{
#ifdef NGLAYOUT_DDRAW
if (nsnull != mSurface)
{
if (0 == mSurfLockCnt)
mSurface->GetDC(&mDC);
mSurfLockCnt++;
}
#endif
*aDC = mDC;
return NS_OK;
}
NS_IMETHODIMP
nsDrawingSurfaceWin::GetTECHNOLOGY(PRInt32 *aTechnology)
{
*aTechnology = mTechnology;
return NS_OK;
}
NS_IMETHODIMP nsDrawingSurfaceWin :: ReleaseDC(void)
{
#ifdef NGLAYOUT_DDRAW
if (nsnull != mSurface)
{
--mSurfLockCnt;
if ((nsnull != mDC) && (mSurfLockCnt == 0))
{
mSurface->ReleaseDC(mDC);
mDC = nsnull;
}
}
#endif
return NS_OK;
}
NS_IMETHODIMP nsDrawingSurfaceWin :: IsReleaseDCDestructive(PRBool *aDestructive)
{
#ifdef NGLAYOUT_DDRAW
if (nsnull != mSurface)
*aDestructive = PR_TRUE;
else
#endif
*aDestructive = PR_FALSE;
return NS_OK;
}
BITMAPINFO * nsDrawingSurfaceWin :: CreateBitmapInfo(PRInt32 aWidth, PRInt32 aHeight, PRInt32 aDepth,
void **aBits)
{
PRInt32 palsize, imagesize, spanbytes, allocsize;
PRUint8 *colortable;
DWORD bicomp, masks[3];
BITMAPINFO *rv = nsnull;
switch (aDepth)
{
case 8:
palsize = 256;
allocsize = 256;
bicomp = BI_RGB;
break;
case 16:
palsize = 0;
allocsize = 3;
bicomp = BI_BITFIELDS;
masks[0] = 0xf800;
masks[1] = 0x07e0;
masks[2] = 0x001f;
mPixFormat.mRedZeroMask = 0x1f;
mPixFormat.mGreenZeroMask = 0x3f;
mPixFormat.mBlueZeroMask = 0x1f;
mPixFormat.mAlphaZeroMask = 0;
mPixFormat.mRedMask = masks[0];
mPixFormat.mGreenMask = masks[1];
mPixFormat.mBlueMask = masks[2];
mPixFormat.mAlphaMask = 0;
mPixFormat.mRedCount = 5;
mPixFormat.mGreenCount = 6;
mPixFormat.mBlueCount = 5;
mPixFormat.mAlphaCount = 0;
mPixFormat.mRedShift = 11;
mPixFormat.mGreenShift = 5;
mPixFormat.mBlueShift = 0;
mPixFormat.mAlphaShift = 0;
break;
case 24:
palsize = 0;
allocsize = 0;
bicomp = BI_RGB;
mPixFormat.mRedZeroMask = 0xff;
mPixFormat.mGreenZeroMask = 0xff;
mPixFormat.mBlueZeroMask = 0xff;
mPixFormat.mAlphaZeroMask = 0;
mPixFormat.mRedMask = 0xff;
mPixFormat.mGreenMask = 0xff00;
mPixFormat.mBlueMask = 0xff0000;
mPixFormat.mAlphaMask = 0;
mPixFormat.mRedCount = 8;
mPixFormat.mGreenCount = 8;
mPixFormat.mBlueCount = 8;
mPixFormat.mAlphaCount = 0;
mPixFormat.mRedShift = 0;
mPixFormat.mGreenShift = 8;
mPixFormat.mBlueShift = 16;
mPixFormat.mAlphaShift = 0;
break;
case 32:
palsize = 0;
allocsize = 3;
bicomp = BI_BITFIELDS;
masks[0] = 0xff0000;
masks[1] = 0x00ff00;
masks[2] = 0x0000ff;
mPixFormat.mRedZeroMask = 0xff;
mPixFormat.mGreenZeroMask = 0xff;
mPixFormat.mBlueZeroMask = 0xff;
mPixFormat.mAlphaZeroMask = 0xff;
mPixFormat.mRedMask = masks[0];
mPixFormat.mGreenMask = masks[1];
mPixFormat.mBlueMask = masks[2];
mPixFormat.mAlphaMask = 0xff000000;
mPixFormat.mRedCount = 8;
mPixFormat.mGreenCount = 8;
mPixFormat.mBlueCount = 8;
mPixFormat.mAlphaCount = 8;
mPixFormat.mRedShift = 16;
mPixFormat.mGreenShift = 8;
mPixFormat.mBlueShift = 0;
mPixFormat.mAlphaShift = 24;
break;
default:
palsize = -1;
break;
}
if (palsize >= 0)
{
spanbytes = RASWIDTH(aWidth, aDepth);
imagesize = spanbytes * aHeight;
rv = (BITMAPINFO *)PR_Malloc(sizeof(BITMAPINFOHEADER) + (sizeof(RGBQUAD) * allocsize));
if (nsnull != rv)
{
rv->bmiHeader.biSize = sizeof(BITMAPINFOHEADER);
rv->bmiHeader.biWidth = aWidth;
rv->bmiHeader.biHeight = -aHeight;
rv->bmiHeader.biPlanes = 1;
rv->bmiHeader.biBitCount = (unsigned short)aDepth;
rv->bmiHeader.biCompression = bicomp;
rv->bmiHeader.biSizeImage = imagesize;
rv->bmiHeader.biXPelsPerMeter = 0;
rv->bmiHeader.biYPelsPerMeter = 0;
rv->bmiHeader.biClrUsed = palsize;
rv->bmiHeader.biClrImportant = palsize;
// set the color table in the info header
colortable = (PRUint8 *)rv + sizeof(BITMAPINFOHEADER);
if ((aDepth == 16) || (aDepth == 32))
memcpy(colortable, masks, sizeof(DWORD) * allocsize);
else
memset(colortable, 0, sizeof(RGBQUAD) * palsize);
if (nsnull != aBits) {
*aBits = PR_Malloc(imagesize);
if ( nsnull == *aBits ) {
PR_Free(rv);
rv = nsnull;
}
}
}
}
return rv;
}
#ifdef NGLAYOUT_DDRAW
PRBool nsDrawingSurfaceWin :: LockSurface(IDirectDrawSurface *aSurface, DDSURFACEDESC *aDesc,
BITMAP *aBitmap, RECT *aRect, DWORD aLockFlags, nsPixelFormat *aPixFormat)
{
if (nsnull != aSurface)
{
aDesc->dwSize = sizeof(DDSURFACEDESC);
if (DD_OK == aSurface->Lock(aRect, aDesc, DDLOCK_WAIT | DDLOCK_SURFACEMEMORYPTR | aLockFlags, NULL))
{
if ((aDesc->ddpfPixelFormat.dwFlags &
(DDPF_ALPHA | DDPF_PALETTEINDEXED1 |
DDPF_PALETTEINDEXED2 | DDPF_PALETTEINDEXED4 |
DDPF_PALETTEINDEXEDTO8 | DDPF_YUV | DDPF_ZBUFFER)) ||
(aDesc->ddpfPixelFormat.dwRGBBitCount < 8))
{
//this is a surface that we can't, or don't want to handle.
aSurface->Unlock(aDesc->lpSurface);
return PR_FALSE;
}
aBitmap->bmType = 0;
aBitmap->bmWidth = aDesc->dwWidth;
aBitmap->bmHeight = aDesc->dwHeight;
aBitmap->bmWidthBytes = aDesc->lPitch;
aBitmap->bmPlanes = 1;
aBitmap->bmBitsPixel = (PRUint16)aDesc->ddpfPixelFormat.dwRGBBitCount;
aBitmap->bmBits = aDesc->lpSurface;
if ((nsnull != aPixFormat) && (aBitmap->bmBitsPixel > 8))
{
DWORD btemp, shiftcnt;
btemp = aDesc->ddpfPixelFormat.dwRBitMask;
aPixFormat->mRedMask = btemp;
shiftcnt = 32;
if (!(btemp & 0xffff))
{
aPixFormat->mRedShift = 16;
btemp >>= 16;
shiftcnt = 16;
}
else if (!(btemp & 0xff))
{
aPixFormat->mRedShift = 8;
btemp >>= 8;
shiftcnt = 24;
}
else
{
aPixFormat->mRedShift = 0;
shiftcnt = 32;
}
while (!(btemp & 1) && shiftcnt--)
{
btemp >>= 1;
aPixFormat->mRedShift++;
}
aPixFormat->mRedZeroMask = btemp;
aPixFormat->mRedCount = 0;
while ((btemp & 1) && shiftcnt--)
{
btemp >>= 1;
aPixFormat->mRedCount++;
}
btemp = aDesc->ddpfPixelFormat.dwGBitMask;
aPixFormat->mGreenMask = btemp;
shiftcnt = 32;
if (!(btemp & 0xffff))
{
aPixFormat->mGreenShift = 16;
btemp >>= 16;
shiftcnt = 16;
}
else if (!(btemp & 0xff))
{
aPixFormat->mGreenShift = 8;
btemp >>= 8;
shiftcnt = 24;
}
else
{
aPixFormat->mGreenShift = 0;
shiftcnt = 32;
}
while (!(btemp & 1) && shiftcnt--)
{
btemp >>= 1;
aPixFormat->mGreenShift++;
}
aPixFormat->mGreenZeroMask = btemp;
aPixFormat->mGreenCount = 0;
while ((btemp & 1) && shiftcnt--)
{
btemp >>= 1;
aPixFormat->mGreenCount++;
}
btemp = aDesc->ddpfPixelFormat.dwBBitMask;
aPixFormat->mBlueMask = btemp;
shiftcnt = 32;
if (!(btemp & 0xffff))
{
aPixFormat->mBlueShift = 16;
btemp >>= 16;
shiftcnt = 16;
}
else if (!(btemp & 0xff))
{
aPixFormat->mBlueShift = 8;
btemp >>= 8;
shiftcnt = 24;
}
else
{
aPixFormat->mBlueShift = 0;
shiftcnt = 32;
}
while (!(btemp & 1) && shiftcnt--)
{
btemp >>= 1;
aPixFormat->mBlueShift++;
}
aPixFormat->mBlueZeroMask = btemp;
aPixFormat->mBlueCount = 0;
while ((btemp & 1) && shiftcnt--)
{
btemp >>= 1;
aPixFormat->mBlueCount++;
}
aPixFormat->mAlphaCount = (PRUint8)aDesc->ddpfPixelFormat.dwAlphaBitDepth;
if (aPixFormat->mAlphaCount > 0)
{
btemp = aDesc->ddpfPixelFormat.dwRGBAlphaBitMask;
aPixFormat->mAlphaMask = btemp;
shiftcnt = 32;
if (!(btemp & 0xffff))
{
aPixFormat->mAlphaShift = 16;
btemp >>= 16;
shiftcnt = 16;
}
else if (!(btemp & 0xff))
{
aPixFormat->mAlphaShift = 8;
btemp >>= 8;
shiftcnt = 24;
}
else
{
aPixFormat->mAlphaShift = 0;
shiftcnt = 32;
}
while (!(btemp & 1) && shiftcnt--)
{
btemp >>= 1;
aPixFormat->mAlphaShift++;
}
aPixFormat->mAlphaZeroMask = btemp;
}
else
{
aPixFormat->mAlphaMask = 0;
aPixFormat->mAlphaShift = 0;
aPixFormat->mAlphaZeroMask = 0;
}
}
return PR_TRUE;
}
else
return PR_FALSE;
}
else
return PR_FALSE;
}
nsresult nsDrawingSurfaceWin :: CreateDDraw()
{
if ((mDDraw2 == NULL) && (mDDrawResult == NS_OK))
{
CoInitialize(NULL);
mDDrawResult = DirectDrawCreate(NULL, &mDDraw, NULL);
if (mDDrawResult == NS_OK)
mDDrawResult = mDDraw->QueryInterface(IID_IDirectDraw2, (LPVOID *)&mDDraw2);
if (mDDrawResult == NS_OK)
{
mDDraw2->SetCooperativeLevel(NULL, DDSCL_NORMAL);
#ifdef NS_DEBUG
printf("using DirectDraw (%08X)\n", mDDraw2);
DDSCAPS ddscaps;
DWORD totalmem, freemem;
ddscaps.dwCaps = DDSCAPS_OFFSCREENPLAIN | DDSCAPS_VIDEOMEMORY;
nsresult res = mDDraw2->GetAvailableVidMem(&ddscaps, &totalmem, &freemem);
if (NS_SUCCEEDED(res))
{
printf("total video memory: %d\n", totalmem);
printf("free video memory: %d\n", freemem);
}
else
{
printf("GetAvailableVidMem() returned %08x: %s\n", res,
(res == DDERR_NODIRECTDRAWHW) ?
"no hardware ddraw driver available" : "unknown error code");
}
#endif
}
}
return mDDrawResult;
}
nsresult nsDrawingSurfaceWin :: GetDDraw(IDirectDraw2 **aDDraw)
{
CreateDDraw();
if (NULL != mDDraw2)
{
NS_ADDREF(mDDraw2);
*aDDraw = mDDraw2;
}
else
*aDDraw = NULL;
return NS_OK;
}
#endif

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,191 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Netscape Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "nsIAtom.h"
#include "CParserContext.h"
#include "nsToken.h"
#include "prenv.h"
#include "nsHTMLTokenizer.h"
#include "nsExpatDriver.h"
MOZ_DECL_CTOR_COUNTER(CParserContext)
/**
* Your friendly little constructor. Ok, it's not the friendly, but the only guy
* using it is the parser.
* @update gess7/23/98
* @param aScanner
* @param aKey
* @param aListener
*/
CParserContext::CParserContext(nsScanner* aScanner,
void *aKey,
eParserCommands aCommand,
nsIRequestObserver* aListener,
nsIDTD *aDTD,
eAutoDetectResult aStatus,
PRBool aCopyUnused)
{
MOZ_COUNT_CTOR(CParserContext);
mScanner=aScanner;
mKey=aKey;
mPrevContext=0;
mListener=aListener;
NS_IF_ADDREF(mListener);
mDTDMode=eDTDMode_unknown;
mAutoDetectStatus=aStatus;
mTransferBuffer=0;
mDTD=aDTD;
NS_IF_ADDREF(mDTD);
mTokenizer = 0;
mTransferBufferSize=eTransferBufferSize;
mStreamListenerState=eNone;
mMultipart=PR_TRUE;
mContextType=eCTNone;
mCopyUnused=aCopyUnused;
mParserCommand=aCommand;
mRequest=0;
}
/**
* Your friendly little constructor. Ok, it's not the friendly, but the only guy
* using it is the parser.
* @update gess7/23/98
* @param aScanner
* @param aKey
* @param aListener
*/
CParserContext::CParserContext(const CParserContext &aContext) : mMimeType() {
MOZ_COUNT_CTOR(CParserContext);
mScanner=aContext.mScanner;
mKey=aContext.mKey;
mPrevContext=0;
mListener=aContext.mListener;
NS_IF_ADDREF(mListener);
mDTDMode=aContext.mDTDMode;
mAutoDetectStatus=aContext.mAutoDetectStatus;
mTransferBuffer=aContext.mTransferBuffer;
mDTD=aContext.mDTD;
NS_IF_ADDREF(mDTD);
mTokenizer = aContext.mTokenizer;
NS_IF_ADDREF(mTokenizer);
mTransferBufferSize=eTransferBufferSize;
mStreamListenerState=aContext.mStreamListenerState;
mMultipart=aContext.mMultipart;
mContextType=aContext.mContextType;
mRequest=aContext.mRequest;
mParserCommand=aContext.mParserCommand;
SetMimeType(aContext.mMimeType);
}
/**
* Destructor for parser context
* NOTE: DO NOT destroy the dtd here.
* @update gess7/11/98
*/
CParserContext::~CParserContext(){
MOZ_COUNT_DTOR(CParserContext);
if(mScanner) {
delete mScanner;
mScanner=nsnull;
}
if(mTransferBuffer)
delete [] mTransferBuffer;
NS_IF_RELEASE(mDTD);
NS_IF_RELEASE(mListener);
NS_IF_RELEASE(mTokenizer);
//Remember that it's ok to simply ingore the PrevContext.
}
/**
* Set's the mimetype for this context
* @update rickg 03.18.2000
*/
void CParserContext::SetMimeType(const nsACString& aMimeType){
mMimeType.Assign(aMimeType);
mDocType=ePlainText;
if(mMimeType.Equals(NS_LITERAL_CSTRING(kHTMLTextContentType)))
mDocType=eHTML_Strict;
else if (mMimeType.Equals(NS_LITERAL_CSTRING(kXMLTextContentType)) ||
mMimeType.Equals(NS_LITERAL_CSTRING(kXMLApplicationContentType)) ||
mMimeType.Equals(NS_LITERAL_CSTRING(kXHTMLApplicationContentType)) ||
mMimeType.Equals(NS_LITERAL_CSTRING(kXULTextContentType)) ||
#ifdef MOZ_SVG
mMimeType.Equals(NS_LITERAL_CSTRING(kSVGTextContentType)) ||
#endif
mMimeType.Equals(NS_LITERAL_CSTRING(kRDFTextContentType)))
mDocType=eXML;
}
nsresult
CParserContext::GetTokenizer(PRInt32 aType, nsITokenizer*& aTokenizer) {
nsresult result = NS_OK;
if(!mTokenizer) {
if (aType == NS_IPARSER_FLAG_HTML || mParserCommand == eViewSource) {
result = NS_NewHTMLTokenizer(&mTokenizer,mDTDMode,mDocType,mParserCommand);
// Propagate tokenizer state so that information is preserved
// between document.write. This fixes bug 99467
if (mTokenizer && mPrevContext)
mTokenizer->CopyState(mPrevContext->mTokenizer);
}
else if (aType == NS_IPARSER_FLAG_XML)
{
result = CallQueryInterface(mDTD, &mTokenizer);
}
}
aTokenizer = mTokenizer;
return result;
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,698 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Netscape Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#ifndef nsStyleConsts_h___
#define nsStyleConsts_h___
#include "nsFont.h"
// XXX fold this into nsStyleContext and group by nsStyleXXX struct
// Indices into border/padding/margin arrays
#define NS_SIDE_TOP 0
#define NS_SIDE_RIGHT 1
#define NS_SIDE_BOTTOM 2
#define NS_SIDE_LEFT 3
// {margin,padding}-{left,right}-{ltr,rtl}-source
#define NS_BOXPROP_SOURCE_PHYSICAL 0
#define NS_BOXPROP_SOURCE_LOGICAL 1
// box-sizing
#define NS_STYLE_BOX_SIZING_CONTENT 0
#define NS_STYLE_BOX_SIZING_PADDING 1
#define NS_STYLE_BOX_SIZING_BORDER 2
// float-edge
#define NS_STYLE_FLOAT_EDGE_CONTENT 0
#define NS_STYLE_FLOAT_EDGE_PADDING 1
#define NS_STYLE_FLOAT_EDGE_BORDER 2
#define NS_STYLE_FLOAT_EDGE_MARGIN 3
// key-equivalent
#define NS_STYLE_KEY_EQUIVALENT_NONE 0
// resizer
#define NS_STYLE_RESIZER_NONE 0x00
#define NS_STYLE_RESIZER_HORIZONTAL 0x01 // bits
#define NS_STYLE_RESIZER_VERTICAL 0x02 // bits
#define NS_STYLE_RESIZER_BOTH 0x03 // bits
#define NS_STYLE_RESIZER_AUTO 0x04 // bits
// user-focus
#define NS_STYLE_USER_FOCUS_NONE 0
#define NS_STYLE_USER_FOCUS_IGNORE 1
#define NS_STYLE_USER_FOCUS_NORMAL 2
#define NS_STYLE_USER_FOCUS_SELECT_ALL 3
#define NS_STYLE_USER_FOCUS_SELECT_BEFORE 4
#define NS_STYLE_USER_FOCUS_SELECT_AFTER 5
#define NS_STYLE_USER_FOCUS_SELECT_SAME 6
#define NS_STYLE_USER_FOCUS_SELECT_MENU 7
// user-select
#define NS_STYLE_USER_SELECT_NONE 0
#define NS_STYLE_USER_SELECT_TEXT 1
#define NS_STYLE_USER_SELECT_ELEMENT 2
#define NS_STYLE_USER_SELECT_ELEMENTS 3
#define NS_STYLE_USER_SELECT_ALL 4
#define NS_STYLE_USER_SELECT_TOGGLE 5
#define NS_STYLE_USER_SELECT_TRI_STATE 6
#define NS_STYLE_USER_SELECT_AUTO 7 // internal value - please use nsFrame::IsSelectable()
#define NS_STYLE_USER_SELECT_MOZ_ALL 8 // force selection of all children - bug 48096
// user-input
#define NS_STYLE_USER_INPUT_NONE 0
#define NS_STYLE_USER_INPUT_ENABLED 1
#define NS_STYLE_USER_INPUT_DISABLED 2
#define NS_STYLE_USER_INPUT_AUTO 3
// user-modify
#define NS_STYLE_USER_MODIFY_READ_ONLY 0
#define NS_STYLE_USER_MODIFY_READ_WRITE 1
#define NS_STYLE_USER_MODIFY_WRITE_ONLY 2
// box-align
#define NS_STYLE_BOX_ALIGN_STRETCH 0
#define NS_STYLE_BOX_ALIGN_START 1
#define NS_STYLE_BOX_ALIGN_CENTER 2
#define NS_STYLE_BOX_ALIGN_BASELINE 3
#define NS_STYLE_BOX_ALIGN_END 4
// box-pack
#define NS_STYLE_BOX_PACK_START 0
#define NS_STYLE_BOX_PACK_CENTER 1
#define NS_STYLE_BOX_PACK_END 2
#define NS_STYLE_BOX_PACK_JUSTIFY 3
// box-direction
#define NS_STYLE_BOX_DIRECTION_NORMAL 0
#define NS_STYLE_BOX_DIRECTION_REVERSE 1
// box-orient
#define NS_STYLE_BOX_ORIENT_HORIZONTAL 0
#define NS_STYLE_BOX_ORIENT_VERTICAL 1
// Azimuth - See nsStyleAural
#define NS_STYLE_AZIMUTH_LEFT_SIDE 0x00
#define NS_STYLE_AZIMUTH_FAR_LEFT 0x01
#define NS_STYLE_AZIMUTH_LEFT 0x02
#define NS_STYLE_AZIMUTH_CENTER_LEFT 0x03
#define NS_STYLE_AZIMUTH_CENTER 0x04
#define NS_STYLE_AZIMUTH_CENTER_RIGHT 0x05
#define NS_STYLE_AZIMUTH_RIGHT 0x06
#define NS_STYLE_AZIMUTH_FAR_RIGHT 0x07
#define NS_STYLE_AZIMUTH_RIGHT_SIDE 0x08
#define NS_STYLE_AZIMUTH_BEHIND 0x80 // bits
#define NS_STYLE_AZIMUTH_LEFTWARDS 0x10 // bits
#define NS_STYLE_AZIMUTH_RIGHTWARDS 0x20 // bits
// See nsStyleAural
#define NS_STYLE_ELEVATION_BELOW 1
#define NS_STYLE_ELEVATION_LEVEL 2
#define NS_STYLE_ELEVATION_ABOVE 3
#define NS_STYLE_ELEVATION_HIGHER 4
#define NS_STYLE_ELEVATION_LOWER 5
// See nsStyleAural
#define NS_STYLE_PITCH_X_LOW 1
#define NS_STYLE_PITCH_LOW 2
#define NS_STYLE_PITCH_MEDIUM 3
#define NS_STYLE_PITCH_HIGH 4
#define NS_STYLE_PITCH_X_HIGH 5
// See nsStyleAural
#define NS_STYLE_PLAY_DURING_MIX 0x01 // bit field
#define NS_STYLE_PLAY_DURING_REPEAT 0x02
// See nsStyleAural
#define NS_STYLE_SPEAK_NONE 0
#define NS_STYLE_SPEAK_NORMAL 1
#define NS_STYLE_SPEAK_SPELL_OUT 2
// See nsStyleAural
#define NS_STYLE_SPEAK_HEADER_ONCE 0
#define NS_STYLE_SPEAK_HEADER_ALWAYS 1
// See nsStyleAural
#define NS_STYLE_SPEAK_NUMERAL_DIGITS 0
#define NS_STYLE_SPEAK_NUMERAL_CONTINUOUS 1
// See nsStyleAural
#define NS_STYLE_SPEAK_PUNCTUATION_NONE 0
#define NS_STYLE_SPEAK_PUNCTUATION_CODE 1
// See nsStyleAural
#define NS_STYLE_SPEECH_RATE_X_SLOW 0
#define NS_STYLE_SPEECH_RATE_SLOW 1
#define NS_STYLE_SPEECH_RATE_MEDIUM 2
#define NS_STYLE_SPEECH_RATE_FAST 3
#define NS_STYLE_SPEECH_RATE_X_FAST 4
#define NS_STYLE_SPEECH_RATE_FASTER 10
#define NS_STYLE_SPEECH_RATE_SLOWER 11
// See nsStyleAural
#define NS_STYLE_VOLUME_SILENT 0
#define NS_STYLE_VOLUME_X_SOFT 1
#define NS_STYLE_VOLUME_SOFT 2
#define NS_STYLE_VOLUME_MEDIUM 3
#define NS_STYLE_VOLUME_LOUD 4
#define NS_STYLE_VOLUME_X_LOUD 5
// See nsStyleColor
#define NS_STYLE_COLOR_TRANSPARENT 0
#define NS_STYLE_COLOR_INVERT 1
#define NS_STYLE_COLOR_MOZ_USE_TEXT_COLOR 2
// See nsStyleColor
#define NS_COLOR_MOZ_HYPERLINKTEXT -1
#define NS_COLOR_MOZ_VISITEDHYPERLINKTEXT -2
#define NS_COLOR_MOZ_ACTIVEHYPERLINKTEXT -3
// See nsStyleBackground
#define NS_STYLE_BG_COLOR_TRANSPARENT 0x01
#define NS_STYLE_BG_IMAGE_NONE 0x02
#define NS_STYLE_BG_X_POSITION_PERCENT 0x04
#define NS_STYLE_BG_X_POSITION_LENGTH 0x08
#define NS_STYLE_BG_Y_POSITION_PERCENT 0x10
#define NS_STYLE_BG_Y_POSITION_LENGTH 0x20
// See nsStyleBackground
#define NS_STYLE_BG_ATTACHMENT_SCROLL 0
#define NS_STYLE_BG_ATTACHMENT_FIXED 1
// See nsStyleBackground
#define NS_STYLE_BG_CLIP_BORDER 0
#define NS_STYLE_BG_CLIP_PADDING 1
// See nsStyleBackground
#define NS_STYLE_BG_INLINE_POLICY_EACH_BOX 0
#define NS_STYLE_BG_INLINE_POLICY_CONTINUOUS 1
#define NS_STYLE_BG_INLINE_POLICY_BOUNDING_BOX 2
// See nsStyleBackground
#define NS_STYLE_BG_ORIGIN_BORDER 0
#define NS_STYLE_BG_ORIGIN_PADDING 1
#define NS_STYLE_BG_ORIGIN_CONTENT 2
// See nsStyleBackground
#define NS_STYLE_BG_REPEAT_OFF 0x00
#define NS_STYLE_BG_REPEAT_X 0x01
#define NS_STYLE_BG_REPEAT_Y 0x02
#define NS_STYLE_BG_REPEAT_XY 0x03
// See nsStyleTable
#define NS_STYLE_BORDER_COLLAPSE 0
#define NS_STYLE_BORDER_SEPARATE 1
// See nsStyleBorder mBorder enum values
#define NS_STYLE_BORDER_WIDTH_THIN 0
#define NS_STYLE_BORDER_WIDTH_MEDIUM 1
#define NS_STYLE_BORDER_WIDTH_THICK 2
// XXX chopping block #define NS_STYLE_BORDER_WIDTH_LENGTH_VALUE 3
// See nsStyleBorder mBorderStyle
#define NS_STYLE_BORDER_STYLE_NONE 0
#define NS_STYLE_BORDER_STYLE_GROOVE 1
#define NS_STYLE_BORDER_STYLE_RIDGE 2
#define NS_STYLE_BORDER_STYLE_DOTTED 3
#define NS_STYLE_BORDER_STYLE_DASHED 4
#define NS_STYLE_BORDER_STYLE_SOLID 5
#define NS_STYLE_BORDER_STYLE_DOUBLE 6
#define NS_STYLE_BORDER_STYLE_BLANK 7
#define NS_STYLE_BORDER_STYLE_INSET 8
#define NS_STYLE_BORDER_STYLE_OUTSET 9
#define NS_STYLE_BORDER_STYLE_HIDDEN 10
#define NS_STYLE_BORDER_STYLE_BG_INSET 11
#define NS_STYLE_BORDER_STYLE_BG_OUTSET 12
#define NS_STYLE_BORDER_STYLE_BG_SOLID 13
// a bit ORed onto the style for table border collapsing indicating that the style was
// derived from a table with its rules attribute set
#define NS_STYLE_BORDER_STYLE_RULES_MASK 0x10
// See nsStyleDisplay
#define NS_STYLE_CLEAR_NONE 0
#define NS_STYLE_CLEAR_LEFT 1
#define NS_STYLE_CLEAR_RIGHT 2
#define NS_STYLE_CLEAR_LEFT_AND_RIGHT 3
#define NS_STYLE_CLEAR_LINE 4
#define NS_STYLE_CLEAR_BLOCK 5
#define NS_STYLE_CLEAR_COLUMN 6
#define NS_STYLE_CLEAR_PAGE 7
#define NS_STYLE_CLEAR_LAST_VALUE NS_STYLE_CLEAR_PAGE
// See
#define NS_STYLE_CONTENT_OPEN_QUOTE 0
#define NS_STYLE_CONTENT_CLOSE_QUOTE 1
#define NS_STYLE_CONTENT_NO_OPEN_QUOTE 2
#define NS_STYLE_CONTENT_NO_CLOSE_QUOTE 3
// See nsStyleColor
#define NS_STYLE_CURSOR_AUTO 1
#define NS_STYLE_CURSOR_CROSSHAIR 2
#define NS_STYLE_CURSOR_DEFAULT 3 // ie: an arrow
#define NS_STYLE_CURSOR_POINTER 4 // for links
#define NS_STYLE_CURSOR_MOVE 5
#define NS_STYLE_CURSOR_E_RESIZE 6
#define NS_STYLE_CURSOR_NE_RESIZE 7
#define NS_STYLE_CURSOR_NW_RESIZE 8
#define NS_STYLE_CURSOR_N_RESIZE 9
#define NS_STYLE_CURSOR_SE_RESIZE 10
#define NS_STYLE_CURSOR_SW_RESIZE 11
#define NS_STYLE_CURSOR_S_RESIZE 12
#define NS_STYLE_CURSOR_W_RESIZE 13
#define NS_STYLE_CURSOR_TEXT 14 // ie: i-beam
#define NS_STYLE_CURSOR_WAIT 15
#define NS_STYLE_CURSOR_HELP 16
#define NS_STYLE_CURSOR_COPY 17 // CSS3
#define NS_STYLE_CURSOR_ALIAS 18
#define NS_STYLE_CURSOR_CONTEXT_MENU 19
#define NS_STYLE_CURSOR_CELL 20
#define NS_STYLE_CURSOR_GRAB 21
#define NS_STYLE_CURSOR_GRABBING 22
#define NS_STYLE_CURSOR_SPINNING 23
#define NS_STYLE_CURSOR_COUNT_UP 24
#define NS_STYLE_CURSOR_COUNT_DOWN 25
#define NS_STYLE_CURSOR_COUNT_UP_DOWN 26
#define NS_STYLE_CURSOR_MOZ_ZOOM_IN 27
#define NS_STYLE_CURSOR_MOZ_ZOOM_OUT 28
// See nsStyleDisplay
#define NS_STYLE_DIRECTION_LTR 0
#define NS_STYLE_DIRECTION_RTL 1
#define NS_STYLE_DIRECTION_INHERIT 2
// See nsStyleDisplay
#define NS_STYLE_DISPLAY_NONE 0
#define NS_STYLE_DISPLAY_BLOCK 1
#define NS_STYLE_DISPLAY_INLINE 2
#define NS_STYLE_DISPLAY_INLINE_BLOCK 3
#define NS_STYLE_DISPLAY_LIST_ITEM 4
#define NS_STYLE_DISPLAY_MARKER 5
#define NS_STYLE_DISPLAY_RUN_IN 6
#define NS_STYLE_DISPLAY_COMPACT 7
#define NS_STYLE_DISPLAY_TABLE 8
#define NS_STYLE_DISPLAY_INLINE_TABLE 9
#define NS_STYLE_DISPLAY_TABLE_ROW_GROUP 10
#define NS_STYLE_DISPLAY_TABLE_COLUMN 11
#define NS_STYLE_DISPLAY_TABLE_COLUMN_GROUP 12
#define NS_STYLE_DISPLAY_TABLE_HEADER_GROUP 13
#define NS_STYLE_DISPLAY_TABLE_FOOTER_GROUP 14
#define NS_STYLE_DISPLAY_TABLE_ROW 15
#define NS_STYLE_DISPLAY_TABLE_CELL 16
#define NS_STYLE_DISPLAY_TABLE_CAPTION 17
#define NS_STYLE_DISPLAY_BOX 18
#define NS_STYLE_DISPLAY_INLINE_BOX 19
#define NS_STYLE_DISPLAY_GRID 20
#define NS_STYLE_DISPLAY_INLINE_GRID 21
#define NS_STYLE_DISPLAY_GRID_GROUP 22
#define NS_STYLE_DISPLAY_GRID_LINE 23
#define NS_STYLE_DISPLAY_STACK 24
#define NS_STYLE_DISPLAY_INLINE_STACK 25
#define NS_STYLE_DISPLAY_DECK 26
#define NS_STYLE_DISPLAY_BULLETINBOARD 27
#define NS_STYLE_DISPLAY_POPUP 28
#define NS_STYLE_DISPLAY_GROUPBOX 29
#define NS_STYLE_DISPLAY_PAGE_BREAK 30
// See nsStyleDisplay
#define NS_STYLE_FLOAT_NONE 0
#define NS_STYLE_FLOAT_LEFT 1
#define NS_STYLE_FLOAT_RIGHT 2
// See nsStyleFont
#define NS_STYLE_FONT_STYLE_NORMAL 0
#define NS_STYLE_FONT_STYLE_ITALIC 1
#define NS_STYLE_FONT_STYLE_OBLIQUE 2
// See nsStyleFont
#define NS_STYLE_FONT_VARIANT_NORMAL 0
#define NS_STYLE_FONT_VARIANT_SMALL_CAPS 1
// See nsStyleFont
#define NS_STYLE_FONT_WEIGHT_NORMAL 400
#define NS_STYLE_FONT_WEIGHT_BOLD 700
#define NS_STYLE_FONT_WEIGHT_BOLDER 1
#define NS_STYLE_FONT_WEIGHT_LIGHTER -1
// See nsStyleFont
#define NS_STYLE_FONT_SIZE_XXSMALL 0
#define NS_STYLE_FONT_SIZE_XSMALL 1
#define NS_STYLE_FONT_SIZE_SMALL 2
#define NS_STYLE_FONT_SIZE_MEDIUM 3
#define NS_STYLE_FONT_SIZE_LARGE 4
#define NS_STYLE_FONT_SIZE_XLARGE 5
#define NS_STYLE_FONT_SIZE_XXLARGE 6
#define NS_STYLE_FONT_SIZE_XXXLARGE 7 // Only used by <font size="7">. Not specifiable in CSS.
#define NS_STYLE_FONT_SIZE_LARGER 8
#define NS_STYLE_FONT_SIZE_SMALLER 9
// See nsStyleFont
#define NS_STYLE_FONT_STRETCH_ULTRA_CONDENSED -4
#define NS_STYLE_FONT_STRETCH_EXTRA_CONDENSED -3
#define NS_STYLE_FONT_STRETCH_CONDENSED -2
#define NS_STYLE_FONT_STRETCH_SEMI_CONDENSED -1
#define NS_STYLE_FONT_STRETCH_NORMAL 0
#define NS_STYLE_FONT_STRETCH_SEMI_EXPANDED 1
#define NS_STYLE_FONT_STRETCH_EXPANDED 2
#define NS_STYLE_FONT_STRETCH_EXTRA_EXPANDED 3
#define NS_STYLE_FONT_STRETCH_ULTRA_EXPANDED 4
#define NS_STYLE_FONT_STRETCH_WIDER 10
#define NS_STYLE_FONT_STRETCH_NARROWER -10
// See nsStyleFont mFlags
#define NS_STYLE_FONT_DEFAULT 0x00
#define NS_STYLE_FONT_FACE_MASK 0xFF // used to flag generic fonts
// See nsStyleFont - system fonts
#define NS_STYLE_FONT_CAPTION 1 // css2
#define NS_STYLE_FONT_ICON 2
#define NS_STYLE_FONT_MENU 3
#define NS_STYLE_FONT_MESSAGE_BOX 4
#define NS_STYLE_FONT_SMALL_CAPTION 5
#define NS_STYLE_FONT_STATUS_BAR 6
#define NS_STYLE_FONT_WINDOW 7 // css3
#define NS_STYLE_FONT_DOCUMENT 8
#define NS_STYLE_FONT_WORKSPACE 9
#define NS_STYLE_FONT_DESKTOP 10
#define NS_STYLE_FONT_INFO 11
#define NS_STYLE_FONT_DIALOG 12
#define NS_STYLE_FONT_BUTTON 13
#define NS_STYLE_FONT_PULL_DOWN_MENU 14
#define NS_STYLE_FONT_LIST 15
#define NS_STYLE_FONT_FIELD 16
// See nsStylePosition.mPosition
#define NS_STYLE_POSITION_STATIC 0
#define NS_STYLE_POSITION_RELATIVE 1
#define NS_STYLE_POSITION_ABSOLUTE 2
#define NS_STYLE_POSITION_FIXED 3
// See nsStylePosition.mClip
#define NS_STYLE_CLIP_AUTO 0x00
#define NS_STYLE_CLIP_RECT 0x01
#define NS_STYLE_CLIP_TYPE_MASK 0x0F
#define NS_STYLE_CLIP_LEFT_AUTO 0x10
#define NS_STYLE_CLIP_TOP_AUTO 0x20
#define NS_STYLE_CLIP_RIGHT_AUTO 0x40
#define NS_STYLE_CLIP_BOTTOM_AUTO 0x80
// FRAME/FRAMESET/IFRAME specific values including backward compatibility. Boolean values with
// the same meaning (e.g. 1 & yes) may need to be distinguished for correct mode processing
#define NS_STYLE_FRAME_YES 0
#define NS_STYLE_FRAME_NO 1
#define NS_STYLE_FRAME_0 2
#define NS_STYLE_FRAME_1 3
#define NS_STYLE_FRAME_ON 4
#define NS_STYLE_FRAME_OFF 5
#define NS_STYLE_FRAME_AUTO 6
#define NS_STYLE_FRAME_SCROLL 7
#define NS_STYLE_FRAME_NOSCROLL 8
// See nsStylePosition.mOverflow
#define NS_STYLE_OVERFLOW_VISIBLE 0
#define NS_STYLE_OVERFLOW_HIDDEN 1
#define NS_STYLE_OVERFLOW_SCROLL 2
#define NS_STYLE_OVERFLOW_AUTO 3
#define NS_STYLE_OVERFLOW_SCROLLBARS_NONE 4
#define NS_STYLE_OVERFLOW_SCROLLBARS_HORIZONTAL 5
#define NS_STYLE_OVERFLOW_SCROLLBARS_VERTICAL 6
// See nsStyleList
#define NS_STYLE_LIST_STYLE_NONE 0
#define NS_STYLE_LIST_STYLE_DISC 1
#define NS_STYLE_LIST_STYLE_CIRCLE 2
#define NS_STYLE_LIST_STYLE_SQUARE 3
#define NS_STYLE_LIST_STYLE_DECIMAL 4
#define NS_STYLE_LIST_STYLE_DECIMAL_LEADING_ZERO 5
#define NS_STYLE_LIST_STYLE_LOWER_ROMAN 6
#define NS_STYLE_LIST_STYLE_UPPER_ROMAN 7
#define NS_STYLE_LIST_STYLE_LOWER_GREEK 8
#define NS_STYLE_LIST_STYLE_LOWER_ALPHA 9
#define NS_STYLE_LIST_STYLE_LOWER_LATIN 9 // == ALPHA
#define NS_STYLE_LIST_STYLE_UPPER_ALPHA 10
#define NS_STYLE_LIST_STYLE_UPPER_LATIN 10 // == ALPHA
#define NS_STYLE_LIST_STYLE_HEBREW 11
#define NS_STYLE_LIST_STYLE_ARMENIAN 12
#define NS_STYLE_LIST_STYLE_GEORGIAN 13
#define NS_STYLE_LIST_STYLE_CJK_IDEOGRAPHIC 14
#define NS_STYLE_LIST_STYLE_HIRAGANA 15
#define NS_STYLE_LIST_STYLE_KATAKANA 16
#define NS_STYLE_LIST_STYLE_HIRAGANA_IROHA 17
#define NS_STYLE_LIST_STYLE_KATAKANA_IROHA 18
#define NS_STYLE_LIST_STYLE_OLD_LOWER_ROMAN 19
#define NS_STYLE_LIST_STYLE_OLD_UPPER_ROMAN 20
#define NS_STYLE_LIST_STYLE_OLD_LOWER_ALPHA 21
#define NS_STYLE_LIST_STYLE_OLD_UPPER_ALPHA 22
#define NS_STYLE_LIST_STYLE_OLD_DECIMAL 23
#define NS_STYLE_LIST_STYLE_MOZ_CJK_HEAVENLY_STEM 24
#define NS_STYLE_LIST_STYLE_MOZ_CJK_EARTHLY_BRANCH 25
#define NS_STYLE_LIST_STYLE_MOZ_TRAD_CHINESE_INFORMAL 26
#define NS_STYLE_LIST_STYLE_MOZ_TRAD_CHINESE_FORMAL 27
#define NS_STYLE_LIST_STYLE_MOZ_SIMP_CHINESE_INFORMAL 28
#define NS_STYLE_LIST_STYLE_MOZ_SIMP_CHINESE_FORMAL 29
#define NS_STYLE_LIST_STYLE_MOZ_JAPANESE_INFORMAL 30
#define NS_STYLE_LIST_STYLE_MOZ_JAPANESE_FORMAL 31
#define NS_STYLE_LIST_STYLE_MOZ_ARABIC_INDIC 32
#define NS_STYLE_LIST_STYLE_MOZ_PERSIAN 33
#define NS_STYLE_LIST_STYLE_MOZ_URDU 34
#define NS_STYLE_LIST_STYLE_MOZ_DEVANAGARI 35
#define NS_STYLE_LIST_STYLE_MOZ_GURMUKHI 36
#define NS_STYLE_LIST_STYLE_MOZ_GUJARATI 37
#define NS_STYLE_LIST_STYLE_MOZ_ORIYA 38
#define NS_STYLE_LIST_STYLE_MOZ_KANNADA 39
#define NS_STYLE_LIST_STYLE_MOZ_MALAYALAM 40
#define NS_STYLE_LIST_STYLE_MOZ_BENGALI 41
#define NS_STYLE_LIST_STYLE_MOZ_TAMIL 42
#define NS_STYLE_LIST_STYLE_MOZ_TELUGU 43
#define NS_STYLE_LIST_STYLE_MOZ_THAI 44
#define NS_STYLE_LIST_STYLE_MOZ_LAO 45
#define NS_STYLE_LIST_STYLE_MOZ_MYANMAR 46
#define NS_STYLE_LIST_STYLE_MOZ_KHMER 47
#define NS_STYLE_LIST_STYLE_MOZ_HANGUL 48
#define NS_STYLE_LIST_STYLE_MOZ_HANGUL_CONSONANT 49
#define NS_STYLE_LIST_STYLE_MOZ_ETHIOPIC_HALEHAME 50
#define NS_STYLE_LIST_STYLE_MOZ_ETHIOPIC_NUMERIC 51
#define NS_STYLE_LIST_STYLE_MOZ_ETHIOPIC_HALEHAME_AM 52
#define NS_STYLE_LIST_STYLE_MOZ_ETHIOPIC_HALEHAME_TI_ER 53
#define NS_STYLE_LIST_STYLE_MOZ_ETHIOPIC_HALEHAME_TI_ET 54
// See nsStyleList
#define NS_STYLE_LIST_STYLE_POSITION_INSIDE 0
#define NS_STYLE_LIST_STYLE_POSITION_OUTSIDE 1
// See nsStyleMargin
#define NS_STYLE_MARGIN_SIZE_AUTO 0
// See nsStyleText
//
// Note: make sure the numbers are less than the numbers that start
// the vertical_align values below!
#define NS_STYLE_TEXT_ALIGN_DEFAULT 0
#define NS_STYLE_TEXT_ALIGN_LEFT 1
#define NS_STYLE_TEXT_ALIGN_RIGHT 2
#define NS_STYLE_TEXT_ALIGN_CENTER 3
#define NS_STYLE_TEXT_ALIGN_JUSTIFY 4
#define NS_STYLE_TEXT_ALIGN_CHAR 5 //align based on a certain character, for table cell
#define NS_STYLE_TEXT_ALIGN_MOZ_CENTER 6
#define NS_STYLE_TEXT_ALIGN_MOZ_RIGHT 7
// See nsStyleText, nsStyleFont
#define NS_STYLE_TEXT_DECORATION_NONE 0
#define NS_STYLE_TEXT_DECORATION_UNDERLINE NS_FONT_DECORATION_UNDERLINE
#define NS_STYLE_TEXT_DECORATION_OVERLINE NS_FONT_DECORATION_OVERLINE
#define NS_STYLE_TEXT_DECORATION_LINE_THROUGH NS_FONT_DECORATION_LINE_THROUGH
#define NS_STYLE_TEXT_DECORATION_BLINK 0x08
#define NS_STYLE_TEXT_DECORATION_OVERRIDE_ALL 0x10
#define NS_STYLE_TEXT_DECORATION_PREF_ANCHORS 0x20
// See nsStyleText
#define NS_STYLE_TEXT_TRANSFORM_NONE 0
#define NS_STYLE_TEXT_TRANSFORM_CAPITALIZE 1
#define NS_STYLE_TEXT_TRANSFORM_LOWERCASE 2
#define NS_STYLE_TEXT_TRANSFORM_UPPERCASE 3
// See nsStyleText
// Note: these values pickup after the text-align values because there
// are a few html cases where an object can have both types of
// alignment applied with a single attribute
#define NS_STYLE_VERTICAL_ALIGN_BASELINE 10
#define NS_STYLE_VERTICAL_ALIGN_SUB 11
#define NS_STYLE_VERTICAL_ALIGN_SUPER 12
#define NS_STYLE_VERTICAL_ALIGN_TOP 13
#define NS_STYLE_VERTICAL_ALIGN_TEXT_TOP 14
#define NS_STYLE_VERTICAL_ALIGN_MIDDLE 15
#define NS_STYLE_VERTICAL_ALIGN_TEXT_BOTTOM 16
#define NS_STYLE_VERTICAL_ALIGN_BOTTOM 17
// See nsStyleDisplay
#define NS_STYLE_VISIBILITY_HIDDEN 0
#define NS_STYLE_VISIBILITY_VISIBLE 1
#define NS_STYLE_VISIBILITY_COLLAPSE 2
// See nsStyleText
#define NS_STYLE_WHITESPACE_NORMAL 0
#define NS_STYLE_WHITESPACE_PRE 1
#define NS_STYLE_WHITESPACE_NOWRAP 2
#define NS_STYLE_WHITESPACE_MOZ_PRE_WRAP 3
// See nsStyleText
#define NS_STYLE_UNICODE_BIDI_NORMAL 0
#define NS_STYLE_UNICODE_BIDI_EMBED 1
#define NS_STYLE_UNICODE_BIDI_OVERRIDE 2
// See nsStyleTable (here for HTML 4.0 for now, should probably change to side flags)
#define NS_STYLE_TABLE_FRAME_NONE 0
#define NS_STYLE_TABLE_FRAME_ABOVE 1
#define NS_STYLE_TABLE_FRAME_BELOW 2
#define NS_STYLE_TABLE_FRAME_HSIDES 3
#define NS_STYLE_TABLE_FRAME_VSIDES 4
#define NS_STYLE_TABLE_FRAME_LEFT 5
#define NS_STYLE_TABLE_FRAME_RIGHT 6
#define NS_STYLE_TABLE_FRAME_BOX 7
#define NS_STYLE_TABLE_FRAME_BORDER 8
// See nsStyleTable
#define NS_STYLE_TABLE_RULES_NONE 0
#define NS_STYLE_TABLE_RULES_GROUPS 1
#define NS_STYLE_TABLE_RULES_ROWS 2
#define NS_STYLE_TABLE_RULES_COLS 3
#define NS_STYLE_TABLE_RULES_ALL 4
#define NS_STYLE_TABLE_COLS_NONE (-1)
#define NS_STYLE_TABLE_COLS_ALL PRInt32(1 << 30)
#define NS_STYLE_TABLE_LAYOUT_AUTO 0
#define NS_STYLE_TABLE_LAYOUT_FIXED 1
#define NS_STYLE_TABLE_EMPTY_CELLS_HIDE 0
#define NS_STYLE_TABLE_EMPTY_CELLS_SHOW 1
#define NS_STYLE_TABLE_EMPTY_CELLS_SHOW_BACKGROUND 2
// CAPTION_SIDE uses NS_SIDE_*
// constants for cell "scope" attribute
#define NS_STYLE_CELL_SCOPE_ROW 0
#define NS_STYLE_CELL_SCOPE_COL 1
#define NS_STYLE_CELL_SCOPE_ROWGROUP 2
#define NS_STYLE_CELL_SCOPE_COLGROUP 3
// See nsStylePage
#define NS_STYLE_PAGE_MARKS_NONE 0x00
#define NS_STYLE_PAGE_MARKS_CROP 0x01
#define NS_STYLE_PAGE_MARKS_REGISTER 0x02
// See nsStylePage
#define NS_STYLE_PAGE_SIZE_AUTO 0
#define NS_STYLE_PAGE_SIZE_PORTRAIT 1
#define NS_STYLE_PAGE_SIZE_LANDSCAPE 2
// See nsStyleBreaks
#define NS_STYLE_PAGE_BREAK_AUTO 0
#define NS_STYLE_PAGE_BREAK_ALWAYS 1
#define NS_STYLE_PAGE_BREAK_AVOID 2
#define NS_STYLE_PAGE_BREAK_LEFT 3
#define NS_STYLE_PAGE_BREAK_RIGHT 4
#ifdef MOZ_SVG
// Some of our constants must map to the same values as those defined in
// nsISVG{,Path,Glyph}GeometrySource.idl/
// I don't want to add a dependency on the SVG module
// everywhere by #include'ing nsISVG{,Path,Glyph}GeometrySource.h, so these consts
// have to be kept in sync manually.
// dominant-baseline
#define NS_STYLE_DOMINANT_BASELINE_AUTO 0
#define NS_STYLE_DOMINANT_BASELINE_USE_SCRIPT 1
#define NS_STYLE_DOMINANT_BASELINE_NO_CHANGE 2
#define NS_STYLE_DOMINANT_BASELINE_RESET_SIZE 3
#define NS_STYLE_DOMINANT_BASELINE_ALPHABETIC 4
#define NS_STYLE_DOMINANT_BASELINE_HANGING 5
#define NS_STYLE_DOMINANT_BASELINE_IDEOGRAPHIC 6
#define NS_STYLE_DOMINANT_BASELINE_MATHEMATICAL 7
#define NS_STYLE_DOMINANT_BASELINE_CENTRAL 8
#define NS_STYLE_DOMINANT_BASELINE_MIDDLE 9
#define NS_STYLE_DOMINANT_BASELINE_TEXT_AFTER_EDGE 10
#define NS_STYLE_DOMINANT_BASELINE_TEXT_BEFORE_EDGE 11
#define NS_STYLE_DOMINANT_BASELINE_TEXT_TOP 12
#define NS_STYLE_DOMINANT_BASELINE_TEXT_BOTTOM 13
// fill-rule
#define NS_STYLE_FILL_RULE_NONZERO 0 /* == nsISVGGeometrySource::FILL_RULE_NONZERO */
#define NS_STYLE_FILL_RULE_EVENODD 1 /* == nsISVGGeometrySource::FILL_RULE_EVENODD */
// pointer-events
#define NS_STYLE_POINTER_EVENTS_NONE 0
#define NS_STYLE_POINTER_EVENTS_VISIBLEPAINTED 1
#define NS_STYLE_POINTER_EVENTS_VISIBLEFILL 2
#define NS_STYLE_POINTER_EVENTS_VISIBLESTROKE 3
#define NS_STYLE_POINTER_EVENTS_VISIBLE 4
#define NS_STYLE_POINTER_EVENTS_PAINTED 5
#define NS_STYLE_POINTER_EVENTS_FILL 6
#define NS_STYLE_POINTER_EVENTS_STROKE 7
#define NS_STYLE_POINTER_EVENTS_ALL 8
// shape-rendering
#define NS_STYLE_SHAPE_RENDERING_AUTO 0 /* == nsISVGPathGeometrySource::SHAPE_RENDERING_AUTO */
#define NS_STYLE_SHAPE_RENDERING_OPTIMIZESPEED 1 /* == nsISVGPathGeometrySource::SHAPE_RENDERING_OPTIMIZESPEED */
#define NS_STYLE_SHAPE_RENDERING_CRISPEDGES 2 /* == nsISVGPathGeometrySource::SHAPE_RENDERING_CRISPEDGES */
#define NS_STYLE_SHAPE_RENDERING_GEOMETRICPRECISION 3 /* == nsISVGPathGeometrySource::SHAPE_RENDERING_GEOMETRICPRECISION */
// stroke-linecap
#define NS_STYLE_STROKE_LINECAP_BUTT 0 /* == nsISVGGeometrySource::STROKE_LINECAP_BUTT */
#define NS_STYLE_STROKE_LINECAP_ROUND 1 /* == nsISVGGeometrySource::STROKE_LINECAP_ROUND */
#define NS_STYLE_STROKE_LINECAP_SQUARE 2 /* == nsISVGGeometrySource::STROKE_LINECAP_SQUARE */
// stroke-linejoin
#define NS_STYLE_STROKE_LINEJOIN_MITER 0 /* == nsISVGGeometrySource::STROKE_LINEJOIN_MITER */
#define NS_STYLE_STROKE_LINEJOIN_ROUND 1 /* == nsISVGGeometrySource::STROKE_LINEJOIN_ROUND */
#define NS_STYLE_STROKE_LINEJOIN_BEVEL 2 /* == nsISVGGeometrySource::STROKE_LINEJOIN_BEVEL */
// text-anchor
#define NS_STYLE_TEXT_ANCHOR_START 0
#define NS_STYLE_TEXT_ANCHOR_MIDDLE 1
#define NS_STYLE_TEXT_ANCHOR_END 2
// text-rendering
#define NS_STYLE_TEXT_RENDERING_AUTO 0 /* == nsISVGGlyphGeometrySource::TEXT_RENDERING_AUTO */
#define NS_STYLE_TEXT_RENDERING_OPTIMIZESPEED 1 /* == nsISVGG.G.S.::TEXT_RENDERING_OPTIMIZESPEED */
#define NS_STYLE_TEXT_RENDERING_OPTIMIZELEGIBILITY 2 /* == nsISVGG.G.S.::TEXT_RENDERING_OPTIMIZELEGIBILITY */
#define NS_STYLE_TEXT_RENDERING_GEOMETRICPRECISION 3 /* == nsISVGG.G.S.::TEXT_RENDERING_GEOMETRICPRECISION */
#endif // MOZ_SVG
#endif /* nsStyleConsts_h___ */

View File

@@ -0,0 +1,209 @@
#
# The contents of this file are subject to the Netscape Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/NPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
DEPTH = ../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
BUILD_DATE = gbdate.h
MODULE = layout
LIBRARY_NAME = gklayout
EXPORT_LIBRARY = 1
IS_COMPONENT = 1
MODULE_NAME = nsLayoutModule
GRE_MODULE = 1
PACKAGE_FILE = layout.pkg
PACKAGE_VARS += MOZ_XUL
EXTRA_DSO_LIBS = gkgfx
ifdef MOZ_PERF_METRICS
EXTRA_DSO_LIBS += mozutil_s
endif
REQUIRES = xpcom \
string \
content \
gfx \
widget \
view \
locale \
necko \
dom \
editor \
webshell \
docshell \
htmlparser \
js \
xpconnect \
uriloader \
caps \
necko2 \
rdf \
xuldoc \
imglib2 \
pref \
unicharutil \
xul \
xultmpl \
lwbrk \
plugin \
$(NULL)
CPPSRCS = \
nsLayoutModule.cpp \
nsContentHTTPStartup.cpp \
nsContentDLF.cpp \
$(NULL)
EXPORTS = nsLayoutCID.h
SHARED_LIBRARY_LIBS = \
$(DIST)/lib/$(LIB_PREFIX)gkhtmlbase_s.$(LIB_SUFFIX) \
$(DIST)/lib/$(LIB_PREFIX)gkhtmldoc_s.$(LIB_SUFFIX) \
$(DIST)/lib/$(LIB_PREFIX)gkhtmlforms_s.$(LIB_SUFFIX) \
$(DIST)/lib/$(LIB_PREFIX)gkhtmlstyle_s.$(LIB_SUFFIX) \
$(DIST)/lib/$(LIB_PREFIX)gkhtmltable_s.$(LIB_SUFFIX) \
$(DIST)/lib/$(LIB_PREFIX)gkxulbase_s.$(LIB_SUFFIX) \
$(DIST)/lib/$(LIB_PREFIX)gkbase_s.$(LIB_SUFFIX) \
$(DIST)/lib/$(LIB_PREFIX)gkconbase_s.$(LIB_SUFFIX) \
$(DIST)/lib/$(LIB_PREFIX)gkconevents_s.$(LIB_SUFFIX) \
$(DIST)/lib/$(LIB_PREFIX)gkconhtmlcon_s.$(LIB_SUFFIX) \
$(DIST)/lib/$(LIB_PREFIX)gkconhtmldoc_s.$(LIB_SUFFIX) \
$(DIST)/lib/$(LIB_PREFIX)gkconhtmlstyle_s.$(LIB_SUFFIX) \
$(DIST)/lib/$(LIB_PREFIX)gkconxmlcon_s.$(LIB_SUFFIX) \
$(DIST)/lib/$(LIB_PREFIX)gkconxmldoc_s.$(LIB_SUFFIX) \
$(DIST)/lib/$(LIB_PREFIX)gkconxbl_s.$(LIB_SUFFIX) \
$(DIST)/lib/$(LIB_PREFIX)gkconxuldoc_s.$(LIB_SUFFIX) \
$(DIST)/lib/$(LIB_PREFIX)gkconshared_s.$(LIB_SUFFIX) \
$(DIST)/lib/$(LIB_PREFIX)gkview_s.$(LIB_SUFFIX) \
$(NULL)
ifdef MOZ_XUL
SHARED_LIBRARY_LIBS += \
$(DIST)/lib/$(LIB_PREFIX)gkxultree_s.$(LIB_SUFFIX) \
$(DIST)/lib/$(LIB_PREFIX)gkxulgrid_s.$(LIB_SUFFIX) \
$(DIST)/lib/$(LIB_PREFIX)gkconxulcon_s.$(LIB_SUFFIX) \
$(DIST)/lib/$(LIB_PREFIX)gkconxultmpl_s.$(LIB_SUFFIX) \
$(NULL)
endif
ifdef MOZ_MATHML
SHARED_LIBRARY_LIBS += \
$(DIST)/lib/$(LIB_PREFIX)gkmathmlcon_s.$(LIB_SUFFIX) \
$(DIST)/lib/$(LIB_PREFIX)gkmathmlbase_s.$(LIB_SUFFIX) \
$(NULL)
endif
ifdef MOZ_SVG
SHARED_LIBRARY_LIBS += \
$(DIST)/lib/$(LIB_PREFIX)gksvgbase_s.$(LIB_SUFFIX) \
$(DIST)/lib/$(LIB_PREFIX)gkconsvgdoc_s.$(LIB_SUFFIX) \
$(DIST)/lib/$(LIB_PREFIX)gkcontentsvg_s.$(LIB_SUFFIX) \
$(NULL)
ifdef MOZ_SVG_RENDERER_GDIPLUS
SHARED_LIBRARY_LIBS += \
$(DIST)/lib/$(LIB_PREFIX)gksvgrenderergdiplus_s.$(LIB_SUFFIX) \
$(NULL)
OS_LIBS += \
Gdiplus.lib \
$(NULL)
endif
ifdef MOZ_SVG_RENDERER_LIBART
SHARED_LIBRARY_LIBS += \
$(DIST)/lib/$(LIB_PREFIX)gksvgrendererlibart_s.$(LIB_SUFFIX) \
$(NULL)
endif
endif
EXTRA_DSO_LDOPTS = \
$(LIBS_DIR) \
$(EXTRA_DSO_LIBS) \
$(MOZ_UNICHARUTIL_LIBS) \
$(MOZ_COMPONENT_LIBS) \
$(MOZ_JS_LIBS) \
$(NULL)
ifdef MOZ_SVG_RENDERER_LIBART
EXTRA_DSO_LDOPTS += $(MOZ_LIBART_LIBS) \
$(NULL)
ifdef MOZ_ENABLE_GTK2
EXTRA_DSO_LDOPTS += $(MOZ_GTK2_LIBS) \
$(NULL)
endif
endif
ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
EXTRA_DSO_LDOPTS += \
$(TK_LIBS) \
$(NULL)
endif
include $(topsrcdir)/config/rules.mk
INCLUDES += -I$(srcdir)/../base/src \
-I$(srcdir)/../html/base/src \
-I$(srcdir)/../html/forms/src \
-I$(srcdir)/../html/style/src \
-I$(srcdir)/../xul/content/src \
-I$(srcdir)/../xul/base/src \
-I$(srcdir)/../../content/base/src \
-I$(srcdir)/../../content/html/content/src \
-I$(srcdir)/../../content/html/document/src \
-I$(srcdir)/../../content/html/style/src \
-I$(srcdir)/../../content/xul/content/src \
-I$(srcdir)/../../content/xul/templates/src \
-I$(srcdir)/../../content/events/src \
-I$(topsrcdir)/view/src \
-I. \
$(NULL)
ifdef MOZ_MATHML
INCLUDES += -I$(srcdir)/../mathml/content/src
endif
ifdef MOZ_SVG
INCLUDES += -I$(srcdir)/../../content/svg/content/src
endif
DEFINES += -D_IMPL_NS_LAYOUT
GARBAGE += $(BUILD_DATE)
ifeq ($(OS_ARCH),IRIX)
ifeq ($(GNU_CXX),1)
LDFLAGS += -Wl,-LD_LAYOUT:lgot_buffer=50
endif
endif
export:: $(BUILD_DATE)
$(BUILD_DATE):: gbdate.pl $(wildcard $(SHARED_LIBRARY_LIBS))
$(RM) $@
$(PERL) $(srcdir)/gbdate.pl > $@

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,32 @@
#
# The contents of this file are subject to the Netscape Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/NPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
DEPTH = ../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
DIRS = base renderer
include $(topsrcdir)/config/rules.mk

Some files were not shown because too many files have changed in this diff Show More