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

4868 Коммитов

Автор SHA1 Сообщение Дата
Jonathan Watt 107bd0b650 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
Jonathan Watt 9d21fb29ff Bug 1399824, part 1 - Always use nsIFrame::RemoveStateBits instead of manual bit twiddling. r=xidorn
MozReview-Commit-ID: KynEge1U4aS
2017-08-24 10:55:28 +01:00
Ting-Yu Lin 2e869d8f3d Bug 1341009 - Add nsReflowStatus::IsEmpty() assertions to all nsIFrame::Reflow() methods and some reflow helpers, and remove unneeded Reset(). r=dholbert
nsReflowStatus::IsEmpty() assertions are added after DISPLAY_REFLOW in the
beginning of the Reflow().

A few Reflow() implementations have Reset() calls at the end which are left
in place by this patch (with an explanatory comment added to each). These
ending Reset()s are only needed for cases where a non-splittable frame
passes its own nsReflowStatus to a child's reflow method. Just in case the
child leaves a "not fully complete" value in the nsReflowStatus, the
non-splittable parent frame must clear out the nsReflowStatus before
returning, so that its own parent doesn't then try to split it.

MozReview-Commit-ID: 6Jj3jfMAqj4

--HG--
extra : rebase_source : e1fe6a775ad97e16a6d7cc224634ff962ccb0fbf
2017-09-13 18:00:25 +08:00
Julian Seward b27ffb191e Bug 1400341 - Uninitialised value use in nsMenuPopupFrame::SetPopupPosition(nsIFrame*, bool, bool, bool). r=enndeakin.
--HG--
extra : rebase_source : 8eb235e562adc2c5e2fef05dec518a97611e64d1
2017-09-18 12:41:48 +02:00
Sebastian Hengst ec66bbd3e1 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 4dRrVdftJVy
2017-09-15 11:05:11 +02:00
Sebastian Hengst 005f4f5fc0 Backed out changeset 8291145f0920 (bug 1393031) 2017-09-14 23:18:05 +02:00
Sebastian Hengst d27b05e04e Backed out changeset f34a52244cf9 (bug 1393031) 2017-09-14 23:17:35 +02:00
Markus Stange ae927d3f44 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
Markus Stange b5fdbfc62c Bug 1387594 - Stop getting the font smoothing background color from the theme. r=mattwoodrow
MozReview-Commit-ID: 2r1B8SvEkEl
2017-09-14 23:09:47 +02:00
Miko Mynttinen 351756e478 Bug 1359584 - Part 3: Improve nsDisplayItem const correctness and fix surrounding whitespace r=mstange
MozReview-Commit-ID: 3GkWiu6C4Zo

--HG--
extra : rebase_source : 1423442cd723b8a052d183394dc5f5ef272a5272
2017-08-24 17:09:44 +02:00
Miko Mynttinen ce08697502 Bug 1359584 - Part 1: Move mDisableSubpixelAA to nsDisplayItem r=mstange
MozReview-Commit-ID: 70169AFRmjq

--HG--
extra : rebase_source : 9c46e40700430e8286ab8e5b2f986e660c293101
2017-08-24 14:45:21 +02:00
Botond Ballo c8286ea7d2 Bug 1367765 - Do not scroll-to-click on touchstart if touch point is over thumb. r=rhunt
This matches the behaviour of mouse events over a scroll thumb.

MozReview-Commit-ID: ArLzC6JXfos

--HG--
extra : rebase_source : 96f83e6b312dabd3c5573d73c1ce3f01e53055e5
2017-09-06 19:14:39 -04:00
Ethan Lin d7080a817c Bug 1393077 - Part3. Modify annotations for affected testcases. r=kats
MozReview-Commit-ID: EjqMbrO1wNe

--HG--
extra : rebase_source : a6d0728f483d52147ea9e0464cadf39f026d07d3
2017-09-06 16:30:28 +08:00
sajattack a77eb97349 Bug 1398623 - Remove several unused variables in nsSprocketLayout::PopulateBoxSizes r=xidorn
MozReview-Commit-ID: 3VXaVgBhgTL

--HG--
extra : rebase_source : 39b4e1a746aa45da9f6e2381cb83a6b2f40db9c9
2017-09-10 22:33:13 -07:00
Sebastian Hengst 7bf06ee8f9 Backed out changeset 109e5bafd7a3 (bug 1398623) for asserting during a11y's e.g. accessible/tests/mochitest/states/test_expandable.xul. r=backout 2017-09-11 09:45:18 +02:00
sajattack 4cd174edb5 Bug 1398623 - Remove several unused variables in nsSprocketLayout::PopulateBoxSizes r=xidorn
MozReview-Commit-ID: 3VXaVgBhgTL

--HG--
extra : rebase_source : 38808c5b559de7b42a5c965c2a689779c5e76e29
2017-09-10 22:33:13 -07:00
Ethan Lin e6b407fb9c Bug 1387325 - Part3. Add annotations for reftests after adding WR support for XUL image. r=mattwoodrow
MozReview-Commit-ID: 2jfsC8ETXHj
2017-09-10 12:45:11 +08:00
Ethan Lin 4b055b693b Bug 1387325 - Part2. Add WR support for nsDisplayXULImage. r=mattwoodrow
MozReview-Commit-ID: 9DncgchiS44
2017-09-10 12:45:11 +08:00
Ethan Lin c9aadaf83d Bug 1387325 - Part1. Refactor nsImageBoxFrame::PaintImage to make it easier to add WR support. r=mattwoodrow
MozReview-Commit-ID: AmHPifpVAHZ
2017-09-10 12:45:11 +08:00
Sebastian Hengst 245d696118 Backed out changeset 9cbb90abba0d (bug 1387325) for build bustage on Windows at layout/xul/nsImageBoxFrame.cpp(250): 'LoadImageW': is not a member of 'nsContentUtils'. r=backout on a CLOSED TREE 2017-09-08 17:32:57 +02:00
Sebastian Hengst fe85412f26 Backed out changeset d25d3c15d149 (bug 1387325) 2017-09-08 17:32:11 +02:00
Sebastian Hengst efaf1e47af Backed out changeset cae034ec1d40 (bug 1387325) 2017-09-08 17:32:06 +02:00
Ethan Lin c89873c83f Bug 1387325 - Part3. Add annotations for reftests after adding WR support for XUL image. r=mattwoodrow
MozReview-Commit-ID: 2jfsC8ETXHj

--HG--
extra : rebase_source : 23ecb777ff7be0971997e00a56edfcb79df9abd0
2017-08-17 14:48:40 +08:00
Ethan Lin 18444d638d Bug 1387325 - Part2. Add WR support for nsDisplayXULImage. r=mattwoodrow
MozReview-Commit-ID: 9DncgchiS44

--HG--
extra : rebase_source : 807b3c7b894366de36545646b49a48e062588bb0
2017-08-17 14:47:25 +08:00
Ethan Lin a43edfa576 Bug 1387325 - Part1. Refactor nsImageBoxFrame::PaintImage to make it easier to add WR support. r=mattwoodrow
MozReview-Commit-ID: AmHPifpVAHZ

--HG--
extra : rebase_source : 8c87b569d068a539c1c9d27ac7e43bfde4671058
2017-08-17 14:45:21 +08:00
Chris Peterson ce7edc4de1 Bug 1394603 - Replace fails-if(!styloVsGecko) to fails. r=jryans
Skip tests that are expected to fail in both Stylo and Gecko modes. They would unexpectedly "pass" in styloVsGecko mode when comparing the two failures, which is not a useful result.

MozReview-Commit-ID: 3mOpjU225Q1

--HG--
extra : rebase_source : 22bb5d4e3c5138ef832995eaf5716824f4707ffe
extra : source : d40fb20c9a49d0797c0eeae613a04912b12a28f7
2017-09-01 20:39:44 -07:00
Paolo Amadini fe96089fe4 Bug 1387416 - Place the search bar in the customization palette for new profiles. r=Gijs
MozReview-Commit-ID: Tq8YrZWG6P

--HG--
extra : rebase_source : 2e02e0a809d08ff26291a027b73a54668d6d5f9d
2017-09-06 13:09:27 +01:00
Nicholas Nethercote d170e907b6 Bug 1394694 (part 1) - Remove nsITreeColumn.atom. r=janv.
It's unused; the zero-arg nsITreeColumn::GetAtom() is used everywhere instead.

--HG--
extra : rebase_source : e63e5e0a392ee561e157d1983d6e00bd84b00f28
2017-09-04 16:33:21 +10:00
Sebastian Hengst 01c1a3c741 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 17ViEoPyjPa
2017-09-05 23:55:39 +02:00
Louis Chang c79d83c34c Bug 1352238 Part 7 - Check if native theme supports the widget before using it. r=mats
MozReview-Commit-ID: IKoYDzNCVx4

--HG--
extra : rebase_source : 6a578d8944cc0cadc69f7f031374bac92b8c6ee9
2017-09-05 22:47:01 +08:00
Emilio Cobos Álvarez baf5604537 Bug 1384232: Reduce expected assertions in test_bug381167.xhtml. r=me
MozReview-Commit-ID: Ehl9yfo8EOX
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-09-01 15:31:46 +02:00
Andrew McCreight 78807d8776 Bug 1391005 - Eliminate NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED. r=peterv
Replace it with NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION, because it
has been the same for a while.

MozReview-Commit-ID: 5agRGFyUry1

--HG--
extra : rebase_source : 5388c56b2f6905c6ef969150f0c5b77bf247624d
2017-08-29 16:02:48 -07:00
Ehsan Akhgari ebaa749322 Bug 1394191 - Remove unneeded nsContentList.h includes from layout; r=dholbert 2017-08-29 07:29:11 -04:00
Sebastian Hengst c46e62224e merge mozilla-central zo mouilla-inbound. r=merge a=merge on a CLOSED TREE 2017-08-28 17:10:37 +02:00
Joel Maher eae3c3c3b3 Bug 1382428 - Disable layout/xul/test/browser_bug703210.js for linux debug. r=gbrown 2017-08-28 09:53:07 -04:00
Bobby Holley 8fb4fb3d6c Bug 1393791 - Stop unbinding native-anonymous content off a script runner. r=emilio
The failure mode in the attached crashtest is an inconsistency in the flattened
tree. Specifically, we null out mVideoControls in an nsVideoFrame, but defer
the UnbindFromTree call on that NAC element, which measn that its mParent still
points to the nsVideoFrame's mContent. Because all this stuff runs off of script
runners, and the anonymous content destroyer is not guaranteed to run before
other potential script runners, we end up running arbitrary script while the
tree mismatch exists. This script calls back into ProcessPendingRestyles, which
causes trouble.

We could build a separate deferral mechanism, but it's not clear that we actually
need to defer the unbind anymore. The deferred unbind was added in bug 489008,
which predated a lot of simplifications in layout/dom interaction.

MozReview-Commit-ID: 1JYAhiXKVJC
2017-08-27 15:29:36 -07:00
Bobby Holley a61ee7166e Bug 1394156 - Make static_casts of mContent use GetContent(). r=emilio
This was done with: perl -pi -e 's/\(mContent\)/\(GetContent\(\)\)/g' *.cpp

MozReview-Commit-ID: 7ugPKf5ypGw
2017-08-27 10:45:59 -07:00
Nicholas Nethercote f582d96b98 Bug 1390428 (part 9) - Remove nsXPIDLCString. r=erahm.
This is straightforward, with only two notable things.

- `#include "nsXPIDLString.h" is replaced with `#include "nsString.h"`
  throughout, because all nsXPIDLString.h did was include nsString.h. The
  exception is for files which already include nsString.h, in which case the
  patch just removes the nsXPIDLString.h inclusion.

- The patch removes the |xpidl_string| gtest, but improves the |voided| test to
  cover some of its ground, e.g. testing Adopt(nullptr).

--HG--
extra : rebase_source : 452cc4a08046a1adb1a8099a7e85a1917de5add8
2017-08-17 15:29:03 +10:00
Masatoshi Kimura 5f035965ac Bug 1390209 - Remove unused nsIDOMHTML*Element interfaces. r=qdot
MozReview-Commit-ID: DagD3IHhRZy

--HG--
extra : rebase_source : 2add5ad8e9181ba9bf29f53a6df75b730ab5ea78
2017-08-15 01:31:47 +09:00
Sylvestre Ledru b00d571d1c Bug 1389905 - Remove an useless call on GetCurrentReferenceFrame from BuildDisplayListForChildren r=botond
MozReview-Commit-ID: 2g282hyyEj7

--HG--
extra : rebase_source : cb16e21699158d466e6c79cc03264cf05dbd50d6
2017-08-13 11:44:56 +02:00
Xidorn Quan c40f44ef9b Bug 1370508 - Enable stylo on generic XML documents. r=heycam
MozReview-Commit-ID: 4XQ9RPQ7oa1

--HG--
extra : rebase_source : 74e411e2280e818fc1fbd2efda677565cfa2f8b6
2017-08-09 19:57:33 +10:00
Masatoshi Kimura 4c76bc32c0 Bug 1389566 - Remove @deprecated nsIBrowserBoxObject. r=bkelly
MozReview-Commit-ID: 7olN9TBFG5B

--HG--
extra : rebase_source : 7b56ed6c89beb946d733c46dee44d6035554730e
2017-08-12 02:19:44 +09:00
Wes Kocher 5a4357c768 Merge inbound to central, a=merge
MozReview-Commit-ID: GArkKmOFIVH
2017-08-11 13:15:33 -07:00
Boris Zbarsky 60cd46bdce Bug 1388626. Restyle ::-moz-xul-anonymous-block as needed with stylo. r=heycam
MozReview-Commit-ID: KZ0s1x60VBx

--HG--
extra : rebase_source : d7103464e7563ae7105417f254609cb22481e0e3
2017-08-09 16:43:47 -04:00
Sebastian Hengst 6a474244a8 Backed out changeset 78d87b59f5a7 (bug 1370508) for unexpected pass of wpt-reftest /css/css-namespaces-3/syntax-013.xml. r=backout on a CLOSED TREE 2017-08-10 10:23:22 +02:00
Xidorn Quan a0b8a2c68d Bug 1370508 - Enable stylo on generic XML documents. r=heycam
MozReview-Commit-ID: 4XQ9RPQ7oa1

--HG--
extra : rebase_source : f5ffeaa615076035215f5ac1b9b39aa5cb15d618
2017-08-09 19:57:33 +10:00
Xidorn Quan 58e5987209 Bug 1383992 part 1 - Disable failing mochitests. r=heycam
MozReview-Commit-ID: J9LoovJJJgM

--HG--
extra : rebase_source : a5ed4b2a11c293c50d642c3a0da6831ce5a885a1
extra : source : 8d97565b7dedaef3b46e65b92b1ca1e0598d2a76
extra : histedit_source : 72834d0bc485e78cb8c1de357e4b545d7e6408f5
2017-08-09 08:31:26 +10:00
Nicholas Nethercote 1a6f1a62fa Bug 1387381 - Remove nsXPIDLString local variables. r=erahm.
nsXPIDLStrings are marked as VOIDED upon initialization. Most of these local
nsXPIDLString variables are immediately set via getter_Copies(), which will
either assign a string value (using Adopt()) or do SetIsVoid(). These can be
trivially converted to nsString, which will get the same treatment.

The patch suitably converts the remaining nsXPIDLString local variable as well.

--HG--
extra : rebase_source : 5fff9f2c6844559198f601853f8db08564add7d5
2017-08-08 16:07:55 +10:00
Nicholas Nethercote f941156987 Bug 1386600 - Change nsIStringBundle methods to return |AString| instead of |wstring|. r=emk,sr=dbaron.
This removes about 2/3 of the occurrences of nsXPIDLString in the tree. The
places where nsXPIDLStrings are null-checked are replaced with |rv| checks.

The patch also removes a couple of unused declarations from
nsIStringBundle.idl.

Note that nsStringBundle::GetStringFromNameHelper() was merged into
GetStringFromName(), because they both would have had the same signature.

--HG--
extra : rebase_source : ac40bc31c2a4997f2db0bd5069cc008757a2df6d
2017-08-04 14:40:52 +10:00
Wes Kocher 3c2dc39278 Merge m-c to inbound, a=merge
MozReview-Commit-ID: BgPWEtPV0sy
2017-07-31 17:49:47 -07:00