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

Side by Side Diff: Source/core/css/StylePropertySet.cpp

Issue 547333002: Get rid of method setProperty(): never used in the whole code (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « Source/core/css/StylePropertySet.h ('k') | no next file » | 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 * (C) 1999-2003 Lars Knoll (knoll@kde.org) 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc. All rights reserved.
4 * Copyright (C) 2011 Research In Motion Limited. All rights reserved. 4 * Copyright (C) 2011 Research In Motion Limited. All rights reserved.
5 * Copyright (C) 2013 Intel Corporation. All rights reserved. 5 * Copyright (C) 2013 Intel Corporation. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 if (toReplace && prefixingVariant != property.id()) 324 if (toReplace && prefixingVariant != property.id())
325 *toReplace = CSSProperty(prefixingVariant, property.value(), property.is Important(), property.isSetFromShorthand(), getIndexInShorthandVectorForPrefixin gVariant(property, prefixingVariant), property.metadata().m_implicit); 325 *toReplace = CSSProperty(prefixingVariant, property.value(), property.is Important(), property.isSetFromShorthand(), getIndexInShorthandVectorForPrefixin gVariant(property, prefixingVariant), property.metadata().m_implicit);
326 } 326 }
327 327
328 bool MutableStylePropertySet::setProperty(CSSPropertyID propertyID, CSSValueID i dentifier, bool important) 328 bool MutableStylePropertySet::setProperty(CSSPropertyID propertyID, CSSValueID i dentifier, bool important)
329 { 329 {
330 setProperty(CSSProperty(propertyID, cssValuePool().createIdentifierValue(ide ntifier), important)); 330 setProperty(CSSProperty(propertyID, cssValuePool().createIdentifierValue(ide ntifier), important));
331 return true; 331 return true;
332 } 332 }
333 333
334 bool MutableStylePropertySet::setProperty(CSSPropertyID propertyID, CSSPropertyI D identifier, bool important)
335 {
336 setProperty(CSSProperty(propertyID, cssValuePool().createIdentifierValue(ide ntifier), important));
337 return true;
338 }
339
340 void MutableStylePropertySet::parseDeclaration(const String& styleDeclaration, S tyleSheetContents* contextStyleSheet) 334 void MutableStylePropertySet::parseDeclaration(const String& styleDeclaration, S tyleSheetContents* contextStyleSheet)
341 { 335 {
342 m_propertyVector.clear(); 336 m_propertyVector.clear();
343 337
344 CSSParserContext context(cssParserMode(), UseCounter::getFrom(contextStyleSh eet)); 338 CSSParserContext context(cssParserMode(), UseCounter::getFrom(contextStyleSh eet));
345 if (contextStyleSheet) { 339 if (contextStyleSheet) {
346 context = contextStyleSheet->parserContext(); 340 context = contextStyleSheet->parserContext();
347 context.setMode(cssParserMode()); 341 context.setMode(cssParserMode());
348 } 342 }
349 343
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 result.appendLiteral(": "); 605 result.appendLiteral(": ");
612 result.append(propertyValue()->cssText()); 606 result.append(propertyValue()->cssText());
613 if (isImportant()) 607 if (isImportant())
614 result.appendLiteral(" !important"); 608 result.appendLiteral(" !important");
615 result.append(';'); 609 result.append(';');
616 return result.toString(); 610 return result.toString();
617 } 611 }
618 612
619 613
620 } // namespace blink 614 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/css/StylePropertySet.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698