Matt Woodrow
d99a15fae2
Bug 1539673 - Support fallible display item construction. r=miko
...
Differential Revision: https://phabricator.services.mozilla.com/D25167
--HG--
extra : moz-landing-system : lando
2019-04-01 16:53:11 +00: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
Emilio Cobos Álvarez
dad3a20b22
Bug 1525955 - Include anon boxes in CSSPseudoElementType, to remove ComputedStyle::mPseudoTag. r=heycam
...
This is more consistent with what the Rust bits of the style system do, and
removes a pointer from ComputedStyle which is always nice.
This also aligns the Rust bits with the C++ bits re. not treating xul pseudos as
anonymous boxes. See the comment in nsTreeStyleCache.cpp regarding those.
Can't wait for XUL trees to die.
Depends on D19001
Differential Revision: https://phabricator.services.mozilla.com/D19002
--HG--
extra : moz-landing-system : lando
2019-02-19 13:44:33 +00:00
Ting-Yu Lin
6694012956
Bug 1527519 Part 2 - Replace some nsLayoutUtils::GetAsBlock() with nsIFrame::IsBlockFrameOrSubclass(). r=mats
...
Depends on D19860
Differential Revision: https://phabricator.services.mozilla.com/D19861
--HG--
extra : moz-landing-system : lando
2019-02-15 01:38:04 +00:00
Doug Thayer
a848222b53
Bug 1441308 - Split out document pieces of WebRenderLayerManager r=jrmuizel
...
Per our discussion, this patch splits out the state management bits of
WebRenderLayerManager, allowing for them to be maintained per-document.
Differential Revision: https://phabricator.services.mozilla.com/D13577
--HG--
extra : moz-landing-system : lando
2019-01-07 21:33:10 +00:00
Emilio Cobos Álvarez
4591031b65
Bug 1513012 - Move overflow to use cbindgen. r=heycam
...
It's one of the most annoying / hacky mako bits we have.
Differential Revision: https://phabricator.services.mozilla.com/D14084
2018-12-11 03:07:08 +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
Matt Woodrow
fab384fd5f
Bug 1420628
- Avoid allocations for each text display item. r=jrmuizel
...
MozReview-Commit-ID: HoRHQVEdJeT
Differential Revision: https://phabricator.services.mozilla.com/D12720
--HG--
extra : moz-landing-system : lando
2018-11-25 22:57:04 +00:00
Doug Thayer
3241d9c80c
Bug 1489588 - Allocate TextOverflows inline r=mattwoodrow
...
Summary:
Once the nsDisplayList difficulties are sorted out, this
becomes rather trivial.
Depends on D5293
Reviewers: mattwoodrow
Reviewed By: mattwoodrow
Bug #: 1489588
Differential Revision: https://phabricator.services.mozilla.com/D5294
--HG--
extra : histedit_source : 9eae7ebf1455acae8a9ffaff90ce8f92e1e62566
2018-09-11 04:31:40 +03:00
Gerald Squelart
b099eab802
Bug 1488684 - Made nsIFrame-derived classes and some others 'final' where possible - r=dbaron
...
All classes deriving from nsIFrame that did not have any subclasses themselves
(at the time of writing this patch) have been marked with `final`.
Some other Layout classes have also been made final, but this was opportunistic
while working on nsIFrame subclasses, and is definitely not exhaustive, further
patches welcome; refer to bug 1332680.
Advantages of marking a class final include:
- Allowing the compiler to devirtualize some method calls (i.e., calling
virtual functions directly instead of going through the vtable),
- Indicating that the class is not currently subclassed,
- Preventing subclassing without being aware that this would remove the
finalization benefits of the parent class.
`final` does not signify that these classes should *never* be subclassed, this
is left for developers to decide.
Differential Revision: https://phabricator.services.mozilla.com/D5020
--HG--
extra : moz-landing-system : lando
2018-09-06 01:23:14 +00:00
Lee Salzman
daa9f58360
Bug 1479196 - add support to TextDrawTarget for defining and pushing WR images. r=nical
2018-08-21 12:36:48 -04:00
Cameron McCormack
99d9013b12
Bug 1482782 - Part 5: Move CSS anonymous box atoms to nsGkAtoms. r=njn,emilio
...
Summary: Depends On D3283
Reviewers: njn!, emilio!
Tags: #secure-revision
Bug #: 1482782
Differential Revision: https://phabricator.services.mozilla.com/D3284
2018-08-15 15:46:39 +10:00
Narcis Beleuzu
d20e8e7674
Backed out 8 changesets (bug 1483121, bug 1482782) for build bustages on nsDirectoryService.cpp. CLOSED TREE
...
Backed out changeset 0a8334bbcf45 (bug 1483121)
Backed out changeset cb2dcb859071 (bug 1482782)
Backed out changeset c834d4ca2eef (bug 1482782)
Backed out changeset 887de0efbb67 (bug 1482782)
Backed out changeset 018fdb50a6be (bug 1482782)
Backed out changeset 33a8aa8096c9 (bug 1482782)
Backed out changeset e3632354f16e (bug 1482782)
Backed out changeset 46f8319bee82 (bug 1482782)
2018-08-15 09:14:41 +03:00
Cameron McCormack
d9edae8bde
Bug 1482782 - Part 5: Move CSS anonymous box atoms to nsGkAtoms. r=njn,emilio
...
Summary: Depends On D3283
Reviewers: njn!, emilio!
Tags: #secure-revision
Bug #: 1482782
Differential Revision: https://phabricator.services.mozilla.com/D3284
2018-08-15 15:46:39 +10:00
Xidorn Quan
8421040c69
Bug 1479995 - Rename ScrollbarStyles to ScrollStyles. r=mstange
...
This change also renames several related functions, as well as fields,
and the header is moved into EXPORTS.mozilla given it is defined under
mozilla namespace.
MozReview-Commit-ID: LqCdcW8fmUN
--HG--
rename : layout/base/ScrollbarStyles.cpp => layout/base/ScrollStyles.cpp
rename : layout/base/ScrollbarStyles.h => layout/base/ScrollStyles.h
extra : rebase_source : 8933f3bca88d5db4b9508e3947f695ecf7511b3e
2018-08-01 16:14:26 +10:00
Matt Woodrow
0d65266918
Bug 1460491 - Part 1: Split nsDisplayItem::mVisibleRect into two members, one for each stated purpose. Gets rid of the save/restore since we no longer modify the building rect. r=jnicol
...
MozReview-Commit-ID: 5wcsSoZRN44
--HG--
extra : rebase_source : 1bf7d655b048a972e392514542aee171e20afe82
2018-05-16 15:56:32 +12:00
Boris Zbarsky
f7d68d6078
Bug 1387143 part 21. Remove nsISelection getters for anchor and focus points. r=mats
...
Instead of copying spec-duplicating comments from nsISelection.idl to
Selection.webidl, this just points the latter to the right spec.
2018-05-08 13:52:38 -04:00
Chris Peterson
71422dcaa9
Bug 1457813 - Part 2: Replace non-asserting NS_PRECONDITIONs with MOZ_ASSERTs. r=froydnj
...
s/NS_PRECONDITION/MOZ_ASSERT/ and reindent
MozReview-Commit-ID: KuUsnVe2h8L
--HG--
extra : source : c14655ab3df2c9b1465dd8102b9d25683359a37b
2018-04-28 12:50:58 -07:00
Sebastian Hengst
0819f35e51
Backed out 4 changesets (bug 525063) on request from Andi. a=backout
...
Backed out changeset 516c4fb1e4b8 (bug 525063)
Backed out changeset 6ff8aaef2866 (bug 525063)
Backed out changeset bf13e4103150 (bug 525063)
Backed out changeset d7d2f08e051c (bug 525063)
2018-04-13 16:01:28 +03:00
Tristan Bourvon
a3a77c0312
Bug 525063 - Initialize uninitialized class attributes in m-c. r=ehsan
2018-04-10 21:11:02 +02:00
Matt Woodrow
199c2a649c
Bug 1450189 - Don't invalidate display items when we get a new style context. r=miko
2018-04-04 16:17:25 +12:00
Emilio Cobos Álvarez
e341b20ec4
Bug 1447483: Merge nsStyleContext and ServoStyleContext, rename to ComputedStyle. r=jwatt on a CLOSED TREE
...
MozReview-Commit-ID: JPopq0LudD
2018-03-22 20:06:24 +01:00
Emilio Cobos Álvarez
5dd797f154
Back out changeset b683bb3f22a1 (Bug 1447483) for not landing with all the files. r=me on a CLOSED TREE
...
This reverts commit 1808914126bb9f9e4a82d2c3d7ac961885fe7d62.
MozReview-Commit-ID: 5skESBseEvo
2018-03-22 20:05:22 +01:00
Emilio Cobos Álvarez
ca5ac79cca
Bug 1447483: Merge nsStyleContext and ServoStyleContext, rename to ComputedStyle. r=jwatt
...
MozReview-Commit-ID: JPopq0LudD
2018-03-22 19:48:42 +01:00
Matt Woodrow
4183152e2d
Bug 1436904 - Part 1: Add a static constructor function for display items. r=Bas
2018-02-13 13:43:28 +13:00
Dorel Luca
bd05e3853c
Backed out 3 changesets (bug 1436904) for many crashes see bugs: 1440281, 1440302, 1440303, 1440313. a=backout
...
Backed out changeset 27f0762d4472 (bug 1436904)
Backed out changeset 27640f52e188 (bug 1436904)
Backed out changeset 2b4d117c27dc (bug 1436904)
2018-02-22 17:28:59 +02:00
Matt Woodrow
e485bba27f
Bug 1436904 - Part 1: Add a static constructor function for display items. r=Bas
2018-02-13 13:43:28 +13:00
Andreea Pavel
569609f11d
Merge mozilla-central to mozilla-inbound r=merge a=merge on a CLOSED TREE
...
--HG--
rename : devtools/client/webconsole/new-console-output/test/mochitest/test-bug_1050691_click_function_to_source.html => devtools/client/webconsole/new-console-output/test/mochitest/test-click-function-to-source.html
rename : devtools/client/webconsole/new-console-output/test/mochitest/test-bug_1050691_click_function_to_source.js => devtools/client/webconsole/new-console-output/test/mochitest/test-click-function-to-source.js
rename : devtools/client/webconsole/new-console-output/test/mochitest/test-bug-603750-websocket.html => devtools/client/webconsole/new-console-output/test/mochitest/test-websocket.html
rename : devtools/client/webconsole/new-console-output/test/mochitest/test-bug-603750-websocket.js => devtools/client/webconsole/new-console-output/test/mochitest/test-websocket.js
rename : taskcluster/docker/android-build/dot-config/pip/pip.conf => taskcluster/docker/recipes/dot-config/pip/pip.conf
rename : toolkit/components/places/tests/bookmarks/test_protectRoots.js => toolkit/components/places/tests/legacy/test_protectRoots.js
extra : rebase_source : 52cfc27d3ad7f31d2cb758802a4e718c08e9ffe2
2018-01-04 23:33:08 +02:00
Mats Palmgren
49526eeeb6
Bug 1403986 part 1 - [css-ui] Treat text frames with only trimmable space as empty for 'text-overflow' purposes. r=jfkthame
2018-01-04 20:43:55 +01:00
Mats Palmgren
bd8e3761b9
Bug 1343980 - [css-ui] Skip anonymous boxes (rather than all pseudos) when looking for the 'overflow' style frame. r=bz
2018-01-04 20:43:55 +01:00
Alexis Beingessner
42b068a0b3
Bug 1406231 - remove the TextLayer class, and all remaining traces of it. r=mattwoodrow
...
MozReview-Commit-ID: 5fmKfkO6hnO
--HG--
extra : rebase_source : 3572bba4d1aec75af2ef19d52351d7ea2137cc53
2017-12-07 17:13:05 -05:00
Miko Mynttinen
2fc0722497
Bug 1425078 - Remove nsDisplayList::AppendNewToTop and nsDisplayList::AppendNewToBottom r=mattwoodrow
...
MozReview-Commit-ID: E3neKT2sV4Q
--HG--
extra : rebase_source : 98b65e4c82f8a965df211e828bc68d46e7a6716e
2017-12-13 11:23:04 -06:00
Cosmin Sabou
9937354d94
Backed out changeset 497efe3a096b (bug 1406231) for windows build bustages on build\build\src\obj-firefox\dist\include\mozilla/layers/ScrollingLayersHelper.h(48) r=backout on a CLOSED TREE
2017-12-08 13:04:05 +02:00
Alexis Beingessner
90d0f66f33
Bug 1406231 - remove the TextLayer class, and all remaining traces of it. r=mattwoodrow
...
MozReview-Commit-ID: 5fmKfkO6hnO
--HG--
extra : rebase_source : 4749bff0a8d799f7a81d9f6e32e40e14b9f24191
2017-12-07 17:13:05 -05:00
Matt Woodrow
aab0cbe92c
Bug 1406727. r=froydnj
2017-11-16 16:09:28 +13:00
Narcis Beleuzu
af710e4746
Backed out changeset 0f783930e1b2 (bug 1406727) for GTest failures on ArenaAllocator. r=backout on a CLOSED TREE
2017-11-16 07:45:06 +02:00
Matt Woodrow
5e1a10f3be
Bug 1406727. r=froydnj
2017-11-16 16:09:28 +13:00
Mats Palmgren
1c2b8c222e
Bug 1414666 part 1 - Add nsIFrame::PresShell() for convenient access to the shell. r=emilio
...
MozReview-Commit-ID: 8FPTPKWyVtY
2017-11-09 03:00:48 +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
Jonathan Kew
793b63713b
Bug 1408612 - patch 1 - Use single-precision floats more consistently for glyph position computations when drawing text. r=jrmuizel
2017-10-24 09:59:09 +01:00
Markus Stange
49821228fb
Bug 1365528 - Respect mDisableSubpixelAA on nsDisplayTextOverflowMarker items. r=mattwoodrow
...
MozReview-Commit-ID: HictqQFOvbK
--HG--
extra : rebase_source : 29b422f66ec673ae49eb370940df353318072523
2017-10-20 15:21:54 -04:00
Matt Woodrow
d8a662f0d2
Bug 1406727. r=mstange,froydnj a=abillings
...
--HG--
extra : rebase_source : a9932eb10d3ca451e1ce3a424cd48e957801f593
2017-10-17 15:19:44 +13:00
Alexis Beingessner
eeaa4695dc
Bug 1406510 - rewrite TextDrawTarget to push directly into display list. r=jrmuizel
...
MozReview-Commit-ID: 7rPGlYmmgeg
2017-10-12 17:17:41 -04:00
Nicholas Nethercote
d225f7151b
Bug 1400460 - Rename nsIAtom as nsAtom. r=hiro.
...
(Path is actually r=froydnj.)
Bug 1400459 devirtualized nsIAtom so that it is no longer a subclass of
nsISupports. This means that nsAtom is now a better name for it than nsIAtom.
MozReview-Commit-ID: 91U22X2NydP
--HG--
rename : xpcom/ds/nsIAtom.h => xpcom/ds/nsAtom.h
extra : rebase_source : ac3e904a21b8b48e74534fff964f1623ee937c67
2017-10-03 09:05:19 +11:00
Alexis Beingessner
c0bfb121ad
Bug 1405927 - Change PushGlyphs to take webrender formats. r=jrmuizel
...
Also cleans up a bunch of TextDrawTarget code as fallout.
This is a significant perf win for textFrames.
MozReview-Commit-ID: J1BDkXZdvnc
--HG--
extra : rebase_source : 5a0769a53cadb55a074cfe5d718e259401fa7028
2017-10-04 13:49:51 -04:00
Kartikaya Gupta
dbe077b3f1
Bug 1403915 - Remove the IsLayersFreeTransaction() machinery and assume it's always true. r=jrmuizel
...
MozReview-Commit-ID: 7FYVirQ5pal
--HG--
extra : rebase_source : 4b33fba54776003b4f0d45b89be07916db1f2340
2017-10-03 16:31:07 -04:00
Markus Stange
387bf73f2e
Bug 1404137 - Fix unified-build problem in TextOverflow.cpp r=botond,Gankro
...
MozReview-Commit-ID: GuJp2rHuHXj
--HG--
extra : rebase_source : e194cb3bcb87997ebfb8c635e6d18caf950df091
2017-09-29 17:56:48 -04:00
Wes Kocher
1c60b714fa
Backed out changeset 35eef74c99f2 (bug 1404137) for windows build bustage a=backout
...
MozReview-Commit-ID: 7p79NTmrSSK
2017-09-29 11:18:12 -07:00
Markus Stange
581a74f989
Bug 1404137 - Fix unified-build problem in TextOverflow.cpp r=Gankro
...
MozReview-Commit-ID: 3r2mkbZCprX
--HG--
extra : rebase_source : 3aabd01c29c92da0cbeac9818641992ed4928b83
2017-09-28 18:08:52 -04:00
Matt Woodrow
0b12597ec2
Bug 1402204 - Remove NS_SCROLLFRAME_INVALIDATE_CONTENTS_ON_SCROLL as it doesn't appear to be needed any more. r=mats
2017-09-20 13:12:37 +12:00