Coroiu Cristina
190b6425da
Merge inbound to mozilla-central a=merge
2018-11-27 00:34:45 +02:00
Miko Mynttinen
2500f93ece
Bug 1504924 - Avoid nsIFrame::IsSelected() call in nsDisplayText::CanApplyOpacity() r=mats
...
Differential Revision: https://phabricator.services.mozilla.com/D12750
2018-11-26 16:06:00 +00: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
Jonathan Kew
cd9c14b102
Bug 1509167 - Cache an nsFontMetrics reference in nsTextFrame so that we don't have to re-create it on every DrawText call. r=jwatt
2018-11-26 17:59:50 +00:00
Emilio Cobos Álvarez
71a4ec791d
Bug 1505786 - Implement overflow-wrap: anywhere. r=xidorn,jfkthame
...
Per https://github.com/w3c/csswg-drafts/issues/2682
Differential Revision: https://phabricator.services.mozilla.com/D11328
2018-11-08 22:39:34 +00:00
Mats Palmgren
80fe323704
Bug 1495153 part 2 - Implement cropping the filename for <input type=file>. r=emilio,jfkthame
2018-10-07 10:08:45 +02:00
Narcis Beleuzu
25c8dc3bc2
Backed out 2 changesets (bug 1495153) for causing perma failures on dynamic-max-width.html
...
Backed out changeset 6d95f0e0cc76 (bug 1495153)
Backed out changeset 6800eb348ebe (bug 1495153)
2018-10-07 05:14:44 +03:00
Mats Palmgren
e1164cc0da
Bug 1495153 part 2 - Implement cropping the filename for <input type=file>. r=emilio,jfkthame
2018-10-06 19:31:51 +02:00
Xidorn Quan
149b7af335
Bug 1494380 - Ignore emphasis marks on combined text with horizontal writing mode. r=jfkthame
...
Differential Revision: https://phabricator.services.mozilla.com/D7046
2018-09-27 08:50:21 +00:00
Jonathan Kew
c4895cf8bf
Bug 1432198 - Ensure tab characters are rendered with a minimum advance of 0.5ch. r=xidorn
2018-09-24 13:38:52 +01:00
Gerald Squelart
e7ce6a2568
Bug 1488684 - Made some layout methods 'final' or non-virtual - r=dbaron
...
Some methods were not overrides and were never overridden, so they could simply
be non-virtual.
Others were overrides but were not overridden, so they could benefit from being
final to hopefully lead to devirtualized calls.
Though some of these are not strictly necessary because they are inside 'final'
classes, I think they're worth adding anyway, because:
- The 'final' keyword becomes more obvious when looking at methods without the
wider context in sight (e.g., in reviews or searchfox).
- If one day any of these classes becomes non-final, it would keep the final
attribute on these methods by default, and force the programmer to explicitly
reflect before removing 'final' from the methods that need to be overridden.
Depends on D5020
Differential Revision: https://phabricator.services.mozilla.com/D5021
2018-09-06 01:23:49 +00:00
Gerald Squelart
2fb29c9da2
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
2018-09-06 01:23:14 +00:00
Xidorn Quan
d7bd565983
Bug 1484587 - Put the behavior that overflow-wrap: break-word affecting intrinsic size behind a pref and disable it by default. r=jfkthame
...
Differential Revision: https://phabricator.services.mozilla.com/D3749
2018-08-22 06:55:13 +00:00
Lee Salzman
c8f0564e53
Bug 1479196 - add support to TextDrawTarget for defining and pushing WR images. r=nical
2018-08-21 12:36:48 -04:00
Jonathan Kew
6e1e2c5bd1
Bug 1484094 - Don't allow the caret to be placed within a ligated emoji sequence. r=m_kato
2018-08-20 09:07:40 +01:00
Cameron McCormack
eb1c77b263
Bug 1482782 - Part 4: Move CSS pseudo-element atoms to nsGkAtoms. r=njn,emilio
...
Summary: Depends On D3282
Reviewers: njn!, emilio!
Tags: #secure-revision
Bug #: 1482782
Differential Revision: https://phabricator.services.mozilla.com/D3283
2018-08-15 15:46:00 +10:00
Narcis Beleuzu
ace8b010f2
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
a3c0cd4850
Bug 1482782 - Part 4: Move CSS pseudo-element atoms to nsGkAtoms. r=njn,emilio
...
Summary: Depends On D3282
Reviewers: njn!, emilio!
Tags: #secure-revision
Bug #: 1482782
Differential Revision: https://phabricator.services.mozilla.com/D3283
2018-08-15 15:46:00 +10:00
Xidorn Quan
1e77bd0b24
Bug 1483090 - Rename StyleUserInterface to StyleUI. r=emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D3276
2018-08-14 08:37:37 +00:00
Xidorn Quan
e5e99d04ef
Bug 1480358 - Have the second OptionallyBreak actually make sense. r=jfkthame
...
Differential Revision: https://phabricator.services.mozilla.com/D2696
2018-08-03 07:21:35 +00:00
Jonathan Kew
f703fb75aa
Bug 1476437 - Correct original-text indexing when checking for explicit hyphens in text where auto-hyphenation is enabled. r=dbaron
2018-07-28 09:23:36 +01:00
Jonathan Kew
f98a6f84b8
Bug 1478574 - Fix off-by-one error in marking explicit hyphens, so we don't introduce spurious pre-hyphen breaks. r=dbaron
2018-07-28 09:23:11 +01:00
Tiberius Oros
980b17c84a
Backed out 5 changesets (bug 1476437, bug 1478574) for failing hyphenation-control-5.html on windows builds on a CLOSED TREE
...
Backed out changeset d8d3c9e7b832 (bug 1476437)
Backed out changeset 280aff154491 (bug 1476437)
Backed out changeset e17db916959e (bug 1476437)
Backed out changeset 144a3d2b7da9 (bug 1478574)
Backed out changeset edb45de7ff9d (bug 1478574)
2018-07-28 13:22:54 +03:00
Jonathan Kew
6129960a7b
Bug 1476437 - Correct original-text indexing when checking for explicit hyphens in text where auto-hyphenation is enabled. r=dbaron
2018-07-28 09:23:36 +01:00
Jonathan Kew
ae10df2813
Bug 1478574 - Fix off-by-one error in marking explicit hyphens, so we don't introduce spurious pre-hyphen breaks. r=dbaron
2018-07-28 09:23:11 +01:00
Xidorn Quan
e4d0e8c740
Bug 1472386 - Take overflow-wrap into account when calculating min-content intrinsic size. r=jfkthame
...
MozReview-Commit-ID: Fu6Gbmxs4PN
2018-07-09 14:54:34 +10:00
Andi-Bogdan Postelnicu
569bc9b63e
Bug 1453795 - Layout - Initialize member fields in classes/ structures. r=dbaron
2018-07-12 09:42:14 +03:00
Jonathan Kew
ae5da6a729
Bug 1471664 - Remove redundant code for creating userData in SetupLineBreakerContext. r=xidorn
2018-06-28 09:37:55 +01:00
Dan Glastonbury
ff951cc67d
Bug 1467621 - P1: nsCSSShadowItem - Change nscolor to StyleComplexColor. r=xidorn
...
MozReview-Commit-ID: moE2CI7fT8
2018-06-19 14:18:33 +10:00
Cameron McCormack
95b5cade52
Bug 1466448 - Part 1: Remove unused NS_REFLOW_CALC_BOUNDING_METRICS flag. r=jfkthame
2018-06-04 16:14:09 +10:00
Jonathan Kew
eac5a12be4
Bug 1463115 - Try to skip irrelevant (collapsed/trimmed) whitespace when collecting used font faces for devtools inspector. r=jwatt
2018-05-24 14:44:09 +01:00
Emilio Cobos Álvarez
4b8b5e1717
Bug 1465585: Switch from mozilla::Move to std::move. r=froydnj
...
This was done automatically replacing:
s/mozilla::Move/std::move/
s/ Move(/ std::move(/
s/(Move(/(std::move(/
Removing the 'using mozilla::Move;' lines.
And then with a few manual fixups, see the bug for the split series..
MozReview-Commit-ID: Jxze3adipUh
2018-06-01 10:45:27 +02: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
Kristen Wright
718df1b0e4
Bug 1460682 - nsSelectionStyle::mUnderlineStyle should be compared against NS_STYLE_TEXT_DECORATION_STYLE_NONE r=dbaron
...
Removed comparison to NS_STYLE_BORDER_STYLE_NONE and replaced with NS_STYLE_TEXT_DECORATION_STYLE_NONE
2018-05-10 10:55:47 -07: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
586f4fc92c
Bug 1387143 part 24. Remove nsISelection::ContainsNode. r=mats
2018-05-08 13:52:42 -04:00
Chris Peterson
5d6b16ea3b
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
2018-04-28 12:50:58 -07:00
Alexis Beingessner
016ed129e4
Bug 1403261 - enable native webrender handling of partial ligatures. r=jrmuizel,mstange
...
The clipping code uses gfxContext::GetClipExtents which calls gfxContext::GetDeviceOffset
and DrawTarget::GetSize. The former was previously not being intialized, while the latter
was explicitly unimplemented. This patch fixes both of those facts.
Otherwise, enabling this functionality has been made trivial by several upstream patches
in webrender (the most recent being glenn's work on unifying shadows which eliminated
the buggy text-shadow shader code that was blocking this).
MozReview-Commit-ID: B1AlG3o4XQS
2018-04-16 23:05:48 -04:00
Andrew McCreight
7a07e0c48b
Bug 1449670, part 1 - Convert IsNodeOfType(nsINode::eTEXT) to IsText(). r=bz
...
This method is not a virtual call, and also looks nicer.
This patch was mostly generated by a Python script, but I manually
cleaned up the code in a few places where statements didn't need to be
split across multiple lines any more.
MozReview-Commit-ID: 8JExxqSRc59
2018-04-12 15:41:00 -07:00
Sebastian Hengst
d91e9954eb
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
6095241db8
Bug 525063 - Initialize uninitialized class attributes in m-c. r=ehsan
2018-04-10 21:11:02 +02:00
Emilio Cobos Álvarez
65978b31f3
Bug 1452080: Remove ComputedStyle::PresContext usage from layout and canvas code. r=xidorn
...
Couldn't find an easy way of splitting these up :(
MozReview-Commit-ID: 2kTZ5McREUT
2018-04-09 11:19:49 +02:00
Noemi Erli
b15aabf388
Backed out 3 changesets (bug 1452080) for bustage in /builds/worker/workspace/build/src/layout/base/nsCSSFrameConstructor.cpp on a CLOSED TREE
...
Backed out changeset 7f5104c7a242 (bug 1452080)
Backed out changeset 806a9c95a243 (bug 1452080)
Backed out changeset bffebe8aa254 (bug 1452080)
2018-04-09 11:18:12 +03:00
Emilio Cobos Álvarez
9c4328ca42
Bug 1452080: Remove ComputedStyle::PresContext usage from layout and canvas code. r=xidorn
...
Couldn't find an easy way of splitting these up :(
MozReview-Commit-ID: 2kTZ5McREUT
2018-04-09 09:57:55 +02:00
Matt Woodrow
3a11330208
Bug 1443380 - Don't mark all descendant frames modified for display list building when invalidating a frame subtree since marking just the root is sufficient. r=miko
2018-04-04 16:15:49 +12:00
Ciure Andrei
eda43f7240
Merge inbound to mozilla-central. a=merge
2018-03-30 01:06:18 +03:00
Jeff Muizelaar
ea0ae0d6d4
Bug 1440694. Make nsDisplayText final. r=mattwoodrow
2018-03-29 10:56:39 -04:00
Makoto Kato
c7d0cf6186
Bug 1449828 - Don't calculate selection rect if unnecessary. r=jfkthame
2018-03-29 21:12:34 +09:00
Emilio Cobos Álvarez
3cf86a54cf
Bug 1449010: Respect ::selection background styles for image overlays. r=mattwoodrow
...
I don't have a strong preference about blending with white vs. just doing alpha
0.5, so I kept doing what we were doing, since Blink and WebKit also apply the
blending to the text background, and I'm not sure that's particularly desirable.
MozReview-Commit-ID: AwYtAgdlcxj
2018-03-29 02:53:02 +02:00
Jonathan Watt
baf9ffb02b
Bug 1448714 - Fix up comments referring to 'style context' after the rename of nsStyleContext. r=emilio
2018-03-23 13:49:21 +00:00