Changeset 65012 in webkit


Ignore:
Timestamp:
Aug 9, 2010 4:06:04 PM (14 years ago)
Author:
eric@webkit.org
Message:

2010-08-09 Adam Barth <abarth@webkit.org>

Reviewed by Eric Seidel.

Remove trailing whitespace in HTMLViewSourceDocument.cpp
https://bugs.webkit.org/show_bug.cgi?id=43741

No behavior change. The whitespace was distracting me while porting
this class to the new parser.

  • html/HTMLViewSourceDocument.cpp: (WebCore::HTMLViewSourceDocument::createContainingTable): (WebCore::HTMLViewSourceDocument::addViewSourceToken): (WebCore::HTMLViewSourceDocument::addLine): (WebCore::HTMLViewSourceDocument::addText): (WebCore::HTMLViewSourceDocument::addLink):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r65006 r65012  
     12010-08-09  Adam Barth  <abarth@webkit.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        Remove trailing whitespace in HTMLViewSourceDocument.cpp
     6        https://bugs.webkit.org/show_bug.cgi?id=43741
     7
     8        No behavior change.  The whitespace was distracting me while porting
     9        this class to the new parser.
     10
     11        * html/HTMLViewSourceDocument.cpp:
     12        (WebCore::HTMLViewSourceDocument::createContainingTable):
     13        (WebCore::HTMLViewSourceDocument::addViewSourceToken):
     14        (WebCore::HTMLViewSourceDocument::addLine):
     15        (WebCore::HTMLViewSourceDocument::addText):
     16        (WebCore::HTMLViewSourceDocument::addLink):
     17
    1182010-08-09  Eric Seidel  <eric@webkit.org>
    219
  • trunk/WebCore/html/HTMLViewSourceDocument.cpp

    r65004 r65012  
    2020 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
    2121 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    22  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
     22 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    2323 */
    2424
     
    7575    html->parserAddChild(body);
    7676    body->attach();
    77    
     77
    7878    // Create a line gutter div that can be used to make sure the gutter extends down the height of the whole
    7979    // document.
     
    138138                    // Add in the string.
    139139                    addText(String(static_cast<UChar*>(guide->data()) + begin, i - begin), classNameStr);
    140                      
     140
    141141                    begin = i + 1;
    142142
     
    150150                        if (guide->at(i) == 'a') {
    151151                            String name = attr->name().toString();
    152                            
     152
    153153                            m_current = addSpanWithClassName("webkit-html-attribute-name");
    154154                            addText(name, "webkit-html-attribute-name");
     
    180180                }
    181181            }
    182            
     182
    183183            // Add in any string that might be left.
    184184            if (begin < size)
     
    188188            addText(">", classNameStr);
    189189        }
    190        
     190
    191191        m_current = m_td;
    192192    }
     
    226226    m_tbody->parserAddChild(trow);
    227227    trow->attach();
    228    
     228
    229229    // Create a cell that will hold the line number (it is generated in the stylesheet using counters).
    230230    RefPtr<HTMLTableCellElement> td = HTMLTableCellElement::create(tdTag, this);
     
    282282            m_current = m_tbody;
    283283    }
    284    
     284
    285285    // Set current to m_tbody if the last character was a newline.
    286286    if (text[text.length() - 1] == '\n')
     
    292292    if (m_current == m_tbody)
    293293        addLine("webkit-html-tag");
    294    
     294
    295295    // Now create a link for the attribute value instead of a span.
    296296    RefPtr<HTMLAnchorElement> anchor = HTMLAnchorElement::create(this);
Note: See TracChangeset for help on using the changeset viewer.