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

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

Issue 2484863003: Make updateStyleAndLayoutTree ready for async stylesheet update. (Closed)
Patch Set: Rebased Created 4 years, 1 month 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 | « no previous file | third_party/WebKit/Source/core/css/resolver/ViewportStyleResolver.cpp » ('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 * 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 class CORE_EXPORT ViewportStyleResolver 45 class CORE_EXPORT ViewportStyleResolver
46 : public GarbageCollected<ViewportStyleResolver> { 46 : public GarbageCollected<ViewportStyleResolver> {
47 public: 47 public:
48 static ViewportStyleResolver* create(Document& document) { 48 static ViewportStyleResolver* create(Document& document) {
49 return new ViewportStyleResolver(document); 49 return new ViewportStyleResolver(document);
50 } 50 }
51 51
52 void initialViewportChanged(); 52 void initialViewportChanged();
53 void setNeedsCollectRules(); 53 void setNeedsCollectRules();
54 bool needsUpdate() const { return m_needsUpdate; }
54 void updateViewport(DocumentStyleSheetCollection&); 55 void updateViewport(DocumentStyleSheetCollection&);
55 56
56 void collectViewportRulesFromAuthorSheet(const CSSStyleSheet&); 57 void collectViewportRulesFromAuthorSheet(const CSSStyleSheet&);
57 58
58 DECLARE_TRACE(); 59 DECLARE_TRACE();
59 60
60 private: 61 private:
61 explicit ViewportStyleResolver(Document&); 62 explicit ViewportStyleResolver(Document&);
62 63
63 void reset(); 64 void reset();
(...skipping 18 matching lines...) Expand all
82 MediaQueryResultList m_viewportDependentMediaQueryResults; 83 MediaQueryResultList m_viewportDependentMediaQueryResults;
83 MediaQueryResultList m_deviceDependentMediaQueryResults; 84 MediaQueryResultList m_deviceDependentMediaQueryResults;
84 bool m_hasAuthorStyle = false; 85 bool m_hasAuthorStyle = false;
85 bool m_hasViewportUnits = false; 86 bool m_hasViewportUnits = false;
86 UpdateType m_needsUpdate = CollectRules; 87 UpdateType m_needsUpdate = CollectRules;
87 }; 88 };
88 89
89 } // namespace blink 90 } // namespace blink
90 91
91 #endif // ViewportStyleResolver_h 92 #endif // ViewportStyleResolver_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/resolver/ViewportStyleResolver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698