tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

nsILayoutDebuggingTools.idl (1394B)


      1 /* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
      2 // vim:cindent:tabstop=4:expandtab:shiftwidth=4:
      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 "nsISupports.idl"
      8 
      9 interface mozIDOMWindow;
     10 
     11 /**
     12 * A series of hooks into non-IDL-ized layout code to allow all the
     13 * layout debugging functions to be used from chrome.
     14 */
     15 
     16 [builtinclass, scriptable, uuid(f336d8d3-9721-4ad3-85d0-a7018c0a3383)]
     17 interface nsILayoutDebuggingTools : nsISupports
     18 {
     19    cenum DumpFrameFlags : 8 {
     20        DUMP_FRAME_FLAGS_CSS_PIXELS    = 1,
     21        DUMP_FRAME_FLAGS_DETERMINISTIC = 2,
     22    };
     23    /*
     24     * Initialize debugger object to act on a docshell.
     25     */
     26    void init(in mozIDOMWindow win);
     27 
     28    // Repaint the window.
     29    void forceRefresh();
     30 
     31    /* Toggle various debugging states */
     32    void setReflowCounts(in boolean enabled);
     33    void setPagedMode(in boolean enabled);
     34 
     35    /* Run various tests. */
     36    void dumpContent(in boolean anonymousSubtrees);
     37    void dumpFrames(in uint8_t flags);
     38    void dumpTextRuns();
     39    void dumpCounterManager();
     40    void dumpRetainedDisplayList();
     41 
     42    void dumpStyleSheets();
     43    void dumpMatchedRules();
     44    void dumpComputedStyles();
     45 
     46    void dumpReflowStats();
     47 };