Commit Graph

246 Commits

Author SHA1 Message Date
roc+@cs.cmu.edu
cd136606fe Bug 385270. Remove unnecessary (hopefully) bidi offset adjustment; the offsets will get fixed by a later reflow. r+sr=dbaron 2007-07-23 20:48:10 -07:00
bzbarsky@mit.edu
fc099802ed Add assertion. Bug 382199, r+sr=dbaron 2007-07-23 18:42:23 -07:00
bzbarsky@mit.edu
21505422b0 Address nits in patch for bug 257868. r+sr=roc 2007-07-23 18:19:43 -07:00
sharparrow1@yahoo.com
8ae10bc4a7 Bug 320378: Fix rendering preformance for heavily nested pages with clearance. 2007-07-23 17:40:42 -07:00
asqueella@gmail.com
cb307ac952 fix bug 388709 - "ASSERTION: Please remove this from the document properly: '!IsInDoc()'" with :after, floating :first-letter
Store the generated content as a nsCOMArray<nsIContent>* property on frames to make its clean-up on frame destruction less fragile.

r+sr=roc
2007-07-23 16:31:11 -07:00
sharparrow1@yahoo.com
2db409b949 Bug 386147: Don't cut off floats at the bottom of the page, part 2: make sure continuations have the right preferred width. r+sr=dbaron. 2007-07-23 14:40:10 -07:00
mats.palmgren@bredband.net
0547b616b0 Remove nsDirectionalFrame::QueryInterface(), add GetFrameName(), and some other minor cleanup. b=385921 r+sr=dbaron 2007-07-22 07:43:23 -07:00
mats.palmgren@bredband.net
151fc8f9ab [DEBUG-only] Print a warning if we find a null float in the float cache. b=387651 r+sr=roc 2007-07-22 06:37:36 -07:00
jwalden@mit.edu
3dd0a48e8f Rename one of the bits on frames with a meaningful name, rs/r+sr=dbaron 2007-07-20 17:34:36 -07:00
sharparrow1@yahoo.com
9b40cbecb4 Bug 379922: Canvas frame's invalidation no longer correct. r+sr=dbaron 2007-07-20 13:14:43 -07:00
sharparrow1@yahoo.com
4480ed2810 Bug 384762: Negative margin + clear broken. r+sr=dbaron 2007-07-20 13:05:02 -07:00
jwalden@mit.edu
072a5d24ae Bug 386142 - fix up some comments on nsIFrame::Init. Patchby fantasai <fantasai.bugs@inkedblade.net>, r+sr=roc 2007-07-20 12:00:36 -07:00
sharparrow1@yahoo.com
c3cd7e1d31 Bug 384876: Padding gets added at both sides when overflow is used. 2007-07-20 11:35:20 -07:00
roc+@cs.cmu.edu
86d69d1566 Bug 364680. Intrinsic widths for columns. r+sr=dbaron 2007-07-19 19:21:43 -07:00
roc+@cs.cmu.edu
4d86f10253 Bug 346405. Handle reparenting of empty float lists. r+sr=dbaron 2007-07-18 21:32:08 -07:00
roc+@cs.cmu.edu
ed23b4f50f Bug 381703. First-letter frames that are wrapping non-first-letter-content should behave like spans and not compute their size. r+sr=dbaron 2007-07-18 21:29:59 -07:00
roc+@cs.cmu.edu
ed167bb522 Bug 328296. Make outlines appeare below positioned elements instead of above them. r+sr=Mats Palmgren 2007-07-18 20:50:24 -07:00
vladimir@pobox.com
d297746481 b=386799, crash with zero-width canvas, r=stuart,sr=roc 2007-07-18 07:40:19 -07:00
bzbarsky@mit.edu
4e086847d4 Fix build bustage 2007-07-17 19:43:12 -07:00
bzbarsky@mit.edu
a91a443a42 When reparenting placeholders to live under a first-line, don't change their
style context parent.  Bug 380012, r+sr=dbaron
2007-07-17 19:01:32 -07:00
asqueella@gmail.com
eaa1dd5061 back out 92543 due to DEBUG builds bustage 2007-07-17 14:52:27 -07:00
asqueella@gmail.com
4143d9b15e Bug 92543 - BandRect.mFrames should be created as an nsAutoVoidArray
p=Alfred Kayser <alfredkayser@nl.ibm.com>
r+sr=roc
2007-07-17 14:00:27 -07:00
mrbkap@gmail.com
4287a9b897 Fix printf format-specifier and args mismatch to prevent potential DEBUG-only crashes. bug 388358, r+sr=roc 2007-07-16 15:26:53 -07:00
sharparrow1@yahoo.com
a0e18c7979 Bug 386391: Old padding remains when updating bottom-positioned div. r+sr=roc 2007-07-16 11:55:24 -07:00
neil@parkwaycc.co.uk
ef8ecf15f4 nsTextFrameThebes ClusterIterator misuses memset plus cleanup b=387964 r+sr=roc 2007-07-13 01:22:00 -07:00
roc+@cs.cmu.edu
98e06e2acf Bug 387867. Rename DISABLE_LIGATURES to DISABLE_OPTIONAL_LIGATURES and make the ATSUI code only disable optional ligatures. r=pavlov 2007-07-13 01:09:25 -07:00
roc+@cs.cmu.edu
b3d6a2dc31 Bug 387358. Don't go into an infinite loop searching for end-of-first-letter-cluster; also translate from DOM to textrun offsets. r=smontagu 2007-07-12 16:00:20 -07:00
bzbarsky@mit.edu
a4c90a1d9d Make attribute changes that also cause a state change properly reresolve style
when a selector uses both the state and the attribute.  Bug 315920, r=dbaron,
sr=sicking.
2007-07-12 13:05:45 -07:00
peterv@propagandism.org
2fb0fc711a Fix for bug 386496 (Clicking on link in designMode document does follow that link now). r/sr=bz. 2007-07-11 06:05:05 -07:00
neil@parkwaycc.co.uk
11ed13d71f Followup to bug 348748 to fix the alignment of trailing backslashes in macros
[xxx_cast<foo*>(bar) is three characters shorter than NS_XXX_CAST(foo*, bar)]
2007-07-11 01:46:44 -07:00
jwalden@mit.edu
c86b388db3 Add assertions that line iterators being compared are iterators over the same line list. rs=dbaron 2007-07-10 17:55:15 -07:00
jwalden@mit.edu
e3c4baccae 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. 2007-07-08 00:08:04 -07:00
jruderman@hmc.edu
777ecef0f6 Bug 99319, Silence startup printf "Note: styleverifytree is disabled" and friends in the "disabled" case. Patch by Ryan Jones, r+sr=bzbarsky. 2007-07-07 16:52:59 -07:00
sharparrow1@yahoo.com
7be43fe930 Bug 386900: Topic images rendered in wrong place on slashdot. r+sr=roc 2007-07-06 11:22:56 -07:00
sharparrow1@yahoo.com
60bc3c2574 Fix warning from Bug 285608. r+sr=roc. 2007-07-04 16:38:39 -07:00
enndeakin@sympatico.ca
6c8197be5f Bug 279703, rework XUL popups to use asynchronous opening, plus many other fixes, attempt 2 with creating widgets later, r=bz,neil,roc,sr=bz 2007-07-04 08:49:38 -07:00
roc+@cs.cmu.edu
33428c5bf6 Bug 385423. Refactor textrun cache so that all textrun clients use a single global word-based cache. Responsibility for stripping out problematic characters (e.g. newlines) is given to the word cache. r=vlad,smontagu 2007-07-03 20:39:01 -07:00
mats.palmgren@bredband.net
db689821bf Cleanup implementations of QueryInterface. b=385750 r+sr=dbaron r+sr=jst 2007-07-03 19:15:31 -07:00
sharparrow1@yahoo.com
c42eac0192 Bug 386142: fantasai's li'l Need More Comments bug. Patch by fantasai, r+sr=roc 2007-07-03 15:49:00 -07:00
sharparrow1@yahoo.com
8801788a06 Bug 386141: Switch NS_FRAME_IS_BOX to use IsFrameOfType. Patch by fantasai, r+sr=roc. 2007-07-03 15:11:28 -07:00
roc+@cs.cmu.edu
b8625507f4 Bug 384988. Provide toplevel window to plugins for WM_TRANSIENT_FOR of dialog boxes. patch by Karl Tomlinson,r+sr=roc,jst 2007-07-02 20:41:34 -07:00
roc+@cs.cmu.edu
58ab8b25e3 Bug 384975. Dispatch input events to windowless X plugins. patch by Karl Tomlinson, r+sr=roc,jst 2007-07-02 20:39:44 -07:00
roc+@cs.cmu.edu
7beba0dc34 Bug 384845. Drawing support for windowless plugins in X. Patch by Karl Tomlinson, r+sr=roc,jst 2007-07-02 20:33:13 -07:00
roc+@cs.cmu.edu
71fc801e9d Bug 384845. Make the NPSetWindowCallbackStruct memory associated with
window->ws_info available before SetWindow is called, and disable the plugin
window GtkSocket or xtbin creation for windowless plugins.
patch by Karl Tomlinson, r+sr=jst
2007-07-02 20:29:47 -07:00
flamingice@sourmilk.net
719eaa0717 Bug 386012, Crash [@ nsTextFrameUtils::TransformText] loading png as HTML, Patch by Karl Tomlinson, r+sr=roc 2007-07-02 17:46:05 -07:00
roc+@cs.cmu.edu
2da35d9a47 Bug 386548. Removing no-longer-used nsTextTransformer files 2007-07-02 17:29:01 -07:00
roc+@cs.cmu.edu
f89a82a7f6 Bug 386548. Remove nsTextTransformer. r+sr=mats 2007-07-02 16:36:59 -07:00
sharparrow1@yahoo.com
c44588dfad Bug 377204: Clearing multi-page floated elements works on screen but not when printing (fix for fixed-height case). r+sr=rpc. 2007-07-02 14:00:31 -07:00
sharparrow1@yahoo.com
d6746f9dd6 Bug 386387: ifilm videos don't play, only audio plays. r+sr=roc 2007-07-01 23:12:02 -07:00
sharparrow1@yahoo.com
64411c9fa4 Bug 386147: Don't cut off floats at the bottom of the page (part 1). r+sr=roc 2007-07-01 22:26:52 -07:00
sharparrow1@yahoo.com
629a8533ea Bug 343595: {inc} overflow:hidden float in overflow:hidden div doesn't get repositioned correctly. r+sr=roc 2007-07-01 22:19:57 -07:00
roc+@cs.cmu.edu
2bcba24d21 Removing nsTextFrame.cpp and associated makefile rules. r/sr=pavlov for the removal. 2007-07-01 20:31:57 -07:00
roc+@cs.cmu.edu
edb8c4e744 Bug 386122. Allow text runs to end at preformatted newlines. Speeds up loading of plain-text files a lot because we don't have to have a textrun for the entire file. r=smontagu 2007-07-01 18:20:43 -07:00
roc+@cs.cmu.edu
cb9f8e0c54 Bug 9101. Fix various soft-hyphen bugs, primarily related to detecting when hyphenation is needed during a second-pass break-forcing line reflow. r=smontagu 2007-07-01 18:14:27 -07:00
enndeakin@sympatico.ca
95deb19d78 Bug 279703, backing out the popup changes due to performance regressions. sigh. 2007-06-29 15:15:59 -07:00
enndeakin@sympatico.ca
6c59f4a6d3 Bug 279703, rework XUL popups to use asynchronous opening, plus many other fixes, r=bz,neil,sr=bz 2007-06-29 12:04:45 -07:00
mconnor@steelgryphon.com
2a009ab4f8 backing out bug 347743 due to major crasher in 386332 2007-06-29 10:21:55 -07:00
peterv@propagandism.org
76a2c4d37f Fix for bug 237964 (Allow editable areas in browser (contentEditable)). r/sr=sicking. 2007-06-27 19:48:16 -07:00
jst@mozilla.org
82955233cf Fixing bug 347743. Delay plugin destruction on windows to get it out of layout frame destruction. r+sr=roc@ocallahan.org 2007-06-27 17:15:11 -07:00
peterv@propagandism.org
0f0097ffc5 Backing out to fix orange. 2007-06-27 16:21:05 -07:00
peterv@propagandism.org
51dda63979 Fix for bug 237964 (Allow editable areas in browser (contentEditable)). r/sr=sicking. 2007-06-27 15:29:45 -07:00
sharparrow1@yahoo.com
2dfa401cab Bug 385862: View usage cleanups. r+sr=roc 2007-06-27 09:37:50 -07:00
sharparrow1@yahoo.com
797d33c39e Bug 285608: hangs when page with float printed. r+sr=roc. 2007-06-27 09:35:31 -07:00
roc+@cs.cmu.edu
ee678ee439 Bug 384836. Relanding fix to pass around gfxContexts a bit more instead of hanging on to one in nsTransformedTextRun. r=smontagu,pavlov 2007-06-26 21:22:21 -07:00
roc+@cs.cmu.edu
26f439cf9b Bug 383551. Clean up IsInlineFrame, nsStyleDisplay::IsBlockLevel and related methods. r+sr=dbaron 2007-06-26 19:31:35 -07:00
roc+@cs.cmu.edu
ad7d6b1173 Bug 385293. Silence warnings about textrun recreation that aren't really problems, just informational. r=smontagu 2007-06-26 19:21:34 -07:00
dbaron@dbaron.org
d0ed87d4da Back out bug 384836 to diagnose Tp/Tp2 regression bug 385957. 2007-06-26 15:16:34 -07:00
roc+@cs.cmu.edu
4e19947cc9 Bug 384836. Avoid using a stale gfxContext, by not holding onto one in nsTransformedTextRun, passing in a gfxContext when required instead. r=pavlov,smontagu 2007-06-25 21:25:00 -07:00
mrbkap@gmail.com
2568d5a057 Don't depend on undefined behavior (sign extension on right shift). bug 385259, r=mats.palmgren sr=jst 2007-06-25 14:53:21 -07:00
roc+@cs.cmu.edu
1a0e38773f Bug 385344. Always reconstruct textruns for next-in-flows of firstline/firstletter frames. Also, be more careful looping over text in AddInlinePrefWidthForFlow. r=smontagu 2007-06-24 20:41:07 -07:00
roc+@cs.cmu.edu
2f6a9ffa9f Bug 385234. Iterate through textframe continuations properly in AddInlinePref/MinWidth. r=smontagu 2007-06-21 17:14:34 -07:00
roc+@cs.cmu.edu
63340d2891 Bug 382105. Clean up PeekOffsetWord to exit early without setting *aOffset if there is nowhere to go in the requested direction. Also, ignore *aSawBeforeType when we're checking for punctuation. r=smontagu 2007-06-21 17:13:05 -07:00
dbaron@dbaron.org
ad3d506605 Make text-indent contribute to intrinsic widths, and handle negative text-indent and negative margin properly by distinguishing forced and optional breaks when accumulating minimum widths. b=368155 r+sr=roc 2007-06-21 15:32:47 -07:00
roc+@cs.cmu.edu
8dbe06191f Bug 367177. (Re)enabling new-textframe. 2007-06-20 12:49:46 -07:00
jwalden@mit.edu
48ddf6ad09 C++ and/or gcc sucks for not allowing commas at the end of enums; this compiled in Visual Studio. 2007-06-19 22:24:09 -07:00
jwalden@mit.edu
8d353cbe72 Move frame bit #defines into an anonymous enum, to aid debuggers in determining their values, since the two I've used can't do so, at least not with the default build options. rs=roc 2007-06-19 22:12:35 -07:00
dbaron@dbaron.org
3b94faebcf Back out patch to make mousethrough attribute apply to all elements. b=380094 a=roc 2007-06-18 16:22:46 -07:00
dbaron@dbaron.org
3ee9b0de0f Handle the vertical resizing in the first pass reflow correctly when we've previously done a special height reflow. b=381507 r=dholbert sr=roc 2007-06-18 16:19:39 -07:00
m_kato@ga2.so-net.ne.jp
c978630279 bug 328547 support mozilla/layout on WinXP x64 build. r=cbiesinger/sr=dbaron 2007-06-17 07:00:30 -07:00
sharparrow1@yahoo.com
78559aa94e Bug 381385: get rid of unneeded members of nsFloatCache (saves about 50 bytes footprint per float). r+sr=roc. 2007-06-16 13:27:46 -07:00
roc+@cs.cmu.edu
250e787eff Bug 382105. Yet another word caret movement fix to ensure we stop at punctuation. 2007-06-14 22:37:08 -07:00
roc+@cs.cmu.edu
5ecac60819 Backing out new textframe landing because of Windows bustage. 2007-06-13 15:31:31 -07:00
roc+@cs.cmu.edu
aabe78b6ca Bug 367177. Turn on new textframe. Lord, have mercy upon us. 2007-06-13 13:20:19 -07:00
roc+@cs.cmu.edu
fba8d645e8 Not part of the build (barely). Don't skip updating per-char arrays for characters that are cluster continuations (in small-caps code). 2007-06-13 11:28:38 -07:00
roc+@cs.cmu.edu
5c7dda1060 Not part of the build (barely). Don't allow PeekOffsetWord to break before the first cluster. Avoids a fencepost error in ClusterIterator where going backwards we might try to look at one past the end of mWordBreaks. 2007-06-13 11:25:14 -07:00
roc+@cs.cmu.edu
ee1924e0c6 Not part of the build (barely). Fix intrinsic-min-widths properly for preformatted white-space... the previous checkin messed up the check for newline characters. 2007-06-13 03:58:44 -07:00
roc+@cs.cmu.edu
e799be426c Not Part Of The Build (barely). Clean up function names and comments. Also fix an unreported regression where we failed to take preformatted newlines into account when computing text intrinsic-min-width. 2007-06-13 02:06:28 -07:00
roc+@cs.cmu.edu
2f18074ec6 Landing textframe updates: Use word-based textrun cache; rewritten PeekOffsetWord; adjust textframe content-offsets and content-lengths when CharacterDataChanged fires; search backwards for textrun scanning/creation start point, instead of all the way back to the start of the block; ensure that we pass the correct start iterator to PropertyProvider in TrimTrailingWhiteSpace. 2007-06-12 14:01:12 -07:00
dbaron@dbaron.org
9e2fef4c30 Implement correct intrinsic width calculation (for container) for elements with specified height properties and an intrinsic ratio. b=364066 r+sr=bzbarsky 2007-06-12 11:27:09 -07:00
smontagu@smontagu.org
2926465a3b Clear textruns during bidi resolution. Not Part of the Build. Bug 382429, r+sr=roc 2007-06-02 23:53:10 -07:00
joshmoz@gmail.com
c4219bdb45 need to set plugin window x and y coords in CG mode. b=382765 r=sfraser sr=roc 2007-06-02 15:02:57 -07:00
roc+@cs.cmu.edu
fa9335bd42 Bug 382279. Disable ligatures when letter-spacing is in effect. Also, avoid adding space inside ligatures if the gfx backend doesn't respect our disabling of ligatures. r=pavlov 2007-05-30 22:01:56 -07:00
roc+@cs.cmu.edu
18223fc22d Not part of the build. Change nsLineBreaker so that breaks at element boundaries are always governed by the white-space property on the element that's the nearest common ancestor of the DOM nodes on each side of the break point --- fixes bug 382289. Also, pass NBSP through to textruns so that whitespace trimming doesn't trim NBSP. Also, count trimmed spaces correctly when updating mClusterCount. 2007-05-30 15:27:27 -07:00
mats.palmgren@bredband.net
1cb22a625f Check LL_GOTLINEBOX before using mLineBox. b=382396 r+sr=dbaron 2007-05-30 08:08:50 -07:00
smontagu@smontagu.org
d16cf8e31c Do bidi resolution during GetPrefWidth() and GetMinWidth() as well as Reflow(). Bug 365130, r+sr=roc 2007-05-28 07:40:56 -07:00
roc+@cs.cmu.edu
3fac21ece0 Not part of the build. Don't trim whitespace if wrapping is disabled --- in min-width and pref-width calculations. 2007-05-27 19:38:21 -07:00
roc+@cs.cmu.edu
8b4068bd66 Not part of the build. Don't trim whitespace if wrapping is disabled. Don't compress a space that's preceded by an incompressible space. 2007-05-27 19:20:58 -07:00
roc+@cs.cmu.edu
b83f90d3ea Not part Of The Build. Bug 381228. Fix handling of case where the text is not part of a block. 2007-05-23 20:06:37 -07:00
preed@mozilla.com
4750a2febd Bug 381695: TextFrame feature makefile switch needs to pick up its setting from environment. r=bsmedberg 2007-05-23 19:13:04 -07:00
roc+@cs.cmu.edu
d88807555b (Not Part Of The Build). Fix incorrect treatment of first character always as uppercase, even when it isn't, when building a small-caps textrun ... 2007-05-23 02:37:52 -07:00