Emilio Cobos Álvarez
23e11d36bb
Bug 760345 - Remove the last usage of lossy currentcolor. r=heycam
...
We don't have lossy currentcolor in the style system anymore, except for a
single property -moz-font-smoothing-background-color.
I could've converted it into a proper StyleColor and thread down all the
necessary information to the font metrics code.
But it doesn't really seem worth it given it's not exposed to the web, so I just
did the simplest thing, which is making currentcolor compute to transparent to
that specific property.
This patch also removes the stores_complex_colors_lossily code and related,
since now we always can cache computed colors.
Differential Revision: https://phabricator.services.mozilla.com/D26187
2019-04-04 22:06:03 +00:00
Emilio Cobos Álvarez
d66be10022
Bug 1541546 - Use the rust color representation. r=heycam
...
Differential Revision: https://phabricator.services.mozilla.com/D25976
2019-04-04 14:53:44 +02:00
Cosmin Sabou
bb77d51f88
Backed out 3 changesets (bug 1541546) for causing build bustages. CLOSED TREE
...
Backed out changeset 895863144707 (bug 1541546)
Backed out changeset 4da6fb98e8f9 (bug 1541546)
Backed out changeset ba71816514eb (bug 1541546)
2019-04-04 15:04:25 +03:00
Emilio Cobos Álvarez
ce13068de0
Bug 1541546 - Use the rust color representation. r=heycam
...
Differential Revision: https://phabricator.services.mozilla.com/D25976
2019-04-04 11:35:16 +00:00
Matt Woodrow
5ff5f07450
Bug 1539673 - Support fallible display item construction. r=miko
...
Differential Revision: https://phabricator.services.mozilla.com/D25167
2019-04-01 16:53:11 +00:00
Emilio Cobos Álvarez
df7afc7ae6
Bug 1535165 - Use cbindgen for text-decoration-line. r=dholbert,boris
...
Differential Revision: https://phabricator.services.mozilla.com/D23412
2019-03-18 17:58:16 +00:00
Ryan Hunt
a96492f0f6
Bug 1523969 part 14 - Move method definition inline comments to new line in 'layout/'. r=dholbert
...
Differential Revision: https://phabricator.services.mozilla.com/D21115
2019-02-25 16:09:24 -06:00
Emilio Cobos Álvarez
9be60117a8
Bug 1528451 - Move code that starts image loads to DidSetComputedStyle. r=heycam
...
This is more consistent with all the other image request code, and handles
pseudo-elements properly without having to add more out-of-band calls to
UpdateStyleOfOwnedChildFrame and such.
Differential Revision: https://phabricator.services.mozilla.com/D20107
2019-02-19 15:00:58 +01:00
Emilio Cobos Álvarez
df05b5492b
Bug 1525371 - Kill ComputedStyle::mPresContext, move the pointer to the frame instead. r=jwatt
...
Differential Revision: https://phabricator.services.mozilla.com/D18734
2019-02-07 11:15:36 +01:00
Emilio Cobos Álvarez
5ac7dcc7cc
Bug 1525134 - Move image loads out of the style struct accessors. r=heycam
...
After this I can pass the document from the caller to ResolveSameStructsAs, and
get rid of the pres context pointer.
Differential Revision: https://phabricator.services.mozilla.com/D18600
2019-02-05 19:47:29 +00:00
Razvan Maries
bb63ca688a
Backed out changeset 919de32d4905 (bug 1525134) for build bustages. CLOSED TREE
2019-02-05 19:36:46 +02:00
Emilio Cobos Álvarez
8bce3786c3
Bug 1525134 - Move image loads out of the style struct accessors. r=heycam
...
After this I can pass the document from the caller to ResolveSameStructsAs, and
get rid of the pres context pointer.
Differential Revision: https://phabricator.services.mozilla.com/D18600
2019-02-05 18:07:18 +01:00
Razvan Maries
ebcf2ddc23
Backed out changeset 992f27cfecac (bug 1525134) for build bustages. CLOSED TREE
2019-02-05 18:54:14 +02:00
Emilio Cobos Álvarez
4702c4f188
Bug 1525134 - Move image loads out of the style struct accessors. r=heycam
...
After this I can pass the document from the caller to
ResolveSameStructsAs, and get rid of the pres context pointer.
Differential Revision: https://phabricator.services.mozilla.com/D18600
2019-02-05 13:45:04 +00:00
Ehsan Akhgari
498e2df734
Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre
...
# ignore-this-changeset
2019-01-18 10:16:18 +01:00
Doug Thayer
270156fb2e
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
2019-01-07 21:33:10 +00:00
Cameron McCormack
638e13698f
Bug 1512716 - Re-indent NS_QUERYFRAME macros after clang-format. r=TYLin
...
Differential Revision: https://phabricator.services.mozilla.com/D13995
2018-12-07 20:00:18 +00:00
Miko Mynttinen
d362fc5ee4
Bug 1512251 - Remove unused render only selection code r=mattwoodrow
...
Differential Revision: https://phabricator.services.mozilla.com/D13829
2018-12-06 19:40:50 +00:00
Benjamin Bouvier
5e1b39e9bd
Bug 1511383: Update vim modelines after clang-format; r=sylvestre
...
- modify line wrap up to 80 chars; (tw=80)
- modify size of tab to 2 chars everywhere; (sts=2, sw=2)
2018-11-30 16:39:55 +01:00
Sylvestre Ledru
e5a134f73a
Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
...
# ignore-this-changeset
2018-11-30 11:46:48 +01:00
Matt Woodrow
6905dc8dc3
Bug 1420628 - Avoid allocations for each text display item. r=jrmuizel
...
MozReview-Commit-ID: HoRHQVEdJeT
Differential Revision: https://phabricator.services.mozilla.com/D12720
2018-11-25 22:57:04 +00:00
Nicholas Nethercote
325d491a33
Bug 1451169 - Use nsStaticAtom* instead of nsStaticAtom** in Element.h. r=baku
2018-04-03 13:21:06 +10:00
Alexander Surkov
f98662f13b
Bug 1488620 - get rid of nsIDOMXULLabelElement, r=smaug
2018-09-17 15:30:57 +08:00
Sylvestre Ledru
0c1c733b0d
Bug 1489454 - Remove all trailing whitespaces (again) r=Ehsan
...
This also includes moving some files to the regular format.
Differential Revision: https://phabricator.services.mozilla.com/D5249
2018-09-07 14:47:51 +00:00
Alexis Beingessner
1c2a5d22ae
Bug 1453953 - natively implement xul textboxes. r=mstange
2018-08-30 18:39:22 -04:00
Rob Wu
2e1007cdae
Bug 1484914 - Never append duplicate access key hints r=bzbarsky
...
On macOS, access keys are not visually observable.
On Linux and Windows, access keys are underlined.
Moreover, if intl.menuitems.alwaysappendaccesskeys is set, the access
key is always appended as "(X)", optionally preceded by a space, where X
is the uppercased version of the access key.
This commit updates the logic to not append a new "(X)" if this expected
suffix is already present at the end of the label.
Differential Revision: https://phabricator.services.mozilla.com/D3996
2018-08-29 22:00:32 +00:00
Matt Woodrow
b64969f18b
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
2018-05-16 15:56:32 +12:00
Dan Glastonbury
39f56c63ae
Bug 1457810: Move CalcComplexColor to StyleComplexColor. r=xidorn
...
Move from nsStyleColor::CalcComplexColor to StyleComplexColor::CalcColor.
MozReview-Commit-ID: FkYovvPZLc8
2018-05-09 17:03:02 +10:00
Boris Zbarsky
d31be385d3
Bug 1455674 part 14. Remove use of nsIDOMElement in layout. r=qdot
2018-04-26 23:37:33 -04:00
Ciure Andrei
ea89df62df
Backed out 8 changesets (bug 1451169) on request from njn a=backout
...
Backed out changeset b92f856e15a8 (bug 1451169)
Backed out changeset 348e825756fa (bug 1451169)
Backed out changeset 624d82428726 (bug 1451169)
Backed out changeset 4d51610ca08e (bug 1451169)
Backed out changeset bb76a9589717 (bug 1451169)
Backed out changeset c145fbd03947 (bug 1451169)
Backed out changeset 6d36289e0f54 (bug 1451169)
Backed out changeset 914fb7cd9fc3 (bug 1451169)
2018-04-11 11:22:05 +03:00
Nicholas Nethercote
7ccd4b9401
Bug 1451169 - Use nsStaticAtom* instead of nsStaticAtom** in Element.h. r=baku
...
And then fix up everything else that needs to change as well.
MozReview-Commit-ID: GDMfERqdQAc
2018-04-03 13:21:06 +10:00
Emilio Cobos Álvarez
1d4859a89a
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
97286b35c8
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
1f5d8de5cc
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
6f1864699b
Bug 1436904 - Part 1: Add a static constructor function for display items. r=Bas
2018-02-13 13:43:28 +13:00
Dorel Luca
3276af0faa
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
2bcbca93c9
Bug 1436904 - Part 1: Add a static constructor function for display items. r=Bas
2018-02-13 13:43:28 +13:00
Henri Sivonen
ad36a7c3fa
Bug 1428771 - Make UCS2_CHAR_IS_BIDI check for lead surrogates corresponding to U+1E800...U+1EFFF and rename to UTF16_CODE_UNIT_IS_BIDI. r=jfkthame
...
MozReview-Commit-ID: 9ZKF6SaN79n
2018-01-08 16:18:32 +02:00
Emilio Cobos Álvarez
8a71d3197b
Bug 1423990: Move the last few attribute-related methods outside of nsIContent. r=bz
...
MozReview-Commit-ID: 8JZuS6O8f8W
2017-12-25 17:50:10 +01:00
Emilio Cobos Álvarez
ecd202d763
Backout changeset e43f568b3e9a (bug 1423990) because some OSX-only code still doesn't build. r=me
2017-12-25 12:55:45 +01:00
Emilio Cobos Álvarez
b3956b6171
Bug 1423990: Move the last few attribute-related methods outside of nsIContent. r=bz
...
MozReview-Commit-ID: 8JZuS6O8f8W
2017-12-07 19:13:50 +01:00
Miko Mynttinen
896b0f3d84
Bug 1425078 - Remove nsDisplayList::AppendNewToTop and nsDisplayList::AppendNewToBottom r=mattwoodrow
...
MozReview-Commit-ID: E3neKT2sV4Q
2017-12-13 11:23:04 -06:00
Mats Palmgren
2544eb586c
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
Mats Palmgren
616f910f82
Bug 1400618 part 1 - Collect NAC / generated content and call DestroyAnonymousContent / UnbindFromTree on those after the frames are destroyed. r=bz
...
MozReview-Commit-ID: 2trDgeJPw25
2017-11-07 01:20:33 +01:00
Markus Stange
b594685dda
Bug 1414154 - Remove gfxContext::Set/GetFontSmoothingBackgroundColor and TextRunDrawParams::fontSmoothingBGColor. r=lsalzman
...
MozReview-Commit-ID: BXZP3maOJRi
2017-11-02 22:31:15 -04:00
Markus Stange
a2cbb75a70
Bug 1414147 - Move fontSmoothingBackgroundColor from nsStyleUserInterface to nsStyleFont / nsFont. r=dbaron
...
MozReview-Commit-ID: 7i0Sy50Badm
2017-11-02 17:48:44 -04:00
Nicholas Nethercote
7dbfdaf890
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
2017-10-03 09:05:19 +11:00
Jonathan Watt
b691d3e6b4
Bug 1399824, part 2 - Always use nsIFrame::AddStateBits instead of manual bit twiddling. r=xidorn
...
MozReview-Commit-ID: JoEiQQI2kZ5
2017-08-24 12:09:42 +01:00
Markus Stange
4e8606103a
Bug 1387594 - Set the font smoothing background color based on the -moz-font-smoothing-background-color property. r=mattwoodrow
...
MozReview-Commit-ID: B3PVIvMswf8
2017-09-14 23:09:47 +02:00
Miko Mynttinen
1d15e14450
Bug 1359584 - Part 3: Improve nsDisplayItem const correctness and fix surrounding whitespace r=mstange
...
MozReview-Commit-ID: 3GkWiu6C4Zo
2017-08-24 17:09:44 +02:00