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

Side by Side Diff: Source/core/inspector/InspectorStyleSheet.cpp

Issue 482753002: Use StringBuilder::appendLiteral() / StringBuilder::append(char) when possible (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/inspector/InspectorOverlay.cpp ('k') | Source/core/inspector/ScriptArguments.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010, Google Inc. All rights reserved. 2 * Copyright (C) 2010, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 729 matching lines...) Expand 10 before | Expand all | Expand 10 after
740 for (unsigned i = 0; i < m_style->length(); ++i) { 740 for (unsigned i = 0; i < m_style->length(); ++i) {
741 String individualProperty = m_style->item(i); 741 String individualProperty = m_style->item(i);
742 if (m_style->getPropertyShorthand(individualProperty) != shorthandPr operty) 742 if (m_style->getPropertyShorthand(individualProperty) != shorthandPr operty)
743 continue; 743 continue;
744 if (m_style->isPropertyImplicit(individualProperty)) 744 if (m_style->isPropertyImplicit(individualProperty))
745 continue; 745 continue;
746 String individualValue = m_style->getPropertyValue(individualPropert y); 746 String individualValue = m_style->getPropertyValue(individualPropert y);
747 if (individualValue == "initial") 747 if (individualValue == "initial")
748 continue; 748 continue;
749 if (!builder.isEmpty()) 749 if (!builder.isEmpty())
750 builder.append(" "); 750 builder.append(' ');
751 builder.append(individualValue); 751 builder.append(individualValue);
752 } 752 }
753 753
754 return builder.toString(); 754 return builder.toString();
755 } 755 }
756 return value; 756 return value;
757 } 757 }
758 758
759 NewLineAndWhitespace& InspectorStyle::newLineAndWhitespaceDelimiters() const 759 NewLineAndWhitespace& InspectorStyle::newLineAndWhitespaceDelimiters() const
760 { 760 {
(...skipping 1055 matching lines...) Expand 10 before | Expand all | Expand 10 after
1816 void InspectorStyleSheetForInlineStyle::trace(Visitor* visitor) 1816 void InspectorStyleSheetForInlineStyle::trace(Visitor* visitor)
1817 { 1817 {
1818 visitor->trace(m_element); 1818 visitor->trace(m_element);
1819 visitor->trace(m_ruleSourceData); 1819 visitor->trace(m_ruleSourceData);
1820 visitor->trace(m_inspectorStyle); 1820 visitor->trace(m_inspectorStyle);
1821 InspectorStyleSheetBase::trace(visitor); 1821 InspectorStyleSheetBase::trace(visitor);
1822 } 1822 }
1823 1823
1824 } // namespace blink 1824 } // namespace blink
1825 1825
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorOverlay.cpp ('k') | Source/core/inspector/ScriptArguments.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698