Commit Graph
263 Commits
Author SHA1 Message Date
Eric Rahm 1014279336 Bug 1351904 - Switch layout over to ArenaAllocator. r=xidorn
This switches over layout's usage of PLArena to ArenaAllocator. This allows
us to build more files in unified sources and gets rid of various CONST masks.

MozReview-Commit-ID: Aaf3Dl2kaoz
2017-03-31 14:06:33 -07:00
Ting-Yu Lin 0bad077dee Bug 1338443 Part 2 - Convert nsAutoFloatManager::mNew to use UniquePtr. r=dholbert
The life cycle of nsFloatManager managed by mNew is same as
nsAutoFloatManager, which lives only in nsBlockFrame::Reflow(). Therefore,
other nsFloatManager pointers are all non-owning ref to the
nsAutoFloatManager::mNew.

MozReview-Commit-ID: B34BOcsjE2X
2017-02-09 17:57:16 +08:00
Ting-Yu Lin 7e5a56b15d Bug 1277129 Part 7c - Rename various RS variables to RI. r=dbaron
This patch is generated by the following script:

function rename() {
find layout\
     -type f\
     ! -path "./obj*"\
     ! -path "./.git"\
     ! -path "./.hg"\
     \( -name "*.cpp" -or\
        -name "*.h" \)\
        -exec sed -i -r "s/$1/$2/g" "{}" \;
}

rename aChildRS aChildRI
rename aContainingBlockRS aContainingBlockRI
rename aFrameRS aFrameRI
rename aLastRS aLastRI
rename aOuterRS aOuterRI
rename aRS aRI
rename blockHtmlRS blockHtmlRI
rename captionRS captionRI
rename cellRS cellRI
rename childRS childRI
rename firstAncestorRS firstAncestorRI
rename flexContainerRS flexContainerRI
rename gridRS gridRI
rename innerRS innerRI
rename lastButOneRS lastButOneRI
rename LineContainerRS LineContainerRI
rename mBlockRS mBlockRI
rename parentRS parentRI
rename secondAncestorRS secondAncestorRI
rename lastRSSize lastRISize
rename lastRSPadding lastRIPadding

MozReview-Commit-ID: YEgZs3WMow
2016-07-21 18:36:39 +08:00
Ting-Yu Lin d3e8cf1818 Bug 1277129 Part 7b - Rename various ReflowState variables to ReflowInput. r=dbaron
This patch is generated by the following script:

function rename() {
find .\
     -type f\
     ! -path "./obj*"\
     ! -path "./.git"\
     ! -path "./.hg"\
     \( -name "*.cpp" -or\
        -name "*.h" \)\
        -exec sed -i -r "s/$1/$2/g" "{}" \;
}

rename "([[:alpha:]]*)([rR])eflowState(s?)" "\1\2eflowInput\3"

MozReview-Commit-ID: ITFO7uMTkSb
2016-07-21 18:36:39 +08:00
Ting-Yu Lin a16062e5d0 Bug 1277129 Part 6a - Rename frame to mFrame in SizeComputationInput. r=dbaron
MozReview-Commit-ID: 3SXZ4qEZJc
2016-07-21 18:36:38 +08:00
Ting-Yu Lin bb0825b5c7 Bug 1277129 Part 5c - Rename nsHTMLReflowMetrics to ReflowOutput. r=dbaron
This patch is generated by the following script:

function rename() {
find .\
     -type f\
     ! -path "./obj*"\
     ! -path "./.git"\
     ! -path "./.hg"\
     \( -name "*.cpp" -or\
        -name "*.h" \)\
        -exec sed -i -e "s/$1/$2/g" "{}" \;
}

rename "nsHTMLReflowMetrics" "ReflowOutput"

MozReview-Commit-ID: 2HBb7DkooH5
2016-07-21 18:36:38 +08:00
Ting-Yu Lin de4d3e400d Bug 1277129 Part 5a - Move nsHTMLReflowMetrics into mozilla namespace. r=dbaron
MozReview-Commit-ID: 7xrd1AMd0bz
2016-07-21 18:36:37 +08:00
Ting-Yu Lin 61c507eb10 Bug 1277129 Part 2c - Rename nsBlockReflowState to BlockReflowInput. r=dbaron
This patch is generated by the following script:

function rename() {
find .\
     -type f\
     ! -path "./obj*"\
     ! -path "./.git"\
     ! -path "./.hg"\
     \( -name "*.cpp" -or\
        -name "*.h" \)\
        -exec sed -i -e "s/$1/$2/g" "{}" \;
}

rename "nsBlockReflowState" "BlockReflowInput"

MozReview-Commit-ID: FtjqkQpGfcI
2016-07-21 18:36:36 +08:00
Ting-Yu Lin d5f7b21d39 Bug 1277129 Part 2b - Rename nsBlockReflowState.h/cpp to BlockReflowInput.h/cpp and fix #includes. r=dbaron
The #includes are fixed by the following script:

function rename() {
find .\
     -type f\
     ! -path "./obj*"\
     ! -path "./.git"\
     ! -path "./.hg"\
     \( -name "*.cpp" -or\
        -name "*.h" \)\
        -exec sed -i -e "s/$1/$2/g" "{}" \;
}

rename "nsBlockReflowState\.h" "BlockReflowInput\.h"

MozReview-Commit-ID: 6QMqko1XOsT
2016-07-21 18:36:36 +08:00
Ting-Yu Lin 39b8148859 Bug 1277129 Part 2a - Move nsBlockReflowState into mozilla namespace. r=dbaron
MozReview-Commit-ID: GNEgxqqBDAH
2016-07-21 18:36:36 +08:00
Ting-Yu Lin 10912a51e3 Bug 1277129 Part 1c - Rename nsHTMLReflowState to ReflowInput. r=dbaron
This patch is generated by the following script:

function rename() {
find .\
     -type f\
     ! -path "./obj*"\
     ! -path "./.git"\
     ! -path "./.hg"\
     \( -name "*.cpp" -or\
        -name "*.h" \)\
        -exec sed -i -e "s/$1/$2/g" "{}" \;
}

rename nsHTMLReflowState ReflowInput

MozReview-Commit-ID: 9r9vdVv1pXc
2016-07-21 18:36:35 +08:00
Ting-Yu Lin 2f07ffd67b Bug 1277129 Part 1a - Move nsHTMLReflowState and nsCSSOffsetState into mozilla namespace. r=dbaron
MozReview-Commit-ID: DJfEQRCgNo3
2016-07-21 18:36:34 +08:00
Ting-Yu Lin 3b76557e22 Bug 1273049 - Migrate documentation in block-and-line.html into the tree. r=dholbert
I also adjust some of the old flag name to their logical name, and
rewrite some of the content where I see fit.

MozReview-Commit-ID: 7wAsDUOiN0a
2016-07-08 18:24:49 +08:00
Xidorn Quan 4b4464f3d1 Bug 1268342 part 2 - Store writing mode of frame in PerFrameData. r=jfkthame
MozReview-Commit-ID: 66ZWj3EdCdh
2016-05-30 09:24:18 +10:00
Xidorn Quan 9276750055 Bug 1268342 part 1 - Remove useless constructor of PerFrameData. r=jfkthame
MozReview-Commit-ID: IL3iq4FFEaY
2016-05-30 09:24:18 +10:00
Xidorn Quan b8ac4d9b8b Bug 1225018 part 3 - Use font metrics of emphasis marks to compute required leading. r=jfkthame 2015-12-08 12:55:01 -05:00
Xidorn Quan 865565a937 Bug 1040668 part 12 - Add line leadings for emphasis marks if necessary. r=dholbert 2015-11-28 11:56:33 +11:00
Xidorn Quan d4c0d50a73 Bug 1040668 part 11 - Move line leadings adjusting code into a separate function in nsLineLayout. r=dholbert 2015-11-28 11:56:33 +11:00
Xidorn Quan 63aaf6ddd5 Bug 1052924 followup - Move the XXX comment to the right field. DONTBUILD 2015-11-19 18:00:25 +11:00
Jonathan Kew 7e8bda5a72 Bug 1131451 part 1 - Replace containerWidth with containerSize in logical-coordinate classes and APIs, frame classes, etc. r=dholbert 2015-07-16 10:07:57 +01:00
Cameron McCormack a562bdc57f Bug 1120300 - Export WritingModes.h as mozilla/WritingModes.h. r=jfkthame 2015-03-26 18:29:31 +11:00
Xidorn Quan d59168f5f4 Bug 1141842 - Add LastOptionalBreakPriority to nsLineLayout to simplify some code. r=roc 2015-03-11 14:14:48 +11:00
Xidorn Quan ca2c06410b Bug 1135361 - Fix position of ruby annotation in vertical-rl mode when justification is applied to the base. r=jfkthame 2015-02-24 14:46:29 +11:00
Xidorn Quan b2d101e93b Bug 1134206 part 1 - Remove mZeroEffectiveSpanBox flag from PerSpanData. r=roc 2015-02-19 22:39:19 +13:00
Xidorn Quan 7caaa0049c Bug 1133697 part 3 - Make ruby text frame not continue text run. r=roc 2015-02-18 17:20:02 +13:00
Xidorn Quan 19159bd2a2 Bug 1055676 part 2 - Move inter-frame justification assignment to an independent function. r=roc 2015-02-17 18:01:49 +13:00
Xidorn Quan 12f34c58c5 Bug 1132008 part 3 - Remove unused code in nsLineLayout. r=dbaron
This code was originally introduced in bug 1055665 part 3.
2015-02-17 14:25:18 +13:00
Xidorn Quan 90e48a933c Bug 1132008 part 2 - Sync bounds of <rt>s in line layout. r=dbaron 2015-02-17 14:25:18 +13:00
Simon Montagu f9ca39cffa Bug 1131013: when setting the position of inline frames in vertical writing modes with right-to-left direction, subtract the inline start from the container height to get the correct vertical position. r=jfkthame 2015-02-11 01:43:03 -08:00
Xidorn Quan ae1d61d2a8 Bug 1089431 part 3 - Make line breaking inside ruby be triggered at correct time. r=jfkthame 2015-02-11 10:26:56 +11:00
Nicholas Nethercote 0247de46d8 Bug 1127201 (attempt 2, part 1) - Replace most NS_ABORT_IF_FALSE calls with MOZ_ASSERT. r=Waldo. 2015-02-09 14:34:50 -08:00
Andrew McCreight e048a7df33 Back out Bug 1127201 (part 2) for various problems. 2015-02-06 15:04:32 -08:00
Nicholas Nethercote 40ab0270d5 Bug 1127201 (part 2) - Convert all NS_ABORT_IF_FALSE calls to MOZ_ASSERT. r=Waldo. 2015-02-04 20:05:36 -08:00
Xidorn Quan 11ba09d7e1 Bug 1121684 - Move one-liners in nsLineLayout.cpp to the header. r=roc 2015-01-15 15:52:27 +11:00
Xidorn Quan 0549a155fe Bug 1055658 part 4 - Revert RubyReflowState. r=dbaron 2015-01-13 20:04:41 +11:00
Xidorn Quan ddac03b9f3 Bug 1055658 part 2 - Add relative positioning support for ruby annotations. r=dbaron 2015-01-13 20:04:41 +11:00
Xidorn Quan 28553e1eb1 Bug 1055658 part 1 - Move code for applying relative position to an independent method. r=dbaron 2015-01-13 20:04:41 +11:00
Xidorn Quan 36c59f69fd Bug 1120313 - Fix nested ruby inside ruby annotation. r=dbaron 2015-01-13 15:14:46 +11:00
Nigel Babu 2492f633d1 Backed out 4 changesets (bug 1055658) for M5 bustage on a CLOSED TREE
Backed out changeset 3cbd9323c896 (bug 1055658)
Backed out changeset 99e071295c42 (bug 1055658)
Backed out changeset 55119d19e4c5 (bug 1055658)
Backed out changeset e82f640cb53f (bug 1055658)
2015-01-12 10:43:11 +05:30
Xidorn Quan cdb8162daf Bug 1055658 part 4 - Revert RubyReflowState. r=dbaron 2015-01-12 14:31:55 +11:00
Xidorn Quan 11018e292e Bug 1055658 part 2 - Add relative positioning support for ruby annotations. r=dbaron 2015-01-12 14:31:55 +11:00
Xidorn Quan d830976b63 Bug 1055658 part 1 - Move code for applying relative position to an independent method. r=dbaron 2015-01-12 14:31:55 +11:00
Xidorn Quan 084bf1de6a Bug 1117597 - Sync bounds of ruby annotation containers. r=roc 2015-01-07 12:47:09 +11:00
Xidorn Quan bc60219a63 Bug 1116635 - Fix interaction between ruby alignment and trimmed whitespace. r=roc 2015-01-07 12:47:09 +11:00
Xidorn Quan 6e53ba9ae1 Bug 1116037 part 11 - Add RubyReflowState for sharing states between ruby level boxes. r=dbaron 2014-12-30 11:16:30 +11:00
Xidorn Quan 10dbd31052 Bug 1055665 part 3 - Position ruby annotations and set the line size of them correctly. r=dholbert 2014-12-09 17:47:26 +11:00
Xidorn Quan a611c6b3f9 Bug 1108429 part 8 - Implement default ruby alignment. r=roc 2014-12-15 10:33:59 +11:00
Xidorn Quan d9e75049f5 Bug 1108429 part 6 - Record inner justification opportunities for each frame. r=roc 2014-12-15 09:57:36 +11:00
Xidorn Quan d66c397776 Bug 1108429 part 3 - Add flag to indicate the existance of ruby. r=roc 2014-12-13 11:48:30 +11:00
Xidorn Quan 08ab6bf9b0 Bug 1109937 - Change flags in PerFrameData to use bit fields. r=roc 2014-12-23 10:22:26 +11:00