Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
dd30d429
Commit
dd30d429
authored
Nov 22, 2022
by
Gabriel Ivăncescu
Committed by
Alexandre Julliard
Nov 22, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Implement performance.timing.msFirstPaint.
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
72b13c5a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
4 deletions
+7
-4
mshtml_private.h
dlls/mshtml/mshtml_private.h
+1
-0
omnavigator.c
dlls/mshtml/omnavigator.c
+2
-4
documentmode.js
dlls/mshtml/tests/documentmode.js
+1
-0
view.c
dlls/mshtml/view.c
+3
-0
No files found.
dlls/mshtml/mshtml_private.h
View file @
dd30d429
...
...
@@ -524,6 +524,7 @@ typedef struct {
ULONGLONG
dom_content_loaded_event_end_time
;
ULONGLONG
load_event_start_time
;
ULONGLONG
load_event_end_time
;
ULONGLONG
first_paint_time
;
}
HTMLPerformanceTiming
;
typedef
struct
nsChannelBSC
nsChannelBSC
;
...
...
dlls/mshtml/omnavigator.c
View file @
dd30d429
...
...
@@ -1585,8 +1585,6 @@ static HRESULT WINAPI HTMLPerformanceTiming_Invoke(IHTMLPerformanceTiming *iface
pDispParams
,
pVarResult
,
pExcepInfo
,
puArgErr
);
}
#define TIMING_FAKE_TIMESTAMP 0xdeadbeef
static
ULONGLONG
get_fetch_time
(
HTMLPerformanceTiming
*
This
)
{
/* If there's no prior doc unloaded and no redirects, fetch time == navigationStart time */
...
...
@@ -1816,9 +1814,9 @@ static HRESULT WINAPI HTMLPerformanceTiming_get_msFirstPaint(IHTMLPerformanceTim
{
HTMLPerformanceTiming
*
This
=
impl_from_IHTMLPerformanceTiming
(
iface
);
FIXME
(
"(%p)->(%p) returning fake value
\n
"
,
This
,
p
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
*
p
=
T
IMING_FAKE_TIMESTAMP
;
*
p
=
T
his
->
first_paint_time
;
return
S_OK
;
}
...
...
dlls/mshtml/tests/documentmode.js
View file @
dd30d429
...
...
@@ -39,6 +39,7 @@ ok(performance.timing.unloadEventStart === 0, "unloadEventStart != 0");
ok
(
performance
.
timing
.
unloadEventEnd
===
0
,
"unloadEventEnd != 0"
);
ok
(
performance
.
timing
.
redirectStart
===
0
,
"redirectStart != 0"
);
ok
(
performance
.
timing
.
redirectEnd
===
0
,
"redirectEnd != 0"
);
ok
(
performance
.
timing
.
msFirstPaint
===
0
,
"msFirstPaint != 0"
);
var
pageshow_fired
=
false
,
pagehide_fired
=
false
;
document
.
doc_unload_events_called
=
false
;
...
...
dlls/mshtml/view.c
View file @
dd30d429
...
...
@@ -50,6 +50,9 @@ static void paint_document(HTMLDocumentObj *This)
RECT
rect
;
HDC
hdc
;
if
(
This
->
window
&&
This
->
window
->
base
.
inner_window
&&
!
This
->
window
->
base
.
inner_window
->
performance_timing
->
first_paint_time
)
This
->
window
->
base
.
inner_window
->
performance_timing
->
first_paint_time
=
get_time_stamp
();
GetClientRect
(
This
->
hwnd
,
&
rect
);
hdc
=
BeginPaint
(
This
->
hwnd
,
&
ps
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment