779 Commits

Author SHA1 Message Date
bzbarsky%mit.edu
68a7a257fb Make sure to do saturating adds on possibly-unconstrained nscoords. Bug
421404, r=dholbert, sr=roc, a=beltzner


git-svn-id: svn://10.0.0.236/trunk@247329 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-07 21:20:03 +00:00
dbaron%dbaron.org
365d3bef72 Fix the weird Get* API on nsStyleSides in favor of returning structs by value, to avoid further occurrences of bug 420069. b=420069 r+sr=roc a=beltzner
git-svn-id: svn://10.0.0.236/trunk@247146 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-06 00:05:29 +00:00
roc+%cs.cmu.edu
bf8d1cd760 Bug 392809. Fix word-based caret movement around punctuation and whitespace. r=smontagu,a=beltzner
git-svn-id: svn://10.0.0.236/trunk@246910 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-03 08:37:35 +00:00
roc+%cs.cmu.edu
bcd6b5373f Bug 416168. Ensure that the overflow rect for a frame always includes (0,0) even if the frame rect is empty. Also ensures that if the frame rect is empty but has non-zero dimension on one axis, the overflow rect includes that size. A scrolled view for such a frame also includes that size to ensure width:0,height:Npx and width:Npx,height:0 frames are scrollable by that amount. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@246659 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-27 09:46:23 +00:00
uriber%gmail.com
dcdb49841e Add a comment and assertion to the fix for bug 370174. r+sr=roc on the original patch. blocking1.9=dbaron
git-svn-id: svn://10.0.0.236/trunk@246364 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-23 10:54:29 +00:00
uriber%gmail.com
31501ac213 Don't crash on triple-clicking when there's an orphan content somewhere. bug=370174 r+sr=roc blocking1.9=dbaron
git-svn-id: svn://10.0.0.236/trunk@246323 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-22 21:21:15 +00:00
fantasai.cvs%inkedblade.net
573c3c24fb switch GetOverflowAreaProperty callers to GetOverflowRect b=417116 r+sr=roc a=roc
git-svn-id: svn://10.0.0.236/trunk@246042 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-20 07:08:56 +00:00
bzbarsky%mit.edu
b06d3d6b21 Fix bug 416073: invalidate more things as needed during table reflow to prevent
glitches.  r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@245203 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-08 09:36:32 +00:00
jonas%sicking.cc
39d4ac87a1 Bug 399352: Get rid of known-but-harmless assertions for GetUsedMargin/Border/Padding. r/sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@244476 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-30 04:53:46 +00:00
fantasai.cvs%inkedblade.net
faf43a02d0 handle dynamic insertion with overflow containers properly, b=403369 r=bzbarsky sr=roc
git-svn-id: svn://10.0.0.236/trunk@244135 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-27 08:13:21 +00:00
dwitte%stanford.edu
17637c1a37 get rid of nsStyleStruct base type. b=408933, r+sr=dbaron, a=beltzner
git-svn-id: svn://10.0.0.236/trunk@242851 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-10 20:56:50 +00:00
vladimir%pobox.com
7525088701 b=406458; code cleanup: add new ThebesContext() call as opposed to NATIVE_THEBES_CONTEXT hackery, r=stuart
git-svn-id: svn://10.0.0.236/trunk@241704 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-18 23:01:18 +00:00
roc+%cs.cmu.edu
93254e36f5 Bug 405380. Bidi reordering moves frames around so we can't trust pfd->mBounds in nsLineLayout::RelativePositionFrames. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@240881 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-12 00:42:20 +00:00
roc+%cs.cmu.edu
967008ce95 Bug 407155. Backing out 392809 to fix regressions. a=schrep
git-svn-id: svn://10.0.0.236/trunk@240603 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-07 09:35:45 +00:00
roc+%cs.cmu.edu
da23161809 Bug 392809. Break between whitespace and following punctuation even when stop_at_punctuation is false. Don't stop between punctuation and following non-punctuatino if the preceding punctuation follows white-space. r=smontagu
git-svn-id: svn://10.0.0.236/trunk@240480 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-05 02:11:17 +00:00
roc+%cs.cmu.edu
c0a6fa787e Bug 399531. Rework TrimTrailingWhitespace so that we recompute the overflow area for trimmed textframes and so that soft hyphens in otherwise-empty textframes are activated. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@240211 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-01 09:24:25 +00:00
Olli.Pettay%helsinki.fi
e60089b398 Bug 368760, r=mats, sr=roc, a=blocking1.9+
git-svn-id: svn://10.0.0.236/trunk@239843 18797224-902f-48f8-a5cc-f745e15eee43
2007-11-22 20:47:35 +00:00
jwatt%jwatt.org
96b895330a Fixing bug 294086. <svg> should be a replaced element. r+sr=dbaron@mozilla.com blocking1.9=tor@acm.org
git-svn-id: svn://10.0.0.236/trunk@239599 18797224-902f-48f8-a5cc-f745e15eee43
2007-11-18 12:09:09 +00:00
dholbert%cs.stanford.edu
a64bae2eaf Bug 398181: Use NSCoordSaturatingAdd/Subtract in 3 places where we might have
unconstrained heights.  r+sr+a=roc


git-svn-id: svn://10.0.0.236/trunk@239069 18797224-902f-48f8-a5cc-f745e15eee43
2007-11-09 17:16:36 +00:00
reed%reedloden.com
fa6b15d097 Bug 391584 - Pass around a context string so we can detect word breaks at the beginning or end of frames [p=roc r=smontagu a=blocking1.9+]
git-svn-id: svn://10.0.0.236/trunk@238953 18797224-902f-48f8-a5cc-f745e15eee43
2007-11-08 04:33:28 +00:00
dholbert%cs.stanford.edu
9a4ba52ae3 Bug 398215 - Add RTL case for handling overflow width in BoxReflow. r+sr=roc, a=blocking1.9+
git-svn-id: svn://10.0.0.236/trunk@238901 18797224-902f-48f8-a5cc-f745e15eee43
2007-11-07 11:18:30 +00:00
dholbert%cs.stanford.edu
a5783ae5f6 Bug 385823 - Let us call NotifyPercentHeight even when computed height is already set, because it'll be set on imageFrames. r+sr=dbaron, a=beltzner
git-svn-id: svn://10.0.0.236/trunk@238602 18797224-902f-48f8-a5cc-f745e15eee43
2007-11-06 22:47:29 +00:00
dholbert%cs.stanford.edu
723ad12919 Bug 399384: Make first-letter frames use nearest ancestor blockFrame's content node, instead of direct parent's.
r=bzbarsky, r+a=roc


git-svn-id: svn://10.0.0.236/trunk@237923 18797224-902f-48f8-a5cc-f745e15eee43
2007-10-19 17:41:29 +00:00
roc+%cs.cmu.edu
151722d42f Bug 397518. Wrap inline non-MathML children of MathML frames in anonymous blocks. r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@237645 18797224-902f-48f8-a5cc-f745e15eee43
2007-10-12 08:30:55 +00:00
tglek%mozilla.com
1b2f5bc689 Clean up prbool misuse in layout. bug 398312, r+sr+a=dbaron
git-svn-id: svn://10.0.0.236/trunk@237496 18797224-902f-48f8-a5cc-f745e15eee43
2007-10-10 00:00:06 +00:00
fantasai.cvs%inkedblade.net
3a00ff8d0e paginate absolutely-positioned elements, b=154892 r+sr=roc a=roc
git-svn-id: svn://10.0.0.236/trunk@237057 18797224-902f-48f8-a5cc-f745e15eee43
2007-10-02 05:57:46 +00:00
joshmoz%gmail.com
7fbad72616 remove XP_MAC usage. b=281889 r=cbarrett sr=roc a=roc
git-svn-id: svn://10.0.0.236/trunk@237027 18797224-902f-48f8-a5cc-f745e15eee43
2007-10-01 23:20:38 +00:00
reed%reedloden.com
fd4215a28b Bug 393979 - "Remove orphaned comment in nsFrame::BoxReflow" [p=trev.moz@adblockplus.org (Wladimir Palant) r+sr+a1.9=roc]
git-svn-id: svn://10.0.0.236/trunk@236762 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-27 16:44:24 +00:00
roc+%cs.cmu.edu
a99d29a1d9 Bug 368445. Make ApplyOverflowClipping compute the right padding-rect when native themes override the border. r+sr+a=dbaron
git-svn-id: svn://10.0.0.236/trunk@236625 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-25 00:47:05 +00:00
dholbert%cs.stanford.edu
665a4e2bad Bug 367673, Handle width-computation arithmetic with nscoord_MAX. r=roc sr=roc a1.9=roc
git-svn-id: svn://10.0.0.236/trunk@236556 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-24 17:30:43 +00:00
bzbarsky%mit.edu
36af99ea83 Fix content leak due to double-init of oveflow placeholders. Bug 397011,
r+sr+a=roc


git-svn-id: svn://10.0.0.236/trunk@236483 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-22 01:24:41 +00:00
Olli.Pettay%helsinki.fi
81587d6b25 Bug 395725, Crash [@ nsIFrame::GetFrameSelection], r+sr+a=roc
git-svn-id: svn://10.0.0.236/trunk@236044 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-15 19:48:20 +00:00
enndeakin%sympatico.ca
9e45433d86 Bug 387486, editor in grid overflows, r+sr+a=roc
git-svn-id: svn://10.0.0.236/trunk@236030 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-15 15:14:27 +00:00
martijn.martijn%gmail.com
4750e39848 Bug 257938 – Should css scrollable areas without scrollbars be tabbable?, patch by Aaron Leventhal, r+sr+a=roc
git-svn-id: svn://10.0.0.236/trunk@233840 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-04 12:14:52 +00:00
roc+%cs.cmu.edu
3f11928d52 Bug 389421. Rework word selection, in particular so that layout.word_select.stop_at_punctuation is applied to boundaries between punctuation and non-punctuation, and all Unicode punctuation is treated as punctuation.
git-svn-id: svn://10.0.0.236/trunk@233374 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-30 03:10:19 +00:00
smontagu%smontagu.org
8c50871b76 Null check after CheckLineOrder. Bug 388175, patch by Uri Bernstein <uriber@gmail.com>, r=me, sr+a=roc
git-svn-id: svn://10.0.0.236/trunk@233296 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-29 07:22:42 +00:00
mozilla%weilbacher.org
fa3f2e9691 Bug 385891: Removal of non-Cairo code from nsFrame.cpp and nsObjectFrame.cpp, p=alfredkayser, r/sr/a=dbaron
git-svn-id: svn://10.0.0.236/trunk@232993 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-24 00:13:44 +00:00
philringnalda%gmail.com
a10e4df6c0 Bug 390423 - Simplify the signature of nsIFrame::GetPointFromOffset, patch by Ben Karel <web+moz@eschew.org>, r=aaronlev/elif, sr=roc, a1.9=dbaron
git-svn-id: svn://10.0.0.236/trunk@232249 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-17 03:43:01 +00:00
bzbarsky%mit.edu
3524c6eee1 Introduce a setter for nsHTMLReflowState::mComputedHeight so that we're sure to
update the resize flags properly.  Bug 388084, r+sr+a=dbaron


git-svn-id: svn://10.0.0.236/trunk@231323 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-02 18:08:07 +00:00
roc+%cs.cmu.edu
cb8c6e3a11 Bug 379349. Add support for 'overflow containers' --- special frame continuations that do not map any content of their own, but serve only as containers for laying out children that overflowed their parents' content height. patch by fantasai, r+sr=eli,roc
git-svn-id: svn://10.0.0.236/trunk@231012 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-26 04:03:31 +00:00
jwalden%mit.edu
3f7e80ca28 Rename one of the bits on frames with a meaningful name, rs/r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@230405 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-21 00:34:36 +00:00
roc+%cs.cmu.edu
2ffe0a55c7 Bug 328296. Make outlines appeare below positioned elements instead of above them. r+sr=Mats Palmgren
git-svn-id: svn://10.0.0.236/trunk@230262 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-19 03:50:24 +00:00
bzbarsky%mit.edu
4ce095f583 When reparenting placeholders to live under a first-line, don't change their
style context parent.  Bug 380012, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@230165 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-18 02:01:32 +00:00
jwalden%mit.edu
dda6ff3c99 Bug 348748 - Replace all instances of NS_STATIC_CAST and friends with C++ casts (and simultaneously bitrot nearly every patch in existence). r=bsmedberg on the script that did this. Tune in next time for Macro Wars: Episode II: Attack on the LL_* Macros.
git-svn-id: svn://10.0.0.236/trunk@229504 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-08 07:08:56 +00:00
jruderman%hmc.edu
8169ada629 Bug 99319, Silence startup printf "Note: styleverifytree is disabled" and friends in the "disabled" case. Patch by Ryan Jones, r+sr=bzbarsky.
git-svn-id: svn://10.0.0.236/trunk@229493 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-07 23:53:00 +00:00
mats.palmgren%bredband.net
fd18364353 Cleanup implementations of QueryInterface. b=385750 r+sr=dbaron r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@229301 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-04 02:15:35 +00:00
roc+%cs.cmu.edu
02c47d48da Bug 386548. Remove nsTextTransformer. r+sr=mats
git-svn-id: svn://10.0.0.236/trunk@229199 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-02 23:37:00 +00:00
peterv%propagandism.org
9e04fca5dd Fix for bug 237964 (Allow editable areas in browser (contentEditable)). r/sr=sicking.
git-svn-id: svn://10.0.0.236/trunk@228918 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-28 02:48:22 +00:00
peterv%propagandism.org
857e346b36 Backing out to fix orange.
git-svn-id: svn://10.0.0.236/trunk@228906 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-27 23:21:09 +00:00
peterv%propagandism.org
4161532453 Fix for bug 237964 (Allow editable areas in browser (contentEditable)). r/sr=sicking.
git-svn-id: svn://10.0.0.236/trunk@228893 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-27 22:29:54 +00:00