Граф коммитов

510 Коммитов

Автор SHA1 Сообщение Дата
Justin Dolske aea4d69c80 Backed out changeset 4b2c67fe7e6b (relanding bug 449168) 2008-08-13 21:18:02 -07:00
Dave Townsend 1493cf5dc4 Backout of bug 449168 2008-08-13 22:34:50 +01:00
Dave Townsend 6a70036f8a Backed out changeset b5295239bdba 2008-08-13 22:33:56 +01:00
Robert O'Callahan f05ab3d5c6 Bug 406299. Make sure we include the font ascent/descent of a soft hyphen if there is one. r+sr=dbaron 2008-08-12 21:18:23 +12:00
Robert O'Callahan b2c0de7471 Bug 230555. Support white-space:pre-line. r+sr=dbaron 2008-08-12 20:31:56 +12:00
Simon Montagu 0d19165bc2 Bug 449577. Remove GetHints(), r+sr=roc 2008-08-11 18:19:01 +03:00
Boris Zbarsky cf1cb070a5 Bug 449168. Fix selection details leak. r=masayuki, sr=roc 2008-08-07 17:05:19 -04:00
Robert O'Callahan e77bdf3d25 Bug 238072 backout 2008-08-07 22:22:08 +12:00
Robert O'Callahan dcf51d2a34 Bug 238072. Rework generated content support to match CSS 2.1, making generated content take the normal frame construction path so supporting any style applied to it (including 'position', 'float', etc). r+sr=bz,r=dbaron 2008-08-07 13:18:24 +12:00
Robert O'Callahan bb9a3c58d4 Bug 441418. Instead of guessing when frame broke at a first-letter boundary, explicitly record that in a reflow status bit. r+sr=dbaron 2008-08-06 12:31:25 +12:00
Asaf Romano c9d1d9a951 Bug 263683 - Findbar's Highlight feature should not manipulate the DOM. Patch by Graeme McCutcheon <graememcc_firefox@graeme-online.co.uk>, r=me,roc. sr=roc. 2008-07-30 23:48:56 +03:00
Robert O'Callahan ed30595e99 Bug 431341. Include floating first-letter text when we build textruns for a paragraph, because we want nsLineBreaker to see the text for capitalization analysis. Make sure that textrun construction for floating first-letter text uses the block as its scope. And make sure we reconstruct textruns after determining the first-letter length, so that ligatures are broken as necessary. r=smontagu 2008-07-29 22:11:26 -07:00
Robert O'Callahan 5b34a78f29 Backing out bug 431341 2008-07-25 00:33:05 +12:00
Robert O'Callahan 610e8e3b21 Bug 431341. Let textrun construction descend into first-letter frames so that the correct capitalization state is constructed in nsLineBreaker. r=smontagu 2008-07-24 20:39:53 +12:00
Simon Montagu 0185f285af Support for word-wrap CSS property. Bug 99457, r+sr=dbaron, roc 2008-07-24 10:16:18 +03:00
John Daniels b006229ae6 Bug 419532 – deCOMtaminate nsICaret. r+sr=roc 2008-07-16 12:52:01 +02:00
Simon Montagu b19c640964 Position soft hyphens correctly in right-to-left text. Bug 444656, r+sr=roc 2008-07-16 11:43:39 +03:00
Karuna (karunasagark@gmail.com) 0eb449dd2a Bug 409331. Instead of QIing to nsBlockFrame in various places, call an nsLayoutUtils method to do it. r+sr=roc 2008-07-14 10:10:23 +12:00
Masayuki Nakano ce894b1162 Bug 442554 layout.word_select.eat_space_to_next_word should not change word selection method r+sr=roc 2008-07-09 17:32:24 +09:00
Mats Palmgren 23da00893f Always paint text-decoration:blink in non-dynamic (print/preview) contexts. b=153092 r+sr=roc 2008-07-08 18:18:32 +02:00
Michael Ventnor b3e218a0a8 Bug 212633 - "Add support for CSS3 box-shadow" (parsing support) [p=ventnor.bugzilla@gmail.com (Michael Ventnor) r+sr=dbaron] 2008-07-07 19:56:52 -05:00
Masayuki Nakano f1cf303d4c Bug 436356 Bullet lists does not display correctly, works in FF 2 p=Atsushi Sakai, r+sr=roc 2008-07-03 14:49:24 +09:00
Simon Montagu ea890e880c Make :first-letter include following punctuation but not first letters that are neither letters nor digits. Bug 399941, r+sr=roc
--HG--
rename : layout/generic/punct_marks.ccmap => layout/generic/punct_marks.x-ccmap
2008-07-02 19:28:43 +03:00
Benjamin Smedberg 556cf36dc9 Bug 442729 - Annotate stack-only classes in layout, r+sr=roc 2008-07-01 15:16:45 -04:00
Mats Palmgren bd4639345b Take left border+padding into account when calculating distance from block edge for TAB. b=430926 r+sr=roc 2008-06-20 06:39:56 +02:00
Robert O'Callahan 1b6c71eabf Bug 439004. Check whether there's logically empty content already placed on the line instead of just checking whether the line has advanced horizontally. r+sr=dbaron. 2008-06-14 20:28:07 +12:00
Michael Ventnor 129d4dc805 Implement text-shadow rendering (bug 10713). r+sr=roc. Relanding with fixes to make tests pass on Mac 2008-06-13 10:02:32 +12:00
Robert O'Callahan 42904fb3e3 Backing out text-shadow due to Mac issues 2008-06-12 17:32:31 +12:00
Michael Ventnor 159e13c0ea Implement text-shadow rendering. 2008-06-12 14:34:40 +12:00
bzbarsky@mit.edu 669868b0c3 Don't try to include the selection area in our text-decoration overflow if we're not selected. Bug 429595, r+sr=roc, a=beltzner 2008-04-21 20:28:14 -07:00
smontagu@smontagu.org d4bc85074f Assert that the nsContinuingTextFrame is not a first continuation. Bug 414760, r+sr=roc 2008-04-21 00:17:04 -07:00
masayuki@d-toybox.com 6112db9666 Bug 428846 Using underline hint at painting the strikeout line of Quirks mode r+sr=roc, a1.9=beltzner 2008-04-14 23:47:59 -07:00
masayuki@d-toybox.com a383f49809 Bug 426772 Floated first-letter generates too tall box r+sr=roc, a1.9=beltzner 2008-04-11 01:44:58 -07:00
smontagu@smontagu.org 6d810bbd51 Correct the coordinates for selection decoration in right-to-left text. Bug 421042, r+sr=roc, a=beltzner 2008-04-06 01:12:09 -07:00
reed@reedloden.com 5790258a32 Bug 421353 - "Moving the mouse over text hyperlinks which become underlined spikes cpu usage" (Fix incorrect use of units in previous patch) [p=reg@openpave.org (Jeremy Lea) r+sr=roc a1.9=beltzner] 2008-04-04 02:19:02 -07:00
masayuki@d-toybox.com 3b28b33c93 Bug 421353 Moving the mouse over text hyperlinks which become underlined spikes cpu usage r=roc+stuart, sr=roc, a1.9=beltzner 2008-03-29 14:25:15 -07:00
roc+@cs.cmu.edu 1a9168290d Bug 422394. Fix tab width calculation so we never fail to advance. r=smontagu 2008-03-17 18:48:22 -07:00
roc+@cs.cmu.edu 54be39edc6 Bug 404140. Avoid assertions about comparing line iterators from different lists by comparing nsLineBox* pointers. r+sr=dbaron 2008-03-14 01:12:25 -07:00
masayuki@d-toybox.com dfeff6fa58 Bug 417014 Need blacklist system for underline offset adjusting of CJK fonts which have wrong underline offset r=roc+stuart, sr=roc, b1.9=stuart 2008-03-12 19:36:58 -07:00
roc+@cs.cmu.edu f270904496 Bug 392809. Fix word-based caret movement around punctuation and whitespace. r=smontagu,a=beltzner 2008-03-03 00:37:34 -08:00
roc+@cs.cmu.edu efc1d5a1dd Bug 400057. Make nsBlockInFlowLineIterator useful for finding the line containing a frame, searching across block continuations and their overflow lines. Use it in various places, especially in textrun construction. r+sr=dbaron 2008-02-27 01:53:48 -08:00
roc+@cs.cmu.edu 5fdb0cc854 Bug 419531. Don't wipe out stored tab widths during text intrinsic size calculation. r+sr=dbaron 2008-02-27 01:29:46 -08:00
fantasai.cvs@inkedblade.net 2f230818c7 switch GetOverflowAreaProperty callers to GetOverflowRect b=417116 r+sr=roc a=roc 2008-02-19 23:08:55 -08:00
masayuki@d-toybox.com 6e2677d193 Bug 392785 overflowed underline sometimes is not repainted at scrolling r+sr=roc b1.9=dbaron 2008-02-16 07:31:27 -08:00
roc+@cs.cmu.edu 05225fa949 Bug 400813. Text with font-size:0 should not make a line be treated as empty. r+sr=dbaron 2008-02-14 01:08:33 -08:00
roc+@cs.cmu.edu abee6630e1 backing out bug 400813 again due to reftest failure... 2008-02-11 18:48:17 -08:00
roc+@cs.cmu.edu 5c233a1d82 Bug 400813. Lines with font-size:0 content should not be treated as empty. r+sr=dbaron 2008-02-11 17:42:14 -08:00
roc+@cs.cmu.edu 0b989b691c Backing out 400813, sigh 2008-01-29 23:35:05 -08:00
roc+@cs.cmu.edu 4786a8d1cb Bug 400813. Lines with actual content that just happens to be zero-width should be treated as non-empty. r+sr=dbaron 2008-01-29 23:12:26 -08:00
roc+@cs.cmu.edu 22aa9d38ba Bug 411792. Never put a line break before a preformatted newline. r=smontagu 2008-01-26 23:48:39 -08:00
mats.palmgren@bredband.net eafc52bf15 Update the content offset for existing non-fluid continuations when creating a next-in-flow. b=406380 r+sr=roc a=blocking1.9 2008-01-04 09:09:35 -08:00
roc+@cs.cmu.edu f8b25558e4 Bug 407889. Reduce dynamic memory allocations during event handling by having nested invocations of HitTest share a single buffer for reordering display items; this buffer is an nsAutoTArray so it's mostly stack-allocated. r+sr=mats 2008-01-03 18:08:29 -08:00
mats.palmgren@bredband.net f2fb0a6f06 Backing out bug 406380 to fix reftest failure. 2007-12-31 03:32:07 -08:00
mats.palmgren@bredband.net df40d151fc Update content offset for all next-continuations, not just fluid ones. b=406380 r+sr=roc a=blocking1.9 2007-12-31 02:29:20 -08:00
Evan.Yan@Sun.COM 1211290d23 Bug 405248 - Space between embedded objects characters is missing r=aaronleventhal a=mtschrep 2007-12-19 04:57:08 -08:00
vladimir@pobox.com 2e94f56ef2 b=406458; code cleanup: add new ThebesContext() call as opposed to NATIVE_THEBES_CONTEXT hackery, r=stuart 2007-12-18 15:01:15 -08:00
smontagu@smontagu.org 5da7470475 Make sure that the offsets in a textframe are up-to-date before creating a bidi continuation. Bug 406675, r=uriber, sr=roc, blocking1.9=schrep 2007-12-12 23:51:27 -08:00
roc+@cs.cmu.edu 5feca62ec9 Bug 407078. Don't allow a trailing break in a text run that is followed by a <br>. r=smontagu 2007-12-10 17:19:20 -08:00
roc+@cs.cmu.edu 350892fb62 Bug 407155. Backing out 392809 to fix regressions. a=schrep 2007-12-07 01:35:44 -08:00
roc+@cs.cmu.edu 6a729d4e2e Bug 407227. Include end-of-linebreaker-textrun break opportunity in min-width calculation. r+sr=dbaron,a=schrep 2007-12-06 19:27:01 -08:00
roc+@cs.cmu.edu 23d88cc4b3 Bug 407227. Include end-of-linebreaker-textrun break opportunity in min-width calculation. r+sr=dbaron,a=schrep 2007-12-06 19:16:07 -08:00
roc+@cs.cmu.edu 96732f1829 Bug 405577. Allow available width to go negative for inlines/text, so we can tell whether zero-width content fits or not. Also allow textframes to honour a forced break at the end of the text. r+sr=dbaron 2007-12-05 17:24:03 -08:00
roc+@cs.cmu.edu c2c75aa40a Backing out unintentionally-checked in stuff 2007-12-04 18:12:40 -08:00
roc+@cs.cmu.edu fed73e9f6a 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 2007-12-04 18:11:17 -08:00
dmose@mozilla.org 4ef13d4907 Backing out fix for bug 392785 as per roc + mconnor. 2007-12-04 15:32:08 -08:00
roc+@cs.cmu.edu b59ab6a038 Bug 403426. We should clear whitespace status when we reset the linebreaker. If a final break opportunity exists we should save it and forward it to the line layout. Relanding with a fix so hopefully we won't crash Tp this time. r=smontagu 2007-12-03 00:22:07 -08:00
masayuki@d-toybox.com 7fc09046f2 Bug 392785 overflowed underline sometimes is not repainted at scrolling r+sr=roc, b1.9=dbaron 2007-12-02 22:51:57 -08:00
roc+@cs.cmu.edu 8e494eacbb Relanding bug 404624 because it was not, in fact, responsible for that assert 2007-12-02 20:18:37 -08:00
roc+@cs.cmu.edu 16af9cfadf Backing out fix for bug 404624 because I think it's causing a mochitest to assert 2007-12-02 18:20:22 -08:00
roc+@cs.cmu.edu 204a404d9c Relanding fix for bug 404624 because it had no effect on Tp 2007-12-02 17:42:52 -08:00
roc+@cs.cmu.edu 4bb43f3cc1 Backing out bug 404624 to see if it fixed Tp regression on bl-bldxp01 2007-12-02 12:47:41 -08:00
roc+@cs.cmu.edu efa3189859 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 2007-12-01 01:24:24 -08:00
roc+@cs.cmu.edu d6da6b5316 Backing out bug 403426 2007-11-30 12:52:24 -08:00
roc+@cs.cmu.edu d8d80a602f Bug 403426. Clear break-after-whitespace flags when we reset the linebreaker. Also rescue a trailing break opportunity when we reset the line breaker and notify the line layout that the opportunity exists. r=smontagu 2007-11-30 12:03:33 -08:00
roc+@cs.cmu.edu d9a2421672 Bug 404624. Silence assertion failures by allowing PropertyProvider's content length to be PR_INT32_MAX. r=smontagu 2007-11-30 11:59:03 -08:00
smontagu@smontagu.org c0e8c883ba Prevent duplicate entries in the line-break array. Bug 404204, b+r+sr=roc 2007-11-26 00:27:06 -08:00
Olli.Pettay@helsinki.fi a0a74f16e7 Bug 368760, r=mats, sr=roc, a=blocking1.9+ 2007-11-22 12:47:33 -08:00
smontagu@smontagu.org a0b55e5dea Use Unicode escapes instead of octal escapes to print non-ASCII text in frame tree dumps. Bug 403871, r+sr=roc, a=dsicore 2007-11-21 02:37:40 -08:00
roc+@cs.cmu.edu 62a072317b Bug 394752. Skip over preformatted newlines when moving caret; the caret will appear at the end of a line when it is positioned at the start of the next line with a HINTLEFT. r=smontagu 2007-11-15 18:25:59 -08:00
roc+@cs.cmu.edu 30e0c31a6f Bug 403455. Allow prewrap text to record 'last break opportunity'. r=smontagu 2007-11-15 17:48:26 -08:00
bzbarsky@mit.edu 8bcb636fa4 Don't compare lines from different blockframes' lists to each other. Also fix handling of text-decorations in in-flows of blocks with text-indent. Bug 393330, r+sr=roc, a=schrep 2007-11-14 22:12:17 -08:00
roc+@cs.cmu.edu 909f85c005 Bug 389707. Rework text-transform:capitalize by putting logic to decide what to capitalize into nsLineBreaker. r=smontagu 2007-11-11 17:51:31 -08:00
dholbert@cs.stanford.edu e1c9f57e6d Bug 398181: Use NSCoordSaturatingAdd/Subtract in 3 places where we might have unconstrained heights. r+sr+a=roc 2007-11-09 09:16:36 -08:00
reed@reedloden.com 23c8837596 Bug 400081 - "Leak gfxFont and gfxTextRun with font-size: 0" [p=cpearce r+sr=roc a1.9=stuart] 2007-11-09 00:04:19 -08:00
reed@reedloden.com 7577e1827e Fixing bustage from landing of bug 397510. 2007-11-08 23:37:31 -08:00
reed@reedloden.com 0fa41035e4 Bug 397510 - Limit the number of lines we build textruns in BuildTextRuns (speeds up painting of huge pages) [p=roc r=smontagu a=blocking1.9+] 2007-11-08 23:27:18 -08:00
reed@reedloden.com 6adc9d9130 Bug 385417 - Rework textrun glyph representation so we can handle clusters containing glyphs in different fonts [p=roc r=stuart r=smontagu a=blocking1.9+] 2007-11-08 22:27:23 -08:00
roc+@cs.cmu.edu e10819cfa9 Bug 403004. Let the text-transform style setting loop cross non-fluid continuation boundaries. r+sr=bz 2007-11-08 15:37:34 -08:00
reed@reedloden.com c680daf50e Backout roc's patch for bug 385417, as it most likely caused bug 402990 and the numerous test failures. 2007-11-07 23:41:06 -08:00
reed@reedloden.com e09a2143a3 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+] 2007-11-07 20:33:28 -08:00
reed@reedloden.com bcefd60351 Bug 385417 - Rework textrun glyph representation so we can handle clusters containing glyphs in different fonts [p=roc r=stuart r=smontagu a=blocking1.9+] 2007-11-07 20:31:33 -08:00
reed@reedloden.com 788e2903bf Bug 336408 - Allow the caret to be positioned at the end of trimmed whitespace, as if the whitespace wasn't trimmed [p=roc r=smontagu sr=mrbkap a=blocking1.9+] 2007-11-07 20:07:00 -08:00
reed@reedloden.com aa4a6414ab Bug 400826 - We shouldn't build the styles array for transformed textruns assuming every frame in a flow has the same style; instead we should build it frame by frame. [p=roc r=smontagu a=blocking1.9+] 2007-11-07 19:52:33 -08:00
roc+@cs.cmu.edu c4cb276591 Bug 389666. The mTransformedTextOffset field of MappedFlow wasn't always being set up correctly, so let's just stop using it altogether. r=smontagu,a=vlad 2007-10-23 17:07:26 -07:00
masayuki@d-toybox.com 5643bc3e12 Bug 399159 left edge is not aligned when text-align: justify; in Japanese paragraph (relanding) r+sr+a=roc 2007-10-21 01:10:34 -07:00
roc+@cs.cmu.edu e1da1696a2 Bug 393096. Allow an element containing breakable whitespace to introduce a break opportunity no matter what the context. Also cleans up some trimming stuff and adds comprehensive whitespace breaking and trimming reftests. r+sr=dbaron 2007-10-20 00:30:26 -07:00
roc+@cs.cmu.edu e014694d32 Backing out bug 397510 again because again it looks like it might have caused a regression, and we don't need it for M9 2007-10-18 21:56:05 -07:00
dietrich@mozilla.com bf390f8586 re-landing Bug 393758 2007-10-18 19:01:05 -07:00
reed@reedloden.com e3838c8ace Fixing bustage from landing of bug 397510. 2007-10-18 18:33:52 -07:00
dietrich@mozilla.com 5d2f973f11 Bug 397510 Scrolling in large file is very slow due to textrun reconstruction (re-landing for roc) 2007-10-18 18:19:11 -07:00
roc+@cs.cmu.edu 21ccd4f20e Backing out bustage fix 2007-10-17 23:48:44 -07:00
gavin@gavinsharp.com ad7e4a6327 Back out the patch for bug 399159 because it's suspected of having caused the Tp regression 2007-10-17 10:03:09 -07:00
roc+@cs.cmu.edu 1661e205d3 Backing out 393758 just in case it caused perf regression 2007-10-16 16:56:27 -07:00
roc+@cs.cmu.edu 455c833e49 Backing out fix for bug 397510 to see if it fixes the Tp regression 2007-10-16 01:20:22 -07:00
roc+@cs.cmu.edu 34febafca0 Fixing bustage 2007-10-15 14:20:36 -07:00
roc+@cs.cmu.edu f03f917d6d Bug 393758. Detect when we're about to create two flows with the same element in the same textrun (which violates our invariants), and prevent it by starting a new textrun for the second flow. r=smontagu 2007-10-15 14:15:35 -07:00
roc+@cs.cmu.edu 0bdb456558 Bug 397510. Limit the number of lines below the initial line for which we reconstruct textruns. Speeds up line painting near the top of huge documents. r=smontagu 2007-10-15 14:11:37 -07:00
masayuki@d-toybox.com b26d439169 Bug 399159 left edge is not aligned when text-align: justify; in Japanese paragraph r+sr+a=roc 2007-10-15 05:37:15 -07:00
roc+@cs.cmu.edu 036806699a Bug 397518. Wrap inline non-MathML children of MathML frames in anonymous blocks. r+sr=bzbarsky 2007-10-12 01:30:54 -07:00
roc+@cs.cmu.edu 871dffe6e3 Bug 391584. Don't miss word-break opportunities at points where whitespace has collapsed away. Also, note that a word-break opportunity exists at the start of a frame when it starts with a space. 2007-10-10 15:32:51 -07:00
roc+@cs.cmu.edu a09e53dc3d Backing out bug 391584 because of test failures on non-Mac 2007-10-09 21:25:42 -07:00
roc+@cs.cmu.edu 884794bcc1 Fixing bustage 2007-10-09 19:30:48 -07:00
roc+@cs.cmu.edu a9f24144f5 Bug 387414. Detect situations where the textrun doesn't map enough text to fully reflow the frame (which can happen during style changes to preformatted whitespace, for example) and rebuild textruns in that case. r=smontagu 2007-10-09 19:25:57 -07:00
roc+@cs.cmu.edu f543b23186 Bug 391584. Don't miss word-break opportunities at points where whitespace has collapsed away. Also, note that a word-break opportunity exists at the start of a frame when it starts with a space. 2007-10-09 19:21:33 -07:00
roc+@cs.cmu.edu eeeb89a24e Bug 385635. Make text min-width calculation clear out old value of trimmable whitespace when the text contains non-collapsible whitespace. Also, set skipWhitespace to skip subsequent whitespace only if the trailing whitespace in the text is not preformatted. r=smontagu 2007-10-02 01:52:09 -07:00
roc+@cs.cmu.edu 18ec94e683 Bug 392829. Clean up nsLineLayout code that's not used (or at least used differently). r+sr+a=dbaron 2007-10-01 19:36:26 -07:00
roc+@cs.cmu.edu 4e75400e10 Bug 397734. More parsimonious storage of glyph extents ... trying to fix private-bytes regression. r=vlad,a=pavlov 2007-10-01 18:47:40 -07:00
roc+@cs.cmu.edu 8b8d2e52fe Backing out 2007-10-01 15:11:23 -07:00
roc+@cs.cmu.edu 1b1c97e9d8 Bug 397734. More parsimonious storage of glyph extents ... trying to fix private-bytes regression. r=vlad,a=pavlov 2007-10-01 14:29:19 -07:00
roc+@cs.cmu.edu f78d03db7a Bug 393906. Make AdjustOffsetsForBidi maintain textframe invariants across the entire continuation chain, not just the fluid chain. r=smontagu 2007-09-27 16:37:46 -07:00
roc+@cs.cmu.edu a0ce273d02 Bug 96041. Compute precise glyph extents for high-quality text, and when requested. r=vlad,r+sr=dbaron 2007-09-23 19:19:14 -07:00
roc+@cs.cmu.edu f5ea55f8b4 Backing out due to test bustage 2007-09-22 06:28:16 -07:00
roc+@cs.cmu.edu f2b87e6c9a Bug 96041. Compute true glyph bounding metrics. r=vlad,dbaron,sr=dbaron 2007-09-22 05:43:52 -07:00
mozilla@weilbacher.org 0a299d9eeb [OS/2] Bug 396661: fix OS/2 build break in nsTextFrameThebes by removing the unnecessary cast, r/sr/a=roc 2007-09-19 16:01:44 -07:00
roc+@cs.cmu.edu c616621057 Bug 393796. Be more careful about verifying that an existing textrun is okay to be reused again after a change to the frame tree. r=smontagu 2007-09-17 21:23:14 -07:00
roc+@cs.cmu.edu 9a93a48ef0 Bug 385607. Ensure that whitespace is collapsed across text-run boundaries across incremental updates like adding/removing frames in the middle of the textrun. r+sr+a=dbaron 2007-09-17 20:00:16 -07:00
roc+@cs.cmu.edu ce5b122a6e Bug 394832. Remove overeager rounding that causes underlines to appear too close to the text. r=smontagu,a=dbaron 2007-09-17 19:48:19 -07:00
sayrer@gmail.com 6f02e70db3 Bug 394542. we leak the blink timer and its timer in a cycle. Patch by David Baron. r/sr=roc, a=dsicore/mconnor 2007-09-11 13:06:44 -07:00
roc+@cs.cmu.edu a237c817eb Bug 386807. Remove duplicate elements from the linebreak array textrun construction parameter. r=smontagu,a-M8=damon 2007-09-06 14:54:33 -07:00
roc+@cs.cmu.edu 14b19e8184 Bug 392435. Make ClearTextRun work no matter which frame of a continuation chain we call it on. r=smontagu,a=dbaron 2007-09-05 16:06:05 -07:00
roc+@cs.cmu.edu 0f7019d98c Bug 393923. Fix text-offset calculation for first-letter. r=smontagu,a=dbaron 2007-09-05 16:03:31 -07:00
roc+@cs.cmu.edu 05dc3cbd75 Bug 394510. Don't leak the hyphen textrun when we display a soft hyphen. r=smontagu 2007-09-05 15:59:44 -07:00
roc+@cs.cmu.edu 3349a5ae4b Bug 391621. Remove unnecessary trimmed-space counting. r=smontagu,a=dbaron 2007-09-03 21:02:22 -07:00
masayuki@d-toybox.com a0327f6605 Bug 394109 Inconsistent text-decoration positioning. r+sr+a=roc 2007-09-03 08:27:26 -07:00
masayuki@d-toybox.com 7d3f26907c Oops, backing-out previous checked-in, because tinderbox has RED. 2007-09-03 04:03:49 -07:00
masayuki@d-toybox.com 6b49b8c852 Bug 394109 Inconsistent text-decoration positioning. r+sr+a=roc 2007-09-03 04:01:48 -07:00
roc+@cs.cmu.edu bbc848d48f 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. 2007-08-29 20:10:19 -07:00
roc+@cs.cmu.edu eeeec72c21 Bug 385426. Be careful about looking for a previous soft-hyphen when checking for hyphen breaks. r=smontagu 2007-08-29 02:11:39 -07:00
smontagu@smontagu.org 2a860d498f Blow away text runs after Bidi resolution. Bug 382429, r+sr+a=roc 2007-08-26 10:20:28 -07:00
masayuki@d-toybox.com a20d56bd8d Bug 392252 need new APIs for converting AppUnits to gfx usable pixels r=sharparrow1, sr+a=roc 2007-08-22 04:13:46 -07:00
roc+@cs.cmu.edu 1131fb1665 Bug 390050. Scan all blocks in a flow-chain, and their overflow lines, when iterating through lines to build text runs. r=smontagu,mats,sr=mats,a=bz 2007-08-22 02:08:13 -07:00
philringnalda@gmail.com 42675246db Bug 390423 - Simplify the signature of nsIFrame::GetPointFromOffset, patch by Ben Karel <web+moz@eschew.org>, r=aaronlev/elif, sr=roc, a1.9=dbaron 2007-08-16 20:43:00 -07:00
masayuki@d-toybox.com 2fcfa8af3b Bug 367614 [Win Only] The composition string for IME should have dashed underline r+sr+a=roc 2007-08-16 13:35:18 -07:00
roc+@cs.cmu.edu 76c404a4e8 Bug 385270. Clean up textframe offset invariants: try #2 --- mContentLength no longer exists/is no longer trusted. r=smontagu,a=dbaron 2007-08-15 11:39:38 -07:00
roc+@cs.cmu.edu 28f1f19b47 Backing out 2007-08-15 09:20:46 -07:00
roc+@cs.cmu.edu 7c626fa17b Bug 385270. Clean up textframe offset invariants: try #2 --- mContentLength no longer exists/is no longer trusted. r=smontagu,a=dbaron 2007-08-15 09:04:17 -07:00
roc+@cs.cmu.edu 25a3f52e56 Backing out fix for bug 385607 due to bustage and Tp regressions 2007-08-09 21:41:00 -07:00
roc+@cs.cmu.edu ad74d94b42 Bug 385607. Force re-evaluation of textruns when block descendants are deleted or added. 2007-08-09 19:49:28 -07:00
roc+@cs.cmu.edu 2b05211757 Oops, undoing unrelated change 2007-08-09 19:34:30 -07:00
roc+@cs.cmu.edu 9ad0503e66 Bug 388049. Update mCurrentFramesAllSameTextRun along the same-content path as well as the normal path. r=smontagu,a=dbaron 2007-08-09 19:32:49 -07:00
roc+@cs.cmu.edu d0e5509bc4 Fix bustage 2007-08-09 19:00:15 -07:00
sharparrow1@yahoo.com ddf20f3ad6 Bug 390740: Pass lang-group into GetMetricsFor more consistently (general patch). r+sr=roc, a=dbaron 2007-08-07 12:07:43 -07:00
masayuki@d-toybox.com 9affd989eb Bug 365336 text-decoration width should be rounded to the device pixels r+sr=roc 2007-08-06 01:15:00 -07:00
aaronleventhal@moonset.net e74bc44b8b bug 348901. Remove extra whitespace from source when exposing accessible text. r+sr=roc, r=surkov. a=dbaron 2007-08-03 18:12:24 -07:00
roc+@cs.cmu.edu 595643049e Backing out patches for bug 385270 (mostly --- due to other checkins in the meantime, the GetContent*() helper functions need to stay) to fix regressions. a=schrep 2007-07-30 16:56:14 -07:00
roc+@cs.cmu.edu 9562390da7 Bug 387969. Use CSS 'text-rendering' property to control text quality. r=pavlov,r+sr=bzbarsky 2007-07-26 02:47:43 -07:00
neil@parkwaycc.co.uk 923ed0fc49 nsTextFrameThebes ClusterIterator misuses memset plus cleanup b=387964 r+sr=roc 2007-07-13 01:22:00 -07:00
roc+@cs.cmu.edu 9fb0dfd8be 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 56a324e667 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
jwalden@mit.edu 6d7584839a 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
roc+@cs.cmu.edu 2fbe7e618c 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
flamingice@sourmilk.net 1807da1b5c 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 f0d093fb48 Bug 386548. Remove nsTextTransformer. r+sr=mats 2007-07-02 16:36:59 -07:00
roc+@cs.cmu.edu 529a002f8e 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 7536be9353 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
roc+@cs.cmu.edu a8c03abdb3 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 124e2a1435 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 ebcc8539e8 Back out bug 384836 to diagnose Tp/Tp2 regression bug 385957. 2007-06-26 15:16:34 -07:00
roc+@cs.cmu.edu 87eb460430 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
roc+@cs.cmu.edu fd764bce71 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 f1f2e453d2 Bug 385234. Iterate through textframe continuations properly in AddInlinePref/MinWidth. r=smontagu 2007-06-21 17:14:34 -07:00
roc+@cs.cmu.edu 81fcd17f66 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 3897543ff9 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 5a994b469d 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 7784cc49a8 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 df080ef0bb 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 85901f7a47 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 bf460caccf 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
smontagu@smontagu.org f5fe40be19 Clear textruns during bidi resolution. Not Part of the Build. Bug 382429, r+sr=roc 2007-06-02 23:53:10 -07:00
roc+@cs.cmu.edu f1997a6a30 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 e6c0113640 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
roc+@cs.cmu.edu 7a41f3f408 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 d42b5087f5 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 d6efb6af6b 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
roc+@cs.cmu.edu fc987538d0 Bug 380625. (Not Part Of The Build). Fix cluster count for trimmed spaces. 2007-05-23 02:36:16 -07:00
roc+@cs.cmu.edu 6b140b8909 Not Part Of The Build (new textframe). IsInBounds uses incorrect logic and produces spurious warnings. 2007-05-22 21:08:38 -07:00
roc+@cs.cmu.edu d22fec8e76 Not Part Of The Build. Update nsTextFrameThebes whitespace handling; allow line breaking only at the end of a run of whitespace. 2007-05-22 16:45:47 -07:00
dbaron@dbaron.org 3cfbaf7cc5 Don't propagate line layout in reflow state when we're not in the line. b=320502 r+sr=roc 2007-05-17 23:04:04 -07:00
mats.palmgren@bredband.net 71ab3fc250 NPOTB. Add missing rendering context null-checks. b=380502 r+sr=roc 2007-05-17 03:52:20 -07:00
roc+@cs.cmu.edu 6aebf3d39d Not Part Of The Build. 1) Round font underline/overline/strikeout offsets and sizes to device pixels to try to ensure consistent visual offsets and sizes even when the baseline point is not pixel-aligned. 2) snap the text baseline y coordinate to the nearest pixel, because the decoration lines will be snapped themselves and we need the gaps to remain consistent. 3) fix bug in selection-decoration x coordinate which was forgetting to include the frame x-offset. 2007-05-15 22:21:41 -07:00
roc+@cs.cmu.edu 361e658b7b Not Part Of The Build. Fix underline/strikeout positioning in new text frame --- simple appunits/pixels confusion. 2007-05-15 16:41:41 -07:00
roc+@cs.cmu.edu 97a6a32aad NPOTB, new-text-frame. Fix mouse events targeting after the end of a textframe. 2007-05-14 22:23:19 -07:00
roc+@cs.cmu.edu e7e11676c0 Bug 380692. Change gfxTextRun API so the textrun copies text, if necessary, instead of the caller having to do it. r=vlad 2007-05-14 20:56:47 -07:00
roc+@cs.cmu.edu b215bd76d2 Not part of the build. Fix off-by-one error in selected-text painting in new text frame. 2007-05-11 15:54:51 -07:00
roc+@cs.cmu.edu 454756fb25 Fix const issue. Not Part Of The Build 2007-05-10 07:42:56 -07:00
roc+@cs.cmu.edu cc1cbf7323 Not part of the build. Update new text frame for textrun API changes. Also implements a textrun cache for the new text frame 2007-05-09 15:04:56 -07:00
smontagu@smontagu.org 7b76b3c961 Uneven justification with new textframe. Bug 380062, r+sr=roc 2007-05-09 11:09:32 -07:00
smontagu@smontagu.org 982470d498 Clear mTextRun on a style change reflow. Bug 379969, r+sr=roc 2007-05-08 07:33:09 -07:00
bzbarsky@mit.edu 1b5f6b30b6 Change the FrameNeedsReflow API to pass the dirty flags to be added directly tothe method, instead of setting them before calling the method. That way we canavoid reflowing the ancestor of a reflow root which is not itself dirty but hasdirty children. This also makes it harder to set dirty bits inconsistentlywith the FrameNeedsReflow call. Bug 378784, r+sr=dbaron, pending rbs' reviewon the mathml parts. 2007-05-06 12:16:51 -07:00
roc+@cs.cmu.edu a0fda2a56c Not part of the build. Fix new textframe issues with mixed-direction text and textrun reconstruction. 2007-04-13 15:57:54 -07:00
roc+@cs.cmu.edu c4588ea601 Not part of the build --- update GetPresContext to PresContext in a few not-built places. 2007-04-02 20:56:55 -07:00
roc+@cs.cmu.edu 23dbb12d5b Not part of the build (well, gfxSkipChars is built but not used): fix bugs in gfxSkipChars, and new textframe fixes for soft hyphens, justification, and caret movement (PeekOffset*) among other things 2007-03-28 16:54:32 -07:00
roc+@cs.cmu.edu c193edd10b No bug. A variety of fixes to fix various reftest failures. Not Part Of The Build. 2007-03-24 04:07:36 -07:00
roc+@cs.cmu.edu cc90e91cec Bug 333659. Major new-textframe update. You can really browse the Web with it now, although major bugs remain. 2007-03-22 16:13:12 -07:00
dbaron%dbaron.org 9d7f938b99 Clean up IsFrameOfType methods to call their base class IsFrameOfType methods reliably. b=341326 r+sr=roc 2007-02-24 18:33:33 +00:00
sharparrow1%yahoo.com d19f64369b Bug 370185: clean up view header includes (trivial). rs=bzbarsky. 2007-02-12 19:17:33 +00:00
roc+%cs.cmu.edu 96e62daf4c Make new textframe build again after units landing and other changes. The gfxSkipChars and gfxPangoTextRun changes only affect the new textframe. 2007-02-09 04:20:17 +00:00
cvshook%sicking.cc a39ff30284 Kill remainders of ns(XBL|HTML|XUL|Layout)Atoms. r/sr=jst b=368128 2007-01-30 00:06:41 +00:00
dbaron%dbaron.org f6245f0ed9 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 2007-01-23 04:06:56 +00:00
roc+%cs.cmu.edu e6bad38abe Bug 333659. Landing new text interfaces, new gfxPangoTextRun (enabled), new textframe code (disabled). r+sr=dbaron for the part-of-the-build layout parts,r=stuart for the part-of-the-build gfx parts 2007-01-16 20:51:52 +00:00