Changeset 145707 in webkit


Ignore:
Timestamp:
Mar 13, 2013, 5:48:28 AM (12 years ago)
Author:
commit-queue@webkit.org
Message:

Web Inspector: [CodeMirror] token highlight still has some problems
https://bugs.webkit.org/show_bug.cgi?id=112173

Patch by Andrey Lushnikov <lushnikov@chromium.org> on 2013-03-13
Reviewed by Vsevolod Vlasov.

Use pseudo elements with borders to draw token highlight.

No new tests.

  • inspector/front-end/cm/cmdevtools.css:

(.cm-token-highlight):
(.cm-token-highlight:before):
(.cm-line-with-selection .cm-column-with-selection:before):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r145706 r145707  
     12013-03-13  Andrey Lushnikov  <lushnikov@chromium.org>
     2
     3        Web Inspector: [CodeMirror] token highlight still has some problems
     4        https://bugs.webkit.org/show_bug.cgi?id=112173
     5
     6        Reviewed by Vsevolod Vlasov.
     7
     8        Use pseudo elements with borders to draw token highlight.
     9
     10        No new tests.
     11
     12        * inspector/front-end/cm/cmdevtools.css:
     13        (.cm-token-highlight):
     14        (.cm-token-highlight:before):
     15        (.cm-line-with-selection .cm-column-with-selection:before):
     16
    1172013-03-13  Alberto Garcia  <agarcia@igalia.com>
    218
  • trunk/Source/WebCore/inspector/front-end/cm/cmdevtools.css

    r145530 r145707  
    5252
    5353.cm-token-highlight {
     54    position: relative;
     55}
     56
     57.cm-token-highlight:before {
     58    position: absolute;
    5459    border: 1px solid gray;
    5560    border-radius: 3px;
    56     margin: -1px;
     61    top: 0px;
     62    bottom: 0px;
     63    left: 0px;
     64    right: 0px;
     65    content: "";
    5766}
    5867
    59 .cm-line-with-selection .cm-column-with-selection {
     68.cm-line-with-selection .cm-column-with-selection:before {
    6069    border: 0px;
    61     margin: 0px;
    6270}
    6371
Note: See TracChangeset for help on using the changeset viewer.