4429 Commits

Author SHA1 Message Date
bmlk%gmx.de
f4c784d01d table frames that dont wrap their content with scrollframes hide the overflow if NS_STYLE_OVERFLOW_SCROLLBARS_NONE is specified bug 233438 r/sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@154861 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-14 06:28:25 +00:00
jst%mozilla.jstenback.com
89bbaf497b Changing comment style for consistency with other similar code in this file.
git-svn-id: svn://10.0.0.236/trunk@154768 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-13 03:57:12 +00:00
roc+%cs.cmu.edu
05f7f23201 Fix a few warnings. Patch by gautheri, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@154765 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-13 03:13:46 +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
jst%mozilla.jstenback.com
4f465de788 Fixing bug 240340. Make key events in plugins work correctly again on the Mac. r+sr=bryner@brianryner.com
git-svn-id: svn://10.0.0.236/trunk@154756 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-13 01:51:00 +00:00
bzbarsky%mit.edu
138778b97e When appending frames to a block after a <br>, just put them into a new line
right away instead of waiting for reflow to come about and fix it up.  This
speeds up things that append nodes including <br> to a block one at a time
(e.g. editor or content scripts) Bug 240291, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@154754 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-13 01:45:57 +00:00
bzbarsky%mit.edu
3cf94c63dd Fix dirty reflows of bullets to deal with an empty first line (whitespace
followed by block) in the parent block.  Bug 206602, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@154752 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-13 01:38:10 +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
91063d56d4 Make sure to null out mStyleSet if Init() fails, since the caller will delete
it in that case.  Bug 240240, r+sr=bryner


git-svn-id: svn://10.0.0.236/trunk@154741 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-13 00:27:29 +00:00
sicking%bigfoot.com
e4632ed495 Bug 237566: Remove nsIContent::ReplaceChildAt and supportive codepaths.
r=bz sr=jst


git-svn-id: svn://10.0.0.236/trunk@154723 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-12 22:48:33 +00:00
bzbarsky%mit.edu
4c0299d092 Don't clobber 'pseudoTag' with random atoms from other style contexts; we need
it later on.  Bug 231166, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@154721 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-12 22:42:50 +00:00
dbaron%dbaron.org
950b1a4459 Implement 'quotes' property correctly by tracking quote nesting depth using a linked list. Patch by Esben Mose Hansen <esben@oek.dk>, Ulrich Drepper <drepper@redhat.com>, and me. b=24861
git-svn-id: svn://10.0.0.236/trunk@154706 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-12 21:53:22 +00:00
jst%mozilla.jstenback.com
397e8accd3 Fixing bug 238449. Make plugins not get mozilla context menus again. r+sr=dbaron@dbaron.org, a=asa@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@154661 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-10 00:25:01 +00:00
bzbarsky%mit.edu
90dc43345e Don't do a O(N) walk over all lines when painting floats, since we already have
a nice sorted list of floats about.  Bug 52005, r+sr=dbaron, a=brendan


git-svn-id: svn://10.0.0.236/trunk@154651 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-09 21:08:09 +00:00
bzbarsky%mit.edu
0d643a702e Change the way regression tests get the framestate to make it possible to mask
out irrelevant state bits as needed.  Apply this to NS_BLOCK_HAS_LINE_CURSOR.
Bug 237955, r+sr=roc, a=dbaron


git-svn-id: svn://10.0.0.236/trunk@154500 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-04 01:48:16 +00:00
bzbarsky%mit.edu
0cb3f2e03b Don't look for the primary frame unless we have to on broken images. Bug
239262, r+sr=dbaron, a=chofmann


git-svn-id: svn://10.0.0.236/trunk@154451 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-02 03:07:39 +00:00
bzbarsky%mit.edu
1b69a7515b Make sure to not end up with a bogus padding when we have a list-style-image.
Bug 187419, r+sr=dbaron, a=chofmann


git-svn-id: svn://10.0.0.236/trunk@154432 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-01 19:48:55 +00:00
bzbarsky%mit.edu
4681cee324 Fix bug 236921. This makes the root node's style context have no parent, makes
computed style calculations properly parent the computed context, and fixes a
but with "border-color: inherit" on the root.  r=caillon, sr=dbaron, a=asa


git-svn-id: svn://10.0.0.236/trunk@154362 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-29 16:00:38 +00:00
roc+%cs.cmu.edu
722bca28f8 Bug 236910. Elements that clip their backgrounds do not present a uniform background. r+sr=dbaron,a=choffman
git-svn-id: svn://10.0.0.236/trunk@154348 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-28 21:05:29 +00:00
roc+%cs.cmu.edu
2ec6a99fd5 Bug 235558. We don't really want to consider computed maximum widths after all. r+sr=dbaron,a=asa
git-svn-id: svn://10.0.0.236/trunk@154330 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-27 02:44:26 +00:00
bryner%brianryner.com
f9f12d233a Fix following an image map link by pressing enter. Bug 214373, r+sr=jst, a=asa.
git-svn-id: svn://10.0.0.236/trunk@154163 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-22 18:13:11 +00:00
bryner%brianryner.com
5050533b67 Make GetFrameProperty return NS_IFRAME_MGR_PROP_NOT_THERE when the property is not found (instead of NS_ERROR_FAILURE). Fixes bug 236590. r+sr=dbaron, a=chofmann
git-svn-id: svn://10.0.0.236/trunk@154140 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-21 05:22:46 +00:00
roc+%cs.cmu.edu
d5959dbbe6 Bug 237343. Adjust inline frame PerFrameData mCombinedArea to account for width increase due to justification.
git-svn-id: svn://10.0.0.236/trunk@154021 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-16 06:58:01 +00:00
bzbarsky%mit.edu
f979394977 Clear the line cursor when child frames are added or removed. Bug 236947,
r+sr=roc, a=chofmann


git-svn-id: svn://10.0.0.236/trunk@153961 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-14 18:19:24 +00:00
roc+%cs.cmu.edu
c36ad8a946 Bug 235558. Make scrollframes take CSS max-width/max-height into account when they compute their preferred size (by reflowing their scrolled block to width max-width, if appropriate). r+sr=dbaron,a=choffman
git-svn-id: svn://10.0.0.236/trunk@153939 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-13 02:51:16 +00:00
dbaron%dbaron.org
1a94650e48 DeCOMify nsIFrame::IsPercentageBase and rename to IsContainingBlock. b=237169 r+sr=bzbarsky a=brendan
git-svn-id: svn://10.0.0.236/trunk@153898 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-12 04:40:17 +00:00
roc+%cs.cmu.edu
3fae0da191 Bug 232838. Remove unnecessary assertions on minsizes that we don't use. r+sr=dbaron, a=choffman
git-svn-id: svn://10.0.0.236/trunk@153892 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-12 03:35:53 +00:00
roc+%cs.cmu.edu
b2431bbad8 Bug 232838. Properly relayout scrollbars if we need to hide one because there's no room. Prefer to hide the horizontal scrollbar if we have to choose between them. r+sr=dbaron,a=choffman
git-svn-id: svn://10.0.0.236/trunk@153851 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-10 23:52:01 +00:00
dbaron%dbaron.org
693eed6a2d Backing out my checkin from yesterday. b=199673
git-svn-id: svn://10.0.0.236/trunk@153837 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-10 17:13:39 +00:00
bzbarsky%mit.edu
843ca20382 Make text-decorations deal with percentage padding. Bug 236175, patch by Hideo
Saito <saito@densan.co.jp>, r=bzbarsky, sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@153817 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-10 04:43:59 +00:00
roc+%cs.cmu.edu
44185c6657 Bug 235264. Clean up invalidation to go through a single nsIFrame::Invalidate function and take account of 'outline' where necessary. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@153808 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-10 03:09:05 +00:00
dbaron%dbaron.org
2cefb8b1dd In almost-standards mode, standards-mode text decorations and quirks-mode inline box model have to interact -- so make standards-mode text-decorations (when text-decorations are present) cause the standards-mode inline box model. b=199673 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@153794 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-10 00:28:17 +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
roc+%cs.cmu.edu
24a379bd0e Fixing bustage, hopefully, THIS TIME
git-svn-id: svn://10.0.0.236/trunk@153655 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-07 19:23:53 +00:00
roc+%cs.cmu.edu
8da34bf465 Fixing bustage, hopefully
git-svn-id: svn://10.0.0.236/trunk@153652 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-07 18:50:11 +00:00
roc+%cs.cmu.edu
b3c7e5391b Bug 51938. Cache recently accessed line if the lines' combinedArea.y/ymosts are nondecreasing --- speeds up painting and event handling on large blocks. r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@153649 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-07 18:04:24 +00:00
roc+%cs.cmu.edu
182434aad8 Bustage fix
git-svn-id: svn://10.0.0.236/trunk@153621 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-06 14:55:21 +00:00
roc+%cs.cmu.edu
7c28614d74 Bug 235335. Make nsFrameManager a direct member of nsIPresShell. r+sr=bryner
git-svn-id: svn://10.0.0.236/trunk@153603 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-06 04:46:11 +00:00
bryner%brianryner.com
4b70febae6 inline IsPaginated, SetPaginatedScrolling, and GetPaginatedScrolling. Bug 229371, r+sr=roc.
git-svn-id: svn://10.0.0.236/trunk@153488 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-03 18:24:20 +00:00
scott%scott-macgregor.org
de903528ff Back out Bug #132561 until we can figure out how to fix the regression it causes in HTML composer with spaces
(See Bug #235223).

a=brendan


git-svn-id: svn://10.0.0.236/trunk@153416 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-02 01:23:13 +00:00
cbiesinger%web.de
636c6a237c Bug 188288 caret movement erratic with CTL enabled
patch by prabhat.hegde@sun.com r=roland.mainz@nrubsig.org sr=roc


git-svn-id: svn://10.0.0.236/trunk@153408 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-01 21:36:35 +00:00
darin%meer.net
af98e4f306 landing dbaron's patch for bug 235735 "fix callers that cast away const on result of ns[C]String::get" r+sr=darin
git-svn-id: svn://10.0.0.236/trunk@153357 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-28 22:34:07 +00:00
roc+%cs.cmu.edu
cc468b71ce Bug 235778. Overflow area of relatively positioned inlines must be preserved by line layout. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@153351 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-28 02:55:58 +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
80fe50d37f Try to fix some crashes from calling PresShell methods after Destroy() has called. Bug 235395, r+sr=roc.
git-svn-id: svn://10.0.0.236/trunk@153206 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-25 09:10:06 +00:00
bzbarsky%mit.edu
2491411ab1 Make sure to pass <embed> attributes to plugins in the source order. Bug
234675, r=peterlubczynski, sr=jst


git-svn-id: svn://10.0.0.236/trunk@153131 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-24 02:44:33 +00:00
bzbarsky%mit.edu
3c685fcdeb Apply the bug 200568 fix to types derived from the "data" attribute too. Bug
235053, r=biesi, sr=jst


git-svn-id: svn://10.0.0.236/trunk@153117 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-23 22:41:15 +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
roc+%cs.cmu.edu
1b122ed826 Bug 180931. If we move a frame temporarily during reflow, we'd better invalidate the whole overflow area because invalidates may have been issued at the temporary position.
git-svn-id: svn://10.0.0.236/trunk@153080 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-22 03:31:30 +00:00
dbaron%dbaron.org
e5ad15e520 Rename {nsIDocument,nsIDocumentObserver,nsIFrame}::ContentChanged to CharacterDataChanged, since that's the only thing it's used for. Replace its nsISupports* parameter with a PRBool, since we don't need to allocate an object to pass a boolean parameter. Remove some (but probably not all) unneeded implementations on frames whose content is never a text node. b=234960 r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@153040 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-20 21:38:31 +00:00