LCOV - code coverage report
Current view: top level - layout/base - RestyleManagerInlines.h (source / functions) Hit Total Coverage
Test: output.info Lines: 17 19 89.5 %
Date: 2017-07-14 16:53:18 Functions: 10 12 83.3 %
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             : #ifndef mozilla_RestyleManagerInlines_h
       8             : #define mozilla_RestyleManagerInlines_h
       9             : 
      10             : #include "mozilla/GeckoRestyleManager.h"
      11             : #include "mozilla/ServoRestyleManager.h"
      12             : #include "mozilla/ServoUtils.h"
      13             : 
      14             : namespace mozilla {
      15             : 
      16       13999 : MOZ_DEFINE_STYLO_METHODS(RestyleManager,
      17             :                          GeckoRestyleManager, ServoRestyleManager)
      18             : 
      19             : void
      20          68 : RestyleManager::PostRestyleEvent(dom::Element* aElement,
      21             :                                  nsRestyleHint aRestyleHint,
      22             :                                  nsChangeHint aMinChangeHint)
      23             : {
      24          68 :   MOZ_STYLO_FORWARD(PostRestyleEvent, (aElement, aRestyleHint, aMinChangeHint));
      25             : }
      26             : 
      27             : void
      28           3 : RestyleManager::RebuildAllStyleData(nsChangeHint aExtraHint,
      29             :                                     nsRestyleHint aRestyleHint)
      30             : {
      31           3 :   MOZ_STYLO_FORWARD(RebuildAllStyleData, (aExtraHint, aRestyleHint));
      32             : }
      33             : 
      34             : void
      35           0 : RestyleManager::PostRebuildAllStyleDataEvent(nsChangeHint aExtraHint,
      36             :                                              nsRestyleHint aRestyleHint)
      37             : {
      38           0 :   MOZ_STYLO_FORWARD(PostRebuildAllStyleDataEvent, (aExtraHint, aRestyleHint));
      39             : }
      40             : 
      41             : void
      42         264 : RestyleManager::ProcessPendingRestyles()
      43             : {
      44         264 :   MOZ_STYLO_FORWARD(ProcessPendingRestyles, ());
      45             : }
      46             : 
      47             : void
      48          51 : RestyleManager::ContentStateChanged(nsIContent* aContent,
      49             :                                     EventStates aStateMask)
      50             : {
      51          51 :   MOZ_STYLO_FORWARD(ContentStateChanged, (aContent, aStateMask));
      52             : }
      53             : 
      54             : void
      55         326 : RestyleManager::AttributeWillChange(dom::Element* aElement,
      56             :                                     int32_t aNameSpaceID,
      57             :                                     nsIAtom* aAttribute,
      58             :                                     int32_t aModType,
      59             :                                     const nsAttrValue* aNewValue)
      60             : {
      61         326 :   MOZ_STYLO_FORWARD(AttributeWillChange, (aElement, aNameSpaceID, aAttribute,
      62             :                                           aModType, aNewValue));
      63             : }
      64             : 
      65             : void
      66         322 : RestyleManager::AttributeChanged(dom::Element* aElement,
      67             :                                  int32_t aNameSpaceID,
      68             :                                  nsIAtom* aAttribute,
      69             :                                  int32_t aModType,
      70             :                                  const nsAttrValue* aOldValue)
      71             : {
      72         322 :   MOZ_STYLO_FORWARD(AttributeChanged, (aElement, aNameSpaceID, aAttribute,
      73             :                                        aModType, aOldValue));
      74             : }
      75             : 
      76             : nsresult
      77           5 : RestyleManager::ReparentStyleContext(nsIFrame* aFrame)
      78             : {
      79           5 :   MOZ_STYLO_FORWARD(ReparentStyleContext, (aFrame));
      80             : }
      81             : 
      82             : void
      83          10 : RestyleManager::UpdateOnlyAnimationStyles()
      84             : {
      85          10 :   MOZ_STYLO_FORWARD(UpdateOnlyAnimationStyles, ());
      86             : }
      87             : 
      88             : } // namespace mozilla
      89             : 
      90             : #endif // mozilla_RestyleManagerInlines_h

Generated by: LCOV version 1.13