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

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

Issue 2513893002: Make ifdefs consistent in WebKit/Source/core/ (Closed)
Patch Set: Fix build. Update after review. 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 1917 matching lines...) Expand 10 before | Expand all | Expand 10 after
1928 // Add hit-test rects for this layoutObject only to the provided list. 1928 // Add hit-test rects for this layoutObject only to the provided list.
1929 // layerOffset is the offset of this layoutObject within the current layer 1929 // layerOffset is the offset of this layoutObject within the current layer
1930 // that should be used for each result. 1930 // that should be used for each result.
1931 virtual void computeSelfHitTestRects(Vector<LayoutRect>&, 1931 virtual void computeSelfHitTestRects(Vector<LayoutRect>&,
1932 const LayoutPoint& layerOffset) const {} 1932 const LayoutPoint& layerOffset) const {}
1933 1933
1934 void setPreviousVisualRect(const LayoutRect& rect) { 1934 void setPreviousVisualRect(const LayoutRect& rect) {
1935 m_previousVisualRect = rect; 1935 m_previousVisualRect = rect;
1936 } 1936 }
1937 1937
1938 #if DCHECK_IS_ON() 1938 #ifndef NDEBUG
1939 virtual bool paintInvalidationStateIsDirty() const { 1939 virtual bool paintInvalidationStateIsDirty() const {
Alexander Alekseev 2016/11/18 22:32:15 This is called above only if '#ifndef NDEBUG'
1940 return backgroundChangedSinceLastPaintInvalidation() || 1940 return backgroundChangedSinceLastPaintInvalidation() ||
1941 shouldCheckForPaintInvalidationRegardlessOfPaintInvalidationState(); 1941 shouldCheckForPaintInvalidationRegardlessOfPaintInvalidationState();
1942 } 1942 }
1943 #endif 1943 #endif
1944 1944
1945 // Called before paint invalidation. 1945 // Called before paint invalidation.
1946 virtual void ensureIsReadyForPaintInvalidation() { DCHECK(!needsLayout()); } 1946 virtual void ensureIsReadyForPaintInvalidation() { DCHECK(!needsLayout()); }
1947 1947
1948 // This function walks the descendants of |this|, following a 1948 // This function walks the descendants of |this|, following a
1949 // layout ordering. 1949 // layout ordering.
(...skipping 692 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