Changeset 65012 in webkit
- Timestamp:
- Aug 9, 2010 4:06:04 PM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r65006 r65012 1 2010-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 1 18 2010-08-09 Eric Seidel <eric@webkit.org> 2 19 -
trunk/WebCore/html/HTMLViewSourceDocument.cpp
r65004 r65012 20 20 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 21 21 * (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. 23 23 */ 24 24 … … 75 75 html->parserAddChild(body); 76 76 body->attach(); 77 77 78 78 // Create a line gutter div that can be used to make sure the gutter extends down the height of the whole 79 79 // document. … … 138 138 // Add in the string. 139 139 addText(String(static_cast<UChar*>(guide->data()) + begin, i - begin), classNameStr); 140 140 141 141 begin = i + 1; 142 142 … … 150 150 if (guide->at(i) == 'a') { 151 151 String name = attr->name().toString(); 152 152 153 153 m_current = addSpanWithClassName("webkit-html-attribute-name"); 154 154 addText(name, "webkit-html-attribute-name"); … … 180 180 } 181 181 } 182 182 183 183 // Add in any string that might be left. 184 184 if (begin < size) … … 188 188 addText(">", classNameStr); 189 189 } 190 190 191 191 m_current = m_td; 192 192 } … … 226 226 m_tbody->parserAddChild(trow); 227 227 trow->attach(); 228 228 229 229 // Create a cell that will hold the line number (it is generated in the stylesheet using counters). 230 230 RefPtr<HTMLTableCellElement> td = HTMLTableCellElement::create(tdTag, this); … … 282 282 m_current = m_tbody; 283 283 } 284 284 285 285 // Set current to m_tbody if the last character was a newline. 286 286 if (text[text.length() - 1] == '\n') … … 292 292 if (m_current == m_tbody) 293 293 addLine("webkit-html-tag"); 294 294 295 295 // Now create a link for the attribute value instead of a span. 296 296 RefPtr<HTMLAnchorElement> anchor = HTMLAnchorElement::create(this);
Note: See TracChangeset
for help on using the changeset viewer.