| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Intel Corporation. All rights reserved. | 2 * Copyright (C) 2012 Intel Corporation. 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 #include "core/css/CSSViewportRule.h" | 31 #include "core/css/CSSViewportRule.h" |
| 32 | 32 |
| 33 #include "core/css/PropertySetCSSStyleDeclaration.h" | 33 #include "core/css/PropertySetCSSStyleDeclaration.h" |
| 34 #include "core/css/StylePropertySet.h" | 34 #include "core/css/StylePropertySet.h" |
| 35 #include "core/css/StyleRule.h" | 35 #include "core/css/StyleRule.h" |
| 36 #include "wtf/text/StringBuilder.h" | 36 #include "platform/wtf/text/StringBuilder.h" |
| 37 | 37 |
| 38 namespace blink { | 38 namespace blink { |
| 39 | 39 |
| 40 CSSViewportRule::CSSViewportRule(StyleRuleViewport* viewport_rule, | 40 CSSViewportRule::CSSViewportRule(StyleRuleViewport* viewport_rule, |
| 41 CSSStyleSheet* sheet) | 41 CSSStyleSheet* sheet) |
| 42 : CSSRule(sheet), viewport_rule_(viewport_rule) {} | 42 : CSSRule(sheet), viewport_rule_(viewport_rule) {} |
| 43 | 43 |
| 44 CSSViewportRule::~CSSViewportRule() {} | 44 CSSViewportRule::~CSSViewportRule() {} |
| 45 | 45 |
| 46 CSSStyleDeclaration* CSSViewportRule::style() const { | 46 CSSStyleDeclaration* CSSViewportRule::style() const { |
| (...skipping 26 matching lines...) Expand all Loading... |
| 73 properties_cssom_wrapper_->Reattach(viewport_rule_->MutableProperties()); | 73 properties_cssom_wrapper_->Reattach(viewport_rule_->MutableProperties()); |
| 74 } | 74 } |
| 75 | 75 |
| 76 DEFINE_TRACE(CSSViewportRule) { | 76 DEFINE_TRACE(CSSViewportRule) { |
| 77 visitor->Trace(viewport_rule_); | 77 visitor->Trace(viewport_rule_); |
| 78 visitor->Trace(properties_cssom_wrapper_); | 78 visitor->Trace(properties_cssom_wrapper_); |
| 79 CSSRule::Trace(visitor); | 79 CSSRule::Trace(visitor); |
| 80 } | 80 } |
| 81 | 81 |
| 82 } // namespace blink | 82 } // namespace blink |
| OLD | NEW |