Commit Graph

56856 Commits

Author SHA1 Message Date
Emilio Cobos Álvarez
41d82fb883 Bug 1361659: Initialize BRFrame::mAscent. r=mats
MozReview-Commit-ID: 5jZJAbPb0nG
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-05-03 22:06:35 +02:00
Emilio Cobos Álvarez
50e406b9a8 Bug 1361513: Initialize nsInlineFrame::mBaseline. r=mats
MozReview-Commit-ID: HGk3wX13ofE
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-05-03 22:06:33 +02:00
Emilio Cobos Álvarez
13cbafea32 Bug 1361749: Initialize nsSliderFrame::{mDragStart,mThumbStart}. r=mats
MozReview-Commit-ID: 6YeKLkjYrCB
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-05-03 22:06:31 +02:00
Emilio Cobos Álvarez
2cf3a7138b Bug 1361749: Initialize nsScrollbarFrame::{mIncrement, mSmoothScroll}. r=mats
MozReview-Commit-ID: 8rgUPNr24gF
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-05-03 22:06:29 +02:00
Emilio Cobos Álvarez
4f7cb19d67 Bug 1361749: Initialize nsMenuPopupFrame::{mXPos, mYPos}. r=mats
MozReview-Commit-ID: 3T7ZzFPz0Wa
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-05-03 22:06:26 +02:00
Emilio Cobos Álvarez
66d00246ee Bug 1361517: Initialize nsBoxFrame::{mFlex,mAscent}. r=mats
MozReview-Commit-ID: H2U2NSswEP2
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-05-03 22:06:25 +02:00
Emilio Cobos Álvarez
8850cff8d0 Bug 1361596: Initialize nsSVGPatternFrame::mSource. r=mats
MozReview-Commit-ID: JHtIRjtNN1k
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-05-03 22:06:22 +02:00
Emilio Cobos Álvarez
6eb15ae6a9 Bug 1361749: Initialize on construction HTMLColorRule. r=mats
MozReview-Commit-ID: LHdHk2kjWeE
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-05-03 22:06:20 +02:00
Emilio Cobos Álvarez
6354ad78fb Bug 1361612: Initialize nsPlaceholderFrame::mOutOfFlowFrame. r=mats
MozReview-Commit-ID: CZoX9t8noAv
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-05-03 22:06:14 +02:00
Emilio Cobos Álvarez
ab91c2ef94 Bug 1361656: Initialize nsGridContainerFrame::mDidPushItemsBitMayLie. r=mats
Again, always initialized before use, and debug-only in any case, but worth
doing I think.

MozReview-Commit-ID: BHLReSWUU29
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-05-03 22:05:42 +02:00
Emilio Cobos Álvarez
6b268e09c2 Bug 1361749: Initialize all the fields in nsFrameContinuationState. r=mats
Not all of them are initialized/used in all the paths, but worth doing it just
for sanity.

MozReview-Commit-ID: 2EsHQCc0U8P
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-05-03 22:05:41 +02:00
Emilio Cobos Álvarez
b36b5b0ec6 Bug 1361749: Remove unused empty constructor of ScrollbarStyles. r=mats
MozReview-Commit-ID: 6UHSSr4Imiu
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-05-03 22:05:41 +02:00
Gabor Krizsanits
eb829f971b Bug 1341008 - Use the preallocated process manager by default. r=billm, r=kmag
To mitigate the delay that a new content process startup might cause, when the
browser reaches a non-busy state we attempt to prelaunch an empty content process
in the background that can be grabbed and used the next time we need one. This patch
enables the preallocated process manager by default and attempts to fix all the
issues that prevented us doing this sooner.
2017-05-03 12:00:20 +02:00
Carsten "Tomcat" Book
b0e1da2a90 merge mozilla-inbound to mozilla-central a=merge 2017-05-03 10:11:26 +02:00
Wes Kocher
e141e24ffb Merge m-c to autoland, a=merge
MozReview-Commit-ID: 1peTFbNMVnU
2017-05-02 17:38:11 -07:00
Wes Kocher
df3f95a52f Merge inbound to m-c a=merge
MozReview-Commit-ID: 4SpokMW1d3I
2017-05-02 17:35:06 -07:00
Emilio Cobos Álvarez
cc46407803 Bug 1361368: Don't unnecessarily nullcheck the parent frame in ReflowInput::InitConstraints. r=mats
That function has a special path for when there's no parent reflow input, and if
there's a parent reflow input there should always be a parent frame.

MozReview-Commit-ID: EYh0aE4ozBg
2017-05-02 18:15:50 +02:00
Brad Werth
a3a59ddf78 Bug 1348481 Part 6: Adjust expected error counts for mochitests (generally greatly reduced). r=heycam
MozReview-Commit-ID: IDek7fUGQPo

--HG--
extra : rebase_source : 7708217f975b7d14b9ed122358b43da57f57cef8
2017-05-01 17:57:01 -07:00
Brad Werth
f7a48d11c2 Bug 1348481 Part 5: Add new reftests to test servo stylesheet set integrity and cloning behavior. r=heycam
MozReview-Commit-ID: CNFH6eqvuhK

--HG--
extra : rebase_source : 1a4691fd613cc7780ed89b01650354ea5f8d959e
2017-05-01 09:55:28 -07:00
Brad Werth
5426d724b2 Bug 1348481 Part 4: Turn back on unexpected pass reftests. r=heycam
MozReview-Commit-ID: DjQ1NaWx7M4

--HG--
extra : rebase_source : 121b7fa4d64aebd1a43207ef1c3810bccbb12575
2017-05-01 09:52:46 -07:00
Thomas Nguyen
6c7694640d Bug 1354563 - Return value of setting referrer could be ignored when loading style. r=heycam
The referrer header is optional field and it should not block loading style

MozReview-Commit-ID: fgm5A2MjRW
2017-04-27 20:34:00 +02:00
Brian Birtles
5267613207 Bug 1334583 - Pass a separate timeOrigin and startTime for compositor animations; r=hiro
By passing the startTime as a TimeDuration we are able to represent times in the
distant past (and with the same range as we can represent on the main thread so
that if we do encounter range errors in future, they should not differ between
the main thread and the compositor).

This patch includes a crashtest. I have verified that, without the code changes
included in this patch, this crashtest fails on debug builds on OSX.

MozReview-Commit-ID: EDuKLzfEC0K

--HG--
extra : rebase_source : 1883080fdfac8c33f70698145f21e67cbdfdd4f2
2017-05-02 16:49:51 +09:00
Wes Kocher
5b73758a65 Merge m-c to inbound, a=merge
MozReview-Commit-ID: ILz91Vj4gT5
2017-05-02 17:39:58 -07:00
Robert Longson
0c1b6c1fcc Bug 1347409 part 2 - serialise fill and stroke fallback properly r=cam 2017-05-02 22:12:59 +01:00
Brad Werth
e2e3019c59 Bug 1348481 Part 3: Fix a dangerous typo in StyleSetHandleInlines (replaced one variable with another) and add assert to catch the problem it created. r=heycam
MozReview-Commit-ID: L2tfMt7TM60

--HG--
extra : rebase_source : 7047ed8922bae65d4ecb30c157559959d5a59e51
2017-04-18 11:29:13 -07:00
Brad Werth
3c02700e0e Bug 1348481 Part 2: Gecko-side track unique IDs for each stylesheet and send them to Servo. r=heycam
MozReview-Commit-ID: 7ZaQYhjdYmG

--HG--
extra : rebase_source : 4f1479ca32a305e16c4da8b3ca1c4532f7040258
2017-05-01 16:46:41 -07:00
Neerja Pancholi
c4d6031bdc Bug 1361207 - Changed appropriate calls to nsIFrame::IsThemed() to use overload with nsStyleDisplay* as argument to avoid redundant calls to StyleDisplay() r=dholbert
MozReview-Commit-ID: 65cmxFOgZeN

--HG--
extra : rebase_source : 98b2ce922b2bde9295ab2fb93cad2c3897a087ee
2017-05-01 18:16:20 -07:00
Aryeh Gregor
db1d64129d Bug 1358893 - Stop using document.createEvent("beforeunloadevent") internally; r=smaug
We want to see if we can drop support due to web pages not using it.
Edge and Safari already don't support it, and Chrome reports that usage
is low enough that they're willing to drop it.  But telemetry doesn't
tell us about web usage if we're triggering it via our own internal
code.

MozReview-Commit-ID: 5YBfhQJExHC

--HG--
extra : rebase_source : fd359e3264ba96ef10617f4de767080c94b792fb
2017-04-23 18:18:56 +03:00
Sebastian Hengst
a71bcd1f3c Backed out changeset 46dd4a4338a1 (bug 1352204) for timing out Talos suites g2, o and s. r=backout 2017-05-02 20:19:17 +02:00
Emilio Cobos Álvarez
19033ebd3d Bug 1341102: update expectations for servo/servo#16693. r=me
MozReview-Commit-ID: ChaqxMZyDCD
2017-05-02 19:11:52 +02:00
Emilio Cobos Álvarez
9f4e3916ce Bug 1341102: Test expectation adjustments for servo/servo#16692. r=emilio
MozReview-Commit-ID: A1nJpKcOOHh
2017-05-02 18:18:31 +02:00
Ting-Yu Lin
60af6a6d49 Bug 1361072 - Change caller of RestrictCaretDraggingOffsets() to use getter_AddRefs. r=dholbert
Per description in bug 1361072, this is the standard idiom to assign
outparam pointers of refcounted types.

MozReview-Commit-ID: 6kmDslMs94j

--HG--
extra : rebase_source : c151f0e6050cfd3ce1cf914eeb350166c539d160
2017-05-02 14:24:54 +08:00
Andrew Swan
efb4f22c33 Bug 1352204 Fix test issues with non-MPC extensions r=kmag
Continue to allow non-multiprocessCompatible extensions in automation.
There are a ton of places that would need to be changed, many of which
will be changing soon anyway with the non-webextensions change in 57
so this is mostly the expedient route to keeping the tree green.

MozReview-Commit-ID: EZZoDVdhLfy

--HG--
extra : rebase_source : 34aa762917566b052ade6372280caed72fbfbe9a
2017-05-01 10:34:27 -07:00
Carsten "Tomcat" Book
a439f12e74 merge mozilla-inbound to mozilla-central a=merge 2017-05-02 11:04:56 +02:00
Ting-Yu Lin
918033ba12 Bug 1321754 Part 2 - Update reftest and crashtest expectations for stylo. r=heycam
MozReview-Commit-ID: AunZ2DE209M

--HG--
extra : rebase_source : 4a091cd55581039c8d81f4db9bfbe2af8c0d0863
2017-04-28 14:53:16 +08:00
Ting-Yu Lin
9a6dfb0bc5 Bug 1321754 Part 1 - Add an enum value to SheetParsingMode for agent sheets that use no unsafe rules. r=heycam
scrollbars.css is the only sheet which is parsed as author level, but later
added as agent level in [1]. Add a new enum value so that it can be parsed
as author level in gecko (nsCSSParser::AgentRulesEnabled() will exclude it),
but servo can recognize it as agent level sheet when the sheet is created.

Delete UserRulesEnabled() because no one uses it.

[1] http://searchfox.org/mozilla-central/rev/7419b368156a6efa24777b21b0e5706be89a9c2f/layout/base/nsDocumentViewer.cpp#2326

MozReview-Commit-ID: 2lrV4ogfnHM

--HG--
extra : rebase_source : 02ff7bf64520ec3de5647059f18989a7971a8a5d
2017-04-28 12:17:14 +08:00
Cameron McCormack
42b565d47c Bug 1341102 - stylo: Adjust test expectations for Servo #16683. r=me 2017-05-02 11:57:45 +08:00
Cameron McCormack
0d1233d865 Bug 1361126 - Adjust test expectations. r=me 2017-05-02 10:17:20 +08:00
Mantaroh Yoshinaga
46f5f1d742 Bug 1359281 - Use rounded interpolation value when interpolating the Integer type and Font strech type based on spec. r=birtles
MozReview-Commit-ID: L4aP8MqYpna

--HG--
extra : rebase_source : 350b57c9ee7dbcd0b0261e155191244e64ed3528
2017-05-01 11:07:50 +09:00
Matt Woodrow
82005900e6 Bug 1349418 - Put the unscrolled item in the right place when we're doing container scrolling. r=mstange 2017-04-28 12:45:36 +12:00
Matt Woodrow
c95a73cfc6 Bug 1349418 - Require ASRs to match before allow occlusions between layers. r=mstange 2017-04-21 14:03:40 +12:00
Markus Stange
2a35142b62 Bug 1349418 - Remove checkerboarding code and just use an opaque background color behind root scroll frames. r=kats 2017-04-21 14:02:15 +12:00
Iris Hsiao
2cf79ec292 Merge mozilla-central to mozilla-inbound 2017-05-02 11:10:52 +08:00
Mats Palmgren
facb121186 Bug 1360867 - Make a few classes final to possibly devirtualize some calls. r=dholbert
MozReview-Commit-ID: EyBsvXbfJvK
2017-05-02 03:50:16 +02:00
Mats Palmgren
fdc1a8031f Bug 1359060 - [css-grid] Disallow fit-content() in repeat(auto-fill/fit) track sizes (per the CSS Grid spec). r=dholbert
MozReview-Commit-ID: Eijlbr8lHjV
2017-05-02 03:50:16 +02:00
Daniel Holbert
74687b05c2 Bug 1361086: Simplify UndisplayedMap::GetListFor/GetOrCreateListFor to take nsIContent* rather than nsIContent**. r=emilio
This patch shouldn't affect behavior -- it just takes a latent opportunity for
simplification and removes an unused layer of indirection. These functions were
set up to look like they took outparams, but none of the callers were using the
value left in the outparam.

MozReview-Commit-ID: LaL7YiyVYS2

--HG--
extra : rebase_source : 28466d6ab36da2e3609e7ed0fdb51618e652c7f7
2017-05-01 09:57:55 -07:00
Wes Kocher
9e5f4793f5 Bug 1341102 - Remove fails-if(stylo) for color-stop-clamp-interpolation.html a=bustage
MozReview-Commit-ID: GdF2GufuvpV
2017-05-01 12:00:24 -07:00
Emilio Cobos Álvarez
1e75c0c5e1 Bug 1361041: Avoid posting ReconstructFrame hints to an uninitialized PresShell. r=bz
The call that's causing the crash seems to be [1], that is, we're trying to
recreate frames for the root element, which should always have a frame created
at the initialization of the PresShell.

So the function I removed in that bug had something like the following:

  if (!mDidInitialize) {
    // Nothing to do here.  In fact, if we proceed and aContent is the
    // root we will crash.
    return NS_OK;
  }

Which PostRecreateFramesFor doesn't guard against (because I thought it was not
needed, per tryserver results).

Sounds a lot like we do need that check, though I'd like to have a testcase
where it happens :(

[1]: http://searchfox.org/mozilla-central/rev/3dc6ceb42746ab40f1441e1e659ffb8f62ae78e3/layout/base/nsCSSFrameConstructor.cpp#2420

MozReview-Commit-ID: Lh6SohNmmI6

--HG--
extra : rebase_source : 5b7076f86d41f5489e47ca16ac2f3620812ee9e8
2017-05-01 18:59:50 +02:00
Hiroyuki Ikezoe
641e49c579 Bug 1359669 - Update mochitest and reftest expectations for multiple properties in a keyframe. r=birtles
MozReview-Commit-ID: FC2N33pLySy

--HG--
extra : rebase_source : c08118cc6137729341edfff07104a0fd721c4001
2017-05-02 18:21:44 +09:00
Cameron McCormack
476ddf32bb Bug 1361303 - Part 2: Update test expectations. r=xidorn
MozReview-Commit-ID: 2T23OneWKG0

--HG--
extra : rebase_source : 74a4c12abe9383bfc97be6105c5190f6898c7e44
2017-05-02 16:47:12 +08:00