[SCM] WebKit Debian packaging branch, debian/experimental, updated. upstream/1.3.3-9427-gc2be6fc

eric at webkit.org eric at webkit.org
Wed Dec 22 11:51:02 UTC 2010


The following commit has been merged in the debian/experimental branch:
commit 6da9c8810035d08c7bb21dae81f6424e2522e86e
Author: eric at webkit.org <eric at webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Mon Aug 9 23:06:04 2010 +0000

    2010-08-09  Adam Barth  <abarth at 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):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65012 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog
index 72ac12b..3823c07 100644
--- a/WebCore/ChangeLog
+++ b/WebCore/ChangeLog
@@ -1,3 +1,20 @@
+2010-08-09  Adam Barth  <abarth at 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):
+
 2010-08-09  Eric Seidel  <eric at webkit.org>
 
         Reviewed by Adam Barth.
diff --git a/WebCore/html/HTMLViewSourceDocument.cpp b/WebCore/html/HTMLViewSourceDocument.cpp
index ca959a2..e1b959b 100644
--- a/WebCore/html/HTMLViewSourceDocument.cpp
+++ b/WebCore/html/HTMLViewSourceDocument.cpp
@@ -19,7 +19,7 @@
  * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
  * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
 #include "config.h"
@@ -74,7 +74,7 @@ void HTMLViewSourceDocument::createContainingTable()
     RefPtr<HTMLBodyElement> body = HTMLBodyElement::create(this);
     html->parserAddChild(body);
     body->attach();
-    
+
     // Create a line gutter div that can be used to make sure the gutter extends down the height of the whole
     // document.
     RefPtr<HTMLDivElement> div = HTMLDivElement::create(this);
@@ -137,7 +137,7 @@ void HTMLViewSourceDocument::addViewSourceToken(Token* token)
                 if (guide->at(i) == 'a' || guide->at(i) == 'x' || guide->at(i) == 'v') {
                     // Add in the string.
                     addText(String(static_cast<UChar*>(guide->data()) + begin, i - begin), classNameStr);
-                     
+
                     begin = i + 1;
 
                     if (guide->at(i) == 'a') {
@@ -149,7 +149,7 @@ void HTMLViewSourceDocument::addViewSourceToken(Token* token)
                     if (attr) {
                         if (guide->at(i) == 'a') {
                             String name = attr->name().toString();
-                            
+
                             m_current = addSpanWithClassName("webkit-html-attribute-name");
                             addText(name, "webkit-html-attribute-name");
                             if (m_current != m_tbody)
@@ -179,7 +179,7 @@ void HTMLViewSourceDocument::addViewSourceToken(Token* token)
                     }
                 }
             }
-            
+
             // Add in any string that might be left.
             if (begin < size)
                 addText(String(static_cast<UChar*>(guide->data()) + begin, size - begin), classNameStr);
@@ -187,7 +187,7 @@ void HTMLViewSourceDocument::addViewSourceToken(Token* token)
             // Add in the end tag.
             addText(">", classNameStr);
         }
-        
+
         m_current = m_td;
     }
 }
@@ -225,7 +225,7 @@ void HTMLViewSourceDocument::addLine(const String& className)
     RefPtr<HTMLTableRowElement> trow = HTMLTableRowElement::create(this);
     m_tbody->parserAddChild(trow);
     trow->attach();
-    
+
     // Create a cell that will hold the line number (it is generated in the stylesheet using counters).
     RefPtr<HTMLTableCellElement> td = HTMLTableCellElement::create(tdTag, this);
     RefPtr<NamedNodeMap> attrs = NamedNodeMap::create();
@@ -281,7 +281,7 @@ void HTMLViewSourceDocument::addText(const String& text, const String& className
         if (i < size - 1)
             m_current = m_tbody;
     }
-    
+
     // Set current to m_tbody if the last character was a newline.
     if (text[text.length() - 1] == '\n')
         m_current = m_tbody;
@@ -291,7 +291,7 @@ PassRefPtr<Element> HTMLViewSourceDocument::addLink(const String& url, bool isAn
 {
     if (m_current == m_tbody)
         addLine("webkit-html-tag");
-    
+
     // Now create a link for the attribute value instead of a span.
     RefPtr<HTMLAnchorElement> anchor = HTMLAnchorElement::create(this);
     RefPtr<NamedNodeMap> attrs = NamedNodeMap::create();

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list