Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(58)

Side by Side Diff: third_party/WebKit/Source/core/css/CSSComputedStyleDeclaration.cpp

Issue 2017053003: Remove StringBuilder::appendLiteral. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004 Zack Rusin <zack@kde.org> 2 * Copyright (C) 2004 Zack Rusin <zack@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> 4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org>
5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> 5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com>
6 * Copyright (C) 2011 Sencha, Inc. All rights reserved. 6 * Copyright (C) 2011 Sencha, Inc. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public 9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 369
370 String CSSComputedStyleDeclaration::cssText() const 370 String CSSComputedStyleDeclaration::cssText() const
371 { 371 {
372 StringBuilder result; 372 StringBuilder result;
373 const Vector<CSSPropertyID>& properties = computableProperties(); 373 const Vector<CSSPropertyID>& properties = computableProperties();
374 374
375 for (unsigned i = 0; i < properties.size(); i++) { 375 for (unsigned i = 0; i < properties.size(); i++) {
376 if (i) 376 if (i)
377 result.append(' '); 377 result.append(' ');
378 result.append(getPropertyName(properties[i])); 378 result.append(getPropertyName(properties[i]));
379 result.appendLiteral(": "); 379 result.append(": ");
380 result.append(getPropertyValue(properties[i])); 380 result.append(getPropertyValue(properties[i]));
381 result.append(';'); 381 result.append(';');
382 } 382 }
383 383
384 return result.toString(); 384 return result.toString();
385 } 385 }
386 386
387 void CSSComputedStyleDeclaration::setCSSText(const String&, ExceptionState& exce ptionState) 387 void CSSComputedStyleDeclaration::setCSSText(const String&, ExceptionState& exce ptionState)
388 { 388 {
389 exceptionState.throwDOMException(NoModificationAllowedError, "These styles a re computed, and therefore read-only."); 389 exceptionState.throwDOMException(NoModificationAllowedError, "These styles a re computed, and therefore read-only.");
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
694 exceptionState.throwDOMException(NoModificationAllowedError, "These styles a re computed, and therefore the '" + getPropertyNameString(id) + "' property is r ead-only."); 694 exceptionState.throwDOMException(NoModificationAllowedError, "These styles a re computed, and therefore the '" + getPropertyNameString(id) + "' property is r ead-only.");
695 } 695 }
696 696
697 DEFINE_TRACE(CSSComputedStyleDeclaration) 697 DEFINE_TRACE(CSSComputedStyleDeclaration)
698 { 698 {
699 visitor->trace(m_node); 699 visitor->trace(m_node);
700 CSSStyleDeclaration::trace(visitor); 700 CSSStyleDeclaration::trace(visitor);
701 } 701 }
702 702
703 } // namespace blink 703 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSCalculationValue.cpp ('k') | third_party/WebKit/Source/core/css/CSSCounterValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698