OLD | NEW |
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 25 matching lines...) Expand all Loading... |
36 | 36 |
37 CSSSupportsRule::CSSSupportsRule(StyleRuleSupports* supportsRule, CSSStyleSheet*
parent) | 37 CSSSupportsRule::CSSSupportsRule(StyleRuleSupports* supportsRule, CSSStyleSheet*
parent) |
38 : CSSGroupingRule(supportsRule, parent) | 38 : CSSGroupingRule(supportsRule, parent) |
39 { | 39 { |
40 } | 40 } |
41 | 41 |
42 String CSSSupportsRule::cssText() const | 42 String CSSSupportsRule::cssText() const |
43 { | 43 { |
44 StringBuilder result; | 44 StringBuilder result; |
45 | 45 |
46 result.appendLiteral("@supports "); | 46 result.append("@supports "); |
47 result.append(conditionText()); | 47 result.append(conditionText()); |
48 result.appendLiteral(" {\n"); | 48 result.append(" {\n"); |
49 appendCSSTextForItems(result); | 49 appendCSSTextForItems(result); |
50 result.append('}'); | 50 result.append('}'); |
51 | 51 |
52 return result.toString(); | 52 return result.toString(); |
53 } | 53 } |
54 | 54 |
55 String CSSSupportsRule::conditionText() const | 55 String CSSSupportsRule::conditionText() const |
56 { | 56 { |
57 return toStyleRuleSupports(m_groupRule.get())->conditionText(); | 57 return toStyleRuleSupports(m_groupRule.get())->conditionText(); |
58 } | 58 } |
59 | 59 |
60 } // namespace blink | 60 } // namespace blink |
OLD | NEW |