author Brian Birtles <>
Fri, 27 Mar 2015 15:56:45 +0900
changeset 264936 bd35c507997e26e65ebb9cffd656fc8ec3c72224
parent 263771 ac4464790ec4896a5188fa50cfc69ae0ffeddc08
child 274883 d99fd0b0a9734668292428d20163eea2e02789a6
permissions -rw-r--r--
Bug 1109390 part 12 - Update IsPaused to handle pause-pending players as well; r=jwatt IsPaused is used in nsAnimationManager to detect if a newly created animation should be paused. It is also used inside AnimationPlayer::IsRunning which is used to determine what animations to send to the compositor (we don't send paused animations to the compositor). In all these cases we want to treat paused animations and pause-pending animations alike. This patch updates IsPaused to include also pause-pending animations. At the same time it renames IsPaused to IsPausedOrPausing to reflect the change in behavior. This patch also adjusts a few nearby one-line functions to put the opening brace on a new line since apparently this is what the coding style says to do.

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* 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 */

/* The privileged system principal. */

#ifndef nsSystemPrincipal_h__
#define nsSystemPrincipal_h__

#include "nsIPrincipal.h"
#include "nsJSPrincipals.h"

{ 0x4a6212db, 0xaccb, 0x11d3, \
{ 0xb7, 0x65, 0x0, 0x60, 0xb0, 0xb6, 0xce, 0xcb }}

class nsSystemPrincipal final : public nsJSPrincipals
    // Our refcount is managed by nsJSPrincipals.  Use this macro to avoid
    // an extra refcount member.


    virtual void GetScriptLocation(nsACString &aStr) override;

#ifdef DEBUG
    virtual void dumpImpl() override;

    virtual ~nsSystemPrincipal(void);

    // XXX Probably unnecessary.  See bug 143559.

#endif // nsSystemPrincipal_h__