/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
class PerformanceNavigationTiming; class PerformanceEventTiming;
using TextFrameUnions = nsTHashMap<nsRefPtrHashKey<Element>, nsRect>;
class PerformanceMainThread final : public Performance, public PerformanceStorage { public:
PerformanceMainThread(nsPIDOMWindowInner* aWindow,
nsDOMNavigationTiming* aDOMTiming,
nsITimedChannel* aChannel);
// The GetEntries* methods need to be overriden in order to add the // the document entry of type navigation. virtualvoid GetEntries(nsTArray<RefPtr<PerformanceEntry>>& aRetval) override;
// There are entries that we don't want expose via performance, however // we do want PerformanceObserver to get them void GetEntriesByTypeForObserver( const nsAString& aEntryType,
nsTArray<RefPtr<PerformanceEntry>>& aRetval) override; virtualvoid GetEntriesByName( const nsAString& aName, const Optional<nsAString>& aEntryType,
nsTArray<RefPtr<PerformanceEntry>>& aRetval) override;
// Keeps track of the rendered size of the largest contentful paint that // we have processed so far. double mLargestContentfulPaintSize = 0.0;
// When a text frame is painted, its area (relative to the // containing block) is unioned with other text frames that // belong to the same containing block. // mTextFrameUnions's key is the containing block, and // the value is the unioned area.
TextFrameUnions mTextFrameUnions;
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.