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

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: actually fix zoom handling Created 7 years 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) 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 void destroyTreeScopeData(); 132 void destroyTreeScopeData();
133 void clearDocumentScope(); 133 void clearDocumentScope();
134 void setDocumentScope(Document* document) 134 void setDocumentScope(Document* document)
135 { 135 {
136 ASSERT(document); 136 ASSERT(document);
137 m_documentScope = document; 137 m_documentScope = document;
138 } 138 }
139 139
140 bool hasGuardRefCount() const { return m_guardRefCount; } 140 bool hasGuardRefCount() const { return m_guardRefCount; }
141 141
142 void setNeedsStyleRecalcForViewportUnits();
143
142 private: 144 private:
143 TreeScope(); 145 TreeScope();
144 146
145 virtual void dispose() { } 147 virtual void dispose() { }
146 148
147 int refCount() const; 149 int refCount() const;
148 #if SECURITY_ASSERT_ENABLED 150 #if SECURITY_ASSERT_ENABLED
149 bool deletionHasBegun(); 151 bool deletionHasBegun();
150 void beginDeletion(); 152 void beginDeletion();
151 #else 153 #else
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 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 ); }
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 191
190 RenderObject* rendererFromPoint(Document*, int x, int y, LayoutPoint* localPoint = 0); 192 RenderObject* rendererFromPoint(Document*, int x, int y, LayoutPoint* localPoint = 0);
191 TreeScope* commonTreeScope(Node*, Node*); 193 TreeScope* commonTreeScope(Node*, Node*);
192 194
193 } // namespace WebCore 195 } // namespace WebCore
194 196
195 #endif // TreeScope_h 197 #endif // TreeScope_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698