289 Commits

Author SHA1 Message Date
smfr%smfr.org
7dd0965ac3 Fix bug 303987: long delays after resetting font prefs. Use a zero-delay timer to coalesce multiple pref callbacks in the pres context into one update. r/sr=roc
git-svn-id: svn://10.0.0.236/trunk@178752 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-23 23:52:16 +00:00
cbiesinger%web.de
c41020b640 bug 292998
- move textZoom storage to the prescontext from the documentviewer
- copy the textZoom between document viewers for fastback
r=bryner sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@177690 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-13 11:54:22 +00:00
dbaron%dbaron.org
8b93b2aa52 Fix coverity uninitialized variable warnings in layout. b=288092 r=bernd sr=roc
git-svn-id: svn://10.0.0.236/trunk@171357 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-30 01:50:56 +00:00
bzbarsky%mit.edu
54df69c399 Use the content policy REJECT reason as a basis for our "whether to show alt
text" decision instead of reading prefs ourselves.  Bug 202906, r=mvl, sr=jst


git-svn-id: svn://10.0.0.236/trunk@170075 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-02 04:05:12 +00:00
mvl%exedo.nl
ef6e7f1f43 Show alt text when imagee blocking is enabled
bug 281492, r=dwitte, sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@169010 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-08 22:10:52 +00:00
roc+%cs.cmu.edu
ce1a6ed504 Bug 95227. Allow serif/sansserif defaults to be set per-language. Patch by Masayuki Nakano, r=dbaron,amadare,danm,smontagu,rbs,neil sr=roc
git-svn-id: svn://10.0.0.236/trunk@168216 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-23 23:58:32 +00:00
bzbarsky%mit.edu
8489f8d24b Flush out reflows before processing invalidates and paint events. Fixes a
variety of flicker issues of various sorts, especially when we're not quite
keeping up with the rate of updates in DHTML or in editor.  Bug 244366 and
various dependencies, r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@168044 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-20 03:39:09 +00:00
roc+%cs.cmu.edu
d6143a38f4 Bug 271869. mBorderWidths need not be per-nsStyleBorder/nsStyleOutline, put it in the prescontext instead. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@165810 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-26 18:40:58 +00:00
kyle.yuan%sun.com
e0b4c44029 Bug 238854 [gtk2] Changing GNOME2 theme doesn't apply until restarting Mozilla
r=bryner, sr=dbaron, patch=ginn.chen@sun.com


git-svn-id: svn://10.0.0.236/trunk@162490 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-17 06:27:01 +00:00
dbaron%dbaron.org
d078282226 Land bug 72747 in pieces: Implement overflow-x and overflow-y. b=72747 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@161772 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-05 00:04:04 +00:00
dbaron%dbaron.org
dcf4bae71a Back out the rest of bug 72747 due to Tp regression.
git-svn-id: svn://10.0.0.236/trunk@161373 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-27 01:26:55 +00:00
dbaron%dbaron.org
565357f6d2 Backout the CSS parts of bug 72747 to see if that fixes the Tp regression.
git-svn-id: svn://10.0.0.236/trunk@161357 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-26 22:35:38 +00:00
dbaron%dbaron.org
ed6372cf2f Implement 'overflow-x' and 'overflow-y' CSS properties, long implemented by IE for Windows and proposed for CSS3. Implement scrolling='yes' and equivalents on frame and iframe. Various pieces of related cleanup (see comment 22 in bug). b=72747 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@161333 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-26 17:11:20 +00:00
bryner%brianryner.com
2ac3245dec Backing out 253888 again due to Tp regression plus another problem I noticed (frame properties not getting destroyed on frame destruction)
git-svn-id: svn://10.0.0.236/trunk@161116 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-22 07:10:50 +00:00
bryner%brianryner.com
0501b2872a Second try at landing support for content node properties (bug 253888). r=jst, sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@161115 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-22 04:58:44 +00:00
bryner%brianryner.com
03c6a8279c Backing out bug 253888 until I can figure out how to fix the crash
git-svn-id: svn://10.0.0.236/trunk@161097 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-21 06:27:54 +00:00
bryner%brianryner.com
e49f4fa38e Refactor the frame property code and use it for supporting properties on dom elements. Bug 253888, r=jst, sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@161096 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-21 05:09:50 +00:00
bzbarsky%mit.edu
a4b06cfcbf Eliminating mCharset mode of prescontex. Bug 253489, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@160548 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-09 21:19:15 +00:00
smontagu%smontagu.org
850c3eb4d2 Bug 245965: Forcing visual Bidi through preferences doesn't work. r=mkaply, sr=dveditz.
git-svn-id: svn://10.0.0.236/trunk@160418 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-05 21:38:08 +00:00
bryner%brianryner.com
736c955c54 Remove non-inlined version of nsIPresShell::GetDocument(). Bug 253889, r+sr=roc.
git-svn-id: svn://10.0.0.236/trunk@160208 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-02 04:52:55 +00:00
bryner%brianryner.com
865734bf2f Change nsIPresContext to nsPresContext globally, follow-up to bug 253470. rs=roc
git-svn-id: svn://10.0.0.236/trunk@160184 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-31 23:15:21 +00:00
bryner%brianryner.com
b17b3249f7 Consolidate PresContext classes into a single nsIPresContext implementation, and finish deCOMtaminating it. Bug 253470, r+sr=roc.
git-svn-id: svn://10.0.0.236/trunk@160067 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-29 19:41:39 +00:00
bryner%brianryner.com
faa317945c Remove nsIPresContext::GetXBLBindingURL (bug 253141). r=bzbarsky.
git-svn-id: svn://10.0.0.236/trunk@159876 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-26 21:49:49 +00:00
jshin%mailaps.org
5b569ba041 bug 245770 : add a pref. to control whether or not replace backslashes with Yen signs in Japanese documents (r=smontagu, sr=dbaron)
git-svn-id: svn://10.0.0.236/trunk@158245 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-21 10:32:27 +00:00
roc+%cs.cmu.edu
0b0fa89131 Bug 226439. Convert codebase to use AppendLiteral/AssignLiteral/LowerCaseEqualsLiteral. r+sr=darin
git-svn-id: svn://10.0.0.236/trunk@157992 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-17 00:13:25 +00:00
bryner%brianryner.com
1df9753a77 Get rid of nsILanguageAtom and deCOMtaminate nsILanguageAtomService (bug 230603). Also, fix a bunch of atom double-addref leaks in nsFontMetricsXlib. r+sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@157620 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-08 23:53:59 +00:00
aaronleventhal%moonset.net
05e1ff96e7 Bug 239914. When OS high contrast or another accessible theme is used, automatically follow it in chrome and content. r=bsmedberg, sr=bryner
git-svn-id: svn://10.0.0.236/trunk@157605 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-08 19:34:55 +00:00
smontagu%smontagu.org
280b8ea34e Fix flipping of Arabic text when pasted to clipboard. Bug 197375, r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@156797 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-23 09:15:23 +00:00
jst%mozilla.jstenback.com
a4737d81d2 Fixing build warning.
git-svn-id: svn://10.0.0.236/trunk@155728 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-30 04:11:02 +00:00
jst%mozilla.jstenback.com
51d2fb5527 This was apparently not the reason for the Tp hit, re-landing (bug 240543).
git-svn-id: svn://10.0.0.236/trunk@155726 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-30 04:06:30 +00:00
jst%mozilla.jstenback.com
a7588ad5c7 Backing out the nsPresContext changes in my last checkin to see if that's what caused the increase in Tp.
git-svn-id: svn://10.0.0.236/trunk@155725 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-30 03:10:29 +00:00
jst%mozilla.jstenback.com
74089032ff Fixing bug 240543. Hiding some nsIPref* API bloatyness in nsContentUtils. r=caillon@aillon.org, sr=peterv@propagandism.org
git-svn-id: svn://10.0.0.236/trunk@155712 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-29 23:34:19 +00:00
gerv%gerv.net
2ac510b678 Bug 236613: change to MPL/LGPL/GPL tri-license.
git-svn-id: svn://10.0.0.236/trunk@155068 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-18 14:30:37 +00:00
roc+%cs.cmu.edu
a69c586b63 Bug 234851. Propagate any overflow style from HTML or BODY elements to the viewport, and make it work dynamically. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@154761 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-13 02:56:03 +00:00
bryner%brianryner.com
2359d2f7c4 More nsIPresContext deCOMtamination (bug 229371). r+sr=roc.
git-svn-id: svn://10.0.0.236/trunk@154743 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-13 00:28:44 +00:00
bzbarsky%mit.edu
e7ad4f7000 Load background images from style instead of from painting. This makes us
start loading the background images when we resolve style on an object that
needs them instead of when we scroll down and see it for the first time.  Bug
57607, r=pavlov, sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@153725 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-09 03:57:51 +00:00
chanial%noos.fr
bd3c5573e9 Bug 235187: nsContextMenuInfo shouldn't use low-level API and remove presContext FindFrameBackground.
r=ccarlen, sr=bz
(file not used by the xul apps)


git-svn-id: svn://10.0.0.236/trunk@153350 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-28 02:00:23 +00:00
bryner%brianryner.com
27d7c8dc29 Fixing runtime bustage from missing addref
git-svn-id: svn://10.0.0.236/trunk@153339 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-27 18:24:36 +00:00
bryner%brianryner.com
62dee43850 deCOMtaminate nsIPresContext::GetEventStateManager. Bug 229371, r+sr=roc.
git-svn-id: svn://10.0.0.236/trunk@153335 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-27 17:17:37 +00:00
bryner%brianryner.com
d956db112f Get rid of nsIFrameManager abstract interface to the frame manager. Bug 233972, r+sr=roc.
git-svn-id: svn://10.0.0.236/trunk@153111 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-23 21:29:06 +00:00
bryner%brianryner.com
3191a1feaa Inline boolean getters and setters on nsIPresContext, and change the storage to a bitfield. Bug 229371, r+sr=roc.
git-svn-id: svn://10.0.0.236/trunk@153018 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-20 17:49:01 +00:00
cbiesinger%web.de
af62af08a0 233890, misc cleanup in some layout files, r+sr=bz
git-svn-id: svn://10.0.0.236/trunk@152949 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-19 18:56:13 +00:00
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
bryner%brianryner.com
e6a225b469 Inline getters and setters for scaling factors on nsIDeviceContext. Bug 233103, r+sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@152326 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-05 01:57:10 +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
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
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
9baf7963db Remove NS_FRAME_HAS_LOADED_IMAGES state bit. b=201076 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@151240 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-13 01:18:51 +00:00