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

Side by Side Diff: Source/core/dom/TreeScope.h

Issue 82083002: Move viewport unit resolution to style recalc time (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: rename browser zoom to page zoom 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/dom/Document.cpp ('k') | Source/core/dom/TreeScope.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) 2011 Google Inc. All Rights Reserved. 2 * Copyright (C) 2011 Google Inc. 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 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 void destroyTreeScopeData(); 133 void destroyTreeScopeData();
134 void clearDocumentScope(); 134 void clearDocumentScope();
135 void setDocumentScope(Document* document) 135 void setDocumentScope(Document* document)
136 { 136 {
137 ASSERT(document); 137 ASSERT(document);
138 m_documentScope = document; 138 m_documentScope = document;
139 } 139 }
140 140
141 bool hasGuardRefCount() const { return m_guardRefCount; } 141 bool hasGuardRefCount() const { return m_guardRefCount; }
142 142
143 void setNeedsStyleRecalcForViewportUnits();
144
143 private: 145 private:
144 TreeScope(); 146 TreeScope();
145 147
146 virtual void dispose() { } 148 virtual void dispose() { }
147 149
148 int refCount() const; 150 int refCount() const;
149 #if SECURITY_ASSERT_ENABLED 151 #if SECURITY_ASSERT_ENABLED
150 bool deletionHasBegun(); 152 bool deletionHasBegun();
151 void beginDeletion(); 153 void beginDeletion();
152 #else 154 #else
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 inline bool operator!=(const TreeScope& a, const TreeScope& b) { return !(a == b ); } 189 inline bool operator!=(const TreeScope& a, const TreeScope& b) { return !(a == b ); }
188 inline bool operator!=(const TreeScope& a, const TreeScope* b) { return !(a == b ); } 190 inline bool operator!=(const TreeScope& a, const TreeScope* b) { return !(a == b ); }
189 inline bool operator!=(const TreeScope* a, const TreeScope& b) { return !(a == b ); } 191 inline bool operator!=(const TreeScope* a, const TreeScope& b) { return !(a == b ); }
190 192
191 RenderObject* rendererFromPoint(Document*, int x, int y, LayoutPoint* localPoint = 0); 193 RenderObject* rendererFromPoint(Document*, int x, int y, LayoutPoint* localPoint = 0);
192 TreeScope* commonTreeScope(Node*, Node*); 194 TreeScope* commonTreeScope(Node*, Node*);
193 195
194 } // namespace WebCore 196 } // namespace WebCore
195 197
196 #endif // TreeScope_h 198 #endif // TreeScope_h
OLDNEW
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/dom/TreeScope.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698