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

274 Коммитов

Автор SHA1 Сообщение Дата
Ting-Yu Lin 545a6376cd Bug 1677635 Part 4 - Rename nsOverflowAreas to OverflowAreas, and move it into mozilla namespace. r=layout-reviewers,emilio
This patch is generated via the rename functionality in my editor; add
`mozilla::` prefix to `OverflowAreas` in headers; and remove the
`OverflowType` alias added in Part 1.

Differential Revision: https://phabricator.services.mozilla.com/D97235
2020-11-18 00:08:12 +00:00
Ting-Yu Lin f49d08722a Bug 1543571 Part 1 - Replace "reflow state" with "reflow input". r=dholbert
This patch is generated by the following script on Linux:

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 "reflow state" "reflow input"

Differential Revision: https://phabricator.services.mozilla.com/D27022

--HG--
extra : moz-landing-system : lando
2019-04-11 20:27:37 +00:00
Mats Palmgren be049c79d6 Bug 205202 part 4 - [css-lists][css-pseudo] Rename various uses of bullet with marker to avoid any misleading association with nsBulletFrame (idempotent patch). r=emilio 2019-03-24 23:13:53 +01:00
Mats Palmgren 53f517142f Bug 205202 part 1 - [css-lists][css-pseudo] Add support for the ::marker pseudo element on list items. Alias :-moz-list-bullet/number to that in the parser. r=emilio 2019-03-24 23:13:53 +01:00
Sylvestre Ledru 265e672179 Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
# ignore-this-changeset

--HG--
extra : amend_source : 4d301d3b0b8711c4692392aa76088ba7fd7d1022
2018-11-30 11:46:48 +01:00
Xidorn Quan 0e1bf45a08 Bug 1484521 - Prepend bullet frame in line layout. r=jfkthame
Bug 1478178 regressed this case because bullet frame is the last frame
added to line layout, rather than the first, so when we try to apply
justification, we end up giving it the accumulated offset of the whole
line.

Bullet frame has to be added after other frames in the line have been
placed, because its presence may depend on whether the line is empty.
However, bullet frame is logically the first frame in a line and
appending it to the end is somewhat counter-intuitive.

Thus, this patch tries to fix the issue via prepending bullet frame in
line layout, so that the order of frames there can be more reliable.

Differential Revision: https://phabricator.services.mozilla.com/D3760

--HG--
extra : moz-landing-system : lando
2018-08-24 10:44:04 +00:00
Emilio Cobos Álvarez b6a59eedfc Bug 488725: Don't position floats in a nowrap context until hitting a break opportunity. r=dbaron
Differential Revision: https://phabricator.services.mozilla.com/D3900
2018-08-23 16:45:01 +02:00
Emilio Cobos Álvarez 6bb937174a Bug 1426760: Don't let placeholders affect line height. r=jfkthame
MozReview-Commit-ID: IJHerDOKOkj

--HG--
extra : rebase_source : 054503061bcafad8f577bc1f59a12ec8797cc4d0
2017-12-22 17:28:24 +01:00
Daniel Holbert 680815cd6e Bug 1412346 part 5: (automated patch) Switch a bunch of C++ files in layout to use our standard mode lines. r=jfkthame
This patch was generated automatically by the "modeline.py" script, available
here: https://github.com/amccreight/moz-source-tools/blob/master/modeline.py

For every file that is modified in this patch, the changes are as follows:
 (1) The patch changes the file to use the exact C++ mode lines from the
     Mozilla coding style guide, available here:
https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Coding_Style#Mode_Line

 (2) The patch deletes any blank lines between the mode line & the MPL
     boilerplate comment.

 (3) If the file previously had the mode lines and MPL boilerplate in a
     single contiguous C++ comment, then the patch splits them into
     separate C++ comments, to match the boilerplate in the coding style.

MozReview-Commit-ID: EuRsDue63tK

--HG--
extra : rebase_source : 3356d4b80ff6213935192e87cdbc9103fec6084c
2017-10-27 10:33:53 -07:00
Michael Kaply 73bafcec5e Bug 1389168 - Remove unnecessary IBM license text. r=gerv
MozReview-Commit-ID: 8HdaBppsJsc

--HG--
extra : rebase_source : 617c17b1162265e44810597fa69d533316da1a6b
2017-08-16 16:10:56 -05:00
Sylvestre Ledru 4e9cf83ee8 Bug 1378712 - Remove all trailing whitespaces r=Ehsan
MozReview-Commit-ID: Kdz2xtTF9EG

--HG--
extra : rebase_source : 7235b3802f25bab29a8c6ba40a181a722f3df0ce
2017-07-06 14:00:35 +02:00
Eric Rahm 861a58d5a4 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 81c35ddd7e 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

--HG--
extra : rebase_source : 49e4adaf31537b4003ee1a3db315f3e8bd8b1a7f
2017-02-09 17:57:16 +08:00
Ting-Yu Lin d77152fcd0 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

--HG--
extra : rebase_source : c26050c71a3a5b13ef46e6d3582e581702d49ee8
2016-07-21 18:36:39 +08:00
Ting-Yu Lin 40fcd21b9a 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

--HG--
extra : rebase_source : c91a2e174a0baec60c1b0111ac7636295004ab35
2016-07-21 18:36:39 +08:00
Ting-Yu Lin cd13f0ea71 Bug 1277129 Part 6a - Rename frame to mFrame in SizeComputationInput. r=dbaron
MozReview-Commit-ID: 3SXZ4qEZJc

--HG--
extra : rebase_source : 577d48f047af163585acea95dda311358f5e8c25
2016-07-21 18:36:38 +08:00
Ting-Yu Lin 4053c4c028 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

--HG--
extra : rebase_source : acfa442a6483772fcb5748dc6f5e7072e599032a
2016-07-21 18:36:38 +08:00
Ting-Yu Lin 6f2f38fcd7 Bug 1277129 Part 5a - Move nsHTMLReflowMetrics into mozilla namespace. r=dbaron
MozReview-Commit-ID: 7xrd1AMd0bz

--HG--
extra : rebase_source : 4faa0b6adc233bb853a8646856dd3dc3e8422566
2016-07-21 18:36:37 +08:00
Ting-Yu Lin 6111a2de40 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

--HG--
extra : rebase_source : c8f678bc47217b778df7f91f0f6cce6c44b04d90
2016-07-21 18:36:36 +08:00
Ting-Yu Lin 371989a096 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

--HG--
rename : layout/generic/nsBlockReflowState.cpp => layout/generic/BlockReflowInput.cpp
rename : layout/generic/nsBlockReflowState.h => layout/generic/BlockReflowInput.h
extra : rebase_source : 8911b9bbe68ceca82c77b7e120d87bfa71b7211c
2016-07-21 18:36:36 +08:00
Ting-Yu Lin 4b0284cd0f Bug 1277129 Part 2a - Move nsBlockReflowState into mozilla namespace. r=dbaron
MozReview-Commit-ID: GNEgxqqBDAH

--HG--
extra : rebase_source : d70f52229215111e6d393103c71fb79475353ac0
2016-07-21 18:36:36 +08:00
Ting-Yu Lin 820f88de49 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

--HG--
extra : rebase_source : 623ec822996ba0ea0058dd137acf5a658cdea04a
2016-07-21 18:36:35 +08:00
Ting-Yu Lin 39dffbe21b Bug 1277129 Part 1a - Move nsHTMLReflowState and nsCSSOffsetState into mozilla namespace. r=dbaron
MozReview-Commit-ID: DJfEQRCgNo3

--HG--
extra : rebase_source : add4c7a843f956114b2b9dfe20fba1048139ca5f
2016-07-21 18:36:34 +08:00
Ting-Yu Lin faa1469dd9 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

--HG--
extra : rebase_source : 18e28e5ed1c593fb272042508b36244f132da4f5
2016-07-08 18:24:49 +08:00
Xidorn Quan 4ac3826c0f Bug 1268342 part 2 - Store writing mode of frame in PerFrameData. r=jfkthame
MozReview-Commit-ID: 66ZWj3EdCdh

--HG--
extra : source : 5d1bd8bfb21b8c75aff18c71377ffd29d44e361a
2016-05-30 09:24:18 +10:00
Xidorn Quan db35f88ca8 Bug 1268342 part 1 - Remove useless constructor of PerFrameData. r=jfkthame
MozReview-Commit-ID: IL3iq4FFEaY

--HG--
extra : source : 8b3660dd50322d312da157895f20169255d23658
2016-05-30 09:24:18 +10:00
Xidorn Quan 272514670b Bug 1225018 part 3 - Use font metrics of emphasis marks to compute required leading. r=jfkthame
--HG--
extra : source : 47345d7b24f414e278a3f8cc688d2f77132d73ef
2015-12-08 12:55:01 -05:00
Xidorn Quan 95b800f4ce Bug 1040668 part 12 - Add line leadings for emphasis marks if necessary. r=dholbert
--HG--
extra : source : cb34c48bff0ccf4024385d392dc58bc1f672ea23
2015-11-28 11:56:33 +11:00
Xidorn Quan 20e40d505a Bug 1040668 part 11 - Move line leadings adjusting code into a separate function in nsLineLayout. r=dholbert
--HG--
extra : source : f4d53f54b2e925eef8da6c6749497888527057bb
2015-11-28 11:56:33 +11:00
Xidorn Quan 65859175cd Bug 1052924 followup - Move the XXX comment to the right field. DONTBUILD 2015-11-19 18:00:25 +11:00
Jonathan Kew 4e6c40d7ea 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 04722fa8f9 Bug 1120300 - Export WritingModes.h as mozilla/WritingModes.h. r=jfkthame 2015-03-26 18:29:31 +11:00
Xidorn Quan 3bddba82c5 Bug 1141842 - Add LastOptionalBreakPriority to nsLineLayout to simplify some code. r=roc
--HG--
extra : source : 99f9967c5eef6b1d032ae0b3b778a06b28e21d07
2015-03-11 14:14:48 +11:00
Xidorn Quan 728e9e7a08 Bug 1135361 - Fix position of ruby annotation in vertical-rl mode when justification is applied to the base. r=jfkthame
--HG--
extra : source : 9e051be10b37ed8c189bcae17fe8cb95b490d661
2015-02-24 14:46:29 +11:00
Xidorn Quan 5b4a640a88 Bug 1134206 part 1 - Remove mZeroEffectiveSpanBox flag from PerSpanData. r=roc
--HG--
extra : source : 63758b6ca39d69218c04b9ecb081a78ba2f87b2e
2015-02-19 22:39:19 +13:00
Xidorn Quan af2bbac201 Bug 1133697 part 3 - Make ruby text frame not continue text run. r=roc
--HG--
extra : source : b9d1f775565347a2bc506b163b91b5c522e0a366
2015-02-18 17:20:02 +13:00
Xidorn Quan 6622361f7b Bug 1055676 part 2 - Move inter-frame justification assignment to an independent function. r=roc
--HG--
extra : source : 8e0084f1fcc9daba3780cbef92b73d6234ad5180
2015-02-17 18:01:49 +13:00
Xidorn Quan c734dc18d4 Bug 1132008 part 3 - Remove unused code in nsLineLayout. r=dbaron
This code was originally introduced in bug 1055665 part 3.

--HG--
extra : source : a784dd2fe15b67f5e9f0ea380db1bfb6d65ad211
2015-02-17 14:25:18 +13:00
Xidorn Quan 63cd3802b6 Bug 1132008 part 2 - Sync bounds of <rt>s in line layout. r=dbaron
--HG--
extra : source : cd29b50ebcc6839c63acbaf9cab4893103967eda
2015-02-17 14:25:18 +13:00
Simon Montagu 9cdb41a6f4 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 65f439f542 Bug 1089431 part 3 - Make line breaking inside ruby be triggered at correct time. r=jfkthame
--HG--
extra : rebase_source : 82e740ba6a5192e68f8dfa5b7f3634dc4dc971f7
extra : source : e4932342e22db87e3da1d7847f6a6c984c56db9f
2015-02-11 10:26:56 +11:00
Nicholas Nethercote 242708cf72 Bug 1127201 (attempt 2, part 1) - Replace most NS_ABORT_IF_FALSE calls with MOZ_ASSERT. r=Waldo.
--HG--
extra : rebase_source : 488e401ff87e31a2074c4108c4df0572d9536667
2015-02-09 14:34:50 -08:00
Andrew McCreight d3826daa16 Back out Bug 1127201 (part 2) for various problems. 2015-02-06 15:04:32 -08:00
Nicholas Nethercote d34f0301b8 Bug 1127201 (part 2) - Convert all NS_ABORT_IF_FALSE calls to MOZ_ASSERT. r=Waldo.
--HG--
extra : rebase_source : 99182e70335d2b5ff95f8c528ae992d37294be3a
2015-02-04 20:05:36 -08:00
Xidorn Quan 88bf1ccda8 Bug 1121684 - Move one-liners in nsLineLayout.cpp to the header. r=roc
--HG--
extra : source : 1d3128f4f31f9b4998dc09c130657d54e729bb20
extra : amend_source : 21d2320d6699aa6294a233cb515f226500f6879a
2015-01-15 15:52:27 +11:00
Xidorn Quan 7969797ad3 Bug 1055658 part 4 - Revert RubyReflowState. r=dbaron
--HG--
extra : source : 27e60ddbd077439dadd09641ab54fc7eef09c69f
2015-01-13 20:04:41 +11:00
Xidorn Quan 58446e500f Bug 1055658 part 2 - Add relative positioning support for ruby annotations. r=dbaron
--HG--
extra : source : e15efc6ea7d8fd27cbb334fbab2ba85b0f6868dd
2015-01-13 20:04:41 +11:00
Xidorn Quan 109db9aef5 Bug 1055658 part 1 - Move code for applying relative position to an independent method. r=dbaron
--HG--
extra : source : 7ba6cbbf02828b4d6d55bd056e92243423eab6d0
2015-01-13 20:04:41 +11:00
Xidorn Quan 60705d6a24 Bug 1120313 - Fix nested ruby inside ruby annotation. r=dbaron
--HG--
extra : source : ea44dcc7bf0e008d6669a00d107529a97ab1c84d
2015-01-13 15:14:46 +11:00
Nigel Babu 053a7d3408 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