Changeset 74397 in webkit


Ignore:
Timestamp:
Dec 20, 2010 11:11:50 PM (13 years ago)
Author:
pfeldman@chromium.org
Message:

2010-12-20 Pavel Feldman <pfeldman@chromium.org>

Reviewed by Joseph Pecoraro.

Web Inspector: cycle through tag name / attributes / new attribute on Tab.

https://bugs.webkit.org/show_bug.cgi?id=38429

  • inspector/front-end/ElementsTreeOutline.js: (WebInspector.ElementsTreeElement.prototype._tagNameEditingCommitted.moveToNextAttributeIfNeeded):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r74390 r74397  
     12010-12-20  Pavel Feldman  <pfeldman@chromium.org>
     2
     3        Reviewed by Joseph Pecoraro.
     4
     5        Web Inspector: cycle through tag name / attributes / new attribute on Tab.
     6
     7        https://bugs.webkit.org/show_bug.cgi?id=38429
     8
     9        * inspector/front-end/ElementsTreeOutline.js:
     10        (WebInspector.ElementsTreeElement.prototype._tagNameEditingCommitted.moveToNextAttributeIfNeeded):
     11
    1122010-12-20  Yuta Kitamura  <yutak@chromium.org>
    213
  • trunk/WebCore/inspector/front-end/ElementsTreeOutline.js

    r73913 r74397  
    10341034                if (moveDirection === "backward" && attributes.length > 0)
    10351035                    moveToAttribute = attributes[attributes.length - 1].name;
    1036                 else if (moveDirection === "forward" && !/^\s*$/.test(newText))
    1037                     moveToNewAttribute = true;
     1036                else if (moveDirection === "forward") {
     1037                    if (!/^\s*$/.test(newText))
     1038                        moveToNewAttribute = true;
     1039                    else
     1040                        moveToTagName = true;
     1041                }
    10381042            }
    10391043        }
     
    11131117        function moveToNextAttributeIfNeeded()
    11141118        {
    1115             if (moveDirection !== "forward")
     1119            if (moveDirection !== "forward") {
     1120                this._addNewAttribute();
    11161121                return;
     1122            }
    11171123
    11181124            var attributes = this.representedObject.attributes;
Note: See TracChangeset for help on using the changeset viewer.