Commit graph

96 commits

Author SHA1 Message Date
JustOff
dff04053af Handle the special case of a flex frame being the absolute containing block correctly from the CSS align code 2019-03-16 07:06:10 +08:00
wolfbeast
9bcb7ab2a5 Remove various hard-coded Accept: headers
Since we're now handling this in the network back-end, there's no
need for this anymore.

Tag #993.
2019-03-16 07:02:13 +08:00
wolfbeast
21daa1d5cb Add nullcheck for frames in FindNearestCommonAncestorFrame
This resolves #978.
2019-02-21 14:55:07 +08:00
yami
b5376e63c5 issue #908 - implement missing parts of CSS mask 2019-02-16 00:27:53 +08:00
wolfbeast
39d5eb7759 Remove NS_IMPL_CYCLE_COLLECTION_TRAVERSE_SCRIPT_OBJECTS 2019-02-16 00:27:49 +08:00
adeshkp
aea50f182f Telemetry: Remove stubs and related code 2019-02-16 00:24:04 +08:00
wolfbeast
f09b84deb0 Make MAX_CSS_VAR_LENGTH unsigned to avoid warnings.
Follow-up for #891. Tag #457.
2019-02-16 00:23:53 +08:00
trav90
129388e5e0 Remove AndroidMediaDecoder and friends
They are no longer supported and don't work with newer Android versions anyway.
2019-02-16 00:22:37 +08:00
wolfbeast
07716cb1d7 Avoid useless FrameNeedsReflow call. 2019-02-16 00:22:11 +08:00
trav90
fb9d5b9d39 Only disallow lazy frame construction for direct children of display: contents elements 2019-02-16 00:21:07 +08:00
wolfbeast
528de62070 Limit the CSS string length for resolved variables to sane values.
This resolves #891
2019-02-16 00:20:50 +08:00
wolfbeast
bf30898e2c Make sure we remove our RefreshDriver observers in CompleteAsyncScroll.
Follow-up to fdbac095968bc952fec6a03765a7156940ae4733
2019-02-16 00:18:37 +08:00
wolfbeast
eb83cf3ac8 Ensure that the scroll frame deregisters its refresh driver observers (mAsyncScroll & mAsyncSmoothMSDScroll) before it's destroyed.
Tag #345
2019-02-16 00:18:19 +08:00
JustOff
a202619fcf [css-grid] Reftests for 88671bcc3633af5a5e34715518e0804ca892fac7 2019-02-16 00:16:01 +08:00
JustOff
ff78530425 [css-grid] Don't shrink-wrap the inline size when we have an available size when measuring block size 2019-02-16 00:16:00 +08:00
wolfbeast
dac78e3f8c Use device pixels instead of CSS pixels for table borders.
This resolves #821 (regression).
2019-02-16 00:15:17 +08:00
wolfbeast
bbb1a766e2 Make caret width normal/thick behind CJK char configurable.
Fixes #820 (regression).
2019-02-16 00:15:15 +08:00
wolfbeast
57251fc4e7 Clean up a number of unused variables.
Tag #21.
2019-02-16 00:14:50 +08:00
wolfbeast
ee1233bb0c Fix wrong SVG sizes with non-integer values for viewBox width/height.
Includes a standalone reftest.
2019-02-16 00:13:43 +08:00
wolfbeast
f2dad4be1f Bug 1470260 - Part 2: Make RefreshDriverTimer ref-counted and hold a strong ref on it on the stack when nsRefreshDriver::Tick can be reached. 2019-02-16 00:13:07 +08:00
wolfbeast
6f120a942c Bug 1470260 - Part 1: Ensure that 'this' stays alive for the duration of the TickRefreshDriver call. 2019-02-16 00:13:06 +08:00
wolfbeast
5cc1408b3d Revert "Part 1. Move IsLocalRefURL to nsContentUtils to reuse this function. (port-rewrite)"
This reverts commit 19f010c62022e269f99066a8d90e3522fe31adaf.
2019-02-16 00:12:40 +08:00
wolfbeast
325afc0ab8 Part 1. Move IsLocalRefURL to nsContentUtils to reuse this function. (port-rewrite)
`IsLocalRefURL` is originally designed to be used by URLValue only.
Since we need this function in SVGUseElement::LookupHref too, move it to nsContentUtils as a util function.
2019-02-16 00:12:38 +08:00
Moonchild
49fc92f4a1 Bug 1357432 (#750)
* Part 1. Move IsLocalRefURL to nsContentUtils to reuse this function. (port-rewrite)

`IsLocalRefURL` is originally designed to be used by URLValue only.
Since we need this function in SVGUseElement::LookupHref too, move it to nsContentUtils as a util function.

* Revert "Part 1. Move IsLocalRefURL to nsContentUtils to reuse this function. (port-rewrite)"

This reverts commit 19f010c62022e269f99066a8d90e3522fe31adaf.

* Part 1. Duplicate IsLocalRefURL to nsContentUtils to reuse this function.

`IsLocalRefURL` is originally designed to be used by URLValue only.
Since we need this function in SVGUseElement::LookupHref too, duplicate it to nsContentUtils as a util function.
This is a duplication because CSSValue uses stringbuffers and not nsStrings.
While Bug 1356060 - "Just use nsString in URLValueData" converts this use from stringbuffer to nsString, it builds on a bunch of vartype refactoring (nsString vs. nsAString, etc.) which is too much of a headache to deal with just to deduplicate this simple function.

* Part 2. Implement nsSVGEffects::GetBaseURLForLocalRef to export local-ref-url-resolving logic.

ResolveURLUsingLocalRef is designed to be internally used by nsSVGEffects::Get-{SVGEffect}-URI functions.
Since we also need it in SVGUseElement::LookupHref, make it public in nsSVGEffects.

* Part 3. Resolve local-ref in SVGUseElement::LookupHref by nsSVGEffects::GetBaseURLForLocalRef.

* Part 4. Reftest for using local-ref as xlink:href value.
2019-02-16 00:12:35 +08:00
wolfbeast
ad782894c8 Remove all C++ telemetry autotimers 2019-02-16 00:12:34 +08:00
wolfbeast
8c8145e620 Remove all C++ Telemetry Accumulation calls.
This creates a number of stubs and leaves some surrounding code that may be irrelevant (eg. recorded time stamps, status variables).
Stub resolution/removal should be a follow-up to this.
2019-02-16 00:12:32 +08:00
wolfbeast
7438687cda Sync disabled state of number control regardless of appearance. 2019-02-16 00:12:13 +08:00
trav90
eb09900afe Avoid using memset on a not-trivial type like nsTabSizes
nsTabSizes is non-trivial only because of the user-defined constructor.  The idea desired here is certainly to zero all the members without listing them -- but the very act of doing so with a user-defined constructor, makes the idea impossible.

Arguably this is something that is permissible in the language, and that the warning should be tailored to permit.  I don't think this falls afoul of any of the issues flagged in https://gcc.gnu.org/ml/gcc-patches/2017-06/msg01527.html for example.  In the meantime, just explicitly zeroing the three member fields is easy and fixes the warnings.
2019-02-16 00:11:30 +08:00
janekptacijarabaci
b2c7373dba Bug 958714 Remove obsolete assertion & comment
+ Used "mFrame->GetType()" instead of "mFrame->Type()"
2019-02-16 00:09:09 +08:00
janekptacijarabaci
661e649fe5 Bug 958714 Simplify percent-margin/padding resolution code to pass around a single length as the percent basis 2019-02-16 00:09:08 +08:00
janekptacijarabaci
a99820e3ab Bug 958714 Remove special case for flex & grid items' percent block-axis margin/padding resolution, to align with other browsers 2019-02-16 00:09:06 +08:00
janekptacijarabaci
8ba429e41d Bug 1434380: Rewrite parts of reftest reference case grid-auto-min-sizing-definite-001-ref.html to be easier to understand & adjust 2019-02-16 00:09:05 +08:00
wolfbeast
ca5c2ba100 Add pref to control CanOptimizeToImageLayer for large downscale factors.
This resolves #626
2019-02-16 00:08:44 +08:00
janekptacijarabaci
d57aa4fc94 Fix Build Bustage - with "--enable-debug" 2019-02-16 00:08:38 +08:00
janekptacijarabaci
ece6d716f4 Bug 1346501. Don't mark every image as visible when a frame is created for it 2019-02-16 00:08:30 +08:00
SpockMan02
2d708bf86c Undo Mozilla Bug 1302937; Reinstate -moz-mac-lion-theme media query 2019-02-16 00:06:39 +08:00
trav90
afedf5b82e Remove unnecessary GCC version checks 2019-02-16 00:06:37 +08:00
wolfbeast
1a823f5ad6 Remove SPS profiler.
- Conditionals and code blocks. (MOZ_ENABLE_PROFILER_SPS)
- Stub out several profiler-only functions.
2019-02-15 23:58:37 +08:00
janekptacijarabaci
e29bf72ab4 Bug 1379762 part 2. Use a more reliable test to figure out when we can skip firing onload in nsDocumentViewer::LoadComplete
Issue #357
2019-02-15 23:58:12 +08:00
janekptacijarabaci
eb80674e82 Bug 1379762 part 1. Don't call MediaFeaturesChanged if our override device pixel ratio is set to its current value
Issue #357
2019-02-15 23:58:10 +08:00
wolfbeast
74df182488 Remove other gonk widget conditionals and unused files.
Tag #288.
2019-02-15 23:57:15 +08:00
wolfbeast
b586913598 Remove MOZ_WIDGET_GONK [1/2]
Tag #288
2019-02-15 23:57:08 +08:00
wolfbeast
719ac1bc38 Remove MOZ_B2G leftovers and some dead B2G-only components. 2019-02-15 23:57:05 +08:00
wolfbeast
04679df9c6 Issue #325 Part 13: Remove Mozilla implementation of the bidi engine completely and use ICU. 2019-02-15 23:56:15 +08:00
wolfbeast
f2d90ee4a4 Issue #325 Part 9: Remove non-Intl legacy code paths from nsNumberControlFrame. 2019-02-15 23:56:09 +08:00
janekptacijarabaci
9ab20590c6 Building with "--enable-debug" - fix some warnings
https://github.com/MoonchildProductions/moebius/pull/146
https://github.com/MoonchildProductions/Pale-Moon/pull/1400
2019-02-15 23:55:29 +08:00
janekptacijarabaci
5eca87831c Bug 1216885 - Make nsISelectionPrivate not inherit from nsISelection 2019-02-15 23:55:08 +08:00
janekptacijarabaci
1f262f0d2b moebius#90: CSS - implement text-justify property 2019-02-15 23:54:04 +08:00
janekptacijarabaci
5677db4b6e Bug 1264125: Fire transitioncancel event when a transition is canceled (added tests + style clean up)
Issue #55
2019-02-15 23:54:03 +08:00
janekptacijarabaci
2243f5248c Bug 1202333: AnimationEvent elapsedTime should reflect playbackRate (added tests)
Issue #55
2019-02-15 23:54:01 +08:00