mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-09 00:37:32 +09:00
Merge remote-tracking branch 'origin/master' into custom
This commit is contained in:
commit
583edc6020
98 changed files with 458 additions and 2348 deletions
|
|
@ -1439,13 +1439,14 @@ public:
|
|||
/**
|
||||
* This function increases an initial intrinsic size, 'aCurrent', according
|
||||
* to the given 'aPercent', such that the size-increase makes up exactly
|
||||
* 'aPercent' percent of the returned value. If 'aPercent' is less than
|
||||
* or equal to zero the original 'aCurrent' value is returned. If 'aPercent'
|
||||
* is greater than or equal to 1.0 the value nscoord_MAX is returned.
|
||||
* 'aPercent' percent of the returned value. If 'aPercent' or 'aCurrent' are
|
||||
* less than or equal to zero the original 'aCurrent' value is returned.
|
||||
* If 'aPercent' is greater than or equal to 1.0 the value nscoord_MAX is
|
||||
* returned.
|
||||
*/
|
||||
static nscoord AddPercents(nscoord aCurrent, float aPercent)
|
||||
{
|
||||
if (aPercent > 0.0f) {
|
||||
if (aPercent > 0.0f && aCurrent > 0) {
|
||||
return MOZ_UNLIKELY(aPercent >= 1.0f) ? nscoord_MAX
|
||||
: NSToCoordRound(float(aCurrent) / (1.0f - aPercent));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7296,11 +7296,11 @@ PresShell::HandleEvent(nsIFrame* aFrame,
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
nsIContent* capturingContent = ((aEvent->mClass == ePointerEventClass ||
|
||||
aEvent->mClass == eWheelEventClass ||
|
||||
aEvent->HasMouseEventMessage())
|
||||
? GetCapturingContent()
|
||||
: nullptr);
|
||||
nsCOMPtr<nsIContent> capturingContent = ((aEvent->mClass == ePointerEventClass ||
|
||||
aEvent->mClass == eWheelEventClass ||
|
||||
aEvent->HasMouseEventMessage())
|
||||
? GetCapturingContent()
|
||||
: nullptr);
|
||||
|
||||
nsCOMPtr<nsIDocument> retargetEventDoc;
|
||||
if (!aDontRetargetEvents) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue