Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Mullvad Browser
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
Applications
Mullvad Browser
Commits
7e972748
Commit
7e972748
authored
12 years ago
by
Kyle Huey
Browse files
Options
Downloads
Patches
Plain Diff
Bug 745681: Prepare the reftest harness for Bug 695480. r=dbaron a=test-only
parent
b0c91cce
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
layout/tools/reftest/reftest-content.js
+9
-7
9 additions, 7 deletions
layout/tools/reftest/reftest-content.js
with
9 additions
and
7 deletions
layout/tools/reftest/reftest-content.js
+
9
−
7
View file @
7e972748
...
...
@@ -511,11 +511,16 @@ function OnDocumentLoad(event)
}
var
contentRootElement
=
currentDoc
?
currentDoc
.
documentElement
:
null
;
currentDoc
=
null
;
setupZoom
(
contentRootElement
);
setupDisplayport
(
contentRootElement
);
var
inPrintMode
=
false
;
function
AfterOnLoadScripts
()
{
// Regrab the root element, because the document may have changed.
var
contentRootElement
=
content
.
document
?
content
.
document
.
documentElement
:
null
;
// Take a snapshot now. We need to do this before we check whether
// we should wait, since this might trigger dispatching of
// MozPaintWait events and make shouldWaitForExplicitPaintWaiters() true
...
...
@@ -671,7 +676,6 @@ function LogInfo(str)
const
SYNC_DEFAULT
=
0x0
;
const
SYNC_ALLOW_DISABLE
=
0x1
;
var
gDummyCanvas
=
null
;
function
SynchronizeForSnapshot
(
flags
)
{
if
(
flags
&
SYNC_ALLOW_DISABLE
)
{
...
...
@@ -682,13 +686,11 @@ function SynchronizeForSnapshot(flags)
}
}
if
(
gDummyCanvas
==
null
)
{
gDummyCanvas
=
content
.
document
.
createElementNS
(
XHTML_NS
,
"
canvas
"
);
gDummyCanvas
.
setAttribute
(
"
width
"
,
1
);
gDummyCanvas
.
setAttribute
(
"
height
"
,
1
);
}
var
dummyCanvas
=
content
.
document
.
createElementNS
(
XHTML_NS
,
"
canvas
"
);
dummyCanvas
.
setAttribute
(
"
width
"
,
1
);
dummyCanvas
.
setAttribute
(
"
height
"
,
1
);
var
ctx
=
gD
ummyCanvas
.
getContext
(
"
2d
"
);
var
ctx
=
d
ummyCanvas
.
getContext
(
"
2d
"
);
var
flags
=
ctx
.
DRAWWINDOW_DRAW_CARET
|
ctx
.
DRAWWINDOW_DRAW_VIEW
|
ctx
.
DRAWWINDOW_USE_WIDGET_LAYERS
;
ctx
.
drawWindow
(
content
,
0
,
0
,
1
,
1
,
"
rgb(255,255,255)
"
,
flags
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment