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

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

Issue 19555002: Translate viewport related meta tags into @viewport descriptors as suggested by the CSS Device Adap… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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 | Annotate | Revision Log
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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 class ViewportStyleResolver : public RefCounted<ViewportStyleResolver> { 43 class ViewportStyleResolver : public RefCounted<ViewportStyleResolver> {
44 public: 44 public:
45 static PassRefPtr<ViewportStyleResolver> create(Document* document) 45 static PassRefPtr<ViewportStyleResolver> create(Document* document)
46 { 46 {
47 return adoptRef(new ViewportStyleResolver(document)); 47 return adoptRef(new ViewportStyleResolver(document));
48 } 48 }
49 49
50 ~ViewportStyleResolver(); 50 ~ViewportStyleResolver();
51 51
52 bool shouldDisableDesktopWorkarounds() const;
53
52 void addViewportRule(StyleRuleViewport*); 54 void addViewportRule(StyleRuleViewport*);
53 55
54 void clearDocument(); 56 void clearDocument();
55 void resolve(); 57 void resolve();
56 58
57 private: 59 private:
58 explicit ViewportStyleResolver(Document*); 60 explicit ViewportStyleResolver(Document*);
59 61
60 float getViewportArgumentValue(CSSPropertyID) const; 62 float getViewportArgumentValue(CSSPropertyID) const;
61 63
62 Document* m_document; 64 Document* m_document;
65 float m_maxPriority;
63 RefPtr<MutableStylePropertySet> m_propertySet; 66 RefPtr<MutableStylePropertySet> m_propertySet;
64 }; 67 };
65 68
66 } // namespace WebCore 69 } // namespace WebCore
67 70
68 #endif // ViewportStyleResolver_h 71 #endif // ViewportStyleResolver_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698