mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 17:31:47 +09:00
Issue #2112 - Part 9: Remove handling for multiple style backends
This commit is contained in:
parent
28cd0ceb47
commit
b96b733bfa
20 changed files with 20 additions and 125 deletions
|
|
@ -10,7 +10,6 @@
|
|||
#include "mozilla/EventStates.h"
|
||||
#include "mozilla/HandleRefPtr.h"
|
||||
#include "mozilla/RefCountType.h"
|
||||
#include "mozilla/StyleBackendType.h"
|
||||
#include "nsChangeHint.h"
|
||||
|
||||
namespace mozilla {
|
||||
|
|
@ -48,11 +47,6 @@ public:
|
|||
public:
|
||||
friend class ::mozilla::RestyleManagerHandle;
|
||||
|
||||
StyleBackendType BackendType() const
|
||||
{
|
||||
return StyleBackendType::Gecko;
|
||||
}
|
||||
|
||||
RestyleManager* AsGecko()
|
||||
{
|
||||
return reinterpret_cast<RestyleManager*>(mValue);
|
||||
|
|
|
|||
|
|
@ -9127,14 +9127,6 @@ nsLayoutUtils::GetCumulativeApzCallbackTransform(nsIFrame* aFrame)
|
|||
return delta;
|
||||
}
|
||||
|
||||
/* static */ bool
|
||||
nsLayoutUtils::SupportsServoStyleBackend(nsIDocument* aDocument)
|
||||
{
|
||||
return StyloEnabled() &&
|
||||
aDocument->IsHTMLOrXHTML() &&
|
||||
static_cast<nsDocument*>(aDocument)->IsContentDocument();
|
||||
}
|
||||
|
||||
static
|
||||
bool
|
||||
LineHasNonEmptyContentWorker(nsIFrame* aFrame)
|
||||
|
|
|
|||
|
|
@ -2379,13 +2379,6 @@ public:
|
|||
return sTextCombineUprightDigitsEnabled;
|
||||
}
|
||||
|
||||
// Stylo (the Servo backend for Gecko's style system) is generally enabled
|
||||
// or disabled at compile-time. However, we provide the additional capability
|
||||
// to disable it dynamically in stylo-enabled builds via a pref.
|
||||
static bool StyloEnabled() {
|
||||
return false;
|
||||
}
|
||||
|
||||
static uint32_t IdlePeriodDeadlineLimit() {
|
||||
return sIdlePeriodDeadlineLimit;
|
||||
}
|
||||
|
|
@ -2813,14 +2806,6 @@ public:
|
|||
*/
|
||||
static CSSPoint GetCumulativeApzCallbackTransform(nsIFrame* aFrame);
|
||||
|
||||
/*
|
||||
* Returns whether the given document supports being rendered with a
|
||||
* Servo-backed style system. This checks whether Stylo is enabled
|
||||
* globally, that the document is an HTML document, and that it is
|
||||
* being presented in a content docshell.
|
||||
*/
|
||||
static bool SupportsServoStyleBackend(nsIDocument* aDocument);
|
||||
|
||||
/*
|
||||
* Checks whether a node is an invisible break.
|
||||
* If not, returns the first frame on the next line if such a next line exists.
|
||||
|
|
|
|||
|
|
@ -889,7 +889,7 @@ nsPresContext::Init(nsDeviceContext* aDeviceContext)
|
|||
// Note: We don't hold a reference on the shell; it has a reference to
|
||||
// us
|
||||
void
|
||||
nsPresContext::AttachShell(nsIPresShell* aShell, StyleBackendType aBackendType)
|
||||
nsPresContext::AttachShell(nsIPresShell* aShell)
|
||||
{
|
||||
MOZ_ASSERT(!mShell);
|
||||
mShell = aShell;
|
||||
|
|
|
|||
|
|
@ -42,7 +42,6 @@
|
|||
#include "mozilla/RestyleManagerHandle.h"
|
||||
#include "prenv.h"
|
||||
#include "mozilla/StaticPresData.h"
|
||||
#include "mozilla/StyleBackendType.h"
|
||||
|
||||
class nsAString;
|
||||
class nsIPrintSettings;
|
||||
|
|
@ -167,7 +166,7 @@ public:
|
|||
* Set and detach presentation shell that this context is bound to.
|
||||
* A presentation context may only be bound to a single shell.
|
||||
*/
|
||||
void AttachShell(nsIPresShell* aShell, mozilla::StyleBackendType aBackendType);
|
||||
void AttachShell(nsIPresShell* aShell);
|
||||
void DetachShell();
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -34,7 +34,6 @@
|
|||
#include "mozilla/TouchEvents.h"
|
||||
#include "mozilla/UniquePtr.h"
|
||||
#include "mozilla/Unused.h"
|
||||
#include "mozilla/StyleBackendType.h"
|
||||
#include <algorithm>
|
||||
|
||||
#ifdef XP_WIN
|
||||
|
|
@ -889,8 +888,7 @@ PresShell::Init(nsIDocument* aDocument,
|
|||
|
||||
// Bind the context to the presentation shell.
|
||||
mPresContext = aPresContext;
|
||||
StyleBackendType backend = StyleBackendType::Gecko;
|
||||
aPresContext->AttachShell(this, backend);
|
||||
aPresContext->AttachShell(this);
|
||||
|
||||
// Now we can initialize the style set. Make sure to set the member before
|
||||
// calling Init, since various subroutines need to find the style set off
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue