Changeset 131471 in webkit


Ignore:
Timestamp:
Oct 16, 2012, 10:23:03 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

Inspector should allow reading the compositing debug settings
https://bugs.webkit.org/show_bug.cgi?id=99458

Patch by Antoine Quint <Antoine Quint> on 2012-10-16
Reviewed by Timothy Hatcher.

  • inspector/Inspector.json:
  • inspector/InspectorPageAgent.cpp:

(WebCore::InspectorPageAgent::getCompositingBordersVisible):

  • inspector/InspectorPageAgent.h:
Location:
trunk/Source/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r131468 r131471  
     12012-10-16  Antoine Quint  <graouts@apple.com>
     2
     3        Inspector should allow reading the compositing debug settings
     4        https://bugs.webkit.org/show_bug.cgi?id=99458
     5
     6        Reviewed by Timothy Hatcher.
     7
     8        * inspector/Inspector.json:
     9        * inspector/InspectorPageAgent.cpp:
     10        (WebCore::InspectorPageAgent::getCompositingBordersVisible):
     11        * inspector/InspectorPageAgent.h:
     12
    1132012-10-16  Dan Bernstein  <mitz@apple.com>
    214
  • trunk/Source/WebCore/inspector/Inspector.json

    r131265 r131471  
    404404                ],
    405405                "description": "Toggles mouse event-based touch event emulation.",
     406                "hidden": true
     407            },
     408            {
     409                "name": "getCompositingBordersVisible",
     410                "description": "Indicates the visibility of compositing borders.",
     411                "returns": [
     412                    { "name": "result", "type": "boolean", "description": "If true, compositing borders are visible." }
     413                ],
    406414                "hidden": true
    407415            },
  • trunk/Source/WebCore/inspector/InspectorPageAgent.cpp

    r131265 r131471  
    11091109}
    11101110
     1111void InspectorPageAgent::getCompositingBordersVisible(ErrorString* error, bool* outParam)
     1112{
     1113    Settings* settings = m_page->settings();
     1114    if (!settings) {
     1115        *error = "Internal error: unable to read settings.";
     1116        return;
     1117    }
     1118
     1119    *outParam = settings->showDebugBorders() || settings->showRepaintCounter();
     1120}
     1121
    11111122void InspectorPageAgent::setCompositingBordersVisible(ErrorString*, bool visible)
    11121123{
  • trunk/Source/WebCore/inspector/InspectorPageAgent.h

    r131265 r131471  
    119119    virtual void canOverrideDeviceOrientation(ErrorString*, bool*);
    120120    virtual void setTouchEmulationEnabled(ErrorString*, bool);
     121    virtual void getCompositingBordersVisible(ErrorString*, bool* out_param);
    121122    virtual void setCompositingBordersVisible(ErrorString*, bool);
    122123
Note: See TracChangeset for help on using the changeset viewer.