Changeset 197659 in webkit


Ignore:
Timestamp:
Mar 6, 2016 10:41:51 PM (8 years ago)
Author:
Nikita Vasilyev
Message:

Web Inspector: Use half-pixel borders for data grids
https://bugs.webkit.org/show_bug.cgi?id=154437
<rdar://problem/24736365>

Reviewed by Timothy Hatcher.

  • UserInterface/Views/DataGrid.css:

(.data-grid.inline):
(.data-grid th):
(.data-grid :matches(th, td):not(:last-child)):
Half-pixel borders round to 1px on 1x (non-retina) screens since r192444.

  • UserInterface/Views/DataGrid.js:

(WebInspector.DataGrid.prototype._positionResizerElements):
Use getBoundingClientRect for better precision since it provides subpixel values.

Location:
trunk/Source/WebInspectorUI
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r197625 r197659  
     12016-03-06  Nikita Vasilyev  <nvasilyev@apple.com>
     2
     3        Web Inspector: Use half-pixel borders for data grids
     4        https://bugs.webkit.org/show_bug.cgi?id=154437
     5        <rdar://problem/24736365>
     6
     7        Reviewed by Timothy Hatcher.
     8
     9        * UserInterface/Views/DataGrid.css:
     10        (.data-grid.inline):
     11        (.data-grid th):
     12        (.data-grid :matches(th, td):not(:last-child)):
     13        Half-pixel borders round to 1px on 1x (non-retina) screens since r192444.
     14
     15        * UserInterface/Views/DataGrid.js:
     16        (WebInspector.DataGrid.prototype._positionResizerElements):
     17        Use getBoundingClientRect for better precision since it provides subpixel values.
     18
    1192016-03-05  Joseph Pecoraro  <pecoraro@apple.com>
    220
  • trunk/Source/WebInspectorUI/UserInterface/Views/DataGrid.css

    r197487 r197659  
    5959
    6060.data-grid.inline {
    61     border: 1px solid var(--border-color);
     61    border: 0.5px solid var(--border-color);
    6262}
    6363
     
    7676    background-color: white;
    7777
    78     border-bottom: 1px solid var(--border-color);
     78    border-bottom: 0.5px solid var(--border-color);
    7979
    8080    font-weight: normal;
     
    8888
    8989.data-grid :matches(th, td):not(:last-child) {
    90     border-right: 1px solid var(--border-color);
     90    border-right: 0.5px solid var(--border-color);
    9191}
    9292
  • trunk/Source/WebInspectorUI/UserInterface/Views/DataGrid.js

    r197619 r197659  
    700700            // header table in order to determine the width of the column, since
    701701            // it is not possible to query a column for its width.
    702             left += this._headerTableBodyElement.rows[0].cells[i].offsetWidth;
     702            left += this._headerTableBodyElement.rows[0].cells[i].getBoundingClientRect().width;
    703703
    704704            if (this._isColumnVisible(this.orderedColumns[i])) {
Note: See TracChangeset for help on using the changeset viewer.