Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Side by Side Diff: sky/engine/core/rendering/RenderObject.h

Issue 772743004: Remove more Node API. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sky/engine/core/frame/UseCounter.h ('k') | sky/engine/core/rendering/RenderObject.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 718 matching lines...) Expand 10 before | Expand all | Expand 10 after
729 virtual int nextOffset(int current) const; 729 virtual int nextOffset(int current) const;
730 730
731 virtual void imageChanged(ImageResource*, const IntRect* = 0) override final ; 731 virtual void imageChanged(ImageResource*, const IntRect* = 0) override final ;
732 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0) { } 732 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0) { }
733 virtual bool willRenderImage(ImageResource*) override final; 733 virtual bool willRenderImage(ImageResource*) override final;
734 734
735 void selectionStartEnd(int& spos, int& epos) const; 735 void selectionStartEnd(int& spos, int& epos) const;
736 736
737 void remove() { if (parent()) parent()->removeChild(this); } 737 void remove() { if (parent()) parent()->removeChild(this); }
738 738
739 bool isInert() const;
740
741 bool supportsTouchAction() const; 739 bool supportsTouchAction() const;
742 740
743 bool visibleToHitTestRequest(const HitTestRequest& request) const { return ( request.ignorePointerEventsNone() || style()->pointerEvents() != PE_NONE) && !is Inert(); } 741 bool visibleToHitTestRequest(const HitTestRequest& request) const { return ( request.ignorePointerEventsNone() || style()->pointerEvents() != PE_NONE); }
744 742
745 bool visibleToHitTesting() const { return style()->pointerEvents() != PE_NON E && !isInert(); } 743 bool visibleToHitTesting() const { return style()->pointerEvents() != PE_NON E; }
746 744
747 // Map points and quads through elements, potentially via 3d transforms. You should never need to call these directly; use 745 // Map points and quads through elements, potentially via 3d transforms. You should never need to call these directly; use
748 // localToAbsolute/absoluteToLocal methods instead. 746 // localToAbsolute/absoluteToLocal methods instead.
749 virtual void mapLocalToContainer(const RenderLayerModelObject* paintInvalida tionContainer, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, const PaintInvalidationState* = 0) const; 747 virtual void mapLocalToContainer(const RenderLayerModelObject* paintInvalida tionContainer, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, const PaintInvalidationState* = 0) const;
750 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c onst; 748 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c onst;
751 749
752 // Pushes state onto RenderGeometryMap about how to map coordinates from thi s renderer to its container, or ancestorToStopAt (whichever is encountered first ). 750 // Pushes state onto RenderGeometryMap about how to map coordinates from thi s renderer to its container, or ancestorToStopAt (whichever is encountered first ).
753 // Returns the renderer which was mapped to (container or ancestorToStopAt). 751 // Returns the renderer which was mapped to (container or ancestorToStopAt).
754 virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj ect* ancestorToStopAt, RenderGeometryMap&) const; 752 virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj ect* ancestorToStopAt, RenderGeometryMap&) const;
755 753
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
1188 void showTree(const blink::RenderObject*); 1186 void showTree(const blink::RenderObject*);
1189 void showLineTree(const blink::RenderObject*); 1187 void showLineTree(const blink::RenderObject*);
1190 void showRenderTree(const blink::RenderObject* object1); 1188 void showRenderTree(const blink::RenderObject* object1);
1191 // We don't make object2 an optional parameter so that showRenderTree 1189 // We don't make object2 an optional parameter so that showRenderTree
1192 // can be called from gdb easily. 1190 // can be called from gdb easily.
1193 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec t* object2); 1191 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec t* object2);
1194 1192
1195 #endif 1193 #endif
1196 1194
1197 #endif // SKY_ENGINE_CORE_RENDERING_RENDEROBJECT_H_ 1195 #endif // SKY_ENGINE_CORE_RENDERING_RENDEROBJECT_H_
OLDNEW
« no previous file with comments | « sky/engine/core/frame/UseCounter.h ('k') | sky/engine/core/rendering/RenderObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698