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 10 matching lines...) Expand all Loading... |
21 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, | 21 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, |
22 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | 22 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
23 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | 23 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR |
24 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 24 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
25 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR | 25 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR |
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 CSSRegionRule_h |
32 #define WebKitCSSRegionRule_h | 32 #define CSSRegionRule_h |
33 | 33 |
34 #include "core/css/CSSGroupingRule.h" | 34 #include "core/css/CSSGroupingRule.h" |
35 | 35 |
36 namespace WebCore { | 36 namespace WebCore { |
37 | 37 |
38 class StyleRuleRegion; | 38 class StyleRuleRegion; |
39 | 39 |
40 class WebKitCSSRegionRule : public CSSGroupingRule { | 40 class CSSRegionRule : public CSSGroupingRule { |
41 public: | 41 public: |
42 static PassRefPtr<WebKitCSSRegionRule> create(StyleRuleRegion* rule, CSSStyl
eSheet* sheet) { return adoptRef(new WebKitCSSRegionRule(rule, sheet)); } | 42 static PassRefPtr<CSSRegionRule> create(StyleRuleRegion* rule, CSSStyleSheet
* sheet) { return adoptRef(new CSSRegionRule(rule, sheet)); } |
43 | 43 |
44 virtual CSSRule::Type type() const OVERRIDE { return WEBKIT_REGION_RULE; } | 44 virtual CSSRule::Type type() const OVERRIDE { return WEBKIT_REGION_RULE; } |
45 virtual String cssText() const OVERRIDE; | 45 virtual String cssText() const OVERRIDE; |
46 | 46 |
47 private: | 47 private: |
48 WebKitCSSRegionRule(StyleRuleRegion*, CSSStyleSheet* parent); | 48 CSSRegionRule(StyleRuleRegion*, CSSStyleSheet* parent); |
49 }; | 49 }; |
50 | 50 |
51 } | 51 } |
52 | 52 |
53 #endif // WebKitCSSRegionRule_h | 53 #endif // CSSRegionRule_h |
OLD | NEW |