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

Side by Side Diff: Source/core/css/resolver/ViewportStyleResolver.h

Issue 23742003: Use css-device-adapt constraining for legacy viewport tags. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Review issue: one assignent per line/statement Created 7 years, 3 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Intel Corporation. All rights reserved. 2 * Copyright (C) 2012 Intel Corporation. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above 8 * 1. Redistributions of source code must retain the above
9 * copyright notice, this list of conditions and the following 9 * copyright notice, this list of conditions and the following
10 * disclaimer. 10 * disclaimer.
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 class ViewportStyleResolver : public RefCounted<ViewportStyleResolver> { 44 class ViewportStyleResolver : public RefCounted<ViewportStyleResolver> {
45 public: 45 public:
46 static PassRefPtr<ViewportStyleResolver> create(Document* document) 46 static PassRefPtr<ViewportStyleResolver> create(Document* document)
47 { 47 {
48 return adoptRef(new ViewportStyleResolver(document)); 48 return adoptRef(new ViewportStyleResolver(document));
49 } 49 }
50 50
51 ~ViewportStyleResolver(); 51 ~ViewportStyleResolver();
52 52
53 void setHasAuthorStyle() { m_hasAuthorStyle = true; }
53 void addViewportRule(StyleRuleViewport*); 54 void addViewportRule(StyleRuleViewport*);
54 55
55 void clearDocument(); 56 void clearDocument();
56 void resolve(); 57 void resolve();
57 58
58 private: 59 private:
59 explicit ViewportStyleResolver(Document*); 60 explicit ViewportStyleResolver(Document*);
60 61
61 float viewportArgumentValue(CSSPropertyID) const; 62 float viewportArgumentValue(CSSPropertyID) const;
62 Length viewportLengthValue(CSSPropertyID) const; 63 Length viewportLengthValue(CSSPropertyID) const;
63 64
64 Document* m_document; 65 Document* m_document;
65 RefPtr<MutableStylePropertySet> m_propertySet; 66 RefPtr<MutableStylePropertySet> m_propertySet;
67 bool m_hasAuthorStyle;
66 }; 68 };
67 69
68 } // namespace WebCore 70 } // namespace WebCore
69 71
70 #endif // ViewportStyleResolver_h 72 #endif // ViewportStyleResolver_h
OLDNEW
« no previous file with comments | « Source/core/css/resolver/StyleResolver.cpp ('k') | Source/core/css/resolver/ViewportStyleResolver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698