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

Side by Side Diff: Source/core/page/Page.h

Issue 397733004: Allow assertions to be enabled in Blink Release builds. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed config.gni. Minor cleanups. Created 6 years, 5 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) 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights reserv ed. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights reserv ed.
3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 // recursive frameset pages can quickly bring the program to its knees 196 // recursive frameset pages can quickly bring the program to its knees
197 // with exponential growth in the number of frames. 197 // with exponential growth in the number of frames.
198 static const int maxNumberOfFrames = 1000; 198 static const int maxNumberOfFrames = 1000;
199 199
200 PageVisibilityState visibilityState() const; 200 PageVisibilityState visibilityState() const;
201 void setVisibilityState(PageVisibilityState, bool); 201 void setVisibilityState(PageVisibilityState, bool);
202 202
203 bool isCursorVisible() const; 203 bool isCursorVisible() const;
204 void setIsCursorVisible(bool isVisible) { m_isCursorVisible = isVisible; } 204 void setIsCursorVisible(bool isVisible) { m_isCursorVisible = isVisible; }
205 205
206 #ifndef NDEBUG 206 #if ENABLE(ASSERT)
207 void setIsPainting(bool painting) { m_isPainting = painting; } 207 void setIsPainting(bool painting) { m_isPainting = painting; }
208 bool isPainting() const { return m_isPainting; } 208 bool isPainting() const { return m_isPainting; }
209 #endif 209 #endif
210 210
211 double timerAlignmentInterval() const; 211 double timerAlignmentInterval() const;
212 212
213 class MultisamplingChangedObserver : public WillBeGarbageCollectedMixin { 213 class MultisamplingChangedObserver : public WillBeGarbageCollectedMixin {
214 public: 214 public:
215 virtual void multisamplingChanged(bool) = 0; 215 virtual void multisamplingChanged(bool) = 0;
216 }; 216 };
(...skipping 10 matching lines...) Expand all
227 227
228 void trace(Visitor*); 228 void trace(Visitor*);
229 void willBeDestroyed(); 229 void willBeDestroyed();
230 230
231 protected: 231 protected:
232 PageLifecycleNotifier& lifecycleNotifier(); 232 PageLifecycleNotifier& lifecycleNotifier();
233 233
234 private: 234 private:
235 void initGroup(); 235 void initGroup();
236 236
237 #if ASSERT_ENABLED 237 #if ENABLE(ASSERT)
238 void checkSubframeCountConsistency() const; 238 void checkSubframeCountConsistency() const;
239 #else 239 #else
240 void checkSubframeCountConsistency() const { } 240 void checkSubframeCountConsistency() const { }
241 #endif 241 #endif
242 242
243 void setTimerAlignmentInterval(double); 243 void setTimerAlignmentInterval(double);
244 244
245 void setNeedsLayoutInAllFrames(); 245 void setNeedsLayoutInAllFrames();
246 246
247 // SettingsDelegate overrides. 247 // SettingsDelegate overrides.
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 float m_deviceScaleFactor; 292 float m_deviceScaleFactor;
293 293
294 OwnPtr<StorageNamespace> m_sessionStorage; 294 OwnPtr<StorageNamespace> m_sessionStorage;
295 295
296 double m_timerAlignmentInterval; 296 double m_timerAlignmentInterval;
297 297
298 PageVisibilityState m_visibilityState; 298 PageVisibilityState m_visibilityState;
299 299
300 bool m_isCursorVisible; 300 bool m_isCursorVisible;
301 301
302 #ifndef NDEBUG 302 #if ENABLE(ASSERT)
303 bool m_isPainting; 303 bool m_isPainting;
304 #endif 304 #endif
305 305
306 WillBeHeapHashSet<RawPtrWillBeWeakMember<MultisamplingChangedObserver> > m_m ultisamplingChangedObservers; 306 WillBeHeapHashSet<RawPtrWillBeWeakMember<MultisamplingChangedObserver> > m_m ultisamplingChangedObservers;
307 307
308 // A pointer to all the interfaces provided to in-process Frames for this Pa ge. 308 // A pointer to all the interfaces provided to in-process Frames for this Pa ge.
309 // FIXME: Most of the members of Page should move onto FrameHost. 309 // FIXME: Most of the members of Page should move onto FrameHost.
310 OwnPtrWillBeMember<FrameHost> m_frameHost; 310 OwnPtrWillBeMember<FrameHost> m_frameHost;
311 }; 311 };
312 312
313 } // namespace WebCore 313 } // namespace WebCore
314 314
315 #endif // Page_h 315 #endif // Page_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698