OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2014, Google Inc. All rights reserved. | 2 * Copyright (c) 2014, 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 // ... examine RuleSet to find the rule and test properties on it. | 47 // ... examine RuleSet to find the rule and test properties on it. |
48 | 48 |
49 class CSSTestHelper { | 49 class CSSTestHelper { |
50 STACK_ALLOCATED(); | 50 STACK_ALLOCATED(); |
51 public: | 51 public: |
52 CSSTestHelper(); | 52 CSSTestHelper(); |
53 ~CSSTestHelper(); | 53 ~CSSTestHelper(); |
54 | 54 |
55 void addCSSRules(const char* ruleText); | 55 void addCSSRules(const char* ruleText); |
56 RuleSet& ruleSet(); | 56 RuleSet& ruleSet(); |
| 57 CSSRuleList* cssRules(); |
57 | 58 |
58 private: | 59 private: |
59 RefPtrWillBePersistent<Document> m_document; | 60 RefPtrWillBePersistent<Document> m_document; |
60 RefPtrWillBePersistent<CSSStyleSheet> m_styleSheet; | 61 RefPtrWillBePersistent<CSSStyleSheet> m_styleSheet; |
61 }; | 62 }; |
62 | 63 |
63 } // namespace blink | 64 } // namespace blink |
64 | 65 |
65 #endif // CSSTestHelper_h | 66 #endif // CSSTestHelper_h |
OLD | NEW |