Skip to content

Commit

Permalink
Backed out changeset 71b6060b6015 (bug 1863914) for causing Bug 18689…
Browse files Browse the repository at this point in the history
…34. a=backout

UltraBlame original commit: 31a6430ad25b20a75a4b299efea5d8ca94c2dfe9
  • Loading branch information
marco-c committed Dec 8, 2023
1 parent 84e0fb4 commit 6d34d60
Show file tree
Hide file tree
Showing 19 changed files with 4,226 additions and 4,737 deletions.
115 changes: 115 additions & 0 deletions gfx/2d/InlineTranslator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,121 @@ size_t
aLen
)
{
struct
MemReader
{
MemReader
(
char
*
aData
size_t
aLen
)
:
mData
(
aData
)
mEnd
(
aData
+
aLen
)
{
}
void
read
(
char
*
s
std
:
:
streamsize
n
)
{
if
(
n
<
=
(
mEnd
-
mData
)
)
{
memcpy
(
s
mData
n
)
;
mData
+
=
n
;
}
else
{
SetIsBad
(
)
;
}
}
bool
eof
(
)
{
return
mData
>
mEnd
;
}
bool
good
(
)
{
return
!
eof
(
)
;
}
void
SetIsBad
(
)
{
mData
=
mEnd
+
1
;
}
char
*
mData
;
char
*
mEnd
;
}
;
MemReader
reader
(
Expand Down
116 changes: 0 additions & 116 deletions gfx/2d/InlineTranslator.h
Original file line number Diff line number Diff line change
Expand Up @@ -785,122 +785,6 @@ mError
}
protected
:
struct
MemReader
{
constexpr
MemReader
(
char
*
aData
size_t
aLen
)
:
mData
(
aData
)
mEnd
(
aData
+
aLen
)
{
}
void
read
(
char
*
s
std
:
:
streamsize
n
)
{
if
(
n
<
=
(
mEnd
-
mData
)
)
{
memcpy
(
s
mData
n
)
;
mData
+
=
n
;
}
else
{
SetIsBad
(
)
;
}
}
bool
eof
(
)
{
return
mData
>
mEnd
;
}
bool
good
(
)
{
return
!
eof
(
)
;
}
void
SetIsBad
(
)
{
mData
=
mEnd
+
1
;
}
char
*
mData
;
char
*
mEnd
;
}
;
RefPtr
<
DrawTarget
Expand Down
36 changes: 36 additions & 0 deletions gfx/2d/RecordedEvent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,42 @@ aAction
)
;
}
bool
RecordedEvent
:
:
DoWithEventFromStream
(
EventRingBuffer
&
aStream
EventType
aType
const
std
:
:
function
<
bool
(
RecordedEvent
*
)
>
&
aAction
)
{
return
DoWithEvent
(
aStream
aType
aAction
)
;
}
std
:
:
Expand Down
Loading

0 comments on commit 6d34d60

Please sign in to comment.