| 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 14 matching lines...) Expand all Loading... |
| 25 PointerEventsHitRules::PointerEventsHitRules(EHitTesting hitTesting, const HitTe
stRequest& request, EPointerEvents pointerEvents) | 25 PointerEventsHitRules::PointerEventsHitRules(EHitTesting hitTesting, const HitTe
stRequest& request, EPointerEvents pointerEvents) |
| 26 : requireVisible(false) | 26 : requireVisible(false) |
| 27 , requireFill(false) | 27 , requireFill(false) |
| 28 , requireStroke(false) | 28 , requireStroke(false) |
| 29 , canHitStroke(false) | 29 , canHitStroke(false) |
| 30 , canHitFill(false) | 30 , canHitFill(false) |
| 31 { | 31 { |
| 32 if (request.svgClipContent()) | 32 if (request.svgClipContent()) |
| 33 pointerEvents = PE_FILL; | 33 pointerEvents = PE_FILL; |
| 34 | 34 |
| 35 if (hitTesting == SVG_PATH_HITTESTING) { | 35 if (hitTesting == SVG_GEOMETRY_HITTESTING) { |
| 36 switch (pointerEvents) | 36 switch (pointerEvents) |
| 37 { | 37 { |
| 38 case PE_VISIBLE_PAINTED: | 38 case PE_VISIBLE_PAINTED: |
| 39 case PE_AUTO: // "auto" is like "visiblePainted" when in SVG content | 39 case PE_AUTO: // "auto" is like "visiblePainted" when in SVG content |
| 40 requireFill = true; | 40 requireFill = true; |
| 41 requireStroke = true; | 41 requireStroke = true; |
| 42 case PE_VISIBLE: | 42 case PE_VISIBLE: |
| 43 requireVisible = true; | 43 requireVisible = true; |
| 44 canHitFill = true; | 44 canHitFill = true; |
| 45 canHitStroke = true; | 45 canHitStroke = true; |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 case PE_NONE: | 102 case PE_NONE: |
| 103 // nothing to do here, defaults are all false. | 103 // nothing to do here, defaults are all false. |
| 104 break; | 104 break; |
| 105 } | 105 } |
| 106 } | 106 } |
| 107 } | 107 } |
| 108 | 108 |
| 109 } | 109 } |
| 110 | 110 |
| 111 // vim:ts=4:noet | 111 // vim:ts=4:noet |
| OLD | NEW |