LCOV - code coverage report
Current view: top level - layout/style - PostTraversalTask.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 15 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 1 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
       2             : /* vim: set ts=8 sts=2 et sw=2 tw=80: */
       3             : /* This Source Code Form is subject to the terms of the Mozilla Public
       4             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       5             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
       6             : 
       7             : #include "PostTraversalTask.h"
       8             : 
       9             : #include "mozilla/dom/FontFace.h"
      10             : #include "mozilla/dom/FontFaceSet.h"
      11             : #include "gfxUserFontSet.h"
      12             : 
      13             : namespace mozilla {
      14             : 
      15             : using namespace dom;
      16             : 
      17             : void
      18           0 : PostTraversalTask::Run()
      19             : {
      20           0 :   switch (mType) {
      21             :     case Type::ResolveFontFaceLoadedPromise:
      22           0 :       static_cast<FontFace*>(mTarget)->DoResolve();
      23           0 :       break;
      24             : 
      25             :     case Type::RejectFontFaceLoadedPromise:
      26           0 :       static_cast<FontFace*>(mTarget)->DoReject(mResult);
      27           0 :       break;
      28             : 
      29             :     case Type::DispatchLoadingEventAndReplaceReadyPromise:
      30           0 :       static_cast<FontFaceSet*>(mTarget)->
      31           0 :         DispatchLoadingEventAndReplaceReadyPromise();
      32           0 :       break;
      33             : 
      34             :     case Type::DispatchFontFaceSetCheckLoadingFinishedAfterDelay:
      35           0 :       static_cast<FontFaceSet*>(mTarget)->
      36           0 :         DispatchCheckLoadingFinishedAfterDelay();
      37           0 :       break;
      38             : 
      39             :     case Type::LoadFontEntry:
      40           0 :       static_cast<gfxUserFontEntry*>(mTarget)->ContinueLoad();
      41           0 :       break;
      42             :   }
      43           0 : }
      44             : 
      45             : } // namespace mozilla

Generated by: LCOV version 1.13