Commit Graph

32 Commits

Author SHA1 Message Date
Xidorn Quan b8ea09a221 Bug 1117227 part 5 - Render ellipsis in correct orientation. 2018-07-25 07:02:18 +08:00
Xidorn Quan 07f4430218 Bug 1117227 part 4 - Make overflow mark baseline computation aware of writing-mode 2018-07-25 07:02:16 +08:00
Xidorn Quan 3c8d80395e Bug 1117227 part 3 - Make nsTextFrame::MeasureCharClippedText use frame isize instead of width. 2018-07-25 07:02:14 +08:00
Pale Moon d8d32e8ad2 Bug 1117227 part 2 - Convert TextOverflow to logical coordinate. 2018-07-25 07:02:12 +08:00
Xidorn Quan 2492bcbc79 Bug 1117227 part 1 - Add IntersectRect method to LogicalRect. 2018-07-25 07:02:10 +08:00
Pale Moon 00c0512ccb Make DOM selection addRange spec-compliant, take 2.
Because of the platform structure, we have to provide a way to add ranges to
Selection objects that aren't associated with a shell/nsFrameSelection.
This commit extends the original implementation with workarounds to add
these ranges by reaching into the internal implementation for adding ranges
and calling those functions directly.
2018-07-25 06:58:28 +08:00
Pale Moon 27b63aa0cc Add a way to prevent having to cast selections.
TODO: Needs a follow-up to convert existing static_cast<Selection*>(aSelection) occurrences to AsSelection().
2018-07-25 06:58:25 +08:00
Pale Moon c8b597e077 Revert "Make DOM selection-addRange spec compliant."
This reverts commit 475aff8d8049abb9cc0caa32671d5fa60dc91472.
2018-07-25 06:57:39 +08:00
Pale Moon 790eca3498 Make DOM selection-addRange spec compliant. 2018-07-25 06:57:17 +08:00
Pale Moon bc3263045c Drain overflow lines before ResolveBidi.
Rationale (410857):
We should move the "DrainOverflowLines" block before "ResolveBidi" block
if we can - this way we would have a simpler frame tree to deal with
during bidi resolution and possibly create fewer frames in some cases.
2018-07-25 06:56:46 +08:00
Pale Moon c273ac45d6 Optimize cached use of innerText. 2018-07-25 06:47:59 +08:00
Pale Moon 29b3acea0a Actually provide an implementation for GetRenderedtext() 2018-07-25 06:47:41 +08:00
janekptacijarabaci ae2ab59764 CSS: Percentage max-width does not seem to affect contributions to intrinsic min-width 2018-07-25 06:23:33 +08:00
Pale Moon 8fcef36616 Make sure that a block element following left float clears it when it can't fit next to it.
(2009 BMO bug)

This resolves #732
2018-07-25 06:20:31 +08:00
Pale Moon 98c6d1dd7e Track source-string position of possible prefix. 2018-07-25 01:05:00 +08:00
wolfbeast 041ef0f9dd Reduce jank on inner frame scrolling reflows. 2018-07-25 00:55:09 +08:00
wolfbeast 71436ec92b Disable splitting of selections into ranges.
This avoid a large performance regression at the cost of making selections visually less accurate if sections are included with `-moz-user-select: none;`
2018-07-24 23:30:23 +08:00
wolfbeast e82e01781f Follow-up to [6b643d3] (fold in Bug 1261230) 2018-07-24 23:17:08 +08:00
wolfbeast 3a5a1af616 Bug 1265577 2018-07-24 23:17:06 +08:00
trav90 aad61641fe Remove GCC-dehydra support 2018-07-24 23:12:25 +08:00
Xidorn Quan c6c394ea31 Revert to pass container size instead of only isize for bidi reordering. 2018-07-24 23:12:20 +08:00
wolfbeast bb170eb387 Reorder ruby frames based on their direction. 2018-07-24 23:12:18 +08:00
Xidorn Quan 1dcab560bb Move [Auto]RubyTextContainerArray to RubyUtils and merge RubyTextContainerIterator into AutoRubyTextContainerArray. 2018-07-24 23:12:18 +08:00
Xidorn Quan a3e121d1ac Move Ruby{Segment,Column}Enumerator to RubyUtils. 2018-07-24 23:12:17 +08:00
wolfbeast a9f6b2fbd0 Eliminate unnecessary includes in header files of ruby frames. 2018-07-24 23:12:17 +08:00
Xidorn Quan 422c2035ae Adjust some parameters of functions in nsBidiPresUtils.
Includes two changes:
* aContainerSize of ReorderFrames, RepositionInlineFrames, RepositionFrame are changed to aContainerISize;
* the type of aContainuationStates in the functions above is changed to const pointer.
2018-07-24 23:12:15 +08:00
Xidorn Quan 96aa9a4d80 Eliminate writing-mode mismatch in ruby reflow. 2018-07-24 23:12:14 +08:00
wolfbeast 93bd6dcf10 Ruby RTL pt3: Correct the position of ruby text frames. 2018-07-24 23:12:03 +08:00
wolfbeast 80d229b784 Ruby RTL pt2: Correct the position of ruby text containers for RTL text.
Use the logical version of FinishReflowChild, so that we are able to keep a consistent logical rect and then fix the rect with the correct container width after the whole line is reflowed.
2018-07-24 23:12:03 +08:00
wolfbeast f8b7fd65aa Ruby RTL pt1: Change line relative dir mapping code to return LogicalSide instead of physical side. 2018-07-24 23:12:02 +08:00
wolfbeast 5ee6187aad Prep tree for forward-porting Goanna, stage 1 2018-07-24 23:10:50 +08:00
Moonchild baf46a6bf1 Merge pull request #1 from mozilla/esr38: Esr38 upstream pull 2018-07-24 23:04:07 +08:00