OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Motorola Mobility Inc. All rights reserved. | 2 * Copyright (C) 2012 Motorola Mobility 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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above | 10 * 2. Redistributions in binary form must reproduce the above |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 nullptr, value, false, | 50 nullptr, value, false, |
51 nullptr, isAnimationTainted) | 51 nullptr, isAnimationTainted) |
52 .didParse; | 52 .didParse; |
53 } | 53 } |
54 | 54 |
55 ASSERT(CSSPropertyMetadata::isEnabledProperty(unresolvedProperty)); | 55 ASSERT(CSSPropertyMetadata::isEnabledProperty(unresolvedProperty)); |
56 | 56 |
57 // This will return false when !important is present | 57 // This will return false when !important is present |
58 MutableStylePropertySet* dummyStyle = | 58 MutableStylePropertySet* dummyStyle = |
59 MutableStylePropertySet::create(HTMLStandardMode); | 59 MutableStylePropertySet::create(HTMLStandardMode); |
60 return CSSParser::parseValue(dummyStyle, unresolvedProperty, value, false, 0) | 60 return CSSParser::parseValue(dummyStyle, unresolvedProperty, value, false) |
61 .didParse; | 61 .didParse; |
62 } | 62 } |
63 | 63 |
64 bool DOMWindowCSS::supports(const String& conditionText) { | 64 bool DOMWindowCSS::supports(const String& conditionText) { |
65 return CSSParser::parseSupportsCondition(conditionText); | 65 return CSSParser::parseSupportsCondition(conditionText); |
66 } | 66 } |
67 | 67 |
68 String DOMWindowCSS::escape(const String& ident) { | 68 String DOMWindowCSS::escape(const String& ident) { |
69 StringBuilder builder; | 69 StringBuilder builder; |
70 serializeIdentifier(ident, builder); | 70 serializeIdentifier(ident, builder); |
71 return builder.toString(); | 71 return builder.toString(); |
72 } | 72 } |
73 | 73 |
74 } // namespace blink | 74 } // namespace blink |
OLD | NEW |