Bug 1640839 - Add IPC serializer for WebIDL enums. r=mccr8,jgilbert,media-playback-reviewers,dom-storage-reviewers,janv,padenot

Differential Revision: https://phabricator.services.mozilla.com/D201339
This commit is contained in:
Peter Van der Beken
2024-03-02 07:50:22 +00:00
parent f34f7b70a2
commit 29ebd94e8a
16 changed files with 93 additions and 128 deletions

View File

@@ -20,7 +20,7 @@
#include "nsXULAppAPI.h"
#include "mozilla/PresState.h"
#include "mozilla/StaticPrefs_fission.h"
#include "mozilla/dom/BindingIPCUtils.h"
#include "mozilla/dom/BrowserParent.h"
#include "mozilla/dom/CanonicalBrowsingContext.h"
#include "mozilla/dom/ContentChild.h"
@@ -1797,10 +1797,8 @@ namespace IPC {
// Allow sending mozilla::dom::WireframeRectType enums over IPC.
template <>
struct ParamTraits<mozilla::dom::WireframeRectType>
: public ContiguousEnumSerializer<
mozilla::dom::WireframeRectType,
mozilla::dom::WireframeRectType::Image,
mozilla::dom::WireframeRectType::EndGuard_> {};
: public mozilla::dom::WebIDLEnumSerializer<
mozilla::dom::WireframeRectType> {};
template <>
struct ParamTraits<mozilla::dom::WireframeTaggedRect> {