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

14575 Коммитов

Автор SHA1 Сообщение Дата
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
Olli Pettay d86b117d29 backout Bug 1414204 because of regressions, r=backout
--HG--
extra : rebase_source : c35fa4faba8511954bc76630fbcbdf4919d3bd14
2018-01-03 18:42:27 +02:00
Andrea Marchesini 00e79ef07b Bug 1425321 - Renaming nsINode::GetChildAt to GetChildAt_Deprecated, r=catalinb
We want to deprecate nsINode::GetChildAt as the first step of removing DOM node
child array storage. See bug 651120.
2018-01-03 13:59:54 +01:00
Jonathan Kew 9d2a5668d2 Bug 196175 - patch 2 - Override category of underscore for word-selection purposes so it is treated as a word-forming character, and update word-movement tests accordingly. r=m_kato 2018-01-03 10:02:39 +00:00
Jonathan Kew e1b6122dbc Bug 196175 - patch 1 - Add word-movement tests that involve underscore_delimited_words (currently treated as separate words). r=m_kato 2018-01-03 10:02:36 +00:00
Emilio Cobos Álvarez 1cda1ad876 Bug 1427511: Make GetFlattenedTreeParent more straight-forward. r=smaug
Now that accessing nsIContent slots is not a blob of virtual function calls, we
should be able to unify logic here, and speed up the not-so-rare case for
chrome, while keeping the usual case fast.

MozReview-Commit-ID: 87iY5Cbhx4T
2018-01-02 18:00:25 +01:00
Emilio Cobos Álvarez c8eb630ebe 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 ffdf5d2cb5 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 c0959b2955 Bug 1423990: Move the last few attribute-related methods outside of nsIContent. r=bz
MozReview-Commit-ID: 8JZuS6O8f8W

--HG--
extra : rebase_source : 09b82acb4f3d69e8a4345457ab217443bc28d6e2
2017-12-07 19:13:50 +01: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
Jonathan Kew 359a45f9a9 Bug 1426092 - Fix the inflation of the text bounding rect to account for stroke-width correctly. r=xidorn 2017-12-22 08:59:12 +00:00
Matt Woodrow fc9579a1db Bug 1344971 - Part 2: Check NS_FRAME_MAY_BE_TRANSFORMED as part of Extend3DContext. r=thinker 2017-03-07 14:07:32 +13:00
Matt Woodrow edb1c1dd88 Bug 1344971 - Part 1: Create OutOfFlowDisplayData for the parent of the OOF frame so they can be shared. r=mstange 2017-03-01 12:09:43 +13:00
Matt Woodrow 6145974a31 Bug 1413546 - Add pref to allow retained display lists within the parent process. r=jet 2017-12-22 11:45:32 +13:00
Emilio Cobos Álvarez 033d6b32fc Bug 975644: Enable position sticky in table parts. r=bz
MozReview-Commit-ID: 85nCuChHdTa
2017-12-21 20:29:20 +01:00
Emilio Cobos Álvarez fb0dc0f67a Bug 975644: Add a hack to skip table row groups for sticky positioning. r=bz
This matches Blink's behavior.

Just skipping table row groups from being containing blocks makes
layout/reftests/table-overflow/table-cell-block-overflow.html render differently
(and way more different than any other browser, actually...), so I avoided doing
that.

Though I'm not really proud of this one, better ideas welcome. Maybe I should
just fix table layout so that we agree with WebKit / Blink... But that seemed
harder, too.

MozReview-Commit-ID: AkUB4MFzwZK
2017-12-21 20:29:19 +01:00
Jonathan Kew b92b616296 Bug 1425480 - Add word-movement testcases that include supplementary-plane (surrogate pair) characters. r=m_kato 2017-12-20 20:32:07 +00:00
Jonathan Kew c083b84b60 Bug 1425480 - Don't let nsTextFrame's ClusterIterator return an offset in the middle of a surrogate pair from GetAfterOffset()/GetBeforeOffset(). r=m_kato 2017-12-20 20:31:23 +00:00
Margareta Eliza Balazs 24618e772a Merge mozilla-central to inbound. r=merge a=merge CLOSED TREE 2017-12-20 12:14:04 +02:00
Stone Shih 1a9d2b9639 Bug 1414204 Part3: Revise test_bug470212.html to drag the correct element. r=smaug.
This test case is broken. The anchor element is drag but not canvas element. Shift the position of mousedown event a little bit so that the canvas element is drag.

MozReview-Commit-ID: 5Ebqtbzwg0d
2017-11-10 11:52:14 +08:00
Ting-Yu Lin 278ab9f9a4 Bug 1426065 Part 2 - Drop mozilla prefix in nsFloatManager.cpp. r=dholbert
The cpp file already has "using namespace mozilla;".

MozReview-Commit-ID: L2OPyBuvg9q

--HG--
extra : rebase_source : d53b9ab09163a2bb03fc1cebe059aca0f6bb53a1
2017-12-19 15:22:36 +08:00
Ting-Yu Lin 6b9beb409e Bug 1426065 Part 1 - Move ShapeInfo and its dervied classes from header to cpp. r=dholbert
ShapeInfo and its derived classes are private to nsFloatManager, which don't
need to be in the header. Move them to cpp to make compile faster after
changing them.

MozReview-Commit-ID: MRkBGoqcPj

--HG--
extra : rebase_source : bc1de4269629f881e49af0d4faba89e8fbd4e460
2017-12-19 15:06:10 +08:00
Daniel Holbert 9070f50509 Bug 1398963 part 6: Make "visibility:collapse" cause flex items to be 0-sized, in emulated -moz-{inline-}box. r=mats
In modern flexbox and in "display:-webkit-box", children with
"visibility:collapse" currently generate "struts" which have 0 main-size but
nonzero cross-size.

But XUL/-moz-box treats these children differently -- it makes them 0-sized in
both axes. So we need to add a custom behavior to modern flexbox in order to
emulate that.

Specifically, this patch makes us:
 - Ignore these children when computing the flex container's intrinsic sizes.
 - Take a simpler codepath with 0-sized struts for collapsed elements when
   laying out a -moz-box (rather than the typical 2-pass layout, with strut
   cross-size being established in the 1st pass).

MozReview-Commit-ID: IpkADpFFBMx

--HG--
extra : rebase_source : d42a291c414c61906a82c2be2b5f1834aa24e4e3
2017-12-18 12:17:11 -06:00
Daniel Holbert 0d839c700e Bug 1398963 part 2: Make nsFlexContainerFrame label itself as legacy if it has -moz-box/-moz-inline-box display val. r=mats
To be clear, this is a "paving the way" patch.  At this point in the patch
series, it's not yet possible for us to generate a nsFlexContainerFrame that
has display:-moz-box.  (A later patch in this series will make that possible.)

This patch adds the mechanics to nsFlexContainerFrame instances so that they'll
label themselves appropriately (with NS_STATE_FLEX_IS_EMULATING_LEGACY_BOX)
once it *does* become possible for -moz-box to spawn a nsFlexContainerFrame.
Moreover, this patch updates the state bit's documentation to reflect its new
potential-usage.

MozReview-Commit-ID: ElApieVoTLf

--HG--
extra : rebase_source : 0c59e2a0adc8e060a687e5ffdf6246eb8068eef6
2017-12-18 12:17:10 -06:00
Daniel Holbert 458c3ac132 Bug 1398963 part 1: Rename frame-state bit from NS_STATE_FLEX_IS_LEGACY_WEBKIT_BOX to NS_STATE_FLEX_IS_EMULATING_LEGACY_BOX (idempotent patch). r=mats
This patch isn't changing semantics of this bit at all - it just renames it to
a more general name. In other words, this patch does not change behavior.

MozReview-Commit-ID: 4wb13X4YinJ

--HG--
extra : rebase_source : 9a89ce8782f735d7f4a8ad471606a2af5201ac83
2017-12-18 12:17:10 -06:00
Kartikaya Gupta 4f18e92ffb Bug 1334189 - Enable mochitest-plain for linux64-qr. r=jrmuizel
MozReview-Commit-ID: nbcWhDq5de

--HG--
extra : rebase_source : 25e2c2b8b996ae11cd25dee07d9092ba574a9e40
2017-12-13 18:38:39 -05:00
Kartikaya Gupta ea60a161ee Bug 1154206 - Don't end the test until all the advanceTimeAndRefresh calls are done. r=jrmuizel
MozReview-Commit-ID: 69losfPM6bk

--HG--
extra : rebase_source : 9f460d5b03d5326d2181a884ee0fc843105f1054
2017-12-13 18:38:37 -05:00
Emilio Cobos Álvarez dbb3111ff1 Bug 1398492: Remove the grid pref. r=mats
MozReview-Commit-ID: 6Qez8NE8oze
2017-12-17 00:04:35 +01:00
Andrew Osmond 990c86e27e Bug 1423424 - Don't use empty image containers in image layers. r=tnikkel
Prior to bug 1368776, when no surface was obtained for the container, no
container was returned. Since we prefer an empty image container with
WebRender to avoid fallback, this was changed, but regressed
non-WebRender behaviour. Now on the non-WebRender path, we check if
there is anything in the container before accepting it.
2017-12-15 16:20:22 -06:00
Ciure Andrei 7e4e20da7d Merge inbound to mozilla-central r=merge a=merge 2017-12-15 23:52:00 +02:00
Emilio Cobos Álvarez 2c789cb314 Bug 1424952: Modernize a bit more nsImageMap, and make removals a bit more incremental. r=dholbert
Summary: MozReview-Commit-ID: 4iXJtLKEwY7

Reviewers: dholbert

Reviewed By: dholbert

Bug #: 1424952

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

MozReview-Commit-ID: 3FANAhS06Z5
2017-12-15 17:53:41 +01:00
Margareta Eliza Balazs defd7cd449 Merge mozilla-central to autoland. r=merge a=merge CLOSED TREE 2017-12-15 11:52:23 +02:00
Matt Woodrow 5d4d20a5a6 Bug 1419021 - Part 2: Don't do a full display list build when there are no modified frames. r=miko 2017-12-14 17:38:21 -06:00
Matt Woodrow 1571d5e823 Bug 1419021 - Part 1: Invalidate display items when we get a size for decoded images since this can change the display items we build. r=tnikkel
This breaks rendering when we try do a sync decode paint since we might not have created the nsDisplayImage/nsDisplayBackgroundImage yet (or cached the empty size) and so we never get to the actual paint call.
2017-12-14 17:37:56 -06:00
Narcis Beleuzu eda8e08e68 Merge mozilla-central to autoland. r=merge a=merge on a CLOSED TREE 2017-12-15 03:46:15 +02:00
Gerald Squelart 0c3cf12488 Bug 1416991 - Fix perspective indexing in partial DL builds - r=mattwoodrow
Perspective item indices (used to produce unique per-frame keys) were generated
by incrementing a counter in the builder when building a perspective display
item. This caused problems with retained display lists, because an unmodified
perspective could be skipped during a partial build, causing other perspectives
to be incorrectly numbered and then incorrectly merged with the previous
retained display list.

To fix this, we need to always increment the counter if there is likely to be
a perspective, before that item may be skipped.

MozReview-Commit-ID: Edn7lUOLuPw

--HG--
extra : rebase_source : 5d10d4595576d17a2ac3fa6d6289fb98408c3654
2017-12-13 05:41:13 -06:00
Boris Zbarsky 68d5557904 Bug 1425107. Fix setting scrollTop to 0 on an element with a pending scroll position restore to actually work correctly. r=mats
MozReview-Commit-ID: 949eBXmKHlA
2017-12-14 12:45:37 -05:00
Mats Palmgren 0de4d4e471 Bug 1424528 part 4 - Remove the nsDidReflowStatus enum type. r=dholbert
MozReview-Commit-ID: 3QFWSlQ84fF
2017-12-14 16:21:49 +01:00
Mats Palmgren 41423a85e6 Bug 1424528 part 3 - A few manual fixes related to removing the nsDidReflowStatus param in DidReflow. r=dholbert
MozReview-Commit-ID: 8elJQTfOaaL
2017-12-14 16:21:49 +01:00
Mats Palmgren fb3dd87715 Bug 1424528 part 2 - Remove nsDidReflowStatus param in DidReflow declarations (automated change). r=dholbert
MozReview-Commit-ID: 44pchGXzYL7
2017-12-14 16:21:49 +01:00
Mats Palmgren 60e745ae58 Bug 1424528 part 1 - Remove nsDidReflowStatus::FINISHED 3rd arg in DidReflow calls (automated change). r=dholbert
MozReview-Commit-ID: CiK7pV0OsGr
2017-12-14 16:21:49 +01:00
Dorel Luca 110706c3c0 Merge mozilla-inbound to mozilla-central r=merge a=merge 2017-12-14 11:54:15 +02:00
Jonathan Kew 1a613e00cb Bug 1424898 - patch 2 - De-virtualize nsIWordBreaker and rename to mozilla::intl::WordBreaker. r=m_kato
--HG--
rename : intl/lwbrk/nsSampleWordBreaker.cpp => intl/lwbrk/WordBreaker.cpp
rename : intl/lwbrk/nsIWordBreaker.h => intl/lwbrk/WordBreaker.h
2017-12-13 22:17:38 -06:00
Jonathan Kew 574a922078 Bug 1424898 - patch 1 - De-virtualize nsILineBreaker and rename to mozilla::intl::LineBreaker. r=m_kato
--HG--
rename : intl/lwbrk/nsJISx4051LineBreaker.cpp => intl/lwbrk/LineBreaker.cpp
rename : intl/lwbrk/nsILineBreaker.h => intl/lwbrk/LineBreaker.h
2017-12-13 22:17:32 -06:00
Brad Werth ba544223af Bug 1424436 Part 1: Add more asserts in flex api calculation of mainDeltaSize values. r=dholbert
MozReview-Commit-ID: IpMrMfmMy7t

--HG--
extra : rebase_source : b5862f1cb1735a00b63e000c4857bd80cc5c9f49
2017-12-08 15:49:56 -08: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
Samathy Barratt d8ba79a56b Bug 1351447 - Rename imagelib's DrawResult to ImgDrawResult r+tnikkel r=tnikkel
Renamed to imgDrawResult

MozReview-Commit-ID: 5ESSgIhhU41

--HG--
rename : image/DrawResult.h => image/ImgDrawResult.h
extra : rebase_source : dbf645574aff7eefe65fa81809d6c07cb5800ec6
2017-12-11 15:37:59 +00:00
Ciure Andrei b8d4330b53 Backed out changeset 8e33d0ce108c (bug 1351447) for failing /builds/worker/workspace/build/src/widget/cocoa/nsCocoaUtils on OS X r=backout a=backout on a CLOSED TREE
--HG--
rename : image/ImgDrawResult.h => image/DrawResult.h
2017-12-12 09:49:59 +02:00
Samathy Barratt 0749baf2d8 Bug 1351447 - Rename imagelib's DrawResult to ImgDrawResult r=tnikkel
Renamed to imgDrawResult

MozReview-Commit-ID: 5ESSgIhhU41

--HG--
rename : image/DrawResult.h => image/ImgDrawResult.h
extra : rebase_source : 4fba109b84ef456126d50e0d5e525f29f944a46d
2017-12-11 15:37:59 +00:00
Brad Werth dfee74ad04 Bug 1419924 Part 1: Capture FlexLine cross start position to report to devtools when requested. r=dholbert
MozReview-Commit-ID: 8opVdr4W9S3

--HG--
extra : rebase_source : 45edd3a73fa4fd56e5e0557ca3ea5ba86cc5f7a6
2017-12-01 13:02:35 -08:00