Chromium Code Reviews| 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 925 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 936 virtual void imageChanged(CachedImage*, const IntRect* = 0); | 936 virtual void imageChanged(CachedImage*, const IntRect* = 0); |
| 937 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0) { } | 937 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0) { } |
| 938 virtual bool willRenderImage(CachedImage*); | 938 virtual bool willRenderImage(CachedImage*); |
| 939 | 939 |
| 940 void selectionStartEnd(int& spos, int& epos) const; | 940 void selectionStartEnd(int& spos, int& epos) const; |
| 941 | 941 |
| 942 void remove() { if (parent()) parent()->removeChild(this); } | 942 void remove() { if (parent()) parent()->removeChild(this); } |
| 943 | 943 |
| 944 AnimationController* animation() const; | 944 AnimationController* animation() const; |
| 945 | 945 |
| 946 bool visibleToHitTestRequest(const HitTestRequest& request) const { return s tyle()->visibility() == VISIBLE && (request.ignorePointerEventsNone() || style() ->pointerEvents() != PE_NONE); } | |
|
pfeldman
2013/04/12 14:45:43
Non-trivial implementation should reside in .cpp
| |
| 946 bool visibleToHitTesting() const { return style()->visibility() == VISIBLE & & style()->pointerEvents() != PE_NONE; } | 947 bool visibleToHitTesting() const { return style()->visibility() == VISIBLE & & style()->pointerEvents() != PE_NONE; } |
| 947 | 948 |
| 948 // Map points and quads through elements, potentially via 3d transforms. You should never need to call these directly; use | 949 // Map points and quads through elements, potentially via 3d transforms. You should never need to call these directly; use |
| 949 // localToAbsolute/absoluteToLocal methods instead. | 950 // localToAbsolute/absoluteToLocal methods instead. |
| 950 virtual void mapLocalToContainer(const RenderLayerModelObject* repaintContai ner, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed = 0) const; | 951 virtual void mapLocalToContainer(const RenderLayerModelObject* repaintContai ner, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed = 0) const; |
| 951 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c onst; | 952 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c onst; |
| 952 | 953 |
| 953 // Pushes state onto RenderGeometryMap about how to map coordinates from thi s renderer to its container, or ancestorToStopAt (whichever is encountered first ). | 954 // Pushes state onto RenderGeometryMap about how to map coordinates from thi s renderer to its container, or ancestorToStopAt (whichever is encountered first ). |
| 954 // Returns the renderer which was mapped to (container or ancestorToStopAt). | 955 // Returns the renderer which was mapped to (container or ancestorToStopAt). |
| 955 virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj ect* ancestorToStopAt, RenderGeometryMap&) const; | 956 virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj ect* ancestorToStopAt, RenderGeometryMap&) const; |
| (...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1347 // Outside the WebCore namespace for ease of invocation from gdb. | 1348 // Outside the WebCore namespace for ease of invocation from gdb. |
| 1348 void showTree(const WebCore::RenderObject*); | 1349 void showTree(const WebCore::RenderObject*); |
| 1349 void showLineTree(const WebCore::RenderObject*); | 1350 void showLineTree(const WebCore::RenderObject*); |
| 1350 void showRenderTree(const WebCore::RenderObject* object1); | 1351 void showRenderTree(const WebCore::RenderObject* object1); |
| 1351 // We don't make object2 an optional parameter so that showRenderTree | 1352 // We don't make object2 an optional parameter so that showRenderTree |
| 1352 // can be called from gdb easily. | 1353 // can be called from gdb easily. |
| 1353 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO bject* object2); | 1354 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO bject* object2); |
| 1354 #endif | 1355 #endif |
| 1355 | 1356 |
| 1356 #endif // RenderObject_h | 1357 #endif // RenderObject_h |
| OLD | NEW |