Commit Graph

1063 Commits

Author SHA1 Message Date
Jonathan Kew
b4c5d9cd9a Bug 1091058 - Fix positioning of text-decoration lines in vertical writing mode. r=smontagu 2014-11-13 08:58:05 +00:00
Ryan VanderMeulen
ab0a39df15 Backed out changesets 857063c82323 and a19479860eb4 (bug 619521) for Valgrind failures.
CLOSED TREE
2014-11-11 13:10:56 -05:00
Jonathan Kew
b5be75eb7e Bug 619521 - Part 1: Send a notification of any scripts for which font coverage is lacking. r=jdaggett 2014-11-07 06:32:00 -05:00
Jonathan Kew
b15e11bc92 Bug 1096260 - Convert flags parameter of nsIFrame::ComputeSize from uint32_t to a typed enum, and update callers accordingly. r=dholbert 2014-11-11 11:02:41 +00:00
Xidorn Quan
9cf6197f83 Bug 1063857 - Implement new justification algorithm. r=roc,masayuki 2014-11-10 12:25:17 +11:00
Xidorn Quan
5965423dfc Bug 1063857 - Improve selecting on justified characters. r=roc 2014-11-10 12:25:09 +11:00
James Kitchener
02841102c1 Bug 1002526 - Part 3 - MathMLTextRunFactory needs to now about font inflation. r=roc 2014-11-05 11:58:00 +01:00
Xidorn Quan [:xidorn]
1ced7f8fb8 Bug 1085311 - Vertical writing-mode support for single-line <input> fields. r=jfkthame 2014-11-04 15:45:00 +01:00
Carsten "Tomcat" Book
f74c7bbb38 Backed out changeset 53d51e7fbb9e (bug 1063857) for Android Reftest Failures 2014-11-04 10:59:46 +01:00
Xidorn Quan
08d8f0ff5d Bug 1063857 - Implement new justification algorithm. r=roc,masayuki 2014-11-02 15:07:00 +01:00
Jonathan Watt
b431664247 Bug 651021 - Make nsRenderingContext a stack class. r=jrmuizel 2014-10-31 20:08:49 +00:00
L. David Baron
05f59b6f25 Bug 1090626 - Rename result of IsChineseOrJapanese from isCJK to isCJ, to avoid misleading, since it does not include Korean. r=jdaggett
Note that the name inside of IsJustifiableCharacter is already correct.
2014-10-30 11:27:45 -07:00
Jonathan Watt
cde717f077 Bug 1085529, part 2 - Port nsCSSRendering::PaintDecorationLine() to Moz2D. r=mattwoodrow 2014-10-26 01:15:26 +01:00
Jonathan Watt
05b59bc989 Bug 1088625, part 1 - Add lots of missing nsFontMetrics.h and gfxTextRun.h includes 2014-10-24 16:28:14 +01:00
Simon Montagu
729141b175 Bug 1062963 patch 1: Logical coordinates in nsLineLayout:ReflowFrame and CanPlaceFrame. r=jfkthame 2014-10-21 15:16:11 -07:00
Phil Ringnalda
32261f5095 Backed out 4 changesets (bug 1062963, bug 1079139) for failures in 427129-table-caption.html in b2g reftest-6 and Android 2.3 reftest-5
Backed out changeset a9672db96a5d (bug 1079139)
Backed out changeset 241c23570a62 (bug 1062963)
Backed out changeset 90172cc0b012 (bug 1062963)
Backed out changeset 71211c4a4acc (bug 1062963)
2014-10-19 18:44:16 -07:00
Simon Montagu
6add99b91a Bug 1062963 patch 1: Logical coordinates in nsLineLayout:ReflowFrame and CanPlaceFrame. r=jfkthame 2014-10-19 12:32:16 -07:00
Jonathan Kew
28e60ecdd4 Bug 1081867 - Convert textrun metrics to physical coordinates before merging with visual-overflow region. r=smontagu 2014-10-16 09:40:19 +01:00
Carsten "Tomcat" Book
1774497654 Backed out changeset 1abddb50ed34 (bug 1081867) for bustage on a CLOSED TREE 2014-10-16 11:42:11 +02:00
Jonathan Kew
a407fdcea5 Bug 1081867 - Convert textrun metrics to physical coordinates before merging with visual-overflow region. r=smontagu 2014-10-16 09:40:19 +01:00
Mats Palmgren
92d6c4617c Bug 1076918. r=dbaron 2014-10-11 22:59:00 -07:00
Jonathan Kew
1fb3cc52e6 Bug 1074735 pt 2 - Support drawing CSS text decorations (underline, overline, strikeout) on vertical text frames. r=smontagu 2014-10-08 10:32:55 +01:00
Carsten "Tomcat" Book
a20e1f5c44 Backed out changeset 32c4d5043b18 (bug 1074735) 2014-10-08 13:06:51 +02:00
Jonathan Kew
13f12b00ed Bug 1074735 pt 2 - Support drawing CSS text decorations (underline, overline, strikeout) on vertical text frames. r=smontagu 2014-10-08 10:32:55 +01:00
Ehsan Akhgari
e5cb405ee6 Bug 1079324 - Fix some more bad implicit constructors in layout; r=dholbert 2014-09-24 09:16:53 -04:00
Jonathan Kew
462c33277c Bug 1077371 - Remove unnecessary null-checks on the result of gfxFontGroup::GetFirstValidFont. r=jdaggett 2014-10-06 15:14:49 +01:00
Jonathan Kew
85f5cfc0f6 Bug 1077139 - Use the vertical-text I-beam cursor when the writing mode is vertical. r=dbaron 2014-10-03 13:47:26 +01:00
Jonathan Kew
dbd542017f Bug 902762 pt 7 - Draw caret appropriately for vertical textruns. r=smontagu 2014-10-01 20:25:50 +01:00
Jonathan Kew
c8441c941e Bug 902762 pt 6 - Handle vertical textruns for mouse click in nsTextFrame. r=smontagu 2014-10-01 20:25:50 +01:00
Jonathan Kew
dc5bc1fafa Bug 902762 pt 5 - Handle vertical textruns when painting text in nsTextFrame. r=smontagu 2014-10-01 20:25:49 +01:00
Jonathan Kew
10867a56bf Bug 1065002 pt 1.3 - Add an Orientation parameter to gfxFont::GetMetrics and dispatch to horizontal or vertical as needed. r=jdaggett 2014-09-30 07:38:26 +01:00
James Kitchener
1fbb9f9bf9 Bug 1069929 - Apply dtls font feature setting for <mover> elements. r=roc 2014-09-24 04:38:00 -04:00
John Daggett
b1e97f13d2 Bug 998869 part 2 - switch to GetFontAt(0) to GetFirstValidFont(). r=jfkthame 2014-09-25 12:16:53 +09:00
Jonathan Kew
0aa71d1acd Bug 1072348 - Make IsJustifiableCharacter recognize Plane 2 ideographs. r=roc 2014-09-24 18:11:02 +01:00
Georg Fritzsche
eb5c2aafa5 Bug 1067989 - Unify some more binary search uses. r=waldo 2014-09-17 15:46:24 +02:00
Jonathan Kew
1ec098ba6b bug 1066043 - split gfxFont.cpp and .h into more manageably-sized pieces. r=jdaggett 2014-09-16 10:58:12 +01:00
Jonathan Kew
5ba34972de Bug 1066756 - Include characters with Unicode category Sk (modifier symbol) in double-click word selection. r=mats 2014-09-15 17:19:24 +01:00
Matt Woodrow
08342bd006 Bug 1059033 - Part 6: Clip text drawing to its bound so we can skip unaffected tiles. r=Bas 2014-09-03 09:21:20 +12:00
Phil Ringnalda
c4fecf2e67 Backed out 8 changesets (bug 982338, bug 1057212, bug 1059033) for build bustage
CLOSED TREE

Backed out changeset 4df1bd30364d (bug 982338)
Backed out changeset b68664a02904 (bug 1057212)
Backed out changeset 07b3695aa02f (bug 1059033)
Backed out changeset bb3885b57d48 (bug 1059033)
Backed out changeset 76897f52ac2c (bug 1059033)
Backed out changeset 31e89a2a409f (bug 1059033)
Backed out changeset 8e81f6f74182 (bug 1059033)
Backed out changeset c5bbf22f2f28 (bug 1059033)
2014-09-01 18:07:57 -07:00
Matt Woodrow
a4eb96fcb6 Bug 1059033 - Part 6: Clip text drawing to its bound so we can skip unaffected tiles. r=Bas 2014-09-02 12:35:40 +12:00
Jonathan Kew
90d29e4a9e bug 1048899 - don't end ::first-letter in the middle of a ligature for Indic and SEAsian scripts. r=smontagu 2014-09-01 21:08:52 +01:00
Matt Woodrow
8381f7a214 Bug 1059033 - Backout part 6 for causing reftest failures 2014-09-01 16:58:04 +12:00
Ehsan Akhgari
8bb87f8a27 Bug 1060985 - Fix more bad implicit constructors in layout; r=roc 2014-08-31 23:36:37 -04:00
Matt Woodrow
32ac66ba6f Bug 1059033 - Part 6: Clip text drawing to its bound so we can skip unaffected tiles. r=Bas 2014-09-01 15:23:29 +12:00
James Kitchener
21374bcb9e Bug 1043358 - Fix up font caching in MathMLTextRunFactory. r=roc 2014-08-22 03:48:00 -04:00
Jonathan Kew
670778f5d9 bug 1046950 pt 2 - convert ComputeSize to use logical-coordinate parameters. r=smontagu 2014-08-24 15:34:44 +01:00
Robert O'Callahan
47741d0637 Bug 1054161. Don't build display items for text with alpha=0. r=dbaron 2014-08-23 00:08:12 +12:00
Robert O'Callahan
6fb18233c7 Bug 1048752. Part 16: Move nsFrameSelection::HINT to CaretAssociationHint.h. r=tn
This patch started an attempt to remove nsFrameSelection.h from nsCaret.h
and metastasized into a rather large refactoring patch that removed it
from some other header files as well, and changed nsFrameSelection::HINT
into a global-scope enum with better names. I also converted bools
into CaretAssociationHint in a few places where that was appropriate,
but there are still some more places (GetChildFrameContainingOffset)
where bools need to be converted. I figured this patch was big enough already.
2014-08-06 17:19:27 +12:00
Susanna Bowen
2e41f7ff03 Bug 1030993 - Fix assertion failure in reftest css-ruby/ruby-whitespace-1.html. r=dbaron
Fixes the assertion failure with text:
"###!!! ASSERTION: Wrong line container
hint: '!aForFrame || (aLineContainer == FindLineContainer(aForFrame) ||
aLineContainer->GetType() == nsGkAtoms::rubyTextContainerFrame ||
(aLineContainer->GetType() == nsGkAtoms::letterFrame &&
aLineContainer->IsFloating()))', file
/home/sgbowen/builds/mozilla-central/layout/generic/nsTextFrame.cpp, line 1259"
which occasionally appears when opening pages with ruby or when running ruby
reftests.

Updates the manifest for ruby reftests to the current expectations (adjust
assertion counts, etc.)
2014-08-15 10:34:20 -07:00
Susanna Bowen
3c4a808a0e Bug 1030993 - Basic reflow implementation for ruby frame classes. r=dbaron
To account for spacing between bases or text boxes during reflow, the line
layout which manages the bases updates its inline direction coordinate based on
the preferred inline size for the corresponding text boxes. Next, the base is
reflowed at the correct inline coordinate. Each paired text box is then also
reflowed at the proper inline position determined by (1) the current position of
its corresponding base and (2) its own preferred width.

In computing intrinsic widths, accounting for spacing is less complicated. The
minimum intrinsic width is the width of the widest ruby column, and the
preferred intrinsic width is the sum of all the ruby column widths. Each ruby
column width is the maximum width of its base box and text boxes. These
individual widths are determined using GetPrefISize on the base and text boxes.

Ruby base container frames store a list of pointers to the ruby text container
frames in the segment they denote. This list of pointers is created in the ruby
frame reflow method before calling the reflow method for the ruby base
container. The list exists and is used only during reflow of the main ruby frame
and is cleared before returning from reflow.
2014-08-15 10:34:20 -07:00