Although from the maintenance cost point of view, we should not duplicate
`EditorBase::DeleteRangesWithTransaction`, but let's add a wrapper for it
for making the callers simpler.
Differential Revision: https://phabricator.services.mozilla.com/D203854
It and its helper class, `AutoInclusiveAncestorBlockElementsJoiner` work with
multiple ranges, but they handle special cases only with the first range.
That means that deleting content will be different if same structure is selected
with multiple ranges and that must be not expected by the users.
Differential Revision: https://phabricator.services.mozilla.com/D203853
Current implementation relies on __getattr__ which is relatively slow
(this method gets called upon failed attribute lookup) while we could
use a straight-forward implementation that keeps the same nice
properties.
Depends on D204006
Differential Revision: https://phabricator.services.mozilla.com/D204007
Add a TODO for bug 1883255, since D203361 fixes bug 1870348.
Add a TODO for bug 1884606, since WPTs for interpolating custom
properties with syntax `<transform-function>` and with value `none` now
fail.
Differential Revision: https://phabricator.services.mozilla.com/D203361
Unparsed custom properties are the
ComputedRegisteredValueInner::Universal variant.
Although the inner value is the ComputedRegisteredValueInner type,
custom property maps hold only the
ComputedRegisteredValueInner::Universal variant to keep behavior
unchanged for now.
D203360 also removes Arc<> from the CustomPropertiesMap value.
Differential Revision: https://phabricator.services.mozilla.com/D203360
Now that registered custom property values contain URL data, URL data is
eliminated as an argument in some places, and the ComputedValue.url_data
field is removed.
Differential Revision: https://phabricator.services.mozilla.com/D203359
The URL data is necessary to uncompute the value for animation. This was
handled previously by adding the URL data to CustomAnimatedValue.
However, now that a registered custom property is passed to
CustomAnimatedValue::from_computed instead of a VariableValue, that
registered custom property should include URL data.
Differential Revision: https://phabricator.services.mozilla.com/D203358
Add a TODO for bug 1883255, since D203361 fixes bug 1870348.
Add a TODO for bug 1884606, since WPTs for interpolating custom
properties with syntax `<transform-function>` and with value `none` now
fail.
Differential Revision: https://phabricator.services.mozilla.com/D203361
Unparsed custom properties are the
ComputedRegisteredValueInner::Universal variant.
Although the inner value is the ComputedRegisteredValueInner type,
custom property maps hold only the
ComputedRegisteredValueInner::Universal variant to keep behavior
unchanged for now.
D203360 also removes Arc<> from the CustomPropertiesMap value.
Differential Revision: https://phabricator.services.mozilla.com/D203360
Now that registered custom property values contain URL data, URL data is
eliminated as an argument in some places, and the ComputedValue.url_data
field is removed.
Differential Revision: https://phabricator.services.mozilla.com/D203359
The URL data is necessary to uncompute the value for animation. This was
handled previously by adding the URL data to CustomAnimatedValue.
However, now that a registered custom property is passed to
CustomAnimatedValue::from_computed instead of a VariableValue, that
registered custom property should include URL data.
Differential Revision: https://phabricator.services.mozilla.com/D203358
As spec (RFC 7231), accept-language can accept language tag (BCP 47).
Currently, Firefox Android uses `Locale.toLanguageTag` API. But it may
append variant and extensions etc.
But Chrome/Android and desktop browser use <language>-<region> format for
this header, so we should use same format for compatibility.
Differential Revision: https://phabricator.services.mozilla.com/D203121
eo -> 0703bd4dc6605ebc478e0b5d60196ac82a6481db
is -> ed40eeffd08b16534acf0d5213c0eb866aa18a08
ja -> fc85259a7e8f5e53ebda328267f3b91693acf6aa
ja-JP-mac -> 2b68173e13fea3c5bfb33940fdb46972c5ab9a22
sk -> b1d9ff43cf15a951b69a1371544fea05480be4b3
tr -> 2ca41221706975fca651734153ecdca52c999be8
uk -> 9b05529e47fa161da593d310d8612a73b124b37d
When HttpChannelParent::OnRedirectResult is called with an error code,
CompleteRedirect would end up calling SendRedirectFailed, then soon after
we'd call redirectChannel->Delete()
RecvRedirectFailed() then calls mRedirectChannelChild->Cancel() which races
against the Delete called by the main proces.
Differential Revision: https://phabricator.services.mozilla.com/D203601
This new cache implementation keeps the last N node/index combos in a stack-allocated array, which will be queried before calling nsINode::ComputeIndexOf().
Differential Revision: https://phabricator.services.mozilla.com/D203900
We no longer call `GetPcScript` or `cx->currentScript()` on hot paths so we
can now try to use `FrameIter` instead. This lets us remove the custom frame iteration
code and the fixed-size cache for it.
Differential Revision: https://phabricator.services.mozilla.com/D204035