4365 Commits

Author SHA1 Message Date
bryner%brianryner.com
7ace3321e6 Inline TwipsToPixels and PixelsToTwips on nsIPresContext. Bug 229371, r+sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@152647 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-11 04:57:07 +00:00
cbiesinger%web.de
e8f5d1d6ef move debug-only function into #ifdef DEBUG. r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@152616 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-10 23:06:23 +00:00
cbiesinger%web.de
8f5b033ffb Bug 233587 small nsImageFrame cleanup - use nsILink to get a link href.
r+sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@152597 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-10 16:57:00 +00:00
jst%mozilla.jstenback.com
854468a176 Fixing bug 233307. deCOMtaminating nsIScript* and related interfaces. r+sr=bryner@brianryner.com.
git-svn-id: svn://10.0.0.236/trunk@152565 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-09 22:48:53 +00:00
bzbarsky%mit.edu
38a6e197cd Make SVG use the normal attribute mapping codepath (via HasAttributeDependence)
by pushing the relevant helpers up to nsGenericElement..  Remove referrer code
in nsSVGDocument, since nsDocument handles that.  Bug 233370,
r=alex@croczilla.com, sr=jst


git-svn-id: svn://10.0.0.236/trunk@152562 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-09 20:48:20 +00:00
cbiesinger%web.de
b116d275ac fixing bustage
git-svn-id: svn://10.0.0.236/trunk@152560 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-09 17:52:48 +00:00
cbiesinger%web.de
1c0102020c Bug 233457 nsObjectFrame cleanup
r+sr=bz


git-svn-id: svn://10.0.0.236/trunk@152558 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-09 17:33:45 +00:00
dbaron%dbaron.org
1f7a84c373 Clean up nsStyleContext::GetUniqueStyleData. b=233480 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@152541 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-09 06:55:14 +00:00
dbaron%dbaron.org
251f155cb8 A little cleanup. b=229654 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@152538 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-09 05:22:58 +00:00
dbaron%dbaron.org
564b504848 Don't handle auto margins when the container has an unconstrained width. (This still doesn't handle max-width computation with a constrained reflow.) b=229654 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@152537 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-09 05:22:23 +00:00
bzbarsky%mit.edu
e94a4a8364 Collapse trailing whitespace even if there is a placeholder after it. Bug
233451, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@152533 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-09 01:01:06 +00:00
alex.fritze%crocodile-clips.com
937a1cf846 Landing of SVG_20020806_BRANCH, Bug 182533. Refactoring of SVG backend, new GDI+ and Libart rendering
backends, text support on Windows (GDI+), rudimentary text support on Linux (libart/freetype2), presentation
attributes, lots of bug fixes (see bug 182533 for dependency list).

Not part of default build; code is #ifdef'ed out.

r=sicking, sr=jst for dom and htmlparser changes
r=bsmedberg, sr=tor for config changes
r=dbaron, sr=bzbarsky for content and layout changes
r=tor, sr=bzbarsky for gfx changes


git-svn-id: svn://10.0.0.236/trunk@152468 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-07 12:39:26 +00:00
dbaron%dbaron.org
f19ef7abab Get rid of empty damage rect warning; better to check at callee than caller. Add const to fix DEBUG-only warnings about string constants being used as non-const. b=233292 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@152438 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-06 23:11:46 +00:00
dbaron%dbaron.org
d155f2a7e1 Synthesized mouse moves shouldn't fire DOM mousemove events. b=20022 r=roc sr=bryner
git-svn-id: svn://10.0.0.236/trunk@152437 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-06 23:10:32 +00:00
dbaron%dbaron.org
0348e00c9f Change the way we handle auto margins on blocks with outer width (excluding auto margins) wider than their containing block. Use rules equivalent to overconstraint handling (margins non-auto) so that we depend on 'direction' rather than on which margins are 'auto'. b=185411 r=roc sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@152273 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-04 05:18:37 +00:00
dbaron%dbaron.org
b7508c936c Update :hover state and mouse cursor and send mouse events when the position of the pointer changes due to scrolling or reflow. b=20022 r=roc sr=bryner
git-svn-id: svn://10.0.0.236/trunk@152252 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-04 00:11:59 +00:00
dbaron%dbaron.org
76dd720050 Clean up code related to broken / loading image icons and make it observe pref changes. b=180620 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@152237 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-03 20:30:02 +00:00
danm-moz%comcast.net
bfc01cab83 that doesn't seem to be the problem. restoring over last revision.
git-svn-id: svn://10.0.0.236/trunk@152235 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-03 20:07:39 +00:00
dbaron%dbaron.org
97b8c2a403 Uncomment a call to SetColor that is needed. b=181336 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@152232 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-03 18:27:11 +00:00
dbaron%dbaron.org
c4c24f87d6 Allow PushLines to push the first line. b=185357 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@152230 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-03 18:19:42 +00:00
danm-moz%comcast.net
a45460e442 disabling last checkin in an attempt to pin down the Tp regression
git-svn-id: svn://10.0.0.236/trunk@152228 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-03 17:16:05 +00:00
bzbarsky%mit.edu
10a3d1bf55 Remove code that munges block widths inside table cells. Bug 232754,
r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@152224 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-03 16:49:38 +00:00
danm-moz%comcast.net
53fa82956e set event being handled in the EventStateManager. bug 197919 r=bryner,jst
git-svn-id: svn://10.0.0.236/trunk@152198 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-03 02:23:08 +00:00
bryner%brianryner.com
5b5cd321a4 Guarantee that the pres context's device context will be non-null by returning failure from Init() if it's null. Rename inline getter GetDeviceContext() to DeviceContext(), convert all callers to use the inline getter, and remove the virtual/refcounting getter. Bug 229371, r+sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@152182 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-02 22:17:21 +00:00
bryner%brianryner.com
018aeefc0d More nsIPresContext deCOMtamination (bug 229371). Inline getters and setters for LinkHandler, VisibleArea, and Language; change some methods that don't return any useful data to |void|; make GetContainer return an already_AddRefed. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@152137 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-01 10:09:07 +00:00
bryner%brianryner.com
b4581d93cf Continuing nsIPresContext deCOMtamination (bug 229371). Remove ReParentStyleContext - callers can call frame manager directly. Removed several unused setters. Inlined getters for default colors, font scaler, and focus ring width. Changed GetDefaultFont to return a const nsFont*. r+sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@152127 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-31 22:41:40 +00:00
roc+%cs.cmu.edu
0456e20a91 Bug 109772. Some nsIView deCOMtamination. Fixed the API for GetNeearestWidget to be sensible. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@152067 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-30 03:20:41 +00:00
jst%mozilla.jstenback.com
6629ad58f7 Fixing bug 232503. Start using Empty[C]String() to save a bit on code-size. r+sr=peterv@propagandism.org
git-svn-id: svn://10.0.0.236/trunk@152045 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-29 22:04:45 +00:00
dbaron%dbaron.org
1425a74cba Use a stub implementation of nsIDocumentObserver for implementors of nsIDocumentObserver in the layout library. b=232351 r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@152003 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-29 01:45:34 +00:00
dbaron%dbaron.org
8eddaadb96 Use a stub implementation of nsIDocumentObserver for implementors of nsIDocumentObserver in the layout library. b=232351 r=jst sr=peterv
git-svn-id: svn://10.0.0.236/trunk@151970 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-28 21:04:33 +00:00
bryner%brianryner.com
e46f7c8143 More nsIPresContext deCOMtamination (bug 229371). Removed GetBaseURL, rename GetMedium to Medium and inline it, remove virtual style resolution methods that forward to style set (callers will call style set methods directly). Removed PresContext parameter to StyleSet style resolution functions. r+sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@151927 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-28 00:18:22 +00:00
dbaron%dbaron.org
5d781dc551 Clean up ComputeShrinkwrapMargins. b=217369 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@151897 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-27 06:46:33 +00:00
dbaron%dbaron.org
3057f6fb34 Fix a bunch of errors in incremental computation of maximum width and max-element-size that were causing incremental reflow bugs. b=39683, 217369 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@151892 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-27 05:47:55 +00:00
bzbarsky%mit.edu
6d00103488 Remove the broken nsAttributeContent and just use regular textnodes to
implement attr() content.  Use mutation events to handle dynamic attr changes.
Bug 214013, r=dbaron, sr=jst


git-svn-id: svn://10.0.0.236/trunk@151885 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-27 04:22:58 +00:00
dbaron%dbaron.org
132de00da5 Change name of variable so this code makes sense.
git-svn-id: svn://10.0.0.236/trunk@151804 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-24 20:21:32 +00:00
jst%mozilla.jstenback.com
12ed685455 Fixing bug 230840. DeCOMtaminating nsIDocumentObserver, nsIAttribute, nsIContentList, and nsIContentIterator, and doing some other cleanup. r=jonas@sicking.cc, sr=bryner@brianryner.com
git-svn-id: svn://10.0.0.236/trunk@151784 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-24 00:46:17 +00:00
cbiesinger%web.de
ccedbc4f4e Bug 231372
GetCombinedArea could be faster/better
make it return an nsRect as return value instead of out parameter.
r=dbaron sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@151690 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-22 15:06:25 +00:00
dbaron%dbaron.org
2f4f03a4d2 Use |const|. DEBUG-only.
git-svn-id: svn://10.0.0.236/trunk@151663 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-21 23:08:51 +00:00
bryner%brianryner.com
2dce372072 DeCOMtaminate nsCSSFrameConstructor (bug 231157). This gets rid of the nsIStyleFrameConstruction and nsICSSFrameConstructor interfaces. The frame constructor now has the same lifetime as the pres shell. r+sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@151662 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-21 23:05:10 +00:00
bryner%brianryner.com
70bf134ff4 Continuing nsIPresContext deCOMtamination (bug 229371). Remove GetImageLoadFlags (unused). Make failure to fetch the LookAndFeel service cause Init() to fail, don't null check it after that, and inlined the getter. Move IOService caching to nsImageFrame, the only user of it. r+sr=bzbarsky.
git-svn-id: svn://10.0.0.236/trunk@151636 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-21 09:35:59 +00:00
dbaron%dbaron.org
9ccbe84b74 Process queued-up events after all types of reflow so we don't leak things referenced by the queues. b=231278 r=bzbarsky sr=roc
git-svn-id: svn://10.0.0.236/trunk@151618 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-21 04:15:00 +00:00
roc+%cs.cmu.edu
66839d6abc Bug 229052. Treat pre-formatted newlines like BRs, preserving the break type in nsBlockFrame::ReflowInlineFrame. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@151513 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-18 19:35:19 +00:00
bzbarsky%mit.edu
750308fe88 Back out accidentally committed code. Bug 230852, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@151508 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-18 18:20:57 +00:00
cbiesinger%web.de
e0a847a2af Bug 176637 Custom link colors not rendered correctly
patch by durbacher@gmx.de (Andreas Kunz) r=dbaron sr=bz


git-svn-id: svn://10.0.0.236/trunk@151499 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-18 14:44:43 +00:00
peterv%propagandism.org
94b69cb574 Miscellaneous cleanup. r/sr=jst.
git-svn-id: svn://10.0.0.236/trunk@151493 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-18 10:45:26 +00:00
peterv%propagandism.org
ec0b3d579c Fix for bug 230439 (Remove anonymous nodeinfomanager and other cleanup). r=caillon, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@151491 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-18 10:22:22 +00:00
dbaron%dbaron.org
cfbe9cf517 Remove unneeded casts and extra shadowing variable.
git-svn-id: svn://10.0.0.236/trunk@151486 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-18 07:13:40 +00:00
dbaron%dbaron.org
a06e2c19f8 Fix elements with max-width overlapping floats due to initial incorrect position by reflow state. b=52916 Patch by Chris Waterson. r=dbaron sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@151483 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-18 06:06:13 +00:00
bzbarsky%mit.edu
186039170e Make <noscript> inline when displayed. Bug 230616, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@151405 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-16 03:05:00 +00:00
caillon%returnzero.com
9597ef526a Bug 230973 - NS_STYLE_LIST_STYLE_BASIC is spurious. Remove its usage in favor of the correct default of disc. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@151390 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-15 22:06:39 +00:00