| 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 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 #ifndef CSSRegionRule_h | 31 #ifndef CSSRegionRule_h |
| 32 #define CSSRegionRule_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 CSSRegionRule : public CSSGroupingRule { | 40 class CSSRegionRule FINAL : public CSSGroupingRule { |
| 41 public: | 41 public: |
| 42 static PassRefPtr<CSSRegionRule> create(StyleRuleRegion* rule, CSSStyleSheet
* sheet) { return adoptRef(new CSSRegionRule(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 CSSRegionRule(StyleRuleRegion*, CSSStyleSheet* parent); | 48 CSSRegionRule(StyleRuleRegion*, CSSStyleSheet* parent); |
| 49 }; | 49 }; |
| 50 | 50 |
| 51 DEFINE_CSS_RULE_TYPE_CASTS(CSSRegionRule, WEBKIT_REGION_RULE); | 51 DEFINE_CSS_RULE_TYPE_CASTS(CSSRegionRule, WEBKIT_REGION_RULE); |
| 52 | 52 |
| 53 } | 53 } |
| 54 | 54 |
| 55 #endif // CSSRegionRule_h | 55 #endif // CSSRegionRule_h |
| OLD | NEW |