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

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

Issue 2770123003: Replace ASSERT with DCHECK in core/layout/ excluding subdirs (Closed)
Patch Set: Split some DCHECKs and add DCHECK_ops wherever possible Created 3 years, 8 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Apple Computer, Inc. 2 * Copyright (C) 2006 Apple Computer, Inc.
3 * Copyright (C) 2009 Torch Mobile Inc. http://www.torchmobile.com/ 3 * Copyright (C) 2009 Torch Mobile Inc. http://www.torchmobile.com/
4 * Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies) 4 * Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies)
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 // When using list-based testing, this flag causes us to continue hit 49 // When using list-based testing, this flag causes us to continue hit
50 // testing after a hit has been found. 50 // testing after a hit has been found.
51 PenetratingList = 1 << 12, 51 PenetratingList = 1 << 12,
52 AvoidCache = 1 << 13, 52 AvoidCache = 1 << 13,
53 }; 53 };
54 54
55 typedef unsigned HitTestRequestType; 55 typedef unsigned HitTestRequestType;
56 56
57 HitTestRequest(HitTestRequestType requestType) : m_requestType(requestType) { 57 HitTestRequest(HitTestRequestType requestType) : m_requestType(requestType) {
58 // Penetrating lists should also be list-based. 58 // Penetrating lists should also be list-based.
59 ASSERT(!(requestType & PenetratingList) || (requestType & ListBased)); 59 DCHECK(!(requestType & PenetratingList) || (requestType & ListBased));
60 } 60 }
61 61
62 bool readOnly() const { return m_requestType & ReadOnly; } 62 bool readOnly() const { return m_requestType & ReadOnly; }
63 bool active() const { return m_requestType & Active; } 63 bool active() const { return m_requestType & Active; }
64 bool move() const { return m_requestType & Move; } 64 bool move() const { return m_requestType & Move; }
65 bool release() const { return m_requestType & Release; } 65 bool release() const { return m_requestType & Release; }
66 bool ignoreClipping() const { return m_requestType & IgnoreClipping; } 66 bool ignoreClipping() const { return m_requestType & IgnoreClipping; }
67 bool svgClipContent() const { return m_requestType & SVGClipContent; } 67 bool svgClipContent() const { return m_requestType & SVGClipContent; }
68 bool touchEvent() const { return m_requestType & TouchEvent; } 68 bool touchEvent() const { return m_requestType & TouchEvent; }
69 bool allowsChildFrameContent() const { 69 bool allowsChildFrameContent() const {
(...skipping 23 matching lines...) Expand all
93 (value.m_requestType | CacheabilityBits); 93 (value.m_requestType | CacheabilityBits);
94 } 94 }
95 95
96 private: 96 private:
97 HitTestRequestType m_requestType; 97 HitTestRequestType m_requestType;
98 }; 98 };
99 99
100 } // namespace blink 100 } // namespace blink
101 101
102 #endif // HitTestRequest_h 102 #endif // HitTestRequest_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/FloatingObjects.cpp ('k') | third_party/WebKit/Source/core/layout/HitTestResult.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698