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. All r
ights reserved. | 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r
ights reserved. |
7 * Copyright (C) 2009 Google Inc. All rights reserved. | 7 * Copyright (C) 2009 Google Inc. All rights reserved. |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
(...skipping 911 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
922 | 922 |
923 virtual void imageChanged(ImageResource*, const IntRect* = 0) OVERRIDE FINAL
; | 923 virtual void imageChanged(ImageResource*, const IntRect* = 0) OVERRIDE FINAL
; |
924 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0) { } | 924 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0) { } |
925 virtual bool willRenderImage(ImageResource*) OVERRIDE FINAL; | 925 virtual bool willRenderImage(ImageResource*) OVERRIDE FINAL; |
926 | 926 |
927 void selectionStartEnd(int& spos, int& epos) const; | 927 void selectionStartEnd(int& spos, int& epos) const; |
928 | 928 |
929 void remove() { if (parent()) parent()->removeChild(this); } | 929 void remove() { if (parent()) parent()->removeChild(this); } |
930 | 930 |
931 bool isInert() const; | 931 bool isInert() const; |
932 bool visibleToHitTestRequest(const HitTestRequest& request) const { return s
tyle()->visibility() == VISIBLE && (request.ignorePointerEventsNone() || style()
->pointerEvents() != PE_NONE) && !isInert(); } | 932 virtual bool visibleForTouchAction() const { return false; } |
| 933 bool visibleToHitTestRequest(const HitTestRequest& request) const |
| 934 { |
| 935 if (request.touchAction() && !visibleForTouchAction()) |
| 936 return false; |
| 937 return style()->visibility() == VISIBLE && (request.ignorePointerEventsN
one() || style()->pointerEvents() != PE_NONE) && !isInert(); |
| 938 } |
| 939 |
933 bool visibleToHitTesting() const { return style()->visibility() == VISIBLE &
& style()->pointerEvents() != PE_NONE && !isInert(); } | 940 bool visibleToHitTesting() const { return style()->visibility() == VISIBLE &
& style()->pointerEvents() != PE_NONE && !isInert(); } |
934 | 941 |
935 // Map points and quads through elements, potentially via 3d transforms. You
should never need to call these directly; use | 942 // Map points and quads through elements, potentially via 3d transforms. You
should never need to call these directly; use |
936 // localToAbsolute/absoluteToLocal methods instead. | 943 // localToAbsolute/absoluteToLocal methods instead. |
937 virtual void mapLocalToContainer(const RenderLayerModelObject* repaintContai
ner, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed =
0) const; | 944 virtual void mapLocalToContainer(const RenderLayerModelObject* repaintContai
ner, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed =
0) const; |
938 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c
onst; | 945 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c
onst; |
939 | 946 |
940 // Pushes state onto RenderGeometryMap about how to map coordinates from thi
s renderer to its container, or ancestorToStopAt (whichever is encountered first
). | 947 // Pushes state onto RenderGeometryMap about how to map coordinates from thi
s renderer to its container, or ancestorToStopAt (whichever is encountered first
). |
941 // Returns the renderer which was mapped to (container or ancestorToStopAt). | 948 // Returns the renderer which was mapped to (container or ancestorToStopAt). |
942 virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj
ect* ancestorToStopAt, RenderGeometryMap&) const; | 949 virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj
ect* ancestorToStopAt, RenderGeometryMap&) const; |
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1419 void showTree(const WebCore::RenderObject*); | 1426 void showTree(const WebCore::RenderObject*); |
1420 void showLineTree(const WebCore::RenderObject*); | 1427 void showLineTree(const WebCore::RenderObject*); |
1421 void showRenderTree(const WebCore::RenderObject* object1); | 1428 void showRenderTree(const WebCore::RenderObject* object1); |
1422 // We don't make object2 an optional parameter so that showRenderTree | 1429 // We don't make object2 an optional parameter so that showRenderTree |
1423 // can be called from gdb easily. | 1430 // can be called from gdb easily. |
1424 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO
bject* object2); | 1431 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO
bject* object2); |
1425 | 1432 |
1426 #endif | 1433 #endif |
1427 | 1434 |
1428 #endif // RenderObject_h | 1435 #endif // RenderObject_h |
OLD | NEW |