Changeset 85191 in webkit


Ignore:
Timestamp:
Apr 28, 2011 9:18:49 AM (13 years ago)
Author:
pfeldman@chromium.org
Message:

2011-04-28 Satish Sampath <satish@chromium.org>

Reviewed by Tony Gentilcore.

Speech input button layout issues with padding and border.
https://bugs.webkit.org/show_bug.cgi?id=59613

  • rendering/RenderTextControlSingleLine.cpp: (WebCore::RenderTextControlSingleLine::layout): (WebCore::RenderTextControlSingleLine::nodeAtPoint): (WebCore::RenderTextControlSingleLine::forwardEvent):
Location:
trunk/Source/WebCore
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r85190 r85191  
    2727        * platform/gtk/ScrollViewGtk.cpp:
    2828        (WebCore::ScrollView::createScrollbar):
     29
     302011-04-28  Pavel Feldman  <pfeldman@google.com>
     31
     32        Reviewed by Yury Semikhatsky.
     33
     34        Web Inspector: add status bar button for pretty print.
     35        https://bugs.webkit.org/show_bug.cgi?id=59467
     36
     37        * WebCore.gypi:
     38        * inspector/front-end/Images/prettyPrintButtonGlyph.png: Added.
     39        * inspector/front-end/ScriptsPanel.js:
     40        (WebInspector.ScriptsPanel):
     41        (WebInspector.ScriptsPanel.prototype.get statusBarItems):
     42        (WebInspector.ScriptsPanel.prototype._toggleFormatSourceFiles):
     43        * inspector/front-end/WebKit.qrc:
     44        * inspector/front-end/inspector.css:
     45        (.scripts-toggle-pretty-print-status-bar-item .glyph):
     46        (.scripts-toggle-pretty-print-status-bar-item.toggled .glyph):
    2947
    30482011-04-28  Pavel Feldman  <pfeldman@google.com>
  • trunk/Source/WebCore/WebCore.gypi

    r85180 r85191  
    63626362            'inspector/front-end/Images/popoverArrows.png',
    63636363            'inspector/front-end/Images/popoverBackground.png',
     6364            'inspector/front-end/Images/prettyPrintButtonGlyph.png',
    63646365            'inspector/front-end/Images/profileGroupIcon.png',
    63656366            'inspector/front-end/Images/profileIcon.png',
  • trunk/Source/WebCore/inspector/front-end/ScriptsPanel.js

    r85179 r85191  
    172172    this._pauseOnExceptionButton.addEventListener("click", this._togglePauseOnExceptions.bind(this), false);
    173173
     174    this._toggleFormatSourceFilesButton = new WebInspector.StatusBarButton(WebInspector.UIString("Pretty print"), "scripts-toggle-pretty-print-status-bar-item");
     175    this._toggleFormatSourceFilesButton.toggled = false;
     176    this._toggleFormatSourceFilesButton.addEventListener("click", this._toggleFormatSourceFiles.bind(this), false);
     177
    174178    this._registerShortcuts();
    175179
     
    216220    get statusBarItems()
    217221    {
    218         return [this.enableToggleButton.element, this._pauseOnExceptionButton.element];
     222        return [this.enableToggleButton.element, this._pauseOnExceptionButton.element, this._toggleFormatSourceFilesButton.element];
    219223    },
    220224
     
    10071011            this._searchView.jumpToPreviousSearchResult();
    10081012    },
     1013
     1014    _toggleFormatSourceFiles: function()
     1015    {
     1016        WebInspector.panels.scripts.reset();
     1017        this._presentationModel.toggleFormatSourceFiles();
     1018        this._toggleFormatSourceFilesButton.toggled = this._presentationModel.formatSourceFilesToggled();
     1019    }
    10091020}
    10101021
  • trunk/Source/WebCore/inspector/front-end/WebKit.qrc

    r84780 r85191  
    202202    <file>Images/popoverArrows.png</file>
    203203    <file>Images/popoverBackground.png</file>
     204    <file>Images/prettyPrintButtonGlyph.png</file>
    204205    <file>Images/profileGroupIcon.png</file>
    205206    <file>Images/profileIcon.png</file>
  • trunk/Source/WebCore/inspector/front-end/inspector.css

    r84910 r85191  
    25582558}
    25592559
     2560.scripts-toggle-pretty-print-status-bar-item .glyph {
     2561    -webkit-mask-image: url(Images/prettyPrintButtonGlyph.png);
     2562}
     2563
     2564.scripts-toggle-pretty-print-status-bar-item.toggled .glyph {
     2565    background-color: rgb(66, 129, 235);
     2566}
     2567
    25602568#scripts-status-bar {
    25612569    position: absolute;
Note: See TracChangeset for help on using the changeset viewer.