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

73519 Коммитов

Автор SHA1 Сообщение Дата
Ting-Yu Lin fdc00547f6 Bug 1637130 - Rename visual overflow to ink overflow. r=dbaron
This patch is generated by:

```
# Rename the nsOverflowType enum.
rg -l "eVisualOverflow" layout/ gfx/ | xargs sed -i "s/eVisualOverflow/eInkOverflow/g"

# Rename and drop the "Get" prefix from various functions.
rg -l "GetVisualOverflowRect" layout/ gfx/ | xargs sed -i "s/GetVisualOverflowRect/InkOverflowRect/g"
rg -l "GetPreEffectsVisualOverflowRect" layout/ gfx/ | xargs sed -i "s/GetPreEffectsVisualOverflowRect/PreEffectsInkOverflowRect/g"
rg -l "GetVisualOverflowFromDeltas" layout/ gfx/ | xargs sed -i "s/GetVisualOverflowFromDeltas/InkOverflowFromDeltas/g"
rg -l "GetScrollableOverflowRect" layout/ gfx/ | xargs sed -i "s/GetScrollableOverflowRect/ScrollableOverflowRect/g"

# Rename, drop the "Get" prefix, and change the suffix "Area" to "Rect"
# (because they return nsRect) for the two methods in nsLineBox.
rg -l "GetVisualOverflowArea" layout/ gfx/ | xargs sed -i "s/GetVisualOverflowArea/InkOverflowRect/g"
rg -l "GetScrollableOverflowArea" layout/ gfx/ | xargs sed -i "s/GetScrollableOverflowArea/ScrollableOverflowRect/g"

# Rename rest of the functions and variables.
rg -l "VisualOverflow" layout/ gfx/ | xargs sed -i "s/VisualOverflow/InkOverflow/g"
rg -l "visual overflow" layout/ gfx/ | xargs sed -i "s/visual overflow/ink overflow/g"
rg -l "visualOverflow" layout/ gfx/ | xargs sed -i "s/visualOverflow/inkOverflow/g"
rg -l "visOverflow" layout/ gfx/ | xargs sed -i "s/visOverflow/inkOverflow/g"
rg -l "vis-overflow" layout/ gfx/ python/ | xargs sed -i "s/vis-overflow/ink-overflow/g"

./mach clang-format
```

Differential Revision: https://phabricator.services.mozilla.com/D84231
2020-07-20 20:17:36 +00:00
longsonr 0e8dd6fc35 Bug 1653848 - Make SVGPaintServer and SVGGradientFrames queryable r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D84102
2020-07-20 18:02:25 +00:00
Bob Clary 010a210fff Bug 1486004 - Part 5 - Update reftests to support unrooted android devices using mozdevice 4.0.0, ? r=jmaher
Depends on D82747

Differential Revision: https://phabricator.services.mozilla.com/D82748
2020-07-17 20:48:38 +00:00
Narcis Beleuzu 0ac1595a1a Backed out 2 changesets (bug 921504) for mochitest failures on test_animation-type-longhand.html . CLOSED TREE
Backed out changeset e87edffd46b9 (bug 921504)
Backed out changeset eb53880e5f0e (bug 921504)
2020-07-20 17:37:32 +03:00
Alexander Surkov cf6cccf0ef Bug 921504 - implement HTML:inert r=emilio,heycam
Differential Revision: https://phabricator.services.mozilla.com/D81701
2020-07-20 04:22:36 +00:00
Butkovits Atila 96f3218871 Backed out 3 changesets (bug 1648851) for webgl issues. CLOSED TREE
Backed out changeset 1f0d6e32a0f4 (bug 1648851)
Backed out changeset df5ec3dbab05 (bug 1648851)
Backed out changeset fbda45ebde5c (bug 1648851)
2020-07-20 12:44:43 +03:00
Cameron McCormack 82b32f112e Bug 1643246 - Don't use attribute selectors for determining if a select is a drop down or a list box. r=emilio
Instead add a pseudo-class that does the expected size="" attribute parsing.

Removing the Gtk-specific rule setting the text color since it doesn't
seem to have any effect currently.

Differential Revision: https://phabricator.services.mozilla.com/D83448
2020-07-17 09:56:53 +00:00
Cameron McCormack 24d2a26212 Bug 1645762 - Don't treat image masks as invalid if painted at an unideal size. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D84110
2020-07-20 00:06:10 +00:00
longsonr 0cf868a8c6 Bug 772313 - Add a crashtest r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D84094
2020-07-18 23:05:35 +00:00
Narcis Beleuzu b1faa2872a Backed out 17 changesets (bug 1486004) for wrench bustage on android.py . CLOSED TREE
Backed out changeset cae730f105d7 (bug 1486004)
Backed out changeset e0094d50a315 (bug 1486004)
Backed out changeset 424425ed98c6 (bug 1486004)
Backed out changeset 551232749abe (bug 1486004)
Backed out changeset 505747095def (bug 1486004)
Backed out changeset 5b1c62c4a4d5 (bug 1486004)
Backed out changeset 0a1c8d50ee69 (bug 1486004)
Backed out changeset 6ef81c676859 (bug 1486004)
Backed out changeset 234e55153fb6 (bug 1486004)
Backed out changeset 2f33b309d746 (bug 1486004)
Backed out changeset 48947692c176 (bug 1486004)
Backed out changeset 473bac8eedd9 (bug 1486004)
Backed out changeset af6afed0a04a (bug 1486004)
Backed out changeset a0e2f91eb4d4 (bug 1486004)
Backed out changeset 138c987440c7 (bug 1486004)
Backed out changeset 6d2e305f4722 (bug 1486004)
Backed out changeset 1181ff03bb05 (bug 1486004)
2020-07-17 23:43:57 +03:00
Edwin Takahashi b1b5c9447a Bug 1648851 - Part 4: update expectations for tests that now pass r=jmaher
The patches in the stack were backed out because of an unexpected pass in the resulting push.

The expectations for now-passing tests have been updated.

Differential Revision: https://phabricator.services.mozilla.com/D83987
2020-07-17 20:19:41 +00:00
Bob Clary 9cafc708a0 Bug 1486004 - Part 5 - Update reftests to support unrooted android devices using mozdevice 4.0.0, ? r=jmaher
Depends on D82747

Differential Revision: https://phabricator.services.mozilla.com/D82748
2020-07-16 21:32:53 +00:00
Cameron McCormack c9ce840ad8 Bug 1652120 - Initialize local variable in PresShell::CreateRangePaintInfo. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D83739
2020-07-16 06:37:51 +00:00
Cameron McCormack ec3a51f08d Bug 1620467 - Part 12: Hide range and number-input appearance values from content. r=emilio
Forgot to follow up on these two remaining non-standard values that may have
been being used to reset a <meter> or <input type=number> back to its
original appearance, but which telemetry showed no usage of.

Differential Revision: https://phabricator.services.mozilla.com/D83598
2020-07-16 22:04:38 +00:00
Cameron McCormack f2744d489b Bug 1620467 - Part 10: Make remaining appearance values behave like auto. r=emilio
This includes all of the <compat-auto> values, plus menulist-button,
which doesn't behave any differently from menulist currently.

Differential Revision: https://phabricator.services.mozilla.com/D83436
2020-07-16 22:04:28 +00:00
Cameron McCormack 9f7843cb34 Bug 1620467 - Part 9: Make `appearance: textfield` behave like auto except on search and number inputs. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D83435
2020-07-16 22:04:26 +00:00
Cameron McCormack 557d0316a9 Bug 1620467 - Part 8: Make `appearance: button` behave like auto on various elements. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D83434
2020-07-16 22:04:24 +00:00
Cameron McCormack dd61f595eb Bug 1620467 - Part 4: Change internal uses of -moz-appearance to appearance and -moz-default-appearance. r=emilio,webcompat-reviewers,geckoview-reviewers,preferences-reviewers,ntim,agi,miketaylr
Uses of `-moz-appearance: none` are changed to `appearance: none`.

Uses of other values that are simply reverting the appearance back to
its default are changed to `appearance: auto`.

Uses of values in UA sheets that are defining the inherent appearance of
widgets are changed to:

  appearance: auto;
  -moz-default-appearance: <value>;

since those values are either no longer supported on (-moz-)appearance,
or are still supported but only in some limited form.

There are some uses of `-moz-appearance: textfield` on <input
type=number> elements that are renamed to `appearance: textfield`.

Differential Revision: https://phabricator.services.mozilla.com/D83430
2020-07-16 22:04:14 +00:00
Cameron McCormack 1fe732d979 Bug 1620467 - Part 3: Defer to -moz-default-appearance when appearance is auto. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D83429
2020-07-16 22:04:12 +00:00
Cameron McCormack 1739610d9a Bug 1620467 - Part 2: Add unprefixed appearance property and make -moz-appearance and -webkit-appearance be aliases. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D83428
2020-07-16 22:04:11 +00:00
Cameron McCormack 4e13fec003 Bug 1620467 - Part 1: Remove appearance use counters. r=emilio
They have served their purpose.

Differential Revision: https://phabricator.services.mozilla.com/D83427
2020-07-16 22:03:54 +00:00
longsonr 63ae9a2469 Bug 1652194 - Remove SVGGenericContainerFrame r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D83257
2020-07-16 20:53:36 +00:00
Emilio Cobos Álvarez 01a5c05e05 Bug 1649728 - Use WeakPtr in SharedStyleSheetCache::mLoadingDatas. r=firefox-style-system-reviewers,jwatt
This is safer in case Necko fails to notify us. The only repro we have
is fixed by bug 1651661, but this should hopefully be uncontroversial as
well and prevents crashing in release builds.

Differential Revision: https://phabricator.services.mozilla.com/D83642
2020-07-16 16:31:52 +00:00
manas a4ccb339e7 Bug 1647372 Part 1 - Add IsFrameOutsideOfAncestor and FrameHasSpecifiedSize. r=bradwerth,emilio
Differential Revision: https://phabricator.services.mozilla.com/D81118
2020-07-16 17:00:23 +00:00
Kartikaya Gupta f9517661e2 Bug 1650438 - Don't expand the dirty rect for fixed items during a partial update. r=mstange,botond
When doing a display list build, there's some code that expands the dirty
and visible rects for out-of-flow items to include the entire visual viewport
or displayport, because out-of-flow items are specially positioned in the
compositor and may become visible without the main thread knowing about it.

However, this happens even during partial updates using retained display lists,
which I believe is undesirable because the preceding non-partial update should
already have painted all the right things. The partial update should be
restricted to the part of the OOF item that actually need repainting, and the
merging of the partial update into the full display list should produce a final
display list that covers everything.

Differential Revision: https://phabricator.services.mozilla.com/D82216
2020-07-16 15:59:03 +00:00
Kartikaya Gupta e01dd52f41 Bug 1650438 - Add some docs about reftest-[no-]display-list. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D82215
2020-07-16 15:56:34 +00:00
Kartikaya Gupta 1fbc60a38e Bug 1650438 - Fix indentation in test. r=mattwoodrow
Fixes a missing closing tag in the retained-dl-style-change-stacking-context-3
test page. Unfortunately, this changes the structure of the page and makes the
test fail, so the reftest.list file is updated accordingly. Since the existing
test structure was clearly testing something else, and caught a legitimate
difference in behaviour with and without APZ zooming on desktop, this patch
also creates a new test with that structure (and better indentation).

Differential Revision: https://phabricator.services.mozilla.com/D82214
2020-07-16 15:56:27 +00:00
Narcis Beleuzu 1eb115035d Backed out 20 changesets (bug 1486004, bug 1653094) for wrench bustages. CLOSED TREE
Backed out changeset 120c64ebdea3 (bug 1486004)
Backed out changeset b10f105b1c36 (bug 1486004)
Backed out changeset 7f186e6bcccc (bug 1486004)
Backed out changeset cdda7b349cd8 (bug 1486004)
Backed out changeset 650c47e81402 (bug 1486004)
Backed out changeset 2bcca7cf3f1b (bug 1486004)
Backed out changeset e1df276f8a8d (bug 1486004)
Backed out changeset f6f5e7f2bd0a (bug 1486004)
Backed out changeset 1c56cb03ce53 (bug 1486004)
Backed out changeset 582cd190f174 (bug 1486004)
Backed out changeset 7c162e1b3a79 (bug 1486004)
Backed out changeset d1088e178216 (bug 1486004)
Backed out changeset 40763f4afd26 (bug 1486004)
Backed out changeset f20eb5b5a670 (bug 1486004)
Backed out changeset 6349ee0bd63f (bug 1486004)
Backed out changeset 7c23729053f6 (bug 1486004)
Backed out changeset 49586014bd29 (bug 1486004)
Backed out changeset 07971e82ae85 (bug 1653094)
Backed out changeset 47e7295e9c19 (bug 1653094)
Backed out changeset 57a25bbeec37 (bug 1653094)
2020-07-16 17:58:09 +03:00
Bob Clary 0dca9b22c0 Bug 1486004 - Part 5 - Update reftests to support unrooted android devices using mozdevice 4.0.0, ? r=jmaher
Depends on D82747

Differential Revision: https://phabricator.services.mozilla.com/D82748
2020-07-15 20:58:02 +00:00
Mihai Alexandru Michis a1d49fb98d Backed out 17 changesets (bug 1486004) for causing bustages in AccessCheck.h
CLOSED TREE

Backed out changeset 86a0855e1e45 (bug 1486004)
Backed out changeset 4fc98067edc5 (bug 1486004)
Backed out changeset 8ab3f1597fde (bug 1486004)
Backed out changeset b487e98320fb (bug 1486004)
Backed out changeset 4cba8e6bc515 (bug 1486004)
Backed out changeset d0db5eef2343 (bug 1486004)
Backed out changeset 50285a87de6b (bug 1486004)
Backed out changeset 9730c0303810 (bug 1486004)
Backed out changeset 140a9d2362f3 (bug 1486004)
Backed out changeset 9d1ce06f6039 (bug 1486004)
Backed out changeset 88a5a4ab39fa (bug 1486004)
Backed out changeset eb186c92232d (bug 1486004)
Backed out changeset 677f2129750e (bug 1486004)
Backed out changeset 81427a5f2103 (bug 1486004)
Backed out changeset 38d7def3d425 (bug 1486004)
Backed out changeset a9e73221c471 (bug 1486004)
Backed out changeset ebe8c2d5432e (bug 1486004)
2020-07-16 15:29:29 +03:00
Bob Clary 69ce0e974b Bug 1486004 - Part 5 - Update reftests to support unrooted android devices using mozdevice 4.0.0, ? r=jmaher
Depends on D82747

Differential Revision: https://phabricator.services.mozilla.com/D82748
2020-07-15 20:58:02 +00:00
sefeng 7ba74df412 Bug 1649278 - Don't do PreventDefault for escape key if <select> dropdown is not shown r=smaug
We always use PreventDefault for <select> element, which is
problematic if modal dialog is on as it prevents cancelling
the dialog.

We fix it by not blocking the default action if <select> is
not shown.

Differential Revision: https://phabricator.services.mozilla.com/D82590
2020-07-15 19:00:30 +00:00
Simon Giesecke 202c188ca0 Bug 1652960 - Remove unnecessary includes from Document.h. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D83634
2020-07-15 15:48:53 +00:00
Simon Giesecke 4e8c935384 Bug 1652023 - Remove unnecessary includes from PresShell.h. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D83114
2020-07-15 13:53:02 +00:00
Simon Giesecke d017d73cd9 Bug 1652022 - Remove unnecessary includes from WritingModes.h. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D83113
2020-07-15 13:56:31 +00:00
Simon Giesecke 96fb649d21 Bug 1652017 - Remove unnecessary includes for expensive nsIFrame.h. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D83111
2020-07-15 13:44:39 +00:00
Simon Giesecke d365910319 Bug 1652017 - Remove unnecessary includes from nsIFrame.h. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D83110
2020-07-15 13:48:35 +00:00
Simon Giesecke fbb5626d0e Bug 1652009 - Remove unnecessary include directives from ComputedStyle.h. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D83103
2020-07-15 12:48:09 +00:00
Simon Giesecke 7701ae7587 Bug 1652003 - Remove unnecessary includes from gfxFont.h. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D83100
2020-07-15 12:47:28 +00:00
Frederik Braun a7153982e8 Bug 1366973: Rename security flags to not contain DATA anymore r=geckoview-reviewers,ckerschb,snorp
Differential Revision: https://phabricator.services.mozilla.com/D83490
2020-07-15 11:20:45 +00:00
Emilio Cobos Álvarez b769a57503 Bug 1651947 - Scale the page sequence in print preview so that pages don't overflow the viewport horizontally. r=dholbert
This is going to be useful for the new print preview UI, which is in a
doorhanger and thus much more likely to be less than the page size.

We (ab)use the existing print preview scaling mechanism. We only need it
after reflowing all pages, so this works.

This whole scaling mechanism is all-in-all not amazing, but the patch is
less gross than I initially thought. It's nice, actually.

We could put the new behavior behind a pref trivially, if that's wanted,
but I honestly thing this behavior is better even without the doorhanger
ui.

Differential Revision: https://phabricator.services.mozilla.com/D83309
2020-07-15 11:16:43 +00:00
longsonr 5b9df67d2e Bug 1652395 - Replace 'typedef' by 'using' in SVG and SMIL code r=dholbert
Also removes some mozilla:: where its no longer needed

Note that this patch was created by running

sed -e -i '.bak' 's/typedef ([a-zA-Z0-9:]+) ([a-zA-Z0-9:]+)/using \2 = \1/'

and then fixing up a few cases that didn't work.

Differential Revision: https://phabricator.services.mozilla.com/D83294
2020-07-15 10:37:55 +00:00
longsonr 02829222d5 Bug 1652253 - Update SVG include guards r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D83248
2020-07-14 23:40:05 +00:00
Emilio Cobos Álvarez d275fd6251 Bug 1631449 - Apply a grayscale filter to pages when monochrome. r=jwatt
This hooks the "monochrome" media query and co to the
nsIPrintSettings.printInColor setting.

This print setting we're using is not exposed in the print preview UI,
but you can test it setting the print.print_in_color preference to
"false", and then print preview will correctly show up greyscale'd.

Once this lands, the UI folks just have to use it as they see fit :)

I would've liked to add a proper rendering test, but the print reftests
check only whether the PDF text matches.

I could add a test to printpreview_helper.xhtml, but I'm refactoring
that file in bug 1648064 so I'd rather wait a bit and add it in a
separate bug. The test for the media feature should make sure that we
test that code path at least.

Differential Revision: https://phabricator.services.mozilla.com/D83552
2020-07-15 03:45:33 +00:00
Ting-Yu Lin e2a4dc5d48 Bug 1652646 Part 2 - Use nsIFrame::IsFlexItem() whenever possible. r=dholbert
The only possible behavior change is in
nsIFrame::MarkIntrinsicISizesDirty(). Before this patch, we clear
CachedFlexItemData for every child frame under nsFlexContainerFrame.
However, only flex items can have cache, so we can use IsFlexItem() to
replace the usage.

Differential Revision: https://phabricator.services.mozilla.com/D83454
2020-07-14 23:33:17 +00:00
Ting-Yu Lin 5628fa7944 Bug 1652646 Part 1 - Use nsIFrame::IsGridItem() whenever possible. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D83453
2020-07-14 23:31:11 +00:00
Kartikaya Gupta e81aec49dc Bug 1650102 - Wrap the async zoom container around a blend container if needed. r=mstange
If there are mix-blend-mode items inside the async zoom container, the
BlendContainer can end up outside the async zoom container, at the top-level
stacking context. But this causes the blend mode to fail with WebRender.
Instead, if we are creating an async zoom container, we check to see if there
was a mix-blend-mode inside it, and create the blend container just inside
the async zoom container.

Differential Revision: https://phabricator.services.mozilla.com/D82186
2020-07-14 20:58:26 +00:00
Emilio Cobos Álvarez 47efbc8aa8 Bug 1652819 - Don't assume that all filtered frames have an associated DOM node. r=mstange
This is not true for pages, which I want to add a filter to in
bug 1631449.

Differential Revision: https://phabricator.services.mozilla.com/D83544
2020-07-14 18:08:23 +00:00
Ting-Yu Lin fe4a027e82 Bug 1422908 - Use fieldset frame itself as the aPositionedFrame argument on PushAbsoluteContainingBlock. r=mats
Per documentation, `aPositionedFrame` (the second argument) of
`PushAbsoluteContainingBlock` should be the frame whose style actually
makes the new absolute containing block a containing block, so it should
be the fieldset frame itself, not fieldset's inner frame.

Co-authored-by: Mats Palmgren <mats@mozilla.com>

Differential Revision: https://phabricator.services.mozilla.com/D82651
2020-07-14 17:49:05 +00:00
Daniel Holbert 0df096b344 Bug 1652788: Preemptively fix unified build bustage in layout/{base,generic,printing}. r=TYLin
Differential Revision: https://phabricator.services.mozilla.com/D83534
2020-07-14 18:15:49 +00:00
Sylvestre Ledru 1dbb63db2b Bug 1519636 - Reformat recent changes to the Google coding style r=andi
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D83258
2020-07-14 09:34:19 +00:00
Daniel Holbert e45bd243c2 Bug 1652228: In test_flexbox_reflow_counts.html, don't bother pruning (nonexistent) children from 'content' node, and use consistent vars. r=TYLin
Before this patch, the test tries to remove all children from the 'content'
node except for one, as part of cleaning up. This is unnecessary, because none
of the subtests ever add any additional children to the 'content' element.
(It's also problematic because in late beta & release, 'content' is a special
variable name by default.)

While we're at it, this patch also makes us address the other nodes more
consistently, using the explicit variable declarations at the top of the
script section rather than their implicit ID-granted variable names.

Differential Revision: https://phabricator.services.mozilla.com/D83251
2020-07-13 22:59:03 +00:00
Erik Nordin 251f881853 Bug 1650886 - Part 2 Expose Paper Sizes for macOS r=jwatt
- Add macOS-specific function to retrieve the paper list for a given printer.
- Add JS test to ensure papers are initialized with valid values.

Differential Revision: https://phabricator.services.mozilla.com/D82598
2020-07-13 19:33:00 +00:00
tkhan 75ea54bf01 Bug 1650919 - Adding manifest annotations for xorigin test harness. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D82763
2020-07-13 20:34:46 +00:00
Kagami Sascha Rosylight f4c2e30310 Bug 1652188 - Return struct from nsILineIterator::GetLine() r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D83215
2020-07-13 18:36:30 +00:00
Butkovits Atila fa8b334372 Backed out 2 changesets (bug 1650886) for causing bustage at Unified_cpp_widget_windows1.obj. CLOSED TREE
Backed out changeset de485a27b337 (bug 1650886)
Backed out changeset f65d2491cbb4 (bug 1650886)
2020-07-13 22:15:01 +03:00
Erik Nordin e615e501cf Bug 1650886 - Part 2 Expose Paper Sizes for macOS r=jwatt
- Add macOS-specific function to retrieve the paper list for a given printer.
- Add JS test to ensure papers are initialized with valid values.

Differential Revision: https://phabricator.services.mozilla.com/D82598
2020-07-13 18:30:18 +00:00
Daniel Holbert cc06d4bd55 Bug 1652209 part 2: Remove virtual annotations from overriding functions on nsPageFrame and nsPageContentFrame. r=TYLin
Per Mozilla coding style:
"Method declarations must use, at most, one of the following keywords:
virtual, override, or final"
https://firefox-source-docs.mozilla.org/code-quality/coding-style/coding_style_cpp.html#c-c

Depends on D83234

Differential Revision: https://phabricator.services.mozilla.com/D83235
2020-07-13 18:01:39 +00:00
Daniel Holbert 666edf5b54 Bug 1652209 part 1: Remove virtual annotations from non-overriding functions on nsPageFrame and nsPageContentFrame. r=TYLin
These classes are both 'final', so it's pointless for them to declare their own
(non-overriding) virtual functions. They can't have any subclasses, so it would
be impossible for there to be polymorphism in these virtual funtions'
implementation.  So, let's de-virtualize them.

(I'm guessing these date from the early Mozilla days when methods needed to be
virtual in order to be called from other components, or something like that.)

Differential Revision: https://phabricator.services.mozilla.com/D83234
2020-07-13 18:00:15 +00:00
Bogdan Tara 6faddf7d8f Backed out changeset 1a0f002865d3 (bug 1650919) for test_deprecated.html failures CLOSED TREE 2020-07-13 19:22:21 +03:00
Daniel Holbert 291ff6e0b8 Bug 1652205: Update one-liner comments for printed page frame classes. r=jwatt
DONTBUILD because this is a comment-only change.

Before this patch, these comments all mentioned "simple page sequence frame",
which is no longer a thing (it's been renamed to nsPageSequenceFrame). This
patch fixes that and corrects/clarifies these comments while we're at it.

(Note that these comments/classes may change a bit, as part of future patches
for the "pages-per-sheet" feature.  This patch here is partly to get them to a
coherent starting state, for that work to build from.)

Differential Revision: https://phabricator.services.mozilla.com/D83233
2020-07-11 05:40:34 +00:00
longsonr 7c427e698a Bug 1652430 - Fix some clang warnings in SVG r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D83299
2020-07-13 15:20:36 +00:00
tkhan e50031dfc7 Bug 1650919 - Adding manifest annotations for xorigin test harness. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D82763
2020-07-13 13:01:43 +00:00
longsonr c2fc063be0 Bug 1652254 - Remove svg from some moz.build local includes r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D83247
2020-07-12 16:38:26 +00:00
Jonathan Watt ab6c618f65 Bug 1652368. Clean up nsDocumentViewer::Print. r=bobowen
Differential Revision: https://phabricator.services.mozilla.com/D83276
2020-07-13 07:25:13 +00:00
Hiroyuki Ikezoe 43c6d349f1 Bug 1650981 - Send TIME_TO_FIRST_INTERACTION_MS only from the top level content. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D83214
2020-07-13 07:11:11 +00:00
Jonathan Watt b800c4c54e Bug 1652344 p3. Stop creating an nsIPrintSettings in nsGlobalWindowOuter::PrintOuter. r=bobowen
The fallback code in nsPrintJob::DoCommonPrint to create an nsIPrintSettings if
none is passed in is never used, since all callers pass a settings object.
However, to simplify future changes I'd like nsGlobalWindowOuter::PrintOuter to
stop creating and passing in its own default valued nsIPrintSettings object.

This patch makes the fallback code that DoCommonPrint calls do what
nsGlobalWindowOuter::PrintOuter does, and makes the latter stop passing in a
settings object.

This patch also removes nsIWebBrowserPrint.globalPrintSettings since
nsGlobalWindowOuter::PrintOuter was its only consumer.

Differential Revision: https://phabricator.services.mozilla.com/D83268
2020-07-13 00:22:28 +00:00
Jonathan Watt dc75460193 Bug 1652344 p2. Fix the print settings creation in the print preview tests. r=hiro
nsIWebBrowserPrint.globalPrintSettings returns a new object each time.  That is
why the code in these tests doesn't work, and why they have the workaround to
set the pref to disable the progress dialog. This patch fixes the code and
removes the prefs setting workaround.

This patch also changes the code to use the print settings service to get the
print settings.  That's all that nsIWebBrowserPrint.globalPrintSettings does
anyway.  Making this change allows me to remove
nsIWebBrowserPrint.globalPrintSettings in the next patch.

Differential Revision: https://phabricator.services.mozilla.com/D83279
2020-07-13 00:30:00 +00:00
Mihai Alexandru Michis c6f6f8daa2 Backed out 2 changesets (bug 1652344) for causing failures in test_printpreview.xhtml
CLOSED TREE

Backed out changeset d2b66d810ab5 (bug 1652344)
Backed out changeset 075903436ef2 (bug 1652344)
2020-07-13 01:21:28 +03:00
Jonathan Watt 44ed5abb22 Bug 1652344 p2. Stop creating an nsIPrintSettings in nsGlobalWindowOuter::PrintOuter. r=bobowen
The fallback code in nsPrintJob::DoCommonPrint to create an nsIPrintSettings if
none is passed in is never used, since all callers pass a settings object.
However, to simplify future changes I'd like nsGlobalWindowOuter::PrintOuter to
stop creating and passing in its own default valued nsIPrintSettings object.

This patch makes the fallback code that DoCommonPrint calls do what
nsGlobalWindowOuter::PrintOuter does, and makes the latter stop passing in a
settings object.

This patch also removes nsIWebBrowserPrint.globalPrintSettings since
nsGlobalWindowOuter::PrintOuter was its only consumer.

Differential Revision: https://phabricator.services.mozilla.com/D83268
2020-07-12 19:33:49 +00:00
Jonathan Watt 101951821c Bug 1652342. Move the print settings handling code in nsPrintJob::DoCommonPrint to after the static cloning. r=bobowen
In preparation for spliting DoCommonPrint.

Differential Revision: https://phabricator.services.mozilla.com/D83266
2020-07-12 19:29:30 +00:00
Jonathan Watt 7e3e095b25 Bug 1652322. Stop nsPrintJob::DoCommonPrint using its arguments after it creates the static clone. r=bobowen
I'm going to be splitting DoCommonPrint so that the parts that run after the
static clone is created happen after a roundtrip to the parent process.

Differential Revision: https://phabricator.services.mozilla.com/D83262
2020-07-12 16:36:27 +00:00
Jonathan Watt 0d3ea503ee Bug 1652318. Freeze docshell tree navigation at the same time for both print and print preview. r=bobowen
I specifically want to move this to happen before the static clone is made, in
preparation for splitting out the static clone logic from DoCommonPrint.

Differential Revision: https://phabricator.services.mozilla.com/D83260
2020-07-12 16:34:03 +00:00
Csoregi Natalia 3fbf9ffad9 Backed out 3 changesets (bug 1652322, bug 1652337, bug 1652318) for failures on browser_DownloadPDFSaver.js. CLOSED TREE
Backed out changeset 7d6fb29b9f05 (bug 1652337)
Backed out changeset aab6c9ae9bec (bug 1652322)
Backed out changeset 90685cf5aa28 (bug 1652318)
2020-07-12 19:30:47 +03:00
Jonathan Watt 1cf2b1f72e Bug 1652322. Stop nsPrintJob::DoCommonPrint using its arguments after it creates the static clone. r=bobowen
I'm going to be splitting DoCommonPrint so that the parts that run after the
static clone is created happen after a roundtrip to the parent process.

Differential Revision: https://phabricator.services.mozilla.com/D83262
2020-07-12 14:40:50 +00:00
Jonathan Watt c3822cef03 Bug 1652318. Freeze docshell tree navigation at the same time for both print and print preview. r=bobowen
I specifically want to move this to happen before the static clone is made, in
preparation for splitting out the static clone logic from DoCommonPrint.

Differential Revision: https://phabricator.services.mozilla.com/D83260
2020-07-12 14:40:14 +00:00
Jonathan Kew b56c4b385c Bug 1646639 - Don't recursively apply the line's start-offset and text-indent to children of a first-line frame. r=dholbert
But do apply any adjustment needed for text-align to the first-line frame itself.

Differential Revision: https://phabricator.services.mozilla.com/D82725
2020-07-11 22:52:41 +00:00
Jonathan Watt 7738e40fdd Bug 1652265. Add a more helpful comment to nsPrintJob::Observe. r=bobowen
Differential Revision: https://phabricator.services.mozilla.com/D83246
2020-07-11 22:34:38 +00:00
Razvan Maries d80f844cba Backed out 2 changesets (bug 1646639) for perma failures on first-line-bidi-002.html. CLOSED TREE
Backed out changeset e1d587422484 (bug 1646639)
Backed out changeset 5caaf51dac99 (bug 1646639)
2020-07-12 01:34:31 +03:00
Jonathan Kew 953fcef392 Bug 1646639 - Don't recursively apply the line's start-offset and text-indent to children of a first-line frame. r=dholbert
But do apply any adjustment needed for text-align to the first-line frame itself.

Differential Revision: https://phabricator.services.mozilla.com/D82725
2020-07-11 21:26:02 +00:00
Razvan Maries 10b6298357 Backed out 2 changesets (bug 1650886) for leakcheck failures.
Backed out changeset e2485d1bb142 (bug 1650886)
Backed out changeset ed8db2a54c61 (bug 1650886)
2020-07-12 00:01:04 +03:00
Erik Nordin 6a3156ccfa Bug 1650886 - Part 2 Expose Paper Sizes for macOS r=jwatt
- Add macOS-specific function to retrieve the paper list for a given printer.
- Add JS test to ensure papers are initialized with valid values.

Differential Revision: https://phabricator.services.mozilla.com/D82598
2020-07-11 18:20:53 +00:00
Jonathan Watt bdfbfac7d5 Bug 1557983. Remove nsPrintJob::HasPrintCallbackCanvas.
After refactoring the 'beforeprint'/'afterprint' code, this method is not used
any more.

Differential Revision: https://phabricator.services.mozilla.com/D34281
2020-07-11 14:14:15 +00:00
Jonathan Watt eee2d4c223 Bug 1557983. Significantly simplify and fix the 'beforeprint'/'afterprint' dispatching code.
This fixes two issue.

First, the code shouldn't be dispatching these events every time it gets a new
Print or PrintPreview call.  It only needs to dispatch the events to the
original document that we're going to clone from.  When cloning from existing
static clones any changes made by 'beforeprint' will be present in the existing
static clone.

Second, the code tries to delay the 'afterprint' event until after
mozPrintCallback callbacks have been invoked, but those callbacks are invoked
in the cloned document, whereas the events are sent to the original document!
So there is no reason to do this.

Differential Revision: https://phabricator.services.mozilla.com/D34280
2020-07-11 14:14:03 +00:00
Butkovits Atila ce77b8466f Backed out 2 changesets (bug 1557983) for failures at table-background-print.html. CLOSED TREE
Backed out changeset 249eede42e9f (bug 1557983)
Backed out changeset dfbaf61ce16a (bug 1557983)
2020-07-11 13:14:13 +03:00
Jonathan Watt a096d01a0c Bug 1557983. Remove nsPrintJob::HasPrintCallbackCanvas.
After refactoring the 'beforeprint'/'afterprint' code, this method is not used
any more.

Differential Revision: https://phabricator.services.mozilla.com/D34281
2020-07-11 09:10:03 +00:00
Jonathan Watt 6e34e4dbdf Bug 1557983. Significantly simplify and fix the 'beforeprint'/'afterprint' dispatching code.
This fixes two issue.

First, the code shouldn't be dispatching these events every time it gets a new
Print or PrintPreview call.  It only needs to dispatch the events to the
original document that we're going to clone from.  When cloning from existing
static clones any changes made by 'beforeprint' will be present in the existing
static clone.

Second, the code tries to delay the 'afterprint' event until after
mozPrintCallback callbacks have been invoked, but those callbacks are invoked
in the cloned document, whereas the events are sent to the original document!
So there is no reason to do this.

Differential Revision: https://phabricator.services.mozilla.com/D34280
2020-07-11 09:06:25 +00:00
Butkovits Atila 222d260b21 Backed out changeset f91e5fbb9520 (bug 1557983) as requested by dev. 2020-07-11 12:11:20 +03:00
Jonathan Watt 91e46d309f Bug 1557983. Remove nsPrintJob::HasPrintCallbackCanvas.
After refactoring the 'beforeprint'/'afterprint' code, this method is not used
any more.

Differential Revision: https://phabricator.services.mozilla.com/D34281
2020-07-11 08:47:04 +00:00
longsonr 875f5e88ac Bug 1259861 - Move everything else into the mozilla namespace in layout/svg r=dholbert
Also: adjust include paths to be consistent for usages of various SVG headers,
and remove unused SVG includes (mostly for "utils" classes),
and drop stray "ns" from already-renamed SVG classes in various code comments.

Differential Revision: https://phabricator.services.mozilla.com/D83140
2020-07-11 02:20:20 +00:00
Kartikaya Gupta 7cdb8134fb Bug 1650989 - Abort mask creation instead of crashing when the size is too large. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D82809
2020-07-11 00:04:43 +00:00
Kris Maglione 9d78661f88 Bug 1649221: Update ChromeUtils.generateQI callers to pass strings. r=mccr8,remote-protocol-reviewers,marionette-reviewers,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,preferences-reviewers,agi,whimboo,Bebe,twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D81594
2020-07-10 23:58:28 +00:00
Kagami Sascha Rosylight 2020afa997 Bug 1637624 - Part 7: Split PeekOffset switch entries to separate methods r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D83095
2020-07-10 19:22:40 +00:00
Kagami Sascha Rosylight 928d3013de Bug 1637624 - Part 6: Add SetOutputOffsetFromFrame() r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D83094
2020-07-10 19:21:34 +00:00
Kagami Sascha Rosylight 82bc29b366 Bug 1637624 - Part 5: Use MOZ_TRY r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D83093
2020-07-10 19:21:26 +00:00
Kagami Sascha Rosylight 6e3307f721 Bug 1637624 - Part 4: Merge offsetAdjustment into offset r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D83092
2020-07-10 19:22:42 +00:00
Kagami Sascha Rosylight 2a0b6c01aa Bug 1637624 - Part 3: Merge the description for mSawBeforeType r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D83091
2020-07-10 20:37:07 +00:00
Kagami Sascha Rosylight 5052c19940 Bug 1637624 - Part 2: Use StaticPrefs for layout.word_select.* r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D83090
2020-07-10 21:21:30 +00:00
Jonathan Kew 4d4b40d24a Bug 1335552 - Make nsIFrame::SynthesizeBaselineBOffsetFromBorderBox do something reasonable with orthogonal writing modes. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D82038
2020-07-10 15:39:07 +00:00
Liang-Heng Chen e03242ddb4 Bug 1647732 - isolate font cache; r=baku,jfkthame,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D82034
2020-07-10 10:28:40 +00:00