Jonathan Kew
1b54ce9892
Bug 692752 - paint text-shadow after selection highlight background. r=roc
2011-10-08 17:27:14 +01:00
Michael Wu
d2b70213ac
Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
...
--HG--
rename : tools/trace-malloc/bloatblame.c => tools/trace-malloc/bloatblame.cpp
2011-09-28 23:19:26 -07:00
Jonathan Kew
ee56ede693
bug 686497 - avoid passing excessively long wavy-underline path to cairo for stroking. r=roc
2011-09-16 20:23:29 +01:00
Masayuki Nakano
6c3d3da0c3
Bug 669028 part.13 layout should use mozilla::LookAndFeel rather than nsILookAndFeel r=roc
2011-09-09 11:27:13 +09:00
Ed Morley
a2163dc998
Merge last green changeset of m-c to m-i
2011-08-26 10:26:46 +01:00
Boris Zbarsky
c4f581155c
Bug 682051. Optimize textframe to handle horizontal resizes of large runs of text better. r=roc
...
This change does two things:
1) Makes sure that we don't clear textruns when removing continuations due to
an earlier consideration expanding to contain all their text.
2) Remove continuations in chunks to work around the fact that blocks are
really bad at handling single frame removals.
2011-08-25 23:29:24 -04:00
Alfred Kayser ext:(%2C%20Ms2ger%20%3Cms2ger%40gmail.com%3E)
40a50219ea
Bug 537223 - Cleanup gfxColor.h; r=jrmuizel
2011-08-25 10:46:01 +02:00
Mats Palmgren
f1c56f2e22
Bug 653649 - New way of getting child lists from frames. (part 4/5) r=roc
...
Remove the nsIAtom* child list names and use child list ID enum instead.
2011-08-24 22:54:30 +02:00
L. David Baron
c70deecad0
Remove quirks mode check that should have been removed when standards-mode and quirks-mode text-decorations were merged in bug 403524, changeset 83b2648ee442. (Bug 680505, patch 2) r=roc
...
This code is a little bit sketchy, but given that text-decoration
drawing is the same across modes we shouldn't have a quirks mode check
here (though there's a decent argument to be made that we shouldn't be
checking text decorations at all).
2011-08-20 21:35:56 -04:00
Matt Brubeck
539e6ce545
Merge mozilla-central and mozilla-inbound
2011-08-12 07:08:33 -07:00
Ms2ger
3fea5b3901
Bug 677101, part c - Reduce nsIDOMText.h inclusions; r=volkmar
2011-08-11 15:29:58 +02:00
Vitor Menezes
cc47ff48ae
Bug 676538: Fix regression that caused text-decorations on inline *child* of block to draw at the offset for the block rather than the inline. r=dbaron
...
The FrameProperty representing baseline is set when a block defines
text-decorations and has vertically-aligned children, but we were
retrieving it whether the block or the vertically-aligned frame itself
defined the decorations. As a result, we "undo" the frame offset to get
the baseline from the child in that case.
2011-08-10 12:44:17 -07:00
Mats Palmgren
f70d28ee47
Bug 663375 - When text color is darkened, darken text-decoration color too. r=dbaron
2011-08-09 17:14:36 +02:00
Jeff Muizelaar
1f4cd33169
Bug 660662. Eliminate NS_(ceil|floor). r=roc
...
These just called the system versions.
2011-05-30 15:08:55 -04:00
Vitor Menezes
f82cd17bcb
Bug 403524: Remove the standards-mode text-decoration code and use the quirks-mode code in all modes. r=dbaron
2011-08-03 11:30:58 -07:00
Vitor Menezes
946ce0dcc2
Bug 403524: Draw correct colors for text-decorations on default-color shadows in quirks mode. r=dbaron
...
Make the quirks mode text-decoration + text-shadow code draw the
decorations for shadows that do not have a specified color using
the same color used for the un-shadowed decorations, which matches
standards mode behavior. (The color of unspecified-color shadows
is explicitly undefined in the specification.)
This code will (in a later patch on this bug) be used for both
quirks and standards modes.
2011-08-03 11:30:58 -07:00
Vitor Menezes
59b9ac988d
Bug 403524: Make quirks-mode text draw order comply with CSS 2.1
...
Quirks-mode code draws text, and then all decorations. We need to instead draw
underlines, then overlines, -then- text, then line-throughs, as per CSS 2.1.
This involves refactoring nsTextFrame::PaintTextDecorations and
nsTextFrame::DrawText by merging them together, and also updating some
of their callers.
2011-08-03 11:30:58 -07:00
Vitor Menezes
38be52299b
Fix apparent rounding issues with new text decoration code. (Bug 403524) r=dbaron
...
Rendering text decorations far away from the frame's baseline seems to
sometimes introduce rounding issues. This patch addresses that by
avoiding snapped-baseline weirdness and using a different argument to
nsTextFrame::PaintTextDecorations in some computations that didn't
really need to use the snapped baseline anyway.
2011-08-03 11:30:58 -07:00
Vitor Menezes
e915e08a19
Fix text-decoration positioning in quirks mode and set overflow areas to match. (Bug 403524) r=dbaron
...
Change the quirks mode text-decoration code (soon to be used for all
modes) to follow CSS 2.1's rules for positioning of decoration lines.
Decorations are now drawn at a constant vertical position established by
the element creating the decoration, and more than one of the same type
(underline, overline, line-through) of decoration are supported on the
same piece of text.
This means that text-decorations can now significantly overflow a text
frame, since the vertical-alignment of the element with text-decoration
may be substantially different from the vertical alignment of the text.
Set overflow areas for text frames with text decorations in
nsLineLayout::RelativePositionFrames since it must happen *after*
vertical alignment is done, and when relative positioning data are
consistent (nsIFrame::GetRelativeOffset matches the offset that has been
applied).
2011-08-03 11:30:58 -07:00
Ehsan Akhgari
3e4044476c
Merge the last green changeset on mozilla-inbound to mozilla-central
2011-07-13 11:40:03 -04:00
Ed Morley
8604ef0a74
Bug 447838 - Fix build warnings in nsTextFrameThebes.cpp; r=roc
2011-07-12 12:06:34 -04:00
Simon Montagu
c5979d144a
Make all nsBidiPresUtils methods static. Bug 624798, r=roc
2011-04-13 12:23:49 +03:00
Simon Montagu
41b695192a
Undefine caret bidi level during reflow instead of on text entry. Bug 664087, r=roc
2011-07-05 08:42:32 +03:00
Mats Palmgren
9bb2d0e9ec
Bug 668919 - The ellipsis with text-overflow: ellipsis is sometimes one pixel too low. r=roc
2011-07-04 07:47:59 +02:00
Mats Palmgren
91a8b3dfd6
Bug 667653 - Make NS_FRAME_SELECTED_CONTENT on text frames less sticky. r=roc
2011-06-30 02:56:50 +02:00
Mats Palmgren
5b09fc8a8b
Bug 666669 - Restrict selection painting to the nsCharClipDisplayItem edges (same as for non-selected text). r=roc
2011-06-30 02:56:49 +02:00
Craig Topper
1166c130bf
Bug 654369 - Part 7: Remove OOM checks from nsTextFrameThebes r=bz
...
--HG--
extra : rebase_source : 2cb5ce4d3f3a6d8d0e3a50c40303f8c1c098dbdf
2011-05-02 00:11:34 -07:00
Ed Morley
3f49fdcb2a
Bug 661584 - Code cleanup, substitute more PR_(MAX|MIN|ABS|ROUNDUP) macro calls; r=roc,ted
2011-06-25 16:06:02 +02:00
Mats Palmgren
e757474795
Bug 312156 - Implement CSS3 text-overflow. r=roc
2011-06-22 20:11:48 +02:00
Robert O'Callahan
c37c544c23
Bug 637852. Part 13: Allow snapping of text baselines to occur when there's a scale in the current transform. r=tnikkel
...
This allows baselines to be snapped properly when drawing into high-resolution ThebesLayers.
2011-06-23 00:11:28 +12:00
Ed Morley
089654ad1f
Bug 665723 - Fix unused variable warnings in layout/generic/; r=roc
2011-06-21 17:37:47 +02:00
Dão Gottwald
bb6e193672
Bug 654411 - Use text color at 50% opacity instead of graytext to de-emphasize text in the location bar. r=roc ui-r=faaborg
2011-06-17 08:07:03 +02:00
Simon Montagu
2fcf206e42
Bug 263359 part 1.5: remove nsDirectionalFrame. r=roc
2011-04-11 10:59:30 +03:00
Matheus Kerschbaum
c0decf640b
Bug 660762 - Remove --disable-mathml support. r=roc
2011-06-02 13:11:33 +02:00
Simon Montagu
1a837f2ff0
Don't use cached inflow length for empty frames. Bug 660416, r=roc
2011-05-30 18:19:13 +03:00
Daniel Holbert
52ff4fdee7
Merging cedar with mozilla-central.
2011-05-22 16:13:23 -07:00
Daniel Holbert
3e6b735cc0
Bug 658834: Remove unused variable 'sc' from nsTextFrameThebes.cpp r=jfkthame
2011-05-22 09:53:46 -07:00
Simon Montagu
e1b022a91f
Cache in-flow content length. Bug 566066, r=roc
2011-05-22 11:20:29 +03:00
Jonathan Kew
048181c657
bug 655207 - don't read an uninitialized entry in the hyphenation array. r=roc
2011-05-09 10:55:19 +01:00
Jonathan Kew
650a6ba4cf
bug 253317 - part 5 - support none/manual/auto values for -moz-hyphens in layout. r=roc
2011-05-04 12:29:56 +01:00
Dão Gottwald
c51a4c6569
Bug 451833 - Highlight the domain name in the address bar. r=roc,sdwilsh ui-r=faaborg
...
--HG--
extra : rebase_source : 1010ad246e94e271a0efaaca13356aff5d4b3bc3
2011-05-02 19:50:18 +02:00
Boris Zbarsky
2d337f0522
Bug 650379. Add a new XPCOM timer type that is like TYPE_REPEATING_PRECISE but does not swamp the event queue if the callback takes longer than the timer interval to run. r=cjones, sr=brendan
...
This implements proposal 3 from bug 650379 comment 13. The main difference
between TYPE_REPEATING_PRECISE and TYPE_REPEATING_PRECISE_CAN_SKIP is to not
AddTimer the REPEATING_PRECISE_CAN_SKIP timer until after the callback has run;
this guarantees that no more timer events will be posted until after the
callback finishes executing. A secondary change is to make
REPEATING_PRECISE_CAN_SKIP timers advance their firing time to mDelay from when
PostTimerEvent is called, not mDelay from the old mTimeout. While this arguably
makes them less precise, the alternative is that if a timer is significantly
delayed for some reason (e.g. because the user puts the computer to sleep for a
while) it will then fire a whole bunch of times to "catch up" to where it's
supposed to be, advancing its firing time by mDelay at a time. That seems
undesirable.
An alternate approach would have been to readd the timer from inside
PostTimerEvent, but only if we're not in the middle of firing the timer. That
would allow more precise timers in the case when the callback is not taking too
long, but still handle gracefully the case when the callback is
slow. Unfortunately this falls down if something _else_ is hogging the main
thread event loop (e.g. some other timer has a slow callback, or whatever); in
that case we would post multiple events for the one precise timer while the
event-loop-hogging operation is running. So I don't think we should do that.
2011-04-28 19:33:52 -04:00
Simon Montagu
f213cf876f
Back out bug 263359 and bug 624798 because of performance regressions (bug 650189)
2011-04-27 11:47:18 +03:00
Masayuki Nakano
1adf21f3e7
Bug 647421 -moz-text-decoration-color and -moz-text-decoration-style should be reset by text-decoration r=dbaron, sr=bzbarsky
2011-04-23 14:16:41 +09:00
Zack Weinberg
8648dcc368
Bug 651017, part 1: minimize inclusion of ns*DeviceContext.h; move the printing error codes to nsIDeviceContextSpec.h; os2 small widget cleanup.
...
--HG--
extra : rebase_source : 5b7cebe68f71a760463e3522b159c7cde8a72f5e
2011-04-16 18:22:41 -07:00
Jonathan Kew
00fe250c83
bug 650499 - limit length covered by PropertyProvider to the text actually included in the textRun. r=roc
2011-04-19 08:51:31 +01:00
Robert O'Callahan
629c1b7e18
Bug 641426. Part 2: Remove a bunch of direct gfxRect::pos/size usage. r=joe
2011-04-19 15:07:21 +12:00
Zack Weinberg
ef90e52c10
Bug 174055, part 6: eliminate pointless nsresult return values.
2011-04-07 21:18:43 -07:00
Zack Weinberg
b6b73ad75a
Bug 174055, part 4: mechanical fixups outside gfx.
2011-04-07 18:05:49 -07:00
Zack Weinberg
c49f97544f
Bug 174055, part 2: merge nsIThebesFontMetrics into nsIFontMetrics.
2011-04-07 18:05:25 -07:00
Zack Weinberg
9f143f420f
Bug 174055, part 1: minimize inclusion of nsI(Thebes)FontMetrics.h.
2011-04-07 18:04:41 -07:00
Jan Küchler
c510bc3046
Bug 266236 part 3: Mechanical rename of nsIRenderingContext and nsThebesRenderingContext to nsRenderingContext. Mechanical substitution of nsRefPtr<nsRenderingContext> for nsCOMPtr<nsRenderingContext>.
...
--HG--
rename : gfx/src/nsThebesRenderingContext.cpp => gfx/src/nsRenderingContext.cpp
extra : rebase_source : 34884bfcafd885feaf73300bc7246cd192062a48
2011-04-07 18:04:40 -07:00
Simon Montagu
c808d636dc
Make all nsBidiPresUtils methods static. Bug 624798, r=roc
2011-04-13 12:23:49 +03:00
Simon Montagu
030f555e66
Bug 263359 part 1.5: remove nsDirectionalFrame. r=roc
2011-04-11 10:59:30 +03:00
Simon Montagu
e1109b7657
Debugging code for Bidi resolution. NPOTDB
2011-04-11 10:59:29 +03:00
Jonathan Kew
1c17cb53b6
bug 646983 - set the correct text length for the PropertyProvider. r=roc
2011-04-08 11:18:47 -07:00
Ehsan Akhgari
36a6723fd4
Merge cedar into mozilla-central
2011-03-31 14:11:37 -04:00
Jonathan Kew
720a73f507
bug 646561 - pass correct length to PropertyProvider in bidi case. r=roc
2011-03-31 09:47:01 +01:00
Jonathan Kew
15d01c433c
bug 418975 - support ­ when calculating min width for table and fieldset. r=roc. landing on the CLOSED TREE after dbaron went to bed :)
2011-03-24 15:22:37 +00:00
Masayuki Nakano
fcb9c01bf9
Bug 59109 Part 3: Implement text-decoration-color and text-decoration-style rendering r=dbaron
2011-03-31 21:27:03 +09:00
Masayuki Nakano
8de7beda92
Bug 59109 Part 2: Cleaning up current text decoration implementation r=dbaron
2011-03-31 21:26:49 +09:00
timeless@mozdev.org
2759f2ed30
Bug 615908 comparison between signed and unsigned integer expressions in UnhookTextRunFromFrames
...
r=mats
2011-03-28 16:49:26 -04:00
Ehsan Akhgari
119ec44c6b
Back out bug 263359 because it has caused bug 645119
2011-03-25 18:15:29 -04:00
Simon Montagu
53a261431c
Bug 263359 part 1.5: remove nsDirectionalFrame.
2011-03-24 11:28:44 +02:00
Simon Montagu
ac0eb6cddb
Debugging code for Bidi resolution. NPOTDB
2011-03-24 11:28:44 +02:00
Simon Montagu
6f02bca0f9
Don't create or delete frames when nsTextFrame::SetLength is called from bidi resolution. Bug 635329, r+a=roc
2011-02-21 10:02:23 +02:00
Jonathan Kew
38ff233670
bug 631035 part 2 - optimize storage of tab widths. r+a=roc
2011-02-18 09:07:12 +00:00
Ehsan Akhgari
e9d07887b2
Bug 633044 - Special case empty text frames to position the caret at the correct position; r=roc a=blocking-final+
2011-02-15 01:11:18 -05:00
Jonathan Kew
448ebf5098
bug 499292 - hide fallback text for a short time while a font downloads. r=jdaggett a=beltzner
2011-01-05 21:48:48 +00:00
Ehsan Akhgari
95293ebc9a
Bug 631406 - PeekOffsetNoAmount doesn't accept null as its second argument; r,a=roc
2011-02-03 19:52:46 -05:00
Mats Palmgren ext:(%2C%20Boris%20Zbarsky%20%3Cbzbarsky%40mit.edu%3E)
9fe130d33a
Bug 597627 - Adding and removing lines in big textareas is really slow. r=roc a=blocking2.0:final
2011-01-28 22:08:41 +01:00
Alexander Surkov
9bb6534b32
Bug 625652 - make sure accessible tree is correct when rendered text is changed, r=davidb, sr=roc, a=roc
2011-01-28 16:42:22 +08:00
Alexander Surkov
5029052452
Bug 628922 - layout should use cached nsIAccessibilityService, r=davidb, sr=roc, a=roc
2011-01-28 12:38:14 +08:00
Jonathan Kew
8129240876
bug 621918 - part 1 - eliminate aDirtyRect parameter from gfxTextRun::Draw etc. r=roc a=roc
2011-01-11 11:17:00 +00:00
Robert O'Callahan
f38f22f331
Bug 602757. Part 5: Change HasText to GetComponentAlphaBounds. r=tnikkel,sr=dbaron,a=blocking
2011-01-03 14:48:09 +13:00
Robert O'Callahan
b81ded8225
Bug 602757. Part 2: Detect display items over the transparent part of a window, and disable usage of component alpha (i.e., subpixel antialiasing) for those items. r=tnikkel,a=blocking
2011-01-03 14:48:09 +13:00
Jonathan Kew
e79e7e7398
bug 332636 - fix editor's handling of surrogate-pair combining marks with backspace. r=ehsan a=roc
2010-12-16 14:17:41 -08:00
Jonathan Kew
63186a7fc6
Backed out changeset 1958ebae93cc for causing mochitest orange. a=backout
2010-12-16 15:15:35 -08:00
Jonathan Kew
ff27ba6ff2
bug 332636 - fix editor's handling of surrogate-pair combining marks with backspace. r=ehsan a=roc
2010-12-16 14:17:41 -08:00
Jonathan Kew
c9ec94c809
bug 607160 - check text length computations. r=roc a=blocking2.0
2010-11-25 15:36:53 +00:00
L. David Baron
f096d68a9d
Don't propagate text-decoration in quirks-mode across inline-block, inline-table, and HTML table elements. Also, prepare quirks-mode text-decoration propagation code for use in standards mode (for bug 403524). (Bug 572713) r=roc a2.0=blocking
2010-11-21 15:50:28 -08:00
Simon Montagu
98e186ab3a
Cache line breaks that are not in the current frame due to bidi resolution. Bug 595435, r=roc, a=blocker
2010-11-08 12:27:42 +02:00
Simon Montagu
9109d42199
Backout changeset 1dad59de62c4 due to test failures
2010-11-07 13:09:03 +02:00
Simon Montagu
bf18664d80
Cache line breaks that are not in the current frame due to bidi resolution. Bug 595435, r=roc, a=blocker
2010-11-07 11:56:25 +02:00
Ms2ger
bd375e6b4e
Bug 604078 - Two comparisons between signed and unsigned integers in nsTextFrame::PeekOffsetCharacter; r=ehsan a=bsmedberg
2010-11-04 16:43:01 -04:00
Ehsan Akhgari
db2d8e7cb6
Bug 389321 - Part 3: Use a centralized algorithm for caret positioning; r=roc a=blocking-betaN+
2010-08-31 14:54:44 -04:00
Mats Palmgren
4daf1bafd4
Make sure mLastFlowIndex is within bounds after truncating the mapped flow count. b=605340 r+a=roc
2010-10-21 17:30:35 +02:00
Mats Palmgren
421daa244f
Only keep the old textrun when the frame continuations from the assignment point forward are all empty. b=604843 r=roc a=blocking2.0:final
2010-10-21 17:30:34 +02:00
Mats Palmgren
aca5d0605c
Bug 571995. r=roc a=blocking2.0:final
2010-10-15 06:03:33 +02:00
Mats Palmgren
a554e85858
Backout bug 571995. a=backout
2010-10-12 18:40:44 +02:00
Matt Woodrow
8a60164429
Bug 594983. Look inside display sublists to determine whether there is text for the layer. r=roc,a=blocking
2010-10-11 13:58:20 +13:00
Mats Palmgren
16410ca6ad
Just switch to the new textrun for empty text frames. b=571995 r=roc a=blocking2.0:final
2010-10-11 00:07:01 +02:00
Ehsan Akhgari
364a6702fb
Bug 602141 - Right arrow navigation broken on later contenteditable content on single line; r=bzbarsky a=blocking-final+
2010-10-08 15:49:47 -04:00
L. David Baron
86a617e692
Change callers to use new nsIFrame overflow APIs. (Bug 542595, patch 20) r=roc a2.0=blocking2.0:beta8
2010-10-06 21:25:47 -07:00
L. David Baron
5a012f3090
Fix miscellaneous reflow methods to use new overflow area APIs. (Bug 542595, patch 19) r=roc a2.0=blocking2.0:beta8
2010-10-06 21:25:46 -07:00
L. David Baron
44ad3bb392
Now that overflow areas are split, change nsIFrame::ComputeTightBounds to use visual overflow. While it really only needs to include frame bounds, glyph bounds, and text decorations, since glyph bounds are not part of scrollable overflow, it must use visual overflow. (Bug 542595, patch 15) r=roc a2.0=blocking2.0:beta8
2010-10-06 21:25:46 -07:00
L. David Baron
24d9099920
Make overflow from text frames be visual overflow only, and not scrollable. (Bug 542595, patch 8) r=roc a2.0=blocking2.0:beta8
2010-10-06 21:25:45 -07:00
Ehsan Akhgari
da4bffd5a6
Bug 597333 - Crash [@ gfxTextRun::GetChar][@ nsIFrame::PeekOffset(nsPeekOffsetStruct*) ] when navigating inside a textarea; r=roc a=blocking-final+
...
--HG--
extra : rebase_source : 43e6b1193c5707313e06a4d0afa21bca03ab297b
2010-09-20 17:33:58 -04:00
Ehsan Akhgari
216a0f0f67
Bug 240933 - Part 13: Consider text frame continuations containing only newlines editable; r,a=roc
...
--HG--
extra : rebase_source : e9f3001867e7992513484b92993a5d6a222273f6
2010-08-13 18:58:26 -04:00
Ehsan Akhgari
76048e7a51
Bug 240933 - Part 3.1: Position the selection before the terminating newline when clicking to the right of the line; r=roc a=dbaron
...
--HG--
extra : rebase_source : 93b34b04837da161ebedd900bbe8edc002c934ad
2010-07-16 17:34:36 -04:00
Ehsan Akhgari
8de2c3cb19
Bug 240933 - Part 3: Correct the caret movement throughout textareas (and pre elements with caret browsing turned on as well); r=roc a=dbaron
...
--HG--
extra : rebase_source : 9f015607bc84a11137ab11ba47c14e98c20e3970
2010-07-13 21:49:16 -04:00
Ehsan Akhgari
d84bc18024
Back out bug 240933 and bug 590554 because of reftest failure on Win7 and also bug 593211
2010-09-02 19:54:23 -04:00
Ehsan Akhgari
bb65502039
Bug 240933 - Part 13: Consider text frame continuations containing only newlines editable; r,a=roc
...
--HG--
extra : rebase_source : b66535705ec25cd4dca7378424b78cc3bef94e46
2010-08-13 18:58:26 -04:00
Ehsan Akhgari
262d16a6c3
Bug 240933 - Part 3.1: Position the selection before the terminating newline when clicking to the right of the line; r=roc a=dbaron
...
--HG--
extra : rebase_source : 51ab2d6caf2b8827cf2e1eb88e5034d75268f658
2010-07-16 17:34:36 -04:00
Ehsan Akhgari
da0113546a
Bug 240933 - Part 3: Correct the caret movement throughout textareas (and pre elements with caret browsing turned on as well); r=roc a=dbaron
...
--HG--
extra : rebase_source : 198f679bb5cea82b710c921576fa44c59f77aa23
2010-07-13 21:49:16 -04:00
Boris Zbarsky
607cf078b1
Bug 580167 part 1. Create an nsTextFrame::ReflowText that doesn't need a reflow state. r=dbaron
2010-08-25 14:54:46 -04:00
Robert O'Callahan
5de92d7b23
Bug 581222. Extend gfxAlphaBlur to support "spread radii". r=vlad
...
--HG--
extra : rebase_source : e644ae08007e52c524c3237d336441f1413f846b
2010-08-23 21:30:07 +12:00
Robert O'Callahan
7be62af7f1
Bug 584282. Use nsDisplayItem::ToReferenceFrame() instead of calling nsDisplayListBuilder::ToReferenceFrame, wherever possible. r=tnikkel,a=dbaron
...
--HG--
extra : rebase_source : 730ba8640cb37bd8484ff069b5d6fd46d9bc3e84
2010-08-13 22:01:58 +12:00
Robert O'Callahan
33a0aec926
Bug 584282. Add nsDisplayItem::mToReferenceFrame and initialize it in the constructor. r=tnikkel,a=dbaron
...
--HG--
extra : rebase_source : 496cbde7c495eb8872c3d0ffc0ca4c57c2a6a777
2010-08-13 22:01:13 +12:00
Robert O'Callahan
af4fec12f8
Bug 585817. Part 2: Change nsIPresShell::CreateRenderingContext to GetReferenceRenderingContext, that uses the shared 1x1 surface, and use it all over the place. r=mats,sr=dbaron
2010-08-20 14:29:01 -05:00
Chris Jones
710798b9a7
Backed out changeset 7b3726c3a580
2010-08-19 19:04:08 -05:00
Robert O'Callahan
7dd66ea23a
Bug 585817. Part 2: Change nsIPresShell::CreateRenderingContext to GetReferenceRenderingContext, that uses the shared 1x1 surface, and use it all over the place. r=mats,sr=dbaron
2010-08-19 13:49:35 -05:00
Ehsan Akhgari
489e5fab3f
Bug 580869 - Cache the frame found in nsTextFrame::GetChildFrameContainingOffset; r=roc approval2.0=dbaron
...
--HG--
extra : rebase_source : 3bdd49e0e039c212b5faa8d12bcbdd785da267a4
2010-08-10 11:16:17 -04:00
Kyle Huey
48e10623c5
Bug 575043: Remove internal uses of nsICaseConversion. r=smontagu sr=roc
...
--HG--
extra : rebase_source : f95ad3f21a95e354324e1524c378cad7146f3241
2010-07-29 12:22:16 -07:00
Boris Zbarsky
b5d20cfbb2
Bug 441669. Look for our flow by starting at the cached location and moving out, instead of always searching in one direction and then in the other. r=roc
2010-07-19 11:55:19 -04:00
Michael Ventnor
56ba116210
Bug 564991. Part 3: Create unique nsDisplayItem types for every single display item. r=tnikkel
2010-07-16 09:07:49 +12:00
Alexander Surkov
65c355c8a7
Bug 573706 - make frame based accessible creation more pellucid, r=davidb, sr=roc
2010-06-28 21:02:03 +09:00
Henri Sivonen
21c2b278cb
Bug 534071 - Treat carriage returns as tab-like whitespace in layout. r=roc.
2010-05-12 10:57:12 +03:00
Daniel Holbert
f0ce4494a7
Bug 571059: Update debugging printfs to treat nsFrameState objects as 64-bit & fix build warnings. r=dbaron
2010-06-10 11:26:57 -07:00
L. David Baron
e272b3a13d
Use macros for frame state so that it's easy to change the size and easier to read the constants. (Bug 570837) r=roc
2010-06-08 22:28:14 -07:00
Simon Montagu
39aeabb13e
Back out change from bug 399850 that causes an assertion to fire
2010-05-12 23:34:42 -07:00
Simon Montagu
85a1e8061a
Don't split frames in bidi resolution that have the same resolved directionality but different character types. Bug 399850, r=ehsan, roc
2010-05-10 23:14:05 -07:00
Boris Zbarsky
fb534f9674
Bug 562971. Include Element.h as mozilla/dom/Element.h and don't use 'using namespace' quite as much. r=jst
2010-05-05 14:18:05 -04:00
Boris Zbarsky
d136b98028
Bug 562688 part 11. Eliminate eELEMENT usage in layout/generic. r=dbaron
2010-04-30 09:12:06 -04:00
David Baron
c66b15e601
Bug 502301 - fix C++0x narrowing conversion inside {} compilation errors [r=benjamin]
2010-04-20 10:41:21 +02:00
Michael Ventnor
3e049f0588
Bug 544099 - Highly optimise -moz-box-shadow for common cases by allowing layout to specify an area where blurring is not needed r=roc,joe
...
--HG--
rename : gfx/thebes/src/gfxBlur.cpp => gfx/src/thebes/utils/gfxBlur.cpp
rename : gfx/thebes/public/gfxBlur.h => gfx/src/thebes/utils/gfxBlur.h
extra : rebase_source : d7ad7a1ee2ac9e25937133dba95f0f8d7347d612
2010-04-18 13:13:10 +10:00
Masayuki Nakano
bb2c56323d
Bug 556694 Selection color isn't reverted when input field is specified only background-color r=dbaron
2010-04-08 21:44:57 +09:00
Felipe Gomes
e4fb76d330
Bug 489127 - nodesFromRect required for better usability on mobile devices (part 1+2) [r=roc]
2010-04-07 20:31:26 -04:00
Masayuki Nakano
ff4d34e035
Bug 183646 ::-moz-selection does not work in form controls (input[type=text], input[type=password], textarea) r=dbaron
2010-04-07 11:10:54 +09:00
Masayuki Nakano
6116cdc355
Bug 552493 Hang on select-all in large textbox (which repeats if I unfocus & focus Firefox) r=roc
2010-04-06 18:01:53 +09:00
L. David Baron
15a5fe036b
Use the appropriate color based on visitedness for the 'background-color' property. (Bug 147777) r=zweinberg
2010-04-02 18:58:26 -07:00
L. David Baron
a35f4b2aac
Use the appropriate color based on visitedness for the 'color' property. (Bug 147777) r=roc
2010-04-02 18:58:25 -07:00
Masayuki Nakano
f88647e545
Bug 554822 Caret should refer the actual text color instead of the value of CSS color property r=roc
2010-04-01 11:35:48 +09:00
Masayuki Nakano
37b847f135
Bug 554822 backout the previous patch
2010-04-01 02:31:06 +09:00
Masayuki Nakano
f1448bab60
Bug 554822 Caret should refer the actual text color instead of the value of CSS color property r=roc
2010-04-01 02:12:43 +09:00
Robert O'Callahan
0fd1837981
Bug 551660. Switch layout code from using nsPropertyTable to FramePropertyTable. r=mats,sr=dbaron
2010-03-29 14:46:55 +13:00
Robert O'Callahan
c347059add
Bug 549184. Track 'has nonempty content been placed on this line yet' separately from 'has nonempty, non-span content been placed on this line yet'. r=dbaron
...
--HG--
extra : rebase_source : fe9318ed5143fe42107a55dfdcb6c0c8fee3dae6
2010-03-10 13:14:14 +13:00
Jonas Sicking
c7c7514f75
Bug 534136 Part 2: Use 16bit-char buffers inside atoms. r=bz sr=mrbkap
2010-03-08 07:45:00 -08:00
Robert O'Callahan
08392410ff
Bug 499862. Need to flush out linebreaker stuff even if there are no mapped flows. r=smontagu
2010-02-23 23:23:45 -08:00
Robert O'Callahan
ddd804576e
Bug 546530. Bound search for previous cluster start. r=smontagu
...
--HG--
extra : rebase_source : 5b7bca2777b5cfc5495fc9d339eaf0fbe1ff9a64
2010-02-19 14:30:43 +13:00
Jonathan Kew
365fbafa0d
Bug 524107 - part 1 - pass original value of 'lang' to gfx text code rather than only a 'langGroup' value, to allow language-specific font rendering. r=roc sr=mats
2010-02-24 09:57:44 -08:00
Serge Gautherie
fe65b9df27
Backed out changeset: b3d6a8724029 of
...
Bug 544099 - Allow shadow blurring to skip areas where blurring is unnecessary; Patch 3.1.
which breaks comm-central.
2010-02-04 20:55:10 +01:00
Michael Ventnor
9be7ff6cd7
Bug 544099 - Allow shadow blurring to skip areas where blurring is unnecessary; Patch 3.1.
...
r=roc.
2010-02-04 19:15:03 +01:00
Robert O'Callahan
f87b8e47f2
Bug 539720. Initialize cachedNewlineOffset. r=bz
...
--HG--
extra : rebase_source : 09b3b720d054061b7879225c747f8565a8e3ba20
2010-02-02 12:17:17 +13:00
Simon Montagu
4477558f1a
Allow justification space to be added after non-breaking-spaces. Bug 541189, r=roc
2010-01-26 23:30:13 -08:00
Robert O'Callahan
c51f5e4cce
Bug 532998. Cache the offset of the next newline character in preformatted text. r=smontagu
2010-01-07 13:55:09 +13:00
fantasai
3027a2127b
Bug 508473 part III: Pass destruction root to frame destruction methods r=bz sr=roc
2009-12-24 00:21:15 -05:00
Olli Pettay
423522c88b
Bug 487667 - Clone documents for printing, r=roc+jst+joe+dbaron
...
--HG--
extra : rebase_source : dbab242066ba97c0d7f34a2fb701a1c465f26ec4
2009-12-10 20:02:13 -08:00
Boris Zbarsky
5132d64872
Bug 525608 part 3. Change all style set consumers that ask for a pseudo style context to indicate what they're actually asking for (pseudo-element, anonymous box, or xul tree thing). r=dbaron
2009-12-11 02:37:40 -05:00
Boris Zbarsky
8202b90f61
Backing out bug 525608 and bug 525952
2009-12-10 18:28:08 -08:00
Boris Zbarsky
6eb3c28de7
Bug 525608 part 3. Change all style set consumers that ask for a pseudo style context to indicate what they're actually asking for (pseudo-element, anonymous box, or xul tree thing). r=dbaron
2009-12-10 14:36:05 -08:00
Robert O'Callahan
132bf4d93d
Bug 523468. Make sure we reflow the next line when content is pushed or pulled from an inline frame. r=dbaron
2009-10-27 14:43:56 +13:00
Boris Zbarsky
7813eeb6d1
Bug 525295. Rename nsStyleContext::GetPseudoType to GetPseudo. r=dbaron
2009-10-29 17:17:56 -04:00
Robert O'Callahan
c3e1864c33
Backed out changeset 9f5177a978ac
2009-10-27 21:46:18 +13:00
Robert O'Callahan
182a9bcb4b
Bug 523468. Force next line to be reflowed whenever we push or pull children from an inline frame. r=dbaron
2009-10-27 14:43:56 +13:00
Robert O'Callahan
c41769107b
Bug 504524. Don't reflow the line after an incomplete frame unless we really need to. r=bz
2009-10-19 01:01:40 -07:00
Robert O'Callahan
c2f7a1e950
Bug 513082. Instead of passing aDirtyRect to nsDisplayItem::Paint, have nsDisplayList::OptimizeVisibility (renamed to ComputeVisibility) compute the intersection of the visible region with the bounds of each display item and store the result in the item's mVisibleRect. This lets us do less work to paint display items which have a small intersection with the visible region but a large intersection with the bounding-box of the visible region. r=dbaron
...
--HG--
extra : rebase_source : 76db4b87ef9e5a6e9de7677edc08c26e2cbc462e
2009-09-07 12:35:14 +12:00
Geoff Lankow
42c20026e9
Bug 517882: Implement a -moz-tab-size CSS property that specifies the number of spaces between tab stops in preformatted text. r=roc, dbaron
2009-09-26 13:23:47 -07:00
Michael Ventnor
e18537e820
Bug 512988 - Text-shadow blur and underline messes up with padding-left. r+sr=roc
2009-09-18 20:18:35 +02:00
Mats Palmgren
eb7a0b3a40
Bug 233463, patch 4 - Make nsIFrame::mNextSibling private. r=bzbarsky
2009-09-18 13:09:36 +02:00
Mats Palmgren
dea07412a1
Replace PR_MIN/PR_MAX with NS_MIN/NS_MAX. b=512106 r=roc
2009-09-16 17:01:36 +02:00
Zack Weinberg
d47e0f433b
Bug 497495 part 3: Add methods to every nsFrame subclass that expose the as-allocated identity of every frame object. Also some cleanups to the QueryFrame implementation. r=dbaron sr=roc
2009-09-12 17:49:24 +01:00
Dão Gottwald
b978bfab72
Backed out changeset 1e6d52401dd2
2009-09-04 15:32:17 +02:00
Michael Ventnor
7ad8a95064
Bug 512988 - Text-shadow blur and underline messes up with padding-left. r+sr=roc
2009-09-04 14:24:26 +02:00
Robert O'Callahan
d2fb577d70
Bug 503657. Treat a newline character as a valid boundary for line breaking analysis. r=smontagu
...
--HG--
extra : rebase_source : f64e4629aca2c394f7331c342ad33ac84223c429
2009-09-02 14:46:48 +12:00
Robert O'Callahan
d879c631ab
Bug 503399. Never count trimmed trailing whitespace as whitespace that should received justification spacing; in this case we were using doing that when computing caret position. r=smontagu
...
--HG--
extra : rebase_source : ce1488d66893565e6f338d128ff1393c456c93f6
2009-09-02 14:46:48 +12:00
Boris Zbarsky
271b9267a2
Bug 478504. Need to clear textruns in bidi continuations too. r=roc
2009-09-02 11:32:01 -04:00
fantasai
b2ea1d69bb
Bug 492627 - Remove Placeholder Continuations [Part IV: Switch float layout APIs to pass float directly, without placeholder] r=roc
2009-08-31 11:25:35 -07:00
Masayuki Nakano
ca9d43d4d7
Bug 486735 Verdana.ttf gets a very thick underline with spelling errors r=dbaron+jboriss
2009-08-20 23:33:06 +09:00
Masayuki Nakano
db7a62f0c8
Bug 509956 Bogus code in nsTextFrame::IsFloatingFirstLetterChild r=dbaron
2009-08-18 13:46:47 +09:00
timeless@mozdev.org
532204e19d
Bug 506251 BuildTextRunsScanner::AssignTextRun does not use lastContent
...
r=roc
2009-08-12 11:49:54 +02:00
Robert O'Callahan
797febec23
Backed out changeset 77787eb64629
2009-08-05 17:33:17 +12:00
Robert O'Callahan
1e621e52ea
Bug 504524. Don't reflow the line after an incomplete frame unless we really need to. r=bz
...
--HG--
extra : rebase_source : 0e294beea796a58b16273fbfb64d777a8f40e225
2009-08-05 14:38:52 +12:00
Robert O'Callahan
2496b1ab4e
Bug 504524. Change signature of nsIFrame: of nsIFrame::CharacterDataChanged to support passing of the full CharacterDataChangeInfo struct. r=bz
...
--HG--
extra : rebase_source : cdab9444f579d6b93e142ad8681152ecd180f818
2009-08-05 13:38:10 +12:00
Robert O'Callahan
db83f27954
Bug 492309. Remove useless gfxTextRuNnFactory flags. r=vlad
...
--HG--
extra : rebase_source : 4cdbc37f404c07f509adbfb581c662187813bc4a
2009-07-30 14:59:41 +12:00
Robert O'Callahan
0489e01337
Bug 371839. Remove ParentDisablesSelection, which is effectively unused. r=bzbarsky
...
--HG--
extra : rebase_source : 920c501f033e026709ec15792cadbb2f24462a0a
2009-07-27 10:06:30 +12:00
Robert O'Callahan
8bab94a96a
Bug 371839. Simplify SetSelected signature and semantics, and reimplement it in nsTextFrame much more efficiently. r=bzbarsky
...
--HG--
extra : rebase_source : 18c390e3ebd09de82b1a23699c56b741f928ca37
2009-07-27 10:05:41 +12:00
Robert O'Callahan
181dea6c00
Bug 371839. Assertions that scan all continuations should bail out if the continuation chain is too long, so they don't add O(N) to algorithmic complexity. r=bzbarsky
2009-07-10 14:03:03 +12:00
Masayuki Nakano
a9ad59ba64
Bug 486778 Spell checker's wavy line is sometimes drawn through misspelled words r+sr=roc
2009-07-01 01:52:16 +09:00
Robert O'Callahan
765ebd47dd
Bug 500556. Split FRAMETREE_DEPENDS_ON_CHARS bit into NS_CREATE_FRAME_IF_NON_WHITESPACE and NS_REFRAME_IF_WHITESPACE so we don't need to reframe for every data change. r+sr=bzbarsky
...
--HG--
extra : rebase_source : 580aed3273c16e8402434a6f32d18dca542f29c0
2009-06-29 10:48:24 +12:00
Timothy Nikkel
a9a76664ab
Bug 458651. Text hidden with 'blink' should still receive events. r+sr=roc
...
--HG--
extra : rebase_source : cfde922d71be51795c3d3fa398faead1d00e2e55
2009-06-24 21:09:26 +12:00
Robert O'Callahan
2d82c27e96
Bug 491960. Only reflow due to selection if we did or will have overflowing selection decorations. r=dbaron
2009-05-15 15:09:49 +12:00
Masayuki Nakano
54e13d1b23
Bug 492233 [IMM32] Reimplement IME mouse handling r=VYV03354+roc, sr=roc
2009-05-15 09:46:24 +09:00
Simon Montagu
4c33ebf55d
Clear previous continuation's text run when destroying a continuation text frame. Bug 490747, r+sr=roc
2009-04-30 23:55:59 -07:00
Masayuki Nakano
cfff67f8c9
Bug 482138 [TSF] nsTextFrame has to draw composition string by TIP specified style r+sr=roc
2009-04-23 12:27:12 +09:00
Boris Zbarsky
0b5e6a2535
Bug 484448. Fix handling of whitespace kids of table-related frames. r=bernd, sr=roc
...
--HG--
rename : layout/reftests/table-anonymous-boxes/white-space-1.html => layout/reftests/table-anonymous-boxes/white-space-7.html
2009-04-08 12:56:16 -04:00
Boris Zbarsky
330653be70
Backed out changeset 0ea22856b5d9 (bug 484448).
2009-04-08 15:56:43 -04:00
Boris Zbarsky
9fffe6f817
Bug 484448. Fix handling of whitespace kids of table-related frames. r=bernd, sr=roc
...
--HG--
rename : layout/reftests/table-anonymous-boxes/white-space-1.html => layout/reftests/table-anonymous-boxes/white-space-7.html
rename : layout/reftests/table-anonymous-boxes/white-space-1-ref.html => layout/reftests/table-anonymous-boxes/white-space-ref.html
2009-04-08 12:56:16 -04:00
Masayuki Nakano
45600f33a1
Bug 486708 Should lift up selection underline as far as possible if it overflows from the descent space r+sr=roc
2009-04-06 14:53:00 +09:00
Jonathan Kew
68b13a1a71
Bug 475968. Eliminate NS_FRAME_OUTSIDE_CHILDREN flag, store small overflow areas cheaply within the frame. r+sr=roc
2009-04-06 12:31:50 +12:00
Masayuki Nakano
0066bb8330
Bug 338209 Make spellchecker use thicker wavy underlines instead of dotted underlines r+sr=roc
2009-04-03 16:26:28 +09:00
Olli Pettay
e9e6134072
Bug 482976 - Crash [@ nsTextFrame::Reflow] on print preview with quote, r+sr=roc
2009-03-18 12:45:00 +02:00
Arpad Borsos
6629426d28
Bug 481881 - use better template arguments for nsTArray<T> after bug 474369, layout part; r+sr=roc
2009-03-12 08:26:29 +01:00
Karl Tomlinson
b8e39184d7
backout dac7c3176b33 from bug 481881
2009-03-11 17:09:22 +13:00
Arpad Borsos
c1e6f4a31e
Bug 481881 - use better template arguments for nsTArray<T> after bug 474369, layout part r+sr=roc
2009-03-11 15:26:36 +13:00
Olli Pettay
c10a9dfb86
Bug 425265, r=roc, sr=bz
2009-03-08 21:01:02 +02:00
Jonathan Kew
526a0ca6e9
Bug 479276. Support a new kind of glyph bounding-box: TIGHT_HINTED_OUTLINE_EXTENTS, and use it to stop MathML spacing depending on exact ink extents. r+sr=roc
...
--HG--
extra : rebase_source : 43f9009f6457361e690062f87b2e5fda4041dc48
2009-02-24 21:32:58 +13:00
Robert O'Callahan
1307f5d202
Bug 472776. Don't accidentally clear TEXT_IN_TEXTRUN_USER_DATA after we just set it. r=smontagu
...
--HG--
extra : rebase_source : 1d7f12a729e471871cb6b610461f9b4eee2c64ae
2009-02-24 21:27:48 +13:00
Mats Palmgren
36729e6796
Keep track of the line container and forget the current line if it's for a different container. b=444027 r+sr=roc
2009-02-10 10:23:05 +01:00
Jonathan Kew
d07702c7b9
Bug 476378. Use U+002D instead of U+2010 for a soft hyphen if the first font in the fontgroup doesn't have a glyph for U+2010. r+sr=roc
2009-02-05 21:23:50 +13:00