800 Commits

Author SHA1 Message Date
Olli.Pettay%helsinki.fi
ba610d02ec Bug 243370, deCOMtaminate parts of nsIFrame that come from nsIBox, part 2, p=anlan@lange.cx, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@219259 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-31 16:02:42 +00:00
cvshook%sicking.cc
ccd1d6884d Kill remainders of ns(XBL|HTML|XUL|Layout)Atoms. r/sr=jst b=368128
git-svn-id: svn://10.0.0.236/trunk@219151 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-30 00:06:41 +00:00
dbaron%dbaron.org
3af9eecb86 Make non-box frames pay better attention to nsITheme::GetWidgetBorder and GetWidgetPadding. b=366722 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@219072 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-28 17:20:01 +00:00
dbaron%dbaron.org
12c42b4c23 Revert previous change.
git-svn-id: svn://10.0.0.236/trunk@219052 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-27 19:35:29 +00:00
dbaron%dbaron.org
c89a4222fe Address review comment on bug 9458 that depends on bug 367247 by making nsFrame::IsContainingBlock not check display type, but making it purely frame-class-based.
git-svn-id: svn://10.0.0.236/trunk@219049 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-27 18:45:35 +00:00
dbaron%dbaron.org
3052400d5e Implement CSS display types inline-block and inline-table. b=9458, 18217 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@219045 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-27 18:36:57 +00:00
bzbarsky%mit.edu
343ced44ba Make mComputedWidth private, with a getter/setter, and make the setter update
the resize flags.  Bug 367442, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@218933 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-26 00:05:12 +00:00
dbaron%dbaron.org
103e95ab15 Change the bulk of ascent (baseline) computation to happen on a virtual method on nsIFrame, and remove the redundant descent member from nsHTMLReflowMetrics, primarily to support having both first-line and last-line baselines. b=367332 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@218785 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-23 04:06:56 +00:00
roc+%cs.cmu.edu
1534bcd542 Bug 333659. Land layout changes to pass only single-direction textruns to nsIRenderingContext string methods. r=dbaron
git-svn-id: svn://10.0.0.236/trunk@218782 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-23 02:58:55 +00:00
dbaron%dbaron.org
7d1d28c9e8 Make non-box frames use nsITheme methods concerning size, border, and padding, so that non-boxes with appearance set will obey the platform-specific theme. b=366722 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@218555 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-17 22:31:07 +00:00
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