layout/generic/nsGridContainerFrame.h

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

     1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     2 /* vim: set ts=2 et sw=2 tw=80: */
     4 /* This Source Code is subject to the terms of the Mozilla Public License
     5  * version 2.0 (the "License"). You can obtain a copy of the License at
     6  * http://mozilla.org/MPL/2.0/. */
     8 /* rendering object for CSS "display: grid" */
    10 #ifndef nsGridContainerFrame_h___
    11 #define nsGridContainerFrame_h___
    13 #include "nsContainerFrame.h"
    15 nsIFrame* NS_NewGridContainerFrame(nsIPresShell* aPresShell,
    16                                    nsStyleContext* aContext);
    18 typedef nsContainerFrame nsGridContainerFrameSuper;
    20 class nsGridContainerFrame : public nsGridContainerFrameSuper {
    22   NS_DECL_FRAMEARENA_HELPERS
    23   NS_DECL_QUERYFRAME_TARGET(nsGridContainerFrame)
    24   NS_DECL_QUERYFRAME
    26   // Factory method:
    27   friend nsIFrame* NS_NewGridContainerFrame(nsIPresShell* aPresShell,
    28                                             nsStyleContext* aContext);
    30 public:
    31   // nsIFrame overrides
    32   virtual nsIAtom* GetType() const MOZ_OVERRIDE;
    33 #ifdef DEBUG_FRAME_DUMP
    34   virtual nsresult GetFrameName(nsAString& aResult) const MOZ_OVERRIDE;
    35 #endif
    37 protected:
    38   // Protected constructor & destructor
    39   nsGridContainerFrame(nsStyleContext* aContext) : nsGridContainerFrameSuper(aContext) {}
    40   virtual ~nsGridContainerFrame();
    41 };
    43 #endif /* nsGridContainerFrame_h___ */

mercurial