Commit Graph

84 Commits

Author SHA1 Message Date
wolfbeast 81b341a9b3 Clean up a number of unused variables.
Tag #21.
2018-09-29 23:20:36 +02:00
wolfbeast 351ffa462d Fix wrong SVG sizes with non-integer values for viewBox width/height.
Includes a standalone reftest.
2018-09-14 20:54:19 +02:00
wolfbeast 69b88dfccc Bug 1470260 - Part 2: Make RefreshDriverTimer ref-counted and hold a strong ref on it on the stack when nsRefreshDriver::Tick can be reached. 2018-09-10 22:22:16 +02:00
wolfbeast 4c1f33b169 Bug 1470260 - Part 1: Ensure that 'this' stays alive for the duration of the TickRefreshDriver call. 2018-09-10 22:12:07 +02:00
Moonchild ae432c6367 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 19f010c620.

* 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.
2018-09-05 03:20:16 +02:00
wolfbeast 93cae908bc Remove all C++ telemetry autotimers 2018-09-04 09:41:24 +02:00
wolfbeast ab961aeb54 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.
2018-09-03 10:11:38 +02:00
wolfbeast 693656e99b Sync disabled state of number control regardless of appearance. 2018-08-29 11:54:27 +02:00
trav90 26f02a2001 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.
2018-08-18 15:10:01 -05:00
janekptacijarabaci 1b153b3f2a Bug 958714 Remove obsolete assertion & comment
+ Used "mFrame->GetType()" instead of "mFrame->Type()"
2018-07-20 09:15:48 +02:00
janekptacijarabaci 83459c9277 Bug 958714 Simplify percent-margin/padding resolution code to pass around a single length as the percent basis 2018-07-20 09:13:56 +02:00
janekptacijarabaci b12973bc9a Bug 958714 Remove special case for flex & grid items' percent block-axis margin/padding resolution, to align with other browsers 2018-07-20 09:09:36 +02:00
janekptacijarabaci 24b11942e9 Bug 1434380: Rewrite parts of reftest reference case grid-auto-min-sizing-definite-001-ref.html to be easier to understand & adjust 2018-07-20 09:01:58 +02:00
wolfbeast dc9d933d81 Add pref to control CanOptimizeToImageLayer for large downscale factors.
This resolves #626
2018-07-14 07:45:06 +02:00
Moonchild ec32d19a84 Merge pull request #628 from janekptacijarabaci/build_bustage_debug_1
Fix Build Bustage - with "--enable-debug"
2018-07-13 15:17:10 +02:00
janekptacijarabaci 53cf12d6d8 Bug 1346501. Don't mark every image as visible when a frame is created for it 2018-07-12 18:56:16 +02:00
janekptacijarabaci 71a1c47759 Fix Build Bustage - with "--enable-debug" 2018-07-12 12:34:59 +02:00
Moonchild c2fc3664d1 Merge pull request #567 from SpockMan02/moz-mac-lion-theme
Undo Mozilla Bug 1302937; Reinstate -moz-mac-lion-theme media query
2018-06-30 07:24:17 +02:00
trav90 aad61148c0 Remove unnecessary GCC version checks 2018-06-29 15:33:02 -05:00
SpockMan02 6151dca6ea Undo Mozilla Bug 1302937; Reinstate -moz-mac-lion-theme media query 2018-06-27 03:25:34 -07:00
wolfbeast ac25827a87 Remove SPS profiler.
- Conditionals and code blocks. (MOZ_ENABLE_PROFILER_SPS)
- Stub out several profiler-only functions.
2018-05-24 14:06:04 +02:00
janekptacijarabaci d1184bfb49 Bug 1379762 part 2. Use a more reliable test to figure out when we can skip firing onload in nsDocumentViewer::LoadComplete
Issue #357
2018-05-15 22:45:40 +02:00
janekptacijarabaci e968422d29 Bug 1379762 part 1. Don't call MediaFeaturesChanged if our override device pixel ratio is set to its current value
Issue #357
2018-05-15 21:14:18 +02:00
wolfbeast 1124fb525b Remove other gonk widget conditionals and unused files.
Tag #288.
2018-05-13 22:46:04 +02:00
wolfbeast 6571d2ceb4 Remove MOZ_WIDGET_GONK [1/2]
Tag #288
2018-05-12 16:19:58 +02:00
wolfbeast b7d9dad58e Remove MOZ_B2G leftovers and some dead B2G-only components. 2018-05-12 14:32:03 +02:00
wolfbeast c18d9955df Issue #325 Part 13: Remove Mozilla implementation of the bidi engine completely and use ICU. 2018-05-04 20:36:02 +02:00
wolfbeast 6f8f1f7121 Issue #325 Part 9: Remove non-Intl legacy code paths from nsNumberControlFrame. 2018-05-04 16:42:31 +02:00
janekptacijarabaci 3dfd1412e4 Building with "--enable-debug" - fix some warnings
https://github.com/MoonchildProductions/moebius/pull/146
https://github.com/MoonchildProductions/Pale-Moon/pull/1400
2018-05-02 07:08:14 +02:00
janekptacijarabaci 966e69291a Bug 1216885 - Make nsISelectionPrivate not inherit from nsISelection 2018-04-30 15:00:01 +02:00
Moonchild 8c146ab24a Merge pull request #297 from janekptacijarabaci/css_text-justify_1
CSS - implement text-justify property
2018-04-29 18:52:17 +02:00
Moonchild b83c51a1a5 Merge pull request #296 from janekptacijarabaci/js_dom_animationcancel_1
DOM - implement animationcancel event
2018-04-29 18:48:43 +02:00
janekptacijarabaci eae8d21428 moebius#138: Optimize operations on root of deeply-nested frame tree
https://github.com/MoonchildProductions/moebius/pull/138
2018-04-24 21:39:13 +02:00
janekptacijarabaci d0e748cada Bug 1338053: Make nsFlexContainerFrame::MarkIntrinsicISizesDirty() also call its parent class's method 2018-04-24 20:25:23 +02:00
janekptacijarabaci bf901ae222 Bug 1336708: Reftest 2018-04-24 20:23:20 +02:00
janekptacijarabaci dca75f84eb Bug 1336708: Don't reuse cached flex-item reflow measurements if the item's computed height has changed 2018-04-24 20:21:41 +02:00
janekptacijarabaci 2f87463ea3 Bug 1209697: Cache flex measuring reflows to avoid exponential behavior 2018-04-24 20:18:05 +02:00
janekptacijarabaci 401a0e12af Bug 1209697: Clear ancestor intrinsic sizes when our block size changes 2018-04-24 20:17:56 +02:00
janekptacijarabaci d9d3b687b7 moebius#195: DOM - PointerEvent - improvements
https://github.com/MoonchildProductions/moebius/pull/195
2018-04-23 11:54:06 +02:00
janekptacijarabaci 0a9acadcca moebius#121: DOM - Selection API - getSelection() should exist on XMLDocument / Selection.type
https://github.com/MoonchildProductions/moebius/pull/121
2018-04-23 09:16:50 +02:00
janekptacijarabaci 09f456b280 moebius#71: DOM - Pointer Events - improvements
https://github.com/MoonchildProductions/moebius/pull/71
2018-04-20 22:18:52 +02:00
Boris Zbarsky 3b4a815657 Bug 1453339 - Make it harder to mess up Promise::All. r=peterv, a=RyanVM
MozReview-Commit-ID: UO4wssYHj7
2018-04-19 12:05:25 +02:00
Robert Longson acf95284e7 Bug 1448774. r=dholbert, a=RyanVM
--HG--
extra : source : edfd9ffbd7208ef0a59f40a0d77d8dd53c905cb9
extra : intermediate-source : 3784b22ec536b08ce95201d73ae8806340c18b8c
2018-04-19 11:39:36 +02:00
Botond Ballo 1d126c1d56 Bug 1443092 - Avoid calling SVGAnimatedEnumeration::AnimVal() from nsSVGUtils::GetBBox(). r=jwatt, a=RyanVM
AnimVal() is a DOM getter, and it flushes animations, which we don't want
in GetBBox() which is called from display list building cide and
FrameLayerBuilder.

MozReview-Commit-ID: DWgm7wAV7C0
2018-04-19 11:38:48 +02:00
wolfbeast d1b17ef97e Use natural border width rounding.
Round subpixel border widths to nearest integer instead of nearest-below integer.
Split caret widths off from border widths and continue to use rounding to nearest-below integer for that.

Bump Goanna version for visual rendering change.
2018-04-18 20:15:33 +02:00
wolfbeast fca67bb95d Merge branch 'html_input_datetime_1'
This is almost everything needed for #162.
2018-04-15 11:51:11 +02:00
janekptacijarabaci 1f4ce97ecd moebius#90: CSS - implement text-justify property 2018-04-01 19:32:49 +02:00
janekptacijarabaci e25430117a moebius#92: HTML - input - datetime
+ native in moebius:

Bug 1317600: https://bugzilla.mozilla.org/show_bug.cgi?id=1317600
A note - not implemented: Bug 1282768:
https://bugzilla.mozilla.org/show_bug.cgi?id=1282768
*.css: filter: url("chrome://global/skin/filters.svg#fill");, fill:

Bug 1283385: https://bugzilla.mozilla.org/show_bug.cgi?id=1283385
Bug 1323109: https://bugzilla.mozilla.org/show_bug.cgi?id=1323109
Bug 1314544: https://bugzilla.mozilla.org/show_bug.cgi?id=1314544
Bug 1286182: https://bugzilla.mozilla.org/show_bug.cgi?id=1286182

Bug 1325922: https://bugzilla.mozilla.org/show_bug.cgi?id=1325922
A note - not implemented: Bug 1282768:
https://bugzilla.mozilla.org/show_bug.cgi?id=1282768
*.css: filter: url("chrome://global/skin/filters.svg#fill");, fill:

Bug 1320225: https://bugzilla.mozilla.org/show_bug.cgi?id=1320225
Bug 1341190: https://bugzilla.mozilla.org/show_bug.cgi?id=1341190
2018-03-30 12:17:17 +02:00
janekptacijarabaci a1a007a485 Merge branch 'master' of https://github.com/MoonchildProductions/UXP into html_input_datetime_1 2018-03-30 09:44:21 +02:00
wolfbeast 4e368f8199 Remove base conditional code for crash reporter and injector. 2018-03-30 08:50:58 +02:00