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

19553 Коммитов

Автор SHA1 Сообщение Дата
Masayuki Nakano 1895d1bfe3 Bug 1514940 - part 1: Forcibly disable new keyCode/charCode value of keypress events if the document is Confluence r=smaug,Ehsan,kmag
Old Confluence does not aware of conflated model keypress event (see UI Events
spec, https://w3c.github.io/uievents/#determine-keypress-keyCode).
Additionally, Confluence can be hosted with any domains.  Therefore, we cannot
use blacklist to disable the conflated model keypress event only on it.

This patch checks whether current or parent document is Confluence with JS
module, called KeyPressEventModelCheckerChild.  For kicking this module,
nsHTMLDocument dispatches an custom event, CheckKeyPressEventModel, when it
becomes editable only first time.  Finally, if it's a Confluence instance, the
module let PresShell know that we need to use split model keypress event in it.

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

--HG--
extra : moz-landing-system : lando
2019-02-05 11:35:43 +00:00
Emilio Cobos Álvarez 8b10ad2988 Bug 1440384 - Rename FinishStyle to TriggerImageLoads. r=boris
That's all it does now. This will prevent other misuse and make it clearer.

Differential Revision: https://phabricator.services.mozilla.com/D18568
2019-02-04 23:14:47 +01:00
Ting-Yu Lin 97005f50c2 Bug 1520722 Part 2 - When removing bidi continuations, go no further than the block which needs resolution. r=dbaron
When doing bidi resolution for column-content blocks, we may still
traverse the parent chain up in RemoveBidiContinuation, reach
nsColumnSetFrame, and accidentally convert nsColumnSetFrame's
continuation into fluid ones.

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

--HG--
extra : moz-landing-system : lando
2019-02-01 06:14:27 +00:00
Masayuki Nakano 2e1d79e20f Bug 1466208 - part 7: Create PresShell::EventHandler::GetFrameForHandlingEventWith() to retrieve a frame which is necessary to handle event with another PresShell instance r=smaug
Next, we need to look for a frame for first parameter of calling
PresShell::HandleEvent() of another PresShell instance.  This patch creates
PresShell::EventHandler::GetFrameForHandlingEventWith() to do it.

Unfortunately, the result is used in 3 patterns.  One is, the caller should
stop handling the event.  Another one is, the caller should keep handling
the event by itself.  The other is, the caller should call
PresShell::HandleEvent() of different PresShell instance.  Therefore, this
patch makes the method take aFrame of the caller.  Then, the caller can check
the last 2 patterns with check the result is same as aFrame.  This is not so
smart approach, but I have no better idea without adding a bool argument or
making the return type bool and adding out argument of nsIFrame.

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

--HG--
extra : moz-landing-system : lando
2019-02-01 02:15:54 +00:00
Eitan Isaacson da315919ab Bug 1515774 - Introduce mScreenOffset for pinch and multitouch events. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D17043

--HG--
extra : moz-landing-system : lando
2019-01-31 16:46:10 +00:00
Masayuki Nakano dfea86595f Bug 1466208 - part 6: Clean up PresShell::EventHandler::GetRetargetEventDocument() r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D16956

--HG--
extra : moz-landing-system : lando
2019-01-31 02:28:07 +00:00
Ting-Yu Lin 5ec0177dc3 Bug 1504053 - Reframe multi-column container if inserting a subtree with a column-span child. r=dbaron
Differential Revision: https://phabricator.services.mozilla.com/D16077

--HG--
extra : moz-landing-system : lando
2019-01-31 02:22:49 +00:00
Masayuki Nakano ed89310149 Bug 1466208 - part 5: Create PresShell::EventHandler::GetRetargetEventDocument() retrieve retarget document of coming event r=smaug
In some cases, PresShell::EventHandler::HandleEvent() needs to call
HandleEvent() of another instance.

For retrieving the instance, we need to compute retarget document first.
This patch makes new method to retrieve it.  The following patch will clean
up it.

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

--HG--
extra : moz-landing-system : lando
2019-01-31 02:24:51 +00:00
Masayuki Nakano 6a6fca62ba Bug 1466208 - part 4: Create PresShell::EventHandler::GetCapturingContentFor() to retrieve capturing content for specific event r=smaug
PresShell::HandleEvent() treats capturing content only when received event is
related to pointing device.  And it's used in 2 purposes.  One is for computing
to target document of coming event.  The other is for handling events using
coordinates.  Therefore, if we create a helper method to retrieve it, we can
move the variable into smaller blocks.

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

--HG--
extra : moz-landing-system : lando
2019-01-30 07:17:43 +00:00
Masayuki Nakano 107bda7f6a Bug 1466208 - part 3: Rewrite PresShell::EventHandler::MaybeHandleEventWithAccessibleCaret() with early-return style r=smaug
Because of spinning out from PresShell::EventHandler::HandleEvent(), we can use
early-return style in MaybeHandleEventWithAccessibleCaret().  This patch
rewrites MaybeHandleEventWithAccessibleCaret() with the style.

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

--HG--
extra : moz-landing-system : lando
2019-01-30 02:33:05 +00:00
shindli f7752f11b1 Merge inbound to mozilla-central. a=merge 2019-01-30 06:07:01 +02:00
Olli Pettay a3dd58ad75 Bug 1521786 - Keep RefreshDriver ticking before first contentful paint, r=farre
--HG--
extra : rebase_source : 51e9d056b7ec7874e76a746740de5e2bb965f4e3
2019-01-29 23:57:26 +02:00
Olli Pettay f658ec7c25 Bug 1506949, use idle queue for RefreshDriver tick betweek fcp and load, r=farre
--HG--
extra : rebase_source : c86d5c084a43fffb81f151352070551c85869d4f
2019-01-29 23:54:38 +02:00
Ting-Yu Lin 305e652840 Bug 1523061 Part 2 - Remove static ListTag(FILE*, const nsIFrame*). r=dholbert
Many of the modifications are guarded by #ifdefs. I verify them locally
by manually define them in nsBlockDebugFlags.h and nsLinelayout.cpp.

Note that I replace "mFrame" with "frame" in lines guarded by
NOISY_BLOCK_DIR_MARGINS in nsBlockFrame.cpp because they were
incorrectly renamed in Bug 1277129 Part 6a.
https://hg.mozilla.org/mozilla-central/rev/a70b04f074fc

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

--HG--
extra : moz-landing-system : lando
2019-01-29 21:22:14 +00:00
garvitdelhi 6bd950c37a Bug 1519185: Remove AttributeWillChange aNewValue parameter r=emilio,bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D17073
2019-01-29 17:59:38 +01:00
Brindusan Cristian e95014d96e Backed out changeset 1885a467de3c (bug 1523500) for mochitest assertion failures at /mochitest/general/test_resizeby.html. 2019-01-30 00:25:00 +02:00
Emilio Cobos Álvarez 15995b8b40 Bug 1523500 - Don't use cross-doc checks for perspective scrolling. r=mattwoodrow
Would be pretty surprising if a perspective transform scrolled stuff in an
iframe for example.

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

--HG--
extra : moz-landing-system : lando
2019-01-29 19:39:50 +00:00
Cosmin Sabou 6b126c3ff0 Backed out 2 changesets (bug 1519185) build bustages on nsMenuGroupOwnerX.mm. CLOSED TREE
Backed out changeset e1de5282e21a (bug 1519185)
Backed out changeset 00d8afb01890 (bug 1519185)

--HG--
extra : rebase_source : d92a7d4606992503f24c66093d35676e12a84ff0
2019-01-29 18:22:46 +02:00
garvitdelhi 3b6550b93f Bug 1519185: Remove AttributeWillChange aNewValue parameter r=emilio,bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D17073

--HG--
extra : moz-landing-system : lando
2019-01-29 15:27:02 +00:00
Emilio Cobos Álvarez ed86efb17c Bug 1523062 - Devirtualize a few nsIPresShell bits. r=TYLin,rhunt
No good reason they're virtual, since there's only one nsIPresShell
implementation.

Differential Revision: https://phabricator.services.mozilla.com/D17735
2019-01-29 15:24:31 +01:00
Masayuki Nakano 9c2714dfdc Bug 1466208 - part 2: Create PresShell::EventHandler::MaybeHandleEventWithAccessibleCaret() to handle event with AccessbleCaretEventHub r=smaug
PresShell::EventHandler::HandleEvent() is too big.  That makes us difficult to
understand the flow of them.  So, first of all, we should split the method to
smaller chunks.  Then, we can understand what we're doing in HandleEvent() more.

This patch creates MaybeHandleEventWithAccessibleCaret() for first handling
block in HandleEvent().  Note that the following patch will clean it up.
I.e., this patch just moves the existing block into the new method.

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

--HG--
extra : moz-landing-system : lando
2019-01-29 10:30:35 +00:00
Sebastian Hengst 9ece29fd9b Merge mozilla-central to autoland. CLOSED TREE 2019-01-29 12:59:48 +02:00
Cosmin Sabou 599a15d354 Merge mozilla-inbound to mozilla-central. a=merge 2019-01-29 12:01:56 +02:00
Masayuki Nakano 015f67628e Bug 1466208 - part 1: Create stack class to handle events in PresShell r=smaug
PresShell::HandleEvent() and PresShell::HandleEventInternal() are too big.
Additionally, we have a lot of methods used only by them.  So, if we'll
split those big methods, PresShell will have a lot of small methods which
are not grouped as a part of event handling.  That's too bad because some
of them may depend on the calling order, etc.

So, for grouping them, PresShell should create a stack class instance to handle
each event.  Then, we can store shared information in it only while we're
handling an event.

This patch creates PresShell::EventHandler and PresShell methods become
wrappers of the stack class, but this patch does not change any logic in the
code, i.e., just reorganizing existing methods.

Note that HandleEventWithTarget() and HandleEventInternal() need to take
WidgetEvent rather than WidgetGUIEvent.  Additionally, some other methods
require WidgetGUIEvent to refer WidgetGUIEvent::mWidget.  Therefore, this
patch does not make the new class store the event as a member.

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

--HG--
extra : moz-landing-system : lando
2019-01-29 06:04:05 +00:00
Sebastian Hengst b78e4e8667 Merge mozilla-central to mozilla-inbound
--HG--
rename : browser/components/urlbar/tests/legacy/browser_urlbar_search_no_speculative_connect_with_client_cert.js => browser/components/urlbar/tests/browser/browser_urlbar_speculative_connect_not_with_client_cert.js
2019-01-29 02:55:55 +02:00
Edgar Chen 56711d7e2b Bug 1521082 - Don't dispatch pointer event if the touch in touchstart event is already registered; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D16976

--HG--
extra : moz-landing-system : lando
2019-01-29 09:08:05 +00:00
Ryan Hunt a05a3b1068 Bug 1523052 - Only flush pending scroll anchor selection when we have restyling to do. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D17754

--HG--
extra : moz-landing-system : lando
2019-01-26 20:37:45 +00:00
Wei-Cheng Pan c4c1c94f4a Bug 1515822 - Add testcase. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D15320

--HG--
extra : moz-landing-system : lando
2019-01-28 09:11:05 +00:00
Wei-Cheng Pan 9c8a55cba6 Bug 1515822 - Capture frame state in nsCSSFrameConstructor::ContentRemoved. r=emilio,mats
Move CaptureStateForFramesOf into ContentRemoved, so we can traverse frames
which were under display: contents as well.

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

--HG--
extra : moz-landing-system : lando
2019-01-28 11:55:03 +00:00
sotaro be4aa828bd Bug 1522775 - Skip test_will_change.html test with WebRender r=mattwoodrow
Skip the test since content side basically does not do painting when WebRender is used and the test depends on content side painting.

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

--HG--
extra : moz-landing-system : lando
2019-01-28 19:08:11 +00:00
Brindusan Cristian 4faab2f1b6 Merge inbound to mozilla-central. a=merge 2019-01-27 11:35:28 +02:00
Randell Jesup 76bd9e73cc Bug 1522150: Add a DeferredTimers queue ahead of the normal Idle EventQueue r=froyd
* * *
Bug 1522150: Rename NS_IdleDispatch* functions since they take queue identifiers r=froyd
2019-01-26 12:18:05 -05:00
Emilio Cobos Álvarez ba8943e4fd Bug 1514511 - Don't flush if the document is in the bfcache. r=bzbarsky
I think this is slightly better fix given the amount of offenders we have that
don't make sure this is the case.

Generally we get through the flush just fine, but there's code that relies on
nsIDocument::GetShell to return something meaningful, like the styleset code
that gets a pres context.

Differential Revision: https://phabricator.services.mozilla.com/D14689
2019-01-26 08:59:17 +01:00
Glenn Watson a792eb73a1 Bug 1522395 - Fix double inflation of text shadow bounds. r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D17468

--HG--
extra : moz-landing-system : lando
2019-01-25 00:28:46 +00:00
Bobby Holley 9d28f0c412 Bug 1522017 - Introduce StackingContextParams to avoid death by a thousand argument. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D17434
2019-01-24 10:44:35 -08:00
Ting-Yu Lin 24f636a92f Bug 1516739 - Stop reparenting absolute/fixed positioned blocks when constructing multicol container. r=dbaron
The crash happens when we try to reparent the absolute/fixed
positioned children to the non-column-span wrapper's absolute list.

When constructing the multicol container, we want it to be the
absolute/fixed position container, not the moz-column-content anonymous
blocks. Hence the modification in AppendFramesToParent() and
ConstructBlock().

Delete AdjustAbsoluteContainingBlock() because we'd like to reparent
absolute/fixed children to non-first continuation of block descendant of
multicol. And it doesn't crash anymore today.

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

--HG--
extra : moz-landing-system : lando
2019-01-25 07:09:17 +00:00
Ting-Yu Lin 925c1edf69 Bug 1521982 - Adjust callers of nsIFrame::List() in nsBidiPresUtils to stop passing 0 as a const char* argument. r=dholbert
This patch is similar to Bug 1503420 Part 1.

nsIFrame::List()'s second argument should be a const char*, not an
integer. It'll crash if we pass 0 as const char*. Fix the bug by
omitting the argument because the default value of the argument is an
empty string.

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

--HG--
extra : moz-landing-system : lando
2019-01-23 02:24:46 +00:00
Kris Maglione e930b89c34 Bug 1514594: Part 3 - Change ChromeUtils.import API.
***
Bug 1514594: Part 3a - Change ChromeUtils.import to return an exports object; not pollute global. r=mccr8

This changes the behavior of ChromeUtils.import() to return an exports object,
rather than a module global, in all cases except when `null` is passed as a
second argument, and changes the default behavior not to pollute the global
scope with the module's exports. Thus, the following code written for the old
model:

  ChromeUtils.import("resource://gre/modules/Services.jsm");

is approximately the same as the following, in the new model:

  var {Services} = ChromeUtils.import("resource://gre/modules/Services.jsm");

Since the two behaviors are mutually incompatible, this patch will land with a
scripted rewrite to update all existing callers to use the new model rather
than the old.
***
Bug 1514594: Part 3b - Mass rewrite all JS code to use the new ChromeUtils.import API. rs=Gijs

This was done using the followng script:

https://bitbucket.org/kmaglione/m-c-rewrites/src/tip/processors/cu-import-exports.jsm
***
Bug 1514594: Part 3c - Update ESLint plugin for ChromeUtils.import API changes. r=Standard8

Differential Revision: https://phabricator.services.mozilla.com/D16747
***
Bug 1514594: Part 3d - Remove/fix hundreds of duplicate imports from sync tests. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16748
***
Bug 1514594: Part 3e - Remove no-op ChromeUtils.import() calls. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16749
***
Bug 1514594: Part 3f.1 - Cleanup various test corner cases after mass rewrite. r=Gijs
***
Bug 1514594: Part 3f.2 - Cleanup various non-test corner cases after mass rewrite. r=Gijs

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

--HG--
extra : rebase_source : 359574ee3064c90f33bf36c2ebe3159a24cc8895
extra : histedit_source : b93c8f42808b1599f9122d7842d2c0b3e656a594%2C64a3a4e3359dc889e2ab2b49461bab9e27fc10a7
2019-01-17 10:18:31 -08:00
Ryan Hunt 3e87663a7f Bug 1518640 - Use the visual viewport for anchor node selection. r=botond
--HG--
extra : rebase_source : 0f7038a4bf6b7d2a7958177b883c7fbb4130d288
extra : intermediate-source : 97681055c88c7af478467d6c76e227d0cb916aad
extra : source : 27bbb318ecb4f44c315f87584bdeb1b239d80cef
2019-01-22 13:37:16 -06:00
Emilio Cobos Álvarez 97bafbef75 Bug 1521137 - Remove another font API outside of the pres context. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D17005
2019-01-22 15:54:06 +01:00
Emilio Cobos Álvarez 8addc7a883 Bug 1521137 - The pres context's base min font size is dead code. r=heycam
Nobody uses it from js, and we only thread the value around in layout. Let's
kill all this code.

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

--HG--
extra : moz-landing-system : lando
2019-01-21 07:15:02 +00:00
Razvan Maries c941c393cb Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2019-01-21 20:01:06 +02:00
Razvan Maries 299b5e79f7 Merge mozilla-inbound to mozilla-central a=merge 2019-01-21 19:50:56 +02:00
Ehsan Akhgari 4137a92662 Bug 1514340 - Part 2: Break out the content blocking related notifications into nsIWebProgressListener.onContentBlockingEvent(); r=baku,johannh
Differential Revision: https://phabricator.services.mozilla.com/D16052
2019-01-21 09:58:50 -05:00
Jon Coppeard a96229ddb3 Bug 1512749 - Convert JS::gcreason::Reason to enum class JS:GCReason r=jonco r=mccr8 2019-01-21 13:09:12 +00:00
Cameron McCormack f07ac4772d Bug 1519745 - Remove out of date comment in nsStyleSheetService::Init. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D16427

--HG--
extra : moz-landing-system : lando
2019-01-21 09:43:41 +00:00
Cosmin Sabou 7ccc9d8b0b Merge mozilla-inbound to mozilla-central. a=merge 2019-01-19 11:57:49 +02:00
Greg Tatum 7042c8f1c3 Bug 1520526 - Add categories to all profiler markers; r=mstange
This commit adds categories to all markers. This way the profiler's
marker categories and frame label categories agree. There are a few
duplicate category properties on some of the marker payloads, but
this could be cleaned up in a follow-up if needed.

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

--HG--
extra : moz-landing-system : lando
2019-01-18 15:40:15 +00:00
Emilio Cobos Álvarez 62fdf6f313 Bug 1430623 - Move the lang font prefs to Document instead of nsPresContext. r=jfkthame
This will allow me to (in different patches):

 * Make the default style structs constructible without a pres context (default
   color and co. would need to be faked or moved to Document as well, but that's
   ok, since those cannot affect media queries, the default font-size does).

 * Remove the nsPresContext pointer from ComputedStyle (moving it to nsFrame,
   probably).

That would in turn allow me to have the default style computed without a pres
context, which allows us to fix both bug 1490401 and bug 1471231.

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

--HG--
extra : moz-landing-system : lando
2019-01-18 13:43:06 +00:00
sotaro c7b3c3a546 Bug 1508522 - Relax aysnc animation size restriction with WebRender r=mattwoodrow
Performance of sync animation with large images is worse with WebRender than non-WebRender case. We want to use async animation as much as possible and relax aysnc animation size restriction. With WebRender, memory usage increase for async animation is limited compared to non-WebRender case.  Image does not needs additional TextureClient allocation for async animation and majority of frames are comverted to WebRenderCommands. Then we could relax aysnc animation size restriction with WebRender.

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

--HG--
extra : moz-landing-system : lando
2019-01-17 23:59:44 +00:00
Emilio Cobos Álvarez 15a7133a82 Bug 1519371 - Reframe less as a result of UpdateContainingBlock. r=dholbert
This patch should make the detection of whether we should reframe in
UpdateContainingBlock exact.

It should have no behavior change, but sometimes reframing can confuse event
handling code or what not.

We don't have a reduced test-case for the event handling regression this fixes,
but I added a test to ensure we don't uselessly reframe in this case that fails
without this patch and passes with.

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

--HG--
extra : moz-landing-system : lando
2019-01-17 21:00:34 +00:00
Victor Porof 86d7401fa8 Bug 1507704 - Migrate the columnpicker binding into a custom element, r=bgrins 2019-01-14 09:38:24 +01:00
Margareta Eliza Balazs 9dda825205 Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-01-18 12:31:59 +02:00
Ehsan Akhgari e5e885ae31 Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre
# ignore-this-changeset

--HG--
extra : amend_source : 7221c8d15a765df71171099468e7c7faa648f37c
extra : histedit_source : a0cce6015636202bff09e35a13f72e03257a7695
2019-01-18 10:16:18 +01:00
Ryan Hunt 5c7254fba8 Bug 1519462 - Coalesce all scroll anchor adjustments to be performed after layout when flushing notifcations. r=dholbert
We currently perform anchor adjustment in three spots:
  1. If the target of RestyleManager::RecomputePosition is in a scroll anchor chain
  2. If the reflow root is in a scroll anchor chain
  3. In nsHTMLScrollFrame::DidReflow, for itself

It looks like it's possible for a scroll anchor container to be adjusted by (1)
and (2 or 3) in the same PresShell flush.

This should be okay, except that we consume mSuppressAnchorAdjustment when
performing an adjustment, and this can lead us to miss the second time that
we perform adjustments in a PresShell flush.

This commit reworks how we run anchor adjustments so that we collect all
scroll anchor containers that should be adjusted, and only perform the
adjustments once.

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

--HG--
extra : source : cbdbd08379d99f9d55f756c57d728c28331be5da
2019-01-13 00:54:05 -06:00
Brad Werth 3ea8e6c214 Bug 1504659 Part 1: Make RefreshVisualViewportSize allow non-APZ zooming, and call it during RefreshViewportSize. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D13173

--HG--
extra : moz-landing-system : lando
2019-01-16 21:56:54 +00:00
Cosmin Sabou f621d8b160 Backed out 5 changesets (bug 1504659) for android reftest failures. CLOSED TREE
Backed out changeset 793e842be7f6 (bug 1504659)
Backed out changeset 229ed2090371 (bug 1504659)
Backed out changeset 0818e2b1f2c5 (bug 1504659)
Backed out changeset bd806b413342 (bug 1504659)
Backed out changeset 3e12097e2b60 (bug 1504659)
2019-01-16 21:23:39 +02:00
Brad Werth 0a5341e566 Bug 1504659 Part 1: Make RefreshVisualViewportSize allow non-APZ zooming, and call it during RefreshViewportSize. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D13173

--HG--
extra : moz-landing-system : lando
2019-01-16 17:09:24 +00:00
Daniel Varga c4bdfad8bd Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2019-01-16 06:56:15 +02:00
Daniel Varga 55006aaaec Merge mozilla-inbound to mozilla-central. a=merge 2019-01-16 06:49:11 +02:00
Cameron McCormack cc5d047c75 Bug 1519737 - Move pluginProblemBinding.css to the UA style sheet cache. r=emilio,timdream
Differential Revision: https://phabricator.services.mozilla.com/D16430

--HG--
rename : toolkit/pluginproblem/content/pluginProblemBinding.css => layout/style/res/pluginproblem.css
extra : moz-landing-system : lando
2019-01-16 03:37:43 +00:00
Dorel Luca de46e66fcd Backed out changeset a85699150a8b (bug 1519737) for browser chrome failure in browser/base/content/test/static/browser_parsable_css.js
--HG--
rename : layout/style/res/pluginproblem.css => toolkit/pluginproblem/content/pluginProblemBinding.css
2019-01-16 03:25:22 +02:00
Cameron McCormack f11cf08512 Bug 1519737 - Move pluginProblemBinding.css to the UA style sheet cache. r=emilio,timdream
Differential Revision: https://phabricator.services.mozilla.com/D16430

--HG--
rename : toolkit/pluginproblem/content/pluginProblemBinding.css => layout/style/res/pluginproblem.css
extra : moz-landing-system : lando
2019-01-14 21:51:59 +00:00
Emilio Cobos Álvarez 5c65710484 Bug 1516410 - Fix some display: contents code in ContentRemoved. r=mats
There's no real behavior change, since:

 * aFlags right now is only used for whitespace suppression optimizations (which
   we don't do when display: contents is involved anyway).

 * The CouldBeDisplayContents() check is only an optimization: we're
   unconditionally recursing into ContentRemoved now, which is not incorrect,
   just inefficient.

I found this while reviewing https://phabricator.services.mozilla.com/D15319
(where this _would_ have an impact on behavior).

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

--HG--
extra : moz-landing-system : lando
2019-01-15 18:19:36 +00:00
Ting-Yu Lin 05ac470320 Bug 1503420 Part 2 - Fix appending a subtree with column-span descendants under the ::moz-column-content. r=emilio
The elements under <body> are treat as content append, so their frames
will be construct by nsCSSFrameConstructor::ContentAppended.

This patch fixed only the simple "append" case which is appending to the
last continuation of ::moz-column-content. For other more complex
appending or inserting cases, we might need to reframe (bug 1504053).

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

--HG--
extra : moz-landing-system : lando
2019-01-15 03:48:02 +00:00
Ting-Yu Lin b3d7605af9 Bug 1503420 Part 1 - Adjust some callers of nsIFrame::List() to stop passing 0 as a const char* argument. r=dholbert
To reproduce, execute
"GECKO_FRAMECTOR_DEBUG_FLAGS=really-noisy-content-updates ./mach run".

nsIFrame::List()'s second argument should be a const char*, not an
integer. We can fix the bug by omitting it because the default value of
the argument is an empty string.

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

--HG--
extra : moz-landing-system : lando
2019-01-09 21:02:13 +00:00
Bogdan Tara e94442500f Merge inbound to mozilla-central. a=merge 2019-01-15 18:09:48 +02:00
Hiroyuki Ikezoe 496dff9a8b Bug 1423013 - Expand the layout viewport to the minimum scale size for overflow:hidden pages. r=botond,tnikkel
Depends on D15345

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

--HG--
extra : moz-landing-system : lando
2019-01-15 09:48:18 +00:00
Oana Pop Rus c42c2ac75f Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-01-15 11:39:31 +02:00
Oana Pop Rus e6a470fee9 Backed out 3 changesets (bug 1423013) for failing at reftests/transform/compound-1a.html on a CLOSED TREE
Backed out changeset 91624c065046 (bug 1423013)
Backed out changeset 050a2ef2393d (bug 1423013)
Backed out changeset db57901030e9 (bug 1423013)
2019-01-15 09:35:57 +02:00
Narcis Beleuzu 9d87d4782c Backed out 5 changesets (bug 1504659) for reftest failures on frame-reconstruction-scroll-clamping.html.
Backed out changeset 749c9dcbbd7f (bug 1504659)
Backed out changeset 783f7ccbd797 (bug 1504659)
Backed out changeset 231b16b0091e (bug 1504659)
Backed out changeset a88ccc9308e0 (bug 1504659)
Backed out changeset 738e1ee854eb (bug 1504659)
2019-01-15 07:34:58 +02:00
Hiroyuki Ikezoe 4faf5e4991 Bug 1423013 - Expand the layout viewport to the minimum scale size for overflow:hidden pages. r=botond,tnikkel
Depends on D15345

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

--HG--
extra : moz-landing-system : lando
2019-01-15 03:28:10 +00:00
Botond Ballo 869afb0d73 Bug 1509575 - Restore the visual viewport offset from the main thread during a first paint. r=kats
During a "first paint" transaction, compositor-side state such as APZ's copy
of the visual viewport offset is overwritten. However, the scroll frame may
persist on the main thread, and in such a case we want to restore the visual
viewport offset stored in the scroll frame. This comes into play during e.g.
navigation back to a page.

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

--HG--
extra : moz-landing-system : lando
2019-01-15 01:30:53 +00:00
Botond Ballo 1df8d17b47 Bug 1509575 - Make nsIPresShell::mVisualViewportOffset a Maybe so we can tell if it's ever been set. r=kats
This allows us to e.g. avoid sending a value that's (0,0) because it hasn't
been set yet in a visual scroll update.

Depends on D16346

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

--HG--
extra : moz-landing-system : lando
2019-01-15 01:30:55 +00:00
Botond Ballo e99815f1f0 Bug 1509575 - Extend the internal visual scroll API to allow specifying "restore" vs. regular priority. r=kats
The distinction is not exposed at the JS level which currently always uses
"restore", but it could be if necessary.

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

--HG--
extra : moz-landing-system : lando
2019-01-15 01:30:43 +00:00
Brad Werth d2660a3462 Bug 1504659 Part 1: Make RefreshVisualViewportSize allow non-APZ zooming, and call it during RefreshViewportSize. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D13173

--HG--
extra : moz-landing-system : lando
2019-01-14 20:07:22 +00:00
Ting-Yu Lin 3bd2052ec3 Bug 1486521 - Make Selection::Stringify() stop flushing frames if AccessibleCaretManager doesn't allow so. r=emilio
The added crashtest still crashes on Android verify runs (TV) for
unknown reasons, so skip it.

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

--HG--
extra : moz-landing-system : lando
2019-01-14 04:58:59 +00:00
Daniel Varga 3870494408 Merge mozilla-inbound to mozilla-central. a=merge 2019-01-13 12:05:22 +02:00
Hiroyuki Ikezoe 1a788c1224 Bug 1519607 - Use GetScrollPortRect() size for the root scroll frame in nsLayoutUtils::GetRootMetadata. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D16384

--HG--
extra : moz-landing-system : lando
2019-01-13 01:27:15 +00:00
Ryan VanderMeulen 43004ee1dc No bug - Clean up dom/base/crashtests/crashtests.list a bit. r=me
Also re-enables some tests which no longer timeout intermittently.

--HG--
extra : rebase_source : c99178e1028e7d9ab2e7fd8da30220b37d311a95
2019-01-12 11:54:11 -05:00
Cameron McCormack cba84d5116 Bug 1519296 - Part 3: Make PresShell::AddOverrideStyleSheet append its sheet rather than prepend r=emilio
We only ever add a single sheet (EditorOverride.css) there anyway.

Depends on D16282

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

--HG--
extra : moz-landing-system : lando
2019-01-12 06:45:52 +00:00
Cameron McCormack 4e88281a6e Bug 1519296 - Part 2: Make PresShell::AddUserSheet just find the right place to insert r=emilio
Depends on D16281

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

--HG--
extra : moz-landing-system : lando
2019-01-12 06:46:00 +00:00
Cameron McCormack 7cd9d6695b Bug 1519296 - Part 1: Use a sensible order when filling the style set with User and Agent sheets r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D16281

--HG--
extra : moz-landing-system : lando
2019-01-12 00:50:01 +00:00
Boris Zbarsky 188ff78bd7 Bug 1519193 part 4. Convert AssertNoFramesInSubtree to using ShadowIncludingTreeIterator. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D16245

--HG--
extra : moz-landing-system : lando
2019-01-12 03:20:05 +00:00
Noemi Erli f53cd6172e Backed out 5 changesets (bug 1519193) for build bustages in Document.cpp CLOSED TREE
Backed out changeset e118466df64d (bug 1519193)
Backed out changeset 12d89a7fe296 (bug 1519193)
Backed out changeset 08b0f2b9a96a (bug 1519193)
Backed out changeset 1caa462e7f08 (bug 1519193)
Backed out changeset aae6e06aa88b (bug 1519193)
2019-01-12 00:29:37 +02:00
Boris Zbarsky c88360208d Bug 1519193 part 4. Convert AssertNoFramesInSubtree to using ShadowIncludingTreeIterator. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D16245

--HG--
extra : moz-landing-system : lando
2019-01-10 22:24:24 +00:00
Jan Henning 79fe5e1e56 Bug 1498812 - Part 11: Use Visual Viewport for storing scroll position in the PresState. r=botond,tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D15691

--HG--
extra : moz-landing-system : lando
2019-01-11 19:50:24 +00:00
Jan Henning 0ce3612dce Bug 1498812 - Part 10: Return whether SetVisualViewportOffset was a no-op. r=botond
So that the caller doesn't have to retrieve and compare the previous viewport
offset himself.

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

--HG--
extra : moz-landing-system : lando
2019-01-11 19:50:17 +00:00
Razvan Maries 642dd2cc11 Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2019-01-11 17:33:16 +02:00
Razvan Maries 22218f3515 Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2019-01-11 11:36:24 +02:00
Andreea Pavel 2a44f0abe0 Backed out 2 changesets (bug 1509575) for failing wpt at css/cssom-view/scroll-behavior-main-frame-root.html on a CLOSED TREE
Backed out changeset 245d6855cd3b (bug 1509575)
Backed out changeset 7dcfa876f76c (bug 1509575)
2019-01-11 09:08:19 +02:00
Daniel Varga 1b2c69a5c1 Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2019-01-11 06:23:02 +02:00
Botond Ballo 1346c277b1 Bug 1509575 - Restore the visual viewport offset from the main thread during a first paint. r=kats
During a "first paint" transaction, compositor-side state such as APZ's copy
of the visual viewport offset is overwritten. However, the scroll frame may
persist on the main thread, and in such a case we want to restore the visual
viewport offset stored in the scroll frame. This comes into play during e.g.
navigation back to a page.

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

--HG--
extra : moz-landing-system : lando
2019-01-11 04:21:29 +00:00
Masayuki Nakano f421d7b889 Bug 181137 - part 8: Make ContentIteratorBase and its subclasses non-refcountable r=smaug
This patch makes ContentIteratorBase, PostContentIterator, PreContentIterator
and ContentSubtreeIterator classes non-refcountable because most users can
create their instances in stack and such users may be in a hot path.  So,
we can save a lot of cost of instantiation.

Unfortunately, only ScriptableContentIterator creates one of the concrete
classes and needs to destroy it properly.  Therefore, its
EnsureContentIterator(), destructor, traverse and unlink code becomes messy.
However, ScriptableContentIterator was designed for automated tests and we
need to maintain it not so many times.  Therefore, improvement of other
users must be worthwhiler than this demerit.

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

--HG--
extra : moz-landing-system : lando
2019-01-11 01:52:26 +00:00
Masayuki Nakano 3b6d4adf2d Bug 181137 - part 3: Make all users of ContentSutreeIterator treat it directly rather than via nsIContentIterator r=smaug
Now, all users of ContentSubtreeIterator can access it directly.  This patch
makes them use the concrete class directly.

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

--HG--
extra : moz-landing-system : lando
2019-01-11 01:49:00 +00:00
Cameron McCormack 788d8b2454 Bug 1519006 - Stop null checking infallible style sheet accessors in nsDocumentViewer::CreateStyleSet r=xidorn
Differential Revision: https://phabricator.services.mozilla.com/D16151

--HG--
extra : moz-landing-system : lando
2019-01-11 03:12:28 +00:00
Cameron McCormack 8106cebcf9 Bug 1519001 - Rename some style sheet accessors on nsLayoutStylesheetCache to indicate they can return null r=xidorn
Differential Revision: https://phabricator.services.mozilla.com/D16150

--HG--
extra : moz-landing-system : lando
2019-01-11 03:12:05 +00:00
Botond Ballo 2d2fffe3ea Bug 1507279 - Add a mechanism for the main thread to set a visual viewport offset. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D16141

--HG--
extra : moz-landing-system : lando
2019-01-10 20:59:13 +00:00
Jeff Muizelaar 17b5ec3dd2 Bug 1509182. Switch from using WrFilterOp to using FilterOp directly. r=nical
This avoids code duplication and simplifies push_stacking_context

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

--HG--
extra : moz-landing-system : lando
2019-01-10 19:41:08 +00:00
Cosmin Sabou 88993e172c Backed out changeset 10dedfde1015 (bug 1509182) for causing build bustages.
--HG--
extra : rebase_source : 4389819cbb88af16724480f571b0abcd027015ba
2019-01-10 20:52:49 +02:00