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

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

Issue 2513893002: Make ifdefs consistent in WebKit/Source/core/ (Closed)
Patch Set: 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 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 SECURITY_DCHECK(!needsLayout()); 315 SECURITY_DCHECK(!needsLayout());
316 } 316 }
317 317
318 void assertSubtreeIsLaidOut() const { 318 void assertSubtreeIsLaidOut() const {
319 for (const LayoutObject* layoutObject = this; layoutObject; 319 for (const LayoutObject* layoutObject = this; layoutObject;
320 layoutObject = layoutObject->nextInPreOrder()) 320 layoutObject = layoutObject->nextInPreOrder())
321 layoutObject->assertLaidOut(); 321 layoutObject->assertLaidOut();
322 } 322 }
323 323
324 void assertClearedPaintInvalidationFlags() const { 324 void assertClearedPaintInvalidationFlags() const {
325 #ifndef NDEBUG 325 #if DCHECK_IS_ON()
326 if (paintInvalidationStateIsDirty()) { 326 if (paintInvalidationStateIsDirty()) {
327 showLayoutTreeForThis(); 327 showLayoutTreeForThis();
328 ASSERT_NOT_REACHED(); 328 ASSERT_NOT_REACHED();
329 } 329 }
330 #endif 330 #endif
331 } 331 }
332 332
333 void assertSubtreeClearedPaintInvalidationFlags() const { 333 void assertSubtreeClearedPaintInvalidationFlags() const {
334 for (const LayoutObject* layoutObject = this; layoutObject; 334 for (const LayoutObject* layoutObject = this; layoutObject;
335 layoutObject = layoutObject->nextInPreOrder()) 335 layoutObject = layoutObject->nextInPreOrder())
(...skipping 2306 matching lines...) Expand 10 before | Expand all | Expand 10 after
2642 CORE_EXPORT void showLineTree(const blink::LayoutObject*); 2642 CORE_EXPORT void showLineTree(const blink::LayoutObject*);
2643 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1); 2643 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1);
2644 // We don't make object2 an optional parameter so that showLayoutTree 2644 // We don't make object2 an optional parameter so that showLayoutTree
2645 // can be called from gdb easily. 2645 // can be called from gdb easily.
2646 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1, 2646 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1,
2647 const blink::LayoutObject* object2); 2647 const blink::LayoutObject* object2);
2648 2648
2649 #endif 2649 #endif
2650 2650
2651 #endif // LayoutObject_h 2651 #endif // LayoutObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698