Jonathan Kew
c77084245d
Bug 1732674 - Make nsLineIterator a lightweight wrapper for an nsLineList_iterator instead of building a separate array. r=emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D126671
2021-11-09 15:55:54 +00:00
Norisz Fay
489e82dcc1
Backed out 2 changesets (bug 1732674) for line iterator crashes (bug 1733047) a=backout
...
Backed out changeset 730555699380 (bug 1732674)
Backed out changeset f529288a6dde (bug 1732674)
2021-10-20 12:24:14 +03:00
Jonathan Kew
a6be3734b3
Bug 1732674 - Make nsLineIterator a lightweight wrapper for an nsLineList_iterator instead of building a separate array. r=emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D126671
2021-10-19 09:29:13 +00:00
criss
55677726ee
Backed out changeset ce929d9e000a (bug 1732674) for causing nsLineIterator::FindLineContaining crashes (bug 1733047) . a=aryx
2021-10-16 12:46:38 +03:00
Jonathan Kew
a66831cb8c
Bug 1732674 - Make nsLineIterator a lightweight wrapper for an nsLineList_iterator instead of building a separate array. r=emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D126671
2021-10-15 13:13:04 +00:00
Alexandru Michis
e912fb2466
Backed out changeset a4ebb978f792 (bug 1732674) for causing layout crashes (bug 1733047). a=backout
2021-09-30 17:38:15 +03:00
Jonathan Kew
6d191d1715
Bug 1732674 - Make nsLineIterator a lightweight wrapper for an nsLineList_iterator instead of building a separate array. r=emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D126671
2021-09-29 17:55:44 +00:00
Cristian Tuns
9285106fbd
Backed out changeset 43d9f690a94f (bug 1732674) to fix nsLineIterator crashes (bug 1733047). CLOSED TREE
2021-09-29 03:45:51 -04:00
Jonathan Kew
7fe40d2b21
Bug 1732674 - Make nsLineIterator a lightweight wrapper for an nsLineList_iterator instead of building a separate array. r=emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D126671
2021-09-28 11:34:02 +00:00
Jonathan Kew
e8d5080a53
Bug 1732355 - Eliminate the nsILineIterator::GetNextSiblingOnLine virtual method, whose only implementations are trivial. r=layout-reviewers,emilio
...
Depends on D126532
Differential Revision: https://phabricator.services.mozilla.com/D126533
2021-09-24 14:20:07 +00:00
Jonathan Kew
fb9588e175
Bug 1732268 - Remove redundant failure-checks from nsLineIterator initialization, as it uses infallible allocation. r=dholbert
...
This means nsBlockFrame::GetLineIterator is also infallible, so callers that know
they're dealing with an nsBlockFrame (not an arbitrary nsIFrame) don't need to
check for null.
Differential Revision: https://phabricator.services.mozilla.com/D126470
2021-09-24 14:20:05 +00:00
Simon Giesecke
628cc55f22
Bug 708901 - Migrate to nsTHashSet in layout. r=emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D108597
2021-03-24 17:56:46 +00:00
Csoregi Natalia
f54ee076ae
Backed out 13 changesets (bug 708901, bug 1184468) for causing build bustage on GeckoViewHistory.cpp. CLOSED TREE
...
Backed out changeset b1e4c01e63b8 (bug 708901)
Backed out changeset 37b52cce83c0 (bug 708901)
Backed out changeset eee75f33f060 (bug 708901)
Backed out changeset 479bf64c7986 (bug 708901)
Backed out changeset 15a8fb94d15d (bug 708901)
Backed out changeset be31ccd9a61d (bug 708901)
Backed out changeset fc54f4eaedd5 (bug 708901)
Backed out changeset 03c3a56c3d13 (bug 708901)
Backed out changeset 73f11d3c1298 (bug 708901)
Backed out changeset aed22fd80893 (bug 708901)
Backed out changeset 74d8249fbe7e (bug 708901)
Backed out changeset acb725eb3c1d (bug 1184468)
Backed out changeset 70f3ea6efec4 (bug 1184468)
2021-03-24 19:26:20 +02:00
Simon Giesecke
c73f87b72b
Bug 708901 - Migrate to nsTHashSet in layout. r=emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D108597
2021-03-24 16:58:58 +00:00
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
05d16fd80b
Bug 1677635 Part 1 - Add an enum class mozilla::OverflowType, and remove NS_FOR_FRAME_OVERFLOW_TYPES. r=layout-reviewers,emilio
...
The existing nsOverflowType will be removed in the next part.
Also, I change `UnionRectIncludeEmpty` to `UnionRectEdges` in two FIXME
comments because the method is renamed in Bug 641426 Part 5
https://hg.mozilla.org/mozilla-central/rev/90e46b3e8e6f
Differential Revision: https://phabricator.services.mozilla.com/D97232
2020-11-17 23:45:09 +00:00
Kagami Sascha Rosylight
cc03864743
Bug 1623764 - Part 3: Expose IsLineWrapped via LineInfo r=emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D85922
2020-09-09 23:45:29 +00:00
Dorel Luca
c243829674
Backed out 5 changesets (bug 1623764) for WPT failures in /editing/run/forwarddelete.html. CLOSED TREE
...
Backed out changeset 838b1a256f25 (bug 1623764)
Backed out changeset 00911e3c92c3 (bug 1623764)
Backed out changeset 5f7d278953d7 (bug 1623764)
Backed out changeset 0059379a3c29 (bug 1623764)
Backed out changeset 6e3a9276ec41 (bug 1623764)
2020-08-10 09:07:48 +03:00
Kagami Sascha Rosylight
96a85f4c16
Bug 1623764 - Part 3: Expose IsLineWrapped via LineInfo r=emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D85922
2020-08-09 12:58:13 +00:00
Cosmin Sabou
1fd1260b5e
Backed out 4 changesets (bug 1623764) for mochitest failures on test_movement_by_characters.html. CLOSED TREE
...
Backed out changeset f927522d89bc (bug 1623764)
Backed out changeset c100eb8ae430 (bug 1623764)
Backed out changeset 1147ded16458 (bug 1623764)
Backed out changeset 7af572ec5edf (bug 1623764)
2020-08-06 08:09:42 +03:00
Kagami Sascha Rosylight
d41518f2d3
Bug 1623764 - Part 3: Expose IsLineWrapped via LineInfo r=emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D85922
2020-08-05 13:24:22 +00:00
Ting-Yu Lin
fdc00547f6
Bug 1637130 - Rename visual overflow to ink overflow. r=dbaron
...
This patch is generated by:
```
# Rename the nsOverflowType enum.
rg -l "eVisualOverflow" layout/ gfx/ | xargs sed -i "s/eVisualOverflow/eInkOverflow/g"
# Rename and drop the "Get" prefix from various functions.
rg -l "GetVisualOverflowRect" layout/ gfx/ | xargs sed -i "s/GetVisualOverflowRect/InkOverflowRect/g"
rg -l "GetPreEffectsVisualOverflowRect" layout/ gfx/ | xargs sed -i "s/GetPreEffectsVisualOverflowRect/PreEffectsInkOverflowRect/g"
rg -l "GetVisualOverflowFromDeltas" layout/ gfx/ | xargs sed -i "s/GetVisualOverflowFromDeltas/InkOverflowFromDeltas/g"
rg -l "GetScrollableOverflowRect" layout/ gfx/ | xargs sed -i "s/GetScrollableOverflowRect/ScrollableOverflowRect/g"
# Rename, drop the "Get" prefix, and change the suffix "Area" to "Rect"
# (because they return nsRect) for the two methods in nsLineBox.
rg -l "GetVisualOverflowArea" layout/ gfx/ | xargs sed -i "s/GetVisualOverflowArea/InkOverflowRect/g"
rg -l "GetScrollableOverflowArea" layout/ gfx/ | xargs sed -i "s/GetScrollableOverflowArea/ScrollableOverflowRect/g"
# Rename rest of the functions and variables.
rg -l "VisualOverflow" layout/ gfx/ | xargs sed -i "s/VisualOverflow/InkOverflow/g"
rg -l "visual overflow" layout/ gfx/ | xargs sed -i "s/visual overflow/ink overflow/g"
rg -l "visualOverflow" layout/ gfx/ | xargs sed -i "s/visualOverflow/inkOverflow/g"
rg -l "visOverflow" layout/ gfx/ | xargs sed -i "s/visOverflow/inkOverflow/g"
rg -l "vis-overflow" layout/ gfx/ python/ | xargs sed -i "s/vis-overflow/ink-overflow/g"
./mach clang-format
```
Differential Revision: https://phabricator.services.mozilla.com/D84231
2020-07-20 20:17:36 +00:00
Kagami Sascha Rosylight
f4c2e30310
Bug 1652188 - Return struct from nsILineIterator::GetLine() r=emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D83215
2020-07-13 18:36:30 +00:00
Ting-Yu Lin
4ecda7f556
Bug 1651202 Part 2 - Minor format tweaks for block frame's frame tree output. r=heycam
...
Make the following tweak so that they are consistent with others.
* Add a space before the open angle bracket. This is at the end of
`Block(div)(1)@7f10e25de5d0 ... <`
* Tweak nsLineBox format.
`line 7f10e25de808: count=1` becomes `line@7f10e25de808 count=1`.
* Tweak child list format.
`AbsoluteList 0x7f10e3c7e560` becomes `AbsoluteList@7f10e3c7e560`
Differential Revision: https://phabricator.services.mozilla.com/D82603
2020-07-08 05:37:39 +00:00
Kagami Sascha Rosylight
f6d17b63b5
Bug 1630704 - Part 28: Remove nsFrame r=emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D81865
2020-07-06 22:38:11 +00:00
Kagami Sascha Rosylight
21f2b48e01
Bug 1647525 - Use HasAnyStateBits() in remaining layout files r=emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D81230
2020-06-28 01:00:19 +00:00
Mirko Brodesser
9d47d3f4c6
Bug 1626665: part 11) Declare nsILineIterator::GetNumLines const. r=hsivonen
...
Depends on D70015
Differential Revision: https://phabricator.services.mozilla.com/D70016
--HG--
extra : moz-landing-system : lando
2020-04-08 06:57:07 +00:00
Mirko Brodesser
b872cdb707
Bug 1626665: part 10) Declare nsILineIterator::FindFrameAt const. r=hsivonen
...
Depends on D70014
Differential Revision: https://phabricator.services.mozilla.com/D70015
--HG--
extra : moz-landing-system : lando
2020-04-08 06:57:00 +00:00
Mirko Brodesser
68794c6bc5
Bug 1626665: part 8) Declare nsLineIterator::GetNextSiblingOnLine const. r=hsivonen
...
Depends on D70012
Differential Revision: https://phabricator.services.mozilla.com/D70013
--HG--
extra : moz-landing-system : lando
2020-04-08 06:55:41 +00:00
Mirko Brodesser
6533647d1c
Bug 1626665: part 7) Declare nsILineIterator::GetLine const. r=hsivonen
...
Differential Revision: https://phabricator.services.mozilla.com/D70012
--HG--
extra : moz-landing-system : lando
2020-04-08 06:50:57 +00:00
Ting-Yu Lin
af15e4dfe8
Bug 1627398 Part 2 - Support printing frame tree in CSS pixels. r=heycam
...
Audit all the types related to app units [1] printed in
nsIFrame::List (and all the methods that override it), and use
ConvertToString to convert their printing format to CSS pixels if
needed.
In addition, add operator<< to BaseCoord so that it can cooperate with
mozilla::ToString, which is needed by ConvertToString.
[1] The types include nsRect, nsSize, nscoord, LogicalRect, and
LogicalSize.
Differential Revision: https://phabricator.services.mozilla.com/D69915
--HG--
extra : moz-landing-system : lando
2020-04-08 00:18:52 +00:00
Ting-Yu Lin
5610a9711b
Bug 1627398 Part 1 - Convert nsIFrame::List flags to EnumSet. r=heycam
...
Differential Revision: https://phabricator.services.mozilla.com/D69914
--HG--
extra : moz-landing-system : lando
2020-04-08 00:22:19 +00:00
Ting-Yu Lin
ae3f310d62
Bug 1596339 Part 6 - Use ToString() on nsPoint and nsSize in frame tree dump. r=dholbert
...
Differential Revision: https://phabricator.services.mozilla.com/D52967
--HG--
extra : moz-landing-system : lando
2019-11-15 03:59:28 +00:00
Ting-Yu Lin
fa2ec9dc21
Bug 1596339 Part 5 - Use ToString() on nsRect in frame tree dump. r=dholbert
...
Differential Revision: https://phabricator.services.mozilla.com/D52966
--HG--
extra : moz-landing-system : lando
2019-11-15 03:52:14 +00:00
Ting-Yu Lin
9b33cffdf0
Bug 1596339 Part 2 - Implement operator<< for LogicalRect, and use it in frame tree dump. r=dholbert
...
This change uses parentheses, i.e. '(' and ')', to enclose the dimension
of LogicalRect. This match the output of BaseRect's operator<<.
Note: This introduces inconsistency in the frame tree dump because some
of the output format still use braces to enclose the data. But in later
patches, I'll gradually change the format to use parentheses.
Differential Revision: https://phabricator.services.mozilla.com/D52963
--HG--
extra : moz-landing-system : lando
2019-11-15 03:51:56 +00:00
Ting-Yu Lin
198f20c438
Bug 1596339 Part 1 - Implement operator<< for WritingMode, and use it in frame tree dump. r=dholbert
...
WritingMode.h already depends on ostream header implicitly via
nsBidiUtils.h -> nsString.h. For completeness, I still add #include
<ostream>.
While I'm here, I make the format of debug prints in nsLineBox more
consistent with the counter-part in nsFrame. Some of them will be
revised in the later patches.
Differential Revision: https://phabricator.services.mozilla.com/D52962
--HG--
extra : moz-landing-system : lando
2019-11-15 03:51:54 +00:00
Ting-Yu Lin
d0f336a7a6
Bug 1591546 Part 1 - Add WritingMode::IsBidiRTL(). r=jfkthame
...
Differential Revision: https://phabricator.services.mozilla.com/D50771
--HG--
extra : moz-landing-system : lando
2019-10-28 09:33:05 +00:00
Cameron McCormack
d4d395fb49
Bug 1576018 - Tweak frame tree debugging output. r=TYLin
...
Differential Revision: https://phabricator.services.mozilla.com/D43178
--HG--
extra : moz-landing-system : lando
2019-08-23 05:31:37 +00:00
L. David Baron
2af9d08603
Bug 1568501 - Search from the end of the line rather than the start, like this code did before bug 1566945. r=dholbert
...
Differential Revision: https://phabricator.services.mozilla.com/D39268
--HG--
extra : moz-landing-system : lando
2019-07-25 21:02:40 +00:00
Masayuki Nakano
f5737567dd
Bug 1544343 - part 3: Make layout use mozilla::PresShell instead of nsIPresShell as far as possible r=emilio
...
This patch changes remaining things under `layout/`. However, there are some
places which still need to use `nsIPresShell`. That will be fixed in a
follow up bug.
Differential Revision: https://phabricator.services.mozilla.com/D27477
--HG--
extra : moz-landing-system : lando
2019-04-16 07:25:10 +00:00
Masayuki Nakano
9165a150a1
Bug 1540930 - Make nsPresContext use mozilla::PresShell directly rather than via nsIPresShell r=emilio
...
`nsPresContext` should use `mozilla::PresShell` directly instead of
`nsIPresShell`. This patch makes it.
Unfortunately, `nsPresContext` and `nsIFrame` have `PresShell()`. Therefore,
we cannot use `PresShell*` in its methods so that this patch uses `mozilla::`
namespace prefix.
It might be better to rename them as `PresShellPtr()` in another bug.
Differential Revision: https://phabricator.services.mozilla.com/D25721
--HG--
extra : moz-landing-system : lando
2019-04-03 12:40:26 +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
Ryan Hunt
b936c00a65
Bug 1523969 part 14 - Move method definition inline comments to new line in 'layout/'. r=dholbert
...
Differential Revision: https://phabricator.services.mozilla.com/D21115
--HG--
extra : rebase_source : 4d65c07d8822f3a54ac881b5d0f55468ce884554
2019-02-25 16:09:24 -06:00
Cameron McCormack
1ea7c3efc9
Bug 1511854 - Part 2: Fix some more formatting oddities in layout/ after the clang-format. r=TYLin
...
Depends on D13686
Differential Revision: https://phabricator.services.mozilla.com/D13775
--HG--
extra : moz-landing-system : lando
2018-12-05 18:44:05 +00: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
Mats Palmgren
0e1ec1a9f1
Bug 1487221 - Add memory reporting for nsLineBox::mFrames. r=bz
2018-09-19 05:27:18 +02:00
Emilio Cobos Álvarez
adf95c2d09
Bug 1476054: Fixes and cleanups for Servo PR #21156 . r=me
...
Similar to the previous patch, logical clear doesn't appear in computed style
objects.
MozReview-Commit-ID: FbN0hiUGzYa
2018-07-17 10:23:26 +02:00
Gurzau Raul
c05f725b1e
Backed out 6 changesets (bug 1476054) for failing on servo/ports/geckolib/glue.rs on a CLOSED TREE
...
Backed out changeset f4941fe345ad (bug 1476054)
Backed out changeset cc571c618e4c (bug 1476054)
Backed out changeset 0a712d7bcb66 (bug 1476054)
Backed out changeset 62293a989ed2 (bug 1476054)
Backed out changeset ef2a43e3fc6c (bug 1476054)
Backed out changeset a2bb0089cf1d (bug 1476054)
2018-07-16 23:56:23 +03:00
Emilio Cobos Álvarez
9325870208
Bug 1476054: Fixes and cleanups for Servo PR #21156 . r=me
...
Similar to the previous patch, logical clear doesn't appear in computed style
objects.
MozReview-Commit-ID: FbN0hiUGzYa
2018-07-16 21:38:46 +02:00
Mats Palmgren
e95647ed68
Bug 1467526 - Add a few MOZ_DIAGNOSTIC_ASSERT in nsLineBox::DeleteLineList to enforce our invariants better. r=emilio
2018-06-07 20:20:34 +02:00