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

70589 Коммитов

Автор SHA1 Сообщение Дата
Cosmin Sabou 3c54e28fc8 Backed out 2 changesets (bug 1577058) for causing bug 1541915 to nearly permafail.
Backed out changeset c556c5228132 (bug 1577058)
Backed out changeset d00a7e091efd (bug 1577058)
2019-10-27 17:38:58 +02:00
Alex Henrie 74cc0f4dce Bug 1591490 - Use the NS_IS_SURROGATE_PAIR macro everywhere. r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D50697

--HG--
extra : moz-landing-system : lando
2019-10-27 05:05:51 +00:00
Masayuki Nakano 7a894386f2 Bug 1577058 - part 2: Make `nsFrameSelection::CommonPageMove()` handle `nsFrameSelection::ScrollSelectionIntoView()` too r=smaug
Currently, `nsFrameSelection::CommonPageMove()` is called before every caller
calls `nsFrameSelection::ScrollSelectionIntoView()`.  However, when an editing
host has focus, the scroll target may be outside of it.  In such case, without
moving caret, user may want only to scroll the scrollable element.

Chrome behaves like so.  Chrome also can scroll outside scrollable element
of focused editing host.  However, it scrolls caret into view only when
caret is moved actually.  Therefore, it makes sense to follow this behavior.

This patch makes `nsFrameSelection::CommonPageMove()` also call
`nsFrameSelection::ScrollSelectionIntoView()`.  However, it newly takes
`SelectionIntoView` flag for making callers can choose the condition.  I.e.,
`ScrollSelectionIntoView()` should be called always, or only when selection
is actually changed, or shouldn't be called.

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

--HG--
extra : moz-landing-system : lando
2019-10-27 01:44:55 +00:00
Masayuki Nakano 250257d0dd Bug 1577058 - part 1: `nsFrameSelection::CommonPageMove()` should use page scroll amount if there is a scrollable element rather than height of click target r=smaug
`nsFrameSelection::CommonPageMove()` emulates click in selection limiter
when scrollable frame is outside of focused editing host.  However, the
clicked position should be considered with scrollable element's page
scroll amount rather than height of editing host since the height may be
much taller than the scrollable frame.

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

--HG--
extra : moz-landing-system : lando
2019-10-27 01:44:34 +00:00
Brad Werth 0d470caf2a Bug 1561227 Part 1: Make nsDocumentViewer send a new event before setting full zoom levels on the pres contexts. r=emilio
The PreFullZoomChange event gives listeners an opportunity to capture
state before the viewport full zoom changes. Responsive Design Mode uses
this to save and later restore the resolution of the RDM pane.

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

--HG--
extra : moz-landing-system : lando
2019-10-25 21:05:42 +00:00
Emilio Cobos Álvarez e444a94218 Bug 1589766 - Experiment with implementing zoom as a transform + transform-origin shorthand. r=xidorn
This is a gross hack, of course, but has the advantage of not breaking sites
that use both zoom and -moz-transform / -moz-transform-origin.

There should be no behavior change when the pref is off, of course, and the
webcompat team wanted to experiment with this.

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

--HG--
extra : moz-landing-system : lando
2019-10-26 14:17:28 +00:00
Emilio Cobos Álvarez 40a83cda81 Bug 1591577 - Make test_area_url_cursor.html more resilient to having the mouse cursor over the image when the test runs.
Differential Revision: https://phabricator.services.mozilla.com/D50699

--HG--
extra : moz-landing-system : lando
2019-10-26 10:47:23 +00:00
Brian Grinstead ec30cc58df Bug 1587142 - Remove most XBL tests in dom/ r=bzbarsky
The following tests are not removed and need to be ported to Shadow DOM:
- test_bug330925.xhtml
- test_bug372086.html
- test_bug319374.xhtml

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

--HG--
extra : moz-landing-system : lando
2019-10-25 22:38:08 +00:00
Ting-Yu Lin 03c5d676c0 Bug 1587645 Part 2 - Add WritingMode::IsPhysicalLTR(). r=jfkthame
I discovered this while improving `ScrollFrameHelper::IsPhysicalLTR()`
in Part 1. Our code base needs a notion of physical direction. Let's add
it to WritingMode.

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

--HG--
extra : moz-landing-system : lando
2019-10-25 20:01:46 +00:00
Ting-Yu Lin f491e4df0c Bug 1587645 Part 1 - Remove ScrollFrameHelper::GetFrameForDir(). r=emilio
After bug 1102175, the root scroll frame always obtains its used
WritingMode from either body element or root element. The `if (mIsRoot) {}`
block in `GetFrameForDir()` becomes redundant, so does
`GetFrameForDir()` itself.

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

--HG--
extra : moz-landing-system : lando
2019-10-25 20:01:39 +00:00
Ciure Andrei 706c89437b Backed out 8 changesets (bug 1561227) for causing browser_viewport_resizing_scrollbar.js to permafail CLOSED TREE
Backed out changeset aa00b1b62ea7 (bug 1561227)
Backed out changeset b22440a67078 (bug 1561227)
Backed out changeset 4776cec83ae8 (bug 1561227)
Backed out changeset ac88bbefb95f (bug 1561227)
Backed out changeset aef3cfa2f539 (bug 1561227)
Backed out changeset a3759e1a04e2 (bug 1561227)
Backed out changeset cfcf79794049 (bug 1561227)
Backed out changeset 97be65338edf (bug 1561227)

--HG--
rename : devtools/client/responsive/test/browser/browser_viewport_zoom_toggle.js => devtools/client/responsive/test/browser/browser_toggle_zoom.js
2019-10-26 00:00:48 +03:00
Brad Werth bd10652c59 Bug 1561227 Part 1: Make nsDocumentViewer send a new event before setting full zoom levels on the pres contexts. r=emilio
The PreFullZoomChange event gives listeners an opportunity to capture
state before the viewport full zoom changes. Responsive Design Mode uses
this to save and later restore the resolution of the RDM pane.

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

--HG--
extra : moz-landing-system : lando
2019-10-24 23:42:50 +00:00
Emilio Cobos Álvarez 0783d6c04c Bug 1590722 - Fix a test that I just wrote to handle getting a mouse over event before getting focus.
Differential Revision: https://phabricator.services.mozilla.com/D50645

--HG--
extra : moz-landing-system : lando
2019-10-25 18:40:35 +00:00
L. David Baron 449f8593f0 Bug 1584018 - Make flex and grid code indicate that its block resizes can affect basis for percentages. r=dholbert,mats
Differential Revision: https://phabricator.services.mozilla.com/D50511

--HG--
extra : moz-landing-system : lando
2019-10-24 22:35:46 +00:00
Csoregi Natalia a377414b6d Backed out 8 changesets (bug 1561227) for failures on browser_viewport_resizing_scrollbar.js. CLOSED TREE
Backed out changeset 8117cafb3a20 (bug 1561227)
Backed out changeset 635534927ffc (bug 1561227)
Backed out changeset 693b0dd88f2b (bug 1561227)
Backed out changeset 257bc09f49af (bug 1561227)
Backed out changeset 1b63d555c6c1 (bug 1561227)
Backed out changeset 677da957ddcb (bug 1561227)
Backed out changeset f8b8e593316f (bug 1561227)
Backed out changeset 849e1cf51a8f (bug 1561227)

--HG--
rename : devtools/client/responsive/test/browser/browser_viewport_zoom_toggle.js => devtools/client/responsive/test/browser/browser_toggle_zoom.js
2019-10-25 02:35:11 +03:00
Brad Werth 5338c8acbb Bug 1561227 Part 1: Make nsDocumentViewer send a new event before setting full zoom levels on the pres contexts. r=emilio
The PreFullZoomChange event gives listeners an opportunity to capture
state before the viewport full zoom changes. Responsive Design Mode uses
this to save and later restore the resolution of the RDM pane.

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

--HG--
extra : moz-landing-system : lando
2019-10-24 16:48:14 +00:00
Daosheng Mu c7cf0a9e13 Bug 1578851 - Using VRManagerChild to check isPresenting to skip painting in nsRefreshDriver. r=rbarker,imanol,mstange
VRManager only be accessible in the parent or GPU process. So, in the tab process, isPresenting() will always return false. In WebVR immersive mode, we need to skip layer painting and don't need to wait for painting because the compositing is already done in WebGL.

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

--HG--
extra : moz-landing-system : lando
2019-10-24 19:58:15 +00:00
Geoff Brown d5a1276fec Bug 1405175 - Repeat reftest --run-until-failure up to 30 times by default; r=ahal
Make reftest --run-until-failure consistent with mochitest:
if --run-until-failure requested without --repeat, repeat up to 30 times;
if --run-until-failure requested with --repeat=N, repeat up to N times.

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

--HG--
extra : moz-landing-system : lando
2019-10-24 18:26:03 +00:00
Daniel Holbert 1d091bf238 Bug 1590639 part 6: Fix non-unified build issues in layout/inspector. r=emilio
This patch:
- Gives ServoStyleRuleMap.cpp an include for Element.h (to provide that type).
- Gives inDeepTreeWalker.cpp a mozilla::dom prefix for its one use of Document.
- Gives inLayoutUtils.cpp a "using" decl for mozilla::dom, so we can compile
  with the many un-namespaced "Document" and "Element" usages in that file.

Depends on D50167

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

--HG--
extra : moz-landing-system : lando
2019-10-24 17:15:32 +00:00
Daniel Holbert ff09c9db34 Bug 1590639 part 5: Fix non-unified build issues in layout/svg. r=emilio
This patch:
- Gives SVGFELeafFrame.cpp and SVGFEUnstyledLeafFrame.cpp the correct
  namespace-prefixing in some static_cast operation, and changes the capturing
  variable to be "auto*" to avoid repeating the long typename.
- Gives nsSVGContainerFrame.cpp, nsSVGIntegrationUtils.cpp, and
  nsSVGSwitchFrame.cpp a "using namespace mozilla::dom" decl, so that their
  multiple unprefixed SVGElement* usages become valid.
- Gives nsFilterInstance.h a forward-decl for WrFiltersHolder (which it uses in
  function declarations)
- Gives nsFilterInstance.cpp an include for nsSVGIntegrationUtils.h to provide
  the WrFiltersHolder type (which it uses).
- Gives nsSVGPatternFrame.h mozilla-namespace prefixes before all its
  SVGAniated* type usages, to make them valid.

Depends on D50166

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

--HG--
extra : moz-landing-system : lando
2019-10-23 08:16:45 +00:00
Daniel Holbert d55c8c26d0 Bug 1590639 part 4: Fix non-unified build issues in layout/style. r=emilio
This patch:

- Gives layout/generic/AnonymousContentKey.h an include for `<stdint.h>` to
  provide the uint8_t type, and TypedEnumBits.h to provide the
  MOZ_MAKE_ENUM_CLASS_BITWISE_OPERATORS macro. (This is a change in another
  directory, but it's needed in order for layout/style/ServoStyleSet.cpp to
  build successfully.)
- Adds a missing "nsINode" forward-decl to dom/base/IdentifierMapEntry.h,
  because it uses that type in function declarations.  (This change is needed
  in order for layout/style/CachedInheritingStyles.cpp to build successfully.)
- Gives CSSStyleRule.cpp an include for PseudoStyleType.h,
  nsCSSPseudoElements.h, and CSSEnabledState.h because it uses those types.
- Gives GeckoBindings.cpp an include for gfxTextRun.h, to provide the definition
  of type gfxFontGroup (so GeckoBindings can call GetFirstValidFont() on an
  object of that type).
- Gives Loader.h an include for nsIContentInlines.h, to provide the inline
  function IsInUAWidget().
- Gives Rule.cpp an include for HoldDropJSObjects.h, to provide DropJSObjects().
- Gives nsImageLoader.cpp an include for DocumentInlines.h (and Document.h for
  good measure), to provide the inline function GetPresContext().
- Gives nsStyleStruct.cpp an include for DocumentInlines.h, to provide inline
  function Document::GetPresContext().
- Gives nsStyleTransformMatrix.h an include for Units.h (instead of gfxPoint.h,
  which isn't useful) to provide the CSSPoint type.
- Gives nsStyleTransformMatrix.h an include for ServoStyleConsts.h, to provide
  LengthPercentage and the various StyleRotate/StyleScale/StyleTransform/etc
  types. (These can't be easily forward-declared, because some of them are
  legitimate types whereas others are type aliases. We could theoretically
  forward-declare all of the underlying types and then repeat the type aliases,
  but that'd be verbose and unmaintainable.)

Depends on D50165

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

--HG--
extra : moz-landing-system : lando
2019-10-23 08:14:54 +00:00
Daniel Holbert 5c6525bdd3 Bug 1590639 part 3: Fix non-unified build issues in layout/{forms,painting}. r=TYLin
This patch:

- Gives nsMeterFrame.cpp a "using" decl for mozilla::dom::Document (matching
  local style), to make its "nsCOMPtr<Document>" variable valid.
- Gives RetainedDisplayListBuilder.cpp an include for nsIFrameInlines.h
  (and nsIFrame.h for good measure) to provide the definition for inline
  function nsIFrame::IsFixedPosContainingBlock().
- Gives nsDisplayList.cpp an include for LayerAnimationInfo.h, since it uses
  that type.

Depends on D50164

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

--HG--
extra : moz-landing-system : lando
2019-10-23 22:12:39 +00:00
Daniel Holbert e3c9b94f23 Bug 1590639 part 2: Fix non-unified build issues in layout/base. r=TYLin
Changes here:
- Adding a "dom::" prefix in GeckoMVMContext.cpp (could've also added
  a "using" decl, but I'm just adding a one-off prefix to match "dom::Document"
  usage elsewhere in this file).
- Giving nsLayoutUtils an include for ViewportFrame.h since it uses that type.
- Giving nsPresArena.cpp an include for nsDisplayList.h to provide the
  DisplayListArenaObjectId enum type.

Depends on D50163

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

--HG--
extra : moz-landing-system : lando
2019-10-23 22:10:11 +00:00
Daniel Holbert 547238dc03 Bug 1590639 part 1: Fix non-unified build issues in layout/generic. r=TYLin
The issues fall into these categories:
 - Files that used StaticPrefs::layout_XYZ() API or gfxVars::XYZ that needed an
   include. (Addressed by adding the missing include.)
 - Files that use mozilla::dom::XYZ or mozilla::gfx::XYZ without qualifying the
   namespace & without a 'using' decl. (Addressed by adding "using".)
 - A few other includes for types/inlines that were used without their header.

Depends on D50162

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

--HG--
extra : moz-landing-system : lando
2019-10-23 22:05:22 +00:00
Daniel Holbert ceb61cf5ab Bug 1590639 part 0: Run clang-format on layout/. r=TYLin
This patch is entirely automated, and was generated with the following command:
./mach clang-format -p layout/

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

--HG--
extra : moz-landing-system : lando
2019-10-23 22:02:43 +00:00
Tim Nguyen a791699efb Bug 1590897 - Remove support for XUL <spring> element. r=mats
Differential Revision: https://phabricator.services.mozilla.com/D50440

--HG--
extra : moz-landing-system : lando
2019-10-24 14:55:25 +00:00
Xidorn Quan 82cc547ab8 Bug 1578377 - Render dark scrollbars for element with dark background on Windows. r=jmathies
Differential Revision: https://phabricator.services.mozilla.com/D48289

--HG--
extra : moz-landing-system : lando
2019-10-23 21:00:28 +00:00
Tim Nguyen 2462f28c99 Bug 1590903 - Fix reftest failure and remove references to <text> that I missed. CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com//D50441

--HG--
extra : histedit_source : e81dc1c6824ac21eadb5113bf1a406eb4f9d2081
2019-10-24 11:12:55 +03:00
Tim Nguyen 5ee02697cf Bug 1590903 - Remove support for XUL <text> element. r=mats
Differential Revision: https://phabricator.services.mozilla.com/D50368

--HG--
extra : moz-landing-system : lando
2019-10-24 06:23:10 +00:00
Timothy Nikkel ede6368cfb Bug 1590551. Allow nsPresContext::GetNearestWidget to work when there is no frame tree. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D50135

--HG--
extra : moz-landing-system : lando
2019-10-23 23:37:11 +00:00
Emilio Cobos Álvarez 0bae88943a Bug 1590426 - Cleanup signatures in nsImageFrame / nsImageControlFrame. r=tnikkel
In particular, remove useless virtual keywords per our style guide, and remove
redundant argument names (argument names where the name is contained in the type
of the argument), since they're somewhat useless.

I think the result looks neater.

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

--HG--
extra : moz-landing-system : lando
2019-10-22 19:05:21 +00:00
Emilio Cobos Álvarez 2c65109365 Bug 1589955 - Sync-decode images when intrinsic ratio between the old and new source changes. r=tnikkel
This seems to fix it for me, and it's pretty straight-forward, but I _think_
we'd still paint the old image if the image is huge and it's loading, which
may be counter-productive. Maybe we should guard the whole "paint mOldImage"
with and if (!oldImageIsDifferent), wdyt?

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

--HG--
extra : moz-landing-system : lando
2019-10-23 12:22:06 +00:00
Emilio Cobos Álvarez 6d8c0d26b1 Bug 1582398 - Remove user-select: all for editable labels. r=masayuki
This seems to go back to our initial contenteditable implementation, and I don't
think there's a reason <label> should work differently from anything else.

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

--HG--
extra : moz-landing-system : lando
2019-10-23 09:30:03 +00:00
Emilio Cobos Álvarez 27c8d88f2c Bug 1590191 - Trigger image loads for <area> cursor styles. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D49998

--HG--
extra : moz-landing-system : lando
2019-10-23 08:29:54 +00:00
Kagami Sascha Rosylight e30a6dbb4a Bug 824857: Support IDL stringifier attributes r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D48355

--HG--
extra : moz-landing-system : lando
2019-10-23 04:55:54 +00:00
Cameron McCormack bdb510a010 Bug 1585880 - Ensure pointer-events inherits into scrollbar parts. r=emilio
Like visibility, we rely on pointer-events values inheriting down into
scrollbar part elements.  So don't cached NAC styles for scrollbar parts
if we have a non-initial value for pointer-events, and adjust the UA
style sheet rules to ensure it is always inherited.

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

--HG--
extra : moz-landing-system : lando
2019-10-16 08:20:56 +00:00
Kirk Steuber 047d40ee73 Bug 1584283 - Stop using xul:wizard as a root element and migrate consumers to xul:window[role=dialog] with the wizard as the only child r=surkov. On a CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D48922

--HG--
extra : source : 01007f3333ea182c83bced4ff750c96b22925e80
extra : amend_source : 3b06af7be6009d6bd94798e14f30a2550f1c4c4f
extra : histedit_source : be50ba403a84dda5af1c902438c918c17a971578
2019-10-17 21:25:53 +00:00
Dorel Luca 659e2d2335 Backed out changeset 01007f3333ea (bug 1584283) for Browser-chrome failures in widget/tests/browser/browser_test_procinfo.js 2019-10-23 03:23:24 +03:00
Botond Ballo 432e039626 Bug 1560770 - Use a method of getting the widget in UseMobileViewportManager() than does not require the frame tree to be constructed. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D50121

--HG--
extra : moz-landing-system : lando
2019-10-22 20:40:35 +00:00
Tim Nguyen 6d79a27dfb Bug 1590387 - Remove remaining usages of XUL textboxes. r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D50063

--HG--
extra : moz-landing-system : lando
2019-10-22 19:27:23 +00:00
Emilio Cobos Álvarez 1442d5b174 Bug 1590357 - Update overflow areas for visible -> unscrollable clip changes. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D50049

--HG--
extra : moz-landing-system : lando
2019-10-22 19:02:36 +00:00
Kirk Steuber e937081418 Bug 1584283 - Stop using xul:wizard as a root element and migrate consumers to xul:window[role=dialog] with the wizard as the only child r=surkov
Differential Revision: https://phabricator.services.mozilla.com/D48922

--HG--
extra : moz-landing-system : lando
2019-10-17 21:25:53 +00:00
Christoph Kerschbaumer 61c17da3e9 Bug 1584993: Make CSP frame-ancestors work with fission enabled. r=jkt,farre,valentin
Differential Revision: https://phabricator.services.mozilla.com/D49147

--HG--
extra : moz-landing-system : lando
2019-10-22 10:57:43 +00:00
Emilio Cobos Álvarez a2fd653551 Bug 1590278 - Cleanup scrollframe virtual / override / final declarations. r=hiro
There's so much noise.

Every time I read it I feel lost in a sea of virtual keywords :)

This should help.

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

--HG--
extra : moz-landing-system : lando
2019-10-22 12:25:06 +00:00
Emilio Cobos Álvarez 560f96bea7 Bug 1590281 - Don't propagate overscroll-behavior from body to viewport. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D50024

--HG--
extra : moz-landing-system : lando
2019-10-22 12:16:13 +00:00
Bogdan Tara e1b6bc2222 Backed out changeset 8705284b50d4 (bug 1584993) for test_report_uri_missing_in_report_only_header.html failures CLOSED TREE 2019-10-22 13:25:49 +03:00
Christoph Kerschbaumer 2d974555d2 Bug 1584993: Make CSP frame-ancestors work with fission enabled. r=jkt,farre,valentin
Differential Revision: https://phabricator.services.mozilla.com/D49147

--HG--
extra : moz-landing-system : lando
2019-10-22 08:53:47 +00:00
Botond Ballo 7b80a2f886 Bug 1560770 - Don't use MobileViewportManager if we're not using APZ. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D50023

--HG--
extra : moz-landing-system : lando
2019-10-22 04:20:07 +00:00
Emilio Cobos Álvarez b0b21c6323 Bug 1590273 - Remove useless early-outs in nsStyle{Padding,Margin}::CalcDifference. r=hiro
Best-case they're redundant.

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

--HG--
extra : moz-landing-system : lando
2019-10-22 02:34:20 +00:00
Andre Natal 20834f4fb9 Bug 1248897 - Introducing an online speech recognition service for Web Speech API r=smaug,pehrsons,padenot
This patch introduces a Speech Recognition Service which interfaces with Mozilla's remote STT endpoint which is currently being used by multiple services

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

--HG--
extra : moz-landing-system : lando
2019-10-21 20:58:57 +00:00