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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutObject.h

Issue 2458003002: Remove ASSERT_WITH_SECURITY_IMPLICATION. (Closed)
Patch Set: Minor formatting fix 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com)
6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc.
7 * All rights reserved. 7 * All rights reserved.
8 * Copyright (C) 2009 Google Inc. All rights reserved. 8 * Copyright (C) 2009 Google Inc. All rights reserved.
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 private: 326 private:
327 LayoutObject& m_layoutObject; 327 LayoutObject& m_layoutObject;
328 bool m_preexistingForbidden; 328 bool m_preexistingForbidden;
329 }; 329 };
330 330
331 void assertLaidOut() const { 331 void assertLaidOut() const {
332 #ifndef NDEBUG 332 #ifndef NDEBUG
333 if (needsLayout()) 333 if (needsLayout())
334 showLayoutTreeForThis(); 334 showLayoutTreeForThis();
335 #endif 335 #endif
336 ASSERT_WITH_SECURITY_IMPLICATION(!needsLayout()); 336 SECURITY_DCHECK(!needsLayout());
337 } 337 }
338 338
339 void assertSubtreeIsLaidOut() const { 339 void assertSubtreeIsLaidOut() const {
340 for (const LayoutObject* layoutObject = this; layoutObject; 340 for (const LayoutObject* layoutObject = this; layoutObject;
341 layoutObject = layoutObject->nextInPreOrder()) 341 layoutObject = layoutObject->nextInPreOrder())
342 layoutObject->assertLaidOut(); 342 layoutObject->assertLaidOut();
343 } 343 }
344 344
345 void assertClearedPaintInvalidationFlags() const { 345 void assertClearedPaintInvalidationFlags() const {
346 #ifndef NDEBUG 346 #ifndef NDEBUG
(...skipping 2260 matching lines...) Expand 10 before | Expand all | Expand 10 after
2607 CORE_EXPORT void showLineTree(const blink::LayoutObject*); 2607 CORE_EXPORT void showLineTree(const blink::LayoutObject*);
2608 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1); 2608 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1);
2609 // We don't make object2 an optional parameter so that showLayoutTree 2609 // We don't make object2 an optional parameter so that showLayoutTree
2610 // can be called from gdb easily. 2610 // can be called from gdb easily.
2611 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1, 2611 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1,
2612 const blink::LayoutObject* object2); 2612 const blink::LayoutObject* object2);
2613 2613
2614 #endif 2614 #endif
2615 2615
2616 #endif // LayoutObject_h 2616 #endif // LayoutObject_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutGrid.h ('k') | third_party/WebKit/Source/core/layout/LayoutText.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698