| OLD | NEW |
| 1 /* | 1 /* |
| 2 Copyright (C) 2007 Rob Buis <buis@kde.org> | 2 Copyright (C) 2007 Rob Buis <buis@kde.org> |
| 3 | 3 |
| 4 This library is free software; you can redistribute it and/or | 4 This library is free software; you can redistribute it and/or |
| 5 modify it under the terms of the GNU Library General Public | 5 modify it under the terms of the GNU Library General Public |
| 6 License as published by the Free Software Foundation; either | 6 License as published by the Free Software Foundation; either |
| 7 version 2 of the License, or (at your option) any later version. | 7 version 2 of the License, or (at your option) any later version. |
| 8 | 8 |
| 9 This library is distributed in the hope that it will be useful, | 9 This library is distributed in the hope that it will be useful, |
| 10 but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 #include "core/rendering/PointerEventsHitRules.h" | 21 #include "core/rendering/PointerEventsHitRules.h" |
| 22 | 22 |
| 23 #include "wtf/Assertions.h" | 23 #include "wtf/Assertions.h" |
| 24 | 24 |
| 25 namespace blink { | 25 namespace blink { |
| 26 | 26 |
| 27 struct SameSizeAsPointerEventsHitRules { | 27 struct SameSizeAsPointerEventsHitRules { |
| 28 unsigned bitfields; | 28 unsigned bitfields; |
| 29 }; | 29 }; |
| 30 | 30 |
| 31 COMPILE_ASSERT(sizeof(PointerEventsHitRules) <= sizeof(SameSizeAsPointerEventsHi
tRules), PointerEventsHitRules_should_stay_small); | 31 static_assert(sizeof(PointerEventsHitRules) <= sizeof(SameSizeAsPointerEventsHit
Rules), "PointerEventsHitRules should stay small"); |
| 32 | 32 |
| 33 PointerEventsHitRules::PointerEventsHitRules(EHitTesting hitTesting, const HitTe
stRequest& request, EPointerEvents pointerEvents) | 33 PointerEventsHitRules::PointerEventsHitRules(EHitTesting hitTesting, const HitTe
stRequest& request, EPointerEvents pointerEvents) |
| 34 : requireVisible(false) | 34 : requireVisible(false) |
| 35 , requireFill(false) | 35 , requireFill(false) |
| 36 , requireStroke(false) | 36 , requireStroke(false) |
| 37 , canHitStroke(false) | 37 , canHitStroke(false) |
| 38 , canHitFill(false) | 38 , canHitFill(false) |
| 39 , canHitBoundingBox(false) | 39 , canHitBoundingBox(false) |
| 40 { | 40 { |
| 41 if (request.svgClipContent()) | 41 if (request.svgClipContent()) |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 case PE_NONE: | 117 case PE_NONE: |
| 118 // nothing to do here, defaults are all false. | 118 // nothing to do here, defaults are all false. |
| 119 break; | 119 break; |
| 120 } | 120 } |
| 121 } | 121 } |
| 122 } | 122 } |
| 123 | 123 |
| 124 } | 124 } |
| 125 | 125 |
| 126 // vim:ts=4:noet | 126 // vim:ts=4:noet |
| OLD | NEW |