| Index: Source/core/css/FontFaceSet.cpp
|
| diff --git a/Source/core/css/FontFaceSet.cpp b/Source/core/css/FontFaceSet.cpp
|
| index f7dfa5469925268e55c1c6da05d9b271233d1d0e..13f182cbf24eda0fb7a41a4ee3d411286516f592 100644
|
| --- a/Source/core/css/FontFaceSet.cpp
|
| +++ b/Source/core/css/FontFaceSet.cpp
|
| @@ -177,8 +177,7 @@ void FontFaceSet::handlePendingEventsAndPromisesSoon()
|
|
|
| void FontFaceSet::didLayout()
|
| {
|
| - Document* d = document();
|
| - if (d->page() && d->page()->mainFrame() == d->frame())
|
| + if (document()->frame()->isMainFrame())
|
| m_histogram.record();
|
| if (!RuntimeEnabledFeatures::fontLoadEventsEnabled())
|
| return;
|
|
|