OLD | NEW |
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 1487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1498 parent()->removeChild(this); | 1498 parent()->removeChild(this); |
1499 } | 1499 } |
1500 | 1500 |
1501 bool visibleToHitTestRequest(const HitTestRequest& request) const { | 1501 bool visibleToHitTestRequest(const HitTestRequest& request) const { |
1502 return style()->visibility() == EVisibility::Visible && | 1502 return style()->visibility() == EVisibility::Visible && |
1503 (request.ignorePointerEventsNone() || | 1503 (request.ignorePointerEventsNone() || |
1504 style()->pointerEvents() != PE_NONE) && | 1504 style()->pointerEvents() != PE_NONE) && |
1505 !isInert(); | 1505 !isInert(); |
1506 } | 1506 } |
1507 | 1507 |
| 1508 // Warning: inertness can change without causing relayout. |
1508 bool visibleToHitTesting() const { | 1509 bool visibleToHitTesting() const { |
1509 return style()->visibility() == EVisibility::Visible && | 1510 return style()->visibleToHitTesting() && !isInert(); |
1510 style()->pointerEvents() != PE_NONE && !isInert(); | |
1511 } | 1511 } |
1512 | 1512 |
1513 // Map points and quads through elements, potentially via 3d transforms. You | 1513 // Map points and quads through elements, potentially via 3d transforms. You |
1514 // should never need to call these directly; use localToAbsolute/ | 1514 // should never need to call these directly; use localToAbsolute/ |
1515 // absoluteToLocal methods instead. | 1515 // absoluteToLocal methods instead. |
1516 virtual void mapLocalToAncestor( | 1516 virtual void mapLocalToAncestor( |
1517 const LayoutBoxModelObject* ancestor, | 1517 const LayoutBoxModelObject* ancestor, |
1518 TransformState&, | 1518 TransformState&, |
1519 MapCoordinatesFlags = ApplyContainerFlip) const; | 1519 MapCoordinatesFlags = ApplyContainerFlip) const; |
1520 // If the LayoutBoxModelObject ancestor is non-null, the input quad is in the | 1520 // If the LayoutBoxModelObject ancestor is non-null, the input quad is in the |
(...skipping 1076 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2597 CORE_EXPORT void showLineTree(const blink::LayoutObject*); | 2597 CORE_EXPORT void showLineTree(const blink::LayoutObject*); |
2598 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1); | 2598 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1); |
2599 // We don't make object2 an optional parameter so that showLayoutTree | 2599 // We don't make object2 an optional parameter so that showLayoutTree |
2600 // can be called from gdb easily. | 2600 // can be called from gdb easily. |
2601 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1, | 2601 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1, |
2602 const blink::LayoutObject* object2); | 2602 const blink::LayoutObject* object2); |
2603 | 2603 |
2604 #endif | 2604 #endif |
2605 | 2605 |
2606 #endif // LayoutObject_h | 2606 #endif // LayoutObject_h |
OLD | NEW |