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

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

Issue 13973026: remove memoryinstrumentation Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove the rest part of MemoryInstrumentation Created 7 years, 8 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/css/CSSStyleSheet.cpp ('k') | Source/core/css/CSSTimingFunctionValue.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Copyright (C) 2012 Motorola Mobility Inc. All rights reserved. 1 /* Copyright (C) 2012 Motorola Mobility Inc. All rights reserved.
2 * 2 *
3 * Redistribution and use in source and binary forms, with or without 3 * Redistribution and use in source and binary forms, with or without
4 * modification, are permitted provided that the following conditions are 4 * modification, are permitted provided that the following conditions are
5 * met: 5 * met:
6 * 6 *
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 9 * 2. Redistributions in binary form must reproduce the above
10 * copyright notice, this list of conditions and the following disclaimer in 10 * copyright notice, this list of conditions and the following disclaimer in
(...skipping 17 matching lines...) Expand all
28 28
29 #include "config.h" 29 #include "config.h"
30 #include "CSSSupportsRule.h" 30 #include "CSSSupportsRule.h"
31 31
32 #include "CSSParser.h" 32 #include "CSSParser.h"
33 #include "CSSRule.h" 33 #include "CSSRule.h"
34 #include "CSSRuleList.h" 34 #include "CSSRuleList.h"
35 #include "CSSStyleSheet.h" 35 #include "CSSStyleSheet.h"
36 #include "ExceptionCode.h" 36 #include "ExceptionCode.h"
37 #include "StyleRule.h" 37 #include "StyleRule.h"
38 #include "WebCoreMemoryInstrumentation.h"
39 #include <wtf/MemoryInstrumentationVector.h>
40 #include <wtf/text/StringBuilder.h> 38 #include <wtf/text/StringBuilder.h>
41 39
42 namespace WebCore { 40 namespace WebCore {
43 41
44 CSSSupportsRule::CSSSupportsRule(StyleRuleSupports* supportsRule, CSSStyleSheet* parent) 42 CSSSupportsRule::CSSSupportsRule(StyleRuleSupports* supportsRule, CSSStyleSheet* parent)
45 : CSSGroupingRule(supportsRule, parent) 43 : CSSGroupingRule(supportsRule, parent)
46 { 44 {
47 } 45 }
48 46
49 String CSSSupportsRule::cssText() const 47 String CSSSupportsRule::cssText() const
50 { 48 {
51 StringBuilder result; 49 StringBuilder result;
52 50
53 result.append("@supports "); 51 result.append("@supports ");
54 result.append(conditionText()); 52 result.append(conditionText());
55 result.append(" {\n"); 53 result.append(" {\n");
56 appendCssTextForItems(result); 54 appendCssTextForItems(result);
57 result.append('}'); 55 result.append('}');
58 56
59 return result.toString(); 57 return result.toString();
60 } 58 }
61 59
62 String CSSSupportsRule::conditionText() const 60 String CSSSupportsRule::conditionText() const
63 { 61 {
64 return toStyleRuleSupports(m_groupRule.get())->conditionText(); 62 return toStyleRuleSupports(m_groupRule.get())->conditionText();
65 } 63 }
66 64
67 } // namespace WebCore 65 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/css/CSSStyleSheet.cpp ('k') | Source/core/css/CSSTimingFunctionValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698