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

Side by Side Diff: Source/core/rendering/svg/RenderSVGModelObject.h

Issue 613783002: Smaller vtbls in RenderObject (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: RenderObject: Cut down vtbls a bit Created 6 years, 2 months 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2009, Google Inc. All rights reserved. 2 * Copyright (c) 2009, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 virtual void absoluteQuads(Vector<FloatQuad>&, bool* wasFixed) const OVERRID E; 58 virtual void absoluteQuads(Vector<FloatQuad>&, bool* wasFixed) const OVERRID E;
59 59
60 virtual void mapLocalToContainer(const RenderLayerModelObject* paintInvalida tionContainer, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed = 0, const PaintInvalidationState* = 0) const OVERRIDE FINAL; 60 virtual void mapLocalToContainer(const RenderLayerModelObject* paintInvalida tionContainer, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed = 0, const PaintInvalidationState* = 0) const OVERRIDE FINAL;
61 virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj ect* ancestorToStopAt, RenderGeometryMap&) const OVERRIDE FINAL; 61 virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj ect* ancestorToStopAt, RenderGeometryMap&) const OVERRIDE FINAL;
62 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OV ERRIDE; 62 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OV ERRIDE;
63 63
64 virtual void computeLayerHitTestRects(LayerHitTestRects&) const OVERRIDE FIN AL; 64 virtual void computeLayerHitTestRects(LayerHitTestRects&) const OVERRIDE FIN AL;
65 65
66 SVGElement* element() const { return toSVGElement(RenderObject::node()); } 66 SVGElement* element() const { return toSVGElement(RenderObject::node()); }
67 67
68 virtual bool isSVG() const OVERRIDE FINAL { return true; } 68 virtual bool isOfType(RenderObjectType type) const OVERRIDE { return type == RenderObjectSVG || RenderObject::isOfType(type); }
69 69
70 protected: 70 protected:
71 virtual void addLayerHitTestRects(LayerHitTestRects&, const RenderLayer* cur rentCompositedLayer, const LayoutPoint& layerOffset, const LayoutRect& container Rect) const OVERRIDE FINAL; 71 virtual void addLayerHitTestRects(LayerHitTestRects&, const RenderLayer* cur rentCompositedLayer, const LayoutPoint& layerOffset, const LayoutRect& container Rect) const OVERRIDE FINAL;
72 virtual void willBeDestroyed() OVERRIDE; 72 virtual void willBeDestroyed() OVERRIDE;
73 73
74 private: 74 private:
75 // RenderSVGModelObject subclasses should use element() instead. 75 // RenderSVGModelObject subclasses should use element() instead.
76 void node() const WTF_DELETED_FUNCTION; 76 void node() const WTF_DELETED_FUNCTION;
77 77
78 // This method should never be called, SVG uses a different nodeAtPoint meth od 78 // This method should never be called, SVG uses a different nodeAtPoint meth od
79 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct ion) OVERRIDE FINAL; 79 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct ion) OVERRIDE FINAL;
80 virtual void absoluteFocusRingQuads(Vector<FloatQuad>&) OVERRIDE FINAL; 80 virtual void absoluteFocusRingQuads(Vector<FloatQuad>&) OVERRIDE FINAL;
81 81
82 InvalidationReason invalidatePaintIfNeeded(const PaintInvalidationState&, co nst RenderLayerModelObject& paintInvalidationContainer) OVERRIDE FINAL; 82 InvalidationReason invalidatePaintIfNeeded(const PaintInvalidationState&, co nst RenderLayerModelObject& paintInvalidationContainer) OVERRIDE FINAL;
83 }; 83 };
84 84
85 } 85 }
86 86
87 #endif 87 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698