Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(397)

Side by Side Diff: Source/core/css/CSSViewportRule.h

Issue 129063002: Update CSS classes to use OVERRIDE / FINAL when needed (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/css/CSSUnknownRule.h ('k') | Source/core/css/FontFaceSet.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 21 matching lines...) Expand all
32 #define CSSViewportRule_h 32 #define CSSViewportRule_h
33 33
34 #include "core/css/CSSRule.h" 34 #include "core/css/CSSRule.h"
35 35
36 namespace WebCore { 36 namespace WebCore {
37 37
38 class CSSStyleDeclaration; 38 class CSSStyleDeclaration;
39 class StyleRuleViewport; 39 class StyleRuleViewport;
40 class StyleRuleCSSStyleDeclaration; 40 class StyleRuleCSSStyleDeclaration;
41 41
42 class CSSViewportRule: public CSSRule { 42 class CSSViewportRule FINAL: public CSSRule {
43 public: 43 public:
44 static PassRefPtr<CSSViewportRule> create(StyleRuleViewport* viewportRule, C SSStyleSheet* sheet) 44 static PassRefPtr<CSSViewportRule> create(StyleRuleViewport* viewportRule, C SSStyleSheet* sheet)
45 { 45 {
46 return adoptRef(new CSSViewportRule(viewportRule, sheet)); 46 return adoptRef(new CSSViewportRule(viewportRule, sheet));
47 } 47 }
48 ~CSSViewportRule(); 48 virtual ~CSSViewportRule();
49 49
50 virtual CSSRule::Type type() const OVERRIDE { return VIEWPORT_RULE; } 50 virtual CSSRule::Type type() const OVERRIDE { return VIEWPORT_RULE; }
51 virtual String cssText() const OVERRIDE; 51 virtual String cssText() const OVERRIDE;
52 virtual void reattach(StyleRuleBase*) OVERRIDE; 52 virtual void reattach(StyleRuleBase*) OVERRIDE;
53 53
54 CSSStyleDeclaration* style() const; 54 CSSStyleDeclaration* style() const;
55 55
56 private: 56 private:
57 CSSViewportRule(StyleRuleViewport*, CSSStyleSheet*); 57 CSSViewportRule(StyleRuleViewport*, CSSStyleSheet*);
58 58
59 RefPtr<StyleRuleViewport> m_viewportRule; 59 RefPtr<StyleRuleViewport> m_viewportRule;
60 mutable RefPtr<StyleRuleCSSStyleDeclaration> m_propertiesCSSOMWrapper; 60 mutable RefPtr<StyleRuleCSSStyleDeclaration> m_propertiesCSSOMWrapper;
61 }; 61 };
62 62
63 DEFINE_CSS_RULE_TYPE_CASTS(CSSViewportRule, VIEWPORT_RULE); 63 DEFINE_CSS_RULE_TYPE_CASTS(CSSViewportRule, VIEWPORT_RULE);
64 64
65 } // namespace WebCore 65 } // namespace WebCore
66 66
67 #endif // CSSViewportRule_h 67 #endif // CSSViewportRule_h
OLDNEW
« no previous file with comments | « Source/core/css/CSSUnknownRule.h ('k') | Source/core/css/FontFaceSet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698