690 Commits

Author SHA1 Message Date
dbaron%dbaron.org
b203eeeaa4 Handle padding and border correctly for reflow states constructed without a parent (reflow roots, things inside nsIBoxes). b=366952 r+sr=roc, r=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@218495 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-17 05:19:35 +00:00
bzbarsky%mit.edu
9e56e89a01 deCOMtaminate nsIFrame::GetMinSize/GetPrefSize/GetMaxSize. Bug 243370, patch
by Andreas Lange <anlan@lange.cx>, r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@217973 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-08 02:57:59 +00:00
uriber%gmail.com
4ddde0e089 Bug 200098: Double click near beginning of word selects two words (fix for Windows). r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@217728 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-04 16:47:04 +00:00
timeless%mozdev.org
c778d21502 Bug 355300 There should be only one nsGkAtoms creature
r=dbaron


git-svn-id: svn://10.0.0.236/trunk@217425 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-26 17:47:52 +00:00
mats.palmgren%bredband.net
14e7266121 Rename IsSplittable() to GetSplittableType(). b=349973 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@217227 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-20 03:52:34 +00:00
dbaron%dbaron.org
9332796f42 Eliminate nsStyleBorderPadding and add margin/padding/content rect APIs to nsIFrame. b=332922 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@217223 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-20 01:23:45 +00:00
mats.palmgren%bredband.net
277be83fff Rename ComputeHorizontalValue to ComputeWidthDependentValue (ditto for height) and some minor cleanup. b=364131 r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@217122 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-18 13:20:18 +00:00
mats.palmgren%bredband.net
34a45a87f6 Make the CSS 'ch' length unit work in most cases. b=363573 r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@217089 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-17 14:06:42 +00:00
gavin%gavinsharp.com
af54921f6e Bug 320468: SetDelayCaretOverExistingSelection is unused, patch by Adam Guthrie <ispiked@gmail.com>, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@217054 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-16 14:40:44 +00:00
dbaron%dbaron.org
866a194991 Better API for used padding/border/margin: remove deprecated Calc*For on nsStyleStructs and add GetUsed* to nsIFrame. b=332922 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@216965 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-13 23:04:57 +00:00
dbaron%dbaron.org
1ca9f3f372 Bug 300030: Move intrinsic width computation out of nsIFrame::Reflow and into its own methods on nsIFrame. Replace reflow reasons, types, and commands with dirty bits/notifications. Thanks to bzbarsky for almost all of the HTML form controls (mozilla/layout/forms) changes, and many others for help testing and patching. For detailed commit logs, see REFLOW_YYYYMMDD_BRANCH, where YYYYMMDD is one of 20061031, 20060830, 20060603, 20060302, 20060119, 20051011, 20050804, 20050429, 20050315, 20050111, and 20041213.
git-svn-id: svn://10.0.0.236/trunk@216738 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-08 05:38:33 +00:00
Olli.Pettay%helsinki.fi
f8115d25d5 Bug 360928, Un-inline nsWeakFrame a bit, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@215421 18797224-902f-48f8-a5cc-f745e15eee43
2006-11-18 06:38:15 +00:00
Olli.Pettay%helsinki.fi
08df7735f7 Consolidate NS_MOUSE_***_UP/DOWN/CLICK/DBLCLICK events, r=jst,roc,josh,sergei_d,emaijala,mkaply
git-svn-id: svn://10.0.0.236/trunk@215370 18797224-902f-48f8-a5cc-f745e15eee43
2006-11-16 21:35:39 +00:00
bzbarsky%mit.edu
715b4d92fa Add asserts and documentation to enfoce correct behavior. Bug 316267 followup,
r+sr=roc.


git-svn-id: svn://10.0.0.236/trunk@214750 18797224-902f-48f8-a5cc-f745e15eee43
2006-11-06 01:17:32 +00:00
aaronleventhal%moonset.net
5d90ded709 Bug 354832. Support nsIAccessibleText for html buttons and list options. r=ginn.chen, sr=roc
git-svn-id: svn://10.0.0.236/trunk@213008 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-02 19:33:49 +00:00
roc+%cs.cmu.edu
2cdafb8452 Bug 350148. Improve scrolling of large documents generally by only searching descendants of the moving frame for position-varying graphics when we know we've actually painted position-varying graphics in this prescontext. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@212028 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-19 22:05:33 +00:00
roc+%cs.cmu.edu
9414980ef8 Bug 350148. Fix gmail scrolling speed by not creating nsDisplayBorder items for zero-width borders. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@212023 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-19 21:46:01 +00:00
roc+%cs.cmu.edu
8d851a39b2 Bug 351268. Remove nsIFrame::AdjustFrameSize, it's unused. r=smontagu,sr=rbs
git-svn-id: svn://10.0.0.236/trunk@212018 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-19 21:04:06 +00:00
roc+%cs.cmu.edu
4d75bdec5d Bug 349477. Generalize handling of non-inline frames in inline contexts so they all make pseudo-stacking-contexts. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@212016 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-19 20:58:36 +00:00
Olli.Pettay%helsinki.fi
f4d5b8a9f7 Bug 349931, crashes during drag-and-drop, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@211914 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-18 08:47:06 +00:00
uriber%gmail.com
78cfa593e6 Refactor nsIFrame::PeekOfset to use iteration instead of recursion, plus some more related refactoring. bug=300131 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@209768 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-11 20:43:01 +00:00
uriber%gmail.com
fcf4d1b5af Backing out bug 300131 until I figure out how to deal with the bustage.
git-svn-id: svn://10.0.0.236/trunk@209689 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-11 08:03:28 +00:00
uriber%gmail.com
d818162f1c Change nsIFrame::PeekOffset back to NS_IMETHOD to fix bustage from bug 300131
git-svn-id: svn://10.0.0.236/trunk@209687 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-11 07:44:59 +00:00
uriber%gmail.com
09e8c4f558 Refactor nsIFrame::PeekOfset to use iteration instead of recursion, and some related refactoring. bug=300131 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@209685 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-11 06:39:56 +00:00
uriber%gmail.com
30f3ba7887 Allow users of nsFrameTraversal to specify what features they want the iterator to have, and make nsFrame::GetFrameFromDirection() specify "following OOFs". bug=334626 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@208806 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-30 13:38:16 +00:00
timeless%mozdev.org
46444dd782 Bug 106386 Correct misspellings in source code
r=bernd rs=brendan


git-svn-id: svn://10.0.0.236/trunk@208659 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-28 20:12:37 +00:00
bzbarsky%mit.edu
f9b318c2e1 Pseudo-elements are not the root. Bug 334602, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@207203 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-12 02:14:39 +00:00
uriber%gmail.com
743ba10d81 Attempt to fix bustage from bug 333883.
git-svn-id: svn://10.0.0.236/trunk@206716 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-07 11:24:57 +00:00
uriber%gmail.com
7ac86afda7 Refactored nsSelection::GetPrevNextBidiLevels to use GetFrameFromDirection; moved GetFrameFromDirection from nsFrame to nsIFrame and made it nonvirtual. bug=333883 r=smontagu sr=roc
git-svn-id: svn://10.0.0.236/trunk@206713 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-07 10:54:56 +00:00
Olli.Pettay%helsinki.fi
b0526fa99c Bug 336592, Fixing mistake in previous patch, PRUint32->PRInt32, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@206548 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-04 07:35:35 +00:00
uriber%gmail.com
3bea28d295 Handle returning nulls from CheckLineOrder correctly. bug=345616 r=smotagu sr=roc
git-svn-id: svn://10.0.0.236/trunk@206546 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-04 05:40:57 +00:00
roc+%cs.cmu.edu
47bea9dfd5 Bug 346035. Force <stack> children to be full-fledged stacking contexts and put their display items in the Content display list. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@206519 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-03 21:39:39 +00:00
uriber%gmail.com
17a6df652a Enable PeekOffset to find the visual beginning/end of a line, and use use it for bidi caret positioning. bug=302051 r=smontagu sr=roc
git-svn-id: svn://10.0.0.236/trunk@206472 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-03 06:24:11 +00:00
uriber%gmail.com
fcb47a90e2 Simplify handling of the eSelectNoAmount case in nsFrame::PeekOffset. bug=344514 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@202305 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-18 07:32:58 +00:00
uriber%gmail.com
cc251423d1 Clean up nsPeekOffsetStruct. bug=343763. r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@201994 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-13 06:06:29 +00:00
uriber%gmail.com
928f0ccda5 Always use the visual iterator when moving visually in a bidi page, even if the current line or adjacent lines are LTR. bug=309432 r=smontagu sr=roc
git-svn-id: svn://10.0.0.236/trunk@201927 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-12 11:22:18 +00:00
uriber%gmail.com
8949cb7ef1 Bug 16203: double-click drag should do selection in "word-by-word" mode. r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@201921 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-12 07:07:36 +00:00
mark%moxienet.com
358bd9fb6c 209989 After Find Again (Ctrl-G/F3), text highlighting color becomes green. Patch by Peter Kasting <pkasting@google.com>. r=mconnor sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@200173 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-17 01:05:26 +00:00
mrbkap%gmail.com
1b46c4ab62 Avoid a crash in nsAutoScrollTimer by keeping a reference to the content instead of the view. bug 322084, patch by jpl24 <jlurz24@gmail.com>, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@200087 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-16 01:54:31 +00:00
roc+%cs.cmu.edu
a3a8c10417 Bug 341141. Position abs-pos clip rects correctly. r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@199941 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-15 03:25:33 +00:00
dbaron%dbaron.org
007c225a7e Fix regression by re-retrieving style struct after changing the frame we're dealing with. b=340798 Patch by Robert O'Callahan <roc@ocallahan.org>. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@199637 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-09 21:04:21 +00:00
roc+%cs.cmu.edu
08078b50ef Bug 331590. Treat inline-box/grid/stack XUL elements like inline blocks, making them pseudo-stacking-contexts. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@199487 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-08 03:35:29 +00:00
roc+%cs.cmu.edu
99e2835bf4 Bug 336121. Treat table outer frames as psuedostacking contexts. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@199486 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-08 03:32:06 +00:00
roc+%cs.cmu.edu
e71eeec88a Bug 339889. Propagate invalidation through the frame hierarchy to topmost widgets. r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@199477 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-08 01:11:43 +00:00
uriber%gmail.com
13b90f0e61 Fix triple-click paragraph selection near block generated content. bug=339430, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@198555 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-29 08:32:46 +00:00
Olli.Pettay%helsinki.fi
5dc78f28e1 Bug 336592, Crash when window gets destroyed during selection event, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@196376 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-12 06:40:49 +00:00
darin%meer.net
42edf059cf landing patch for bug 326273 "Implement nsIThreadManager" (Mac portions by Mark Mentovai) with reviews from bienvenu, bsmedberg, bzbarsky, josh, roc, and ssieb
git-svn-id: svn://10.0.0.236/trunk@196254 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-10 17:30:15 +00:00
timeless%mozdev.org
d0080625f7 Bug 334897 Useless null check of shell in nsFrame::Destroy
r=dbaron sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@196114 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-06 21:42:49 +00:00
cvshook%sicking.cc
cec9ea1123 Bug 335911: Change nsIContent::IsContentOfType to nsINode::IsNodeOfType. r/sr=bz
git-svn-id: svn://10.0.0.236/trunk@196009 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-05 06:52:21 +00:00
aaronleventhal%moonset.net
e80adb2cf6 Bug 336162. Don't fire DOM events from layout. r+sr=bz
git-svn-id: svn://10.0.0.236/trunk@195907 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-03 17:02:37 +00:00