OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved. | 2 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved. |
3 * Copyright (C) 2012 Apple Inc. All rights reserved. | 3 * Copyright (C) 2012 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above | 9 * 1. Redistributions of source code must retain the above |
10 * copyright notice, this list of conditions and the following | 10 * copyright notice, this list of conditions and the following |
(...skipping 15 matching lines...) Expand all Loading... |
26 * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF | 26 * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF |
27 * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 27 * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
28 * SUCH DAMAGE. | 28 * SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #ifndef WebKitCSSRegionRule_h | 31 #ifndef WebKitCSSRegionRule_h |
32 #define WebKitCSSRegionRule_h | 32 #define WebKitCSSRegionRule_h |
33 | 33 |
34 #include "core/css/CSSGroupingRule.h" | 34 #include "core/css/CSSGroupingRule.h" |
35 | 35 |
36 #if ENABLE(CSS_REGIONS) | |
37 | |
38 namespace WebCore { | 36 namespace WebCore { |
39 | 37 |
40 class StyleRuleRegion; | 38 class StyleRuleRegion; |
41 | 39 |
42 class WebKitCSSRegionRule : public CSSGroupingRule { | 40 class WebKitCSSRegionRule : public CSSGroupingRule { |
43 public: | 41 public: |
44 static PassRefPtr<WebKitCSSRegionRule> create(StyleRuleRegion* rule, CSSStyl
eSheet* sheet) { return adoptRef(new WebKitCSSRegionRule(rule, sheet)); } | 42 static PassRefPtr<WebKitCSSRegionRule> create(StyleRuleRegion* rule, CSSStyl
eSheet* sheet) { return adoptRef(new WebKitCSSRegionRule(rule, sheet)); } |
45 | 43 |
46 virtual CSSRule::Type type() const OVERRIDE { return WEBKIT_REGION_RULE; } | 44 virtual CSSRule::Type type() const OVERRIDE { return WEBKIT_REGION_RULE; } |
47 virtual String cssText() const OVERRIDE; | 45 virtual String cssText() const OVERRIDE; |
48 | 46 |
49 private: | 47 private: |
50 WebKitCSSRegionRule(StyleRuleRegion*, CSSStyleSheet* parent); | 48 WebKitCSSRegionRule(StyleRuleRegion*, CSSStyleSheet* parent); |
51 }; | 49 }; |
52 | 50 |
53 } | 51 } |
54 | 52 |
55 #endif // ENABLE(CSS_REGIONS) | |
56 | |
57 #endif // WebKitCSSRegionRule_h | 53 #endif // WebKitCSSRegionRule_h |
OLD | NEW |