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

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

Issue 112633004: Use a bitmask for SVG render object types (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Minor cleanups Created 7 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Oliver Hunt <ojh16@student.canterbury.ac.nz> 2 * Copyright (C) 2006 Oliver Hunt <ojh16@student.canterbury.ac.nz>
3 * Copyright (C) 2006 Apple Computer Inc. 3 * Copyright (C) 2006 Apple Computer Inc.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 12 matching lines...) Expand all
23 23
24 #include "core/rendering/RenderInline.h" 24 #include "core/rendering/RenderInline.h"
25 25
26 namespace WebCore { 26 namespace WebCore {
27 27
28 class RenderSVGInline : public RenderInline { 28 class RenderSVGInline : public RenderInline {
29 public: 29 public:
30 explicit RenderSVGInline(Element*); 30 explicit RenderSVGInline(Element*);
31 31
32 virtual const char* renderName() const { return "RenderSVGInline"; } 32 virtual const char* renderName() const { return "RenderSVGInline"; }
33 virtual SVGType getSVGType() const OVERRIDE { return IsSVGInline; }
34
33 virtual bool requiresLayer() const OVERRIDE FINAL { return false; } 35 virtual bool requiresLayer() const OVERRIDE FINAL { return false; }
34 virtual bool isSVGInline() const OVERRIDE FINAL { return true; }
35 36
36 virtual bool isChildAllowed(RenderObject*, RenderStyle*) const OVERRIDE; 37 virtual bool isChildAllowed(RenderObject*, RenderStyle*) const OVERRIDE;
37 38
38 // Chapter 10.4 of the SVG Specification say that we should use the 39 // Chapter 10.4 of the SVG Specification say that we should use the
39 // object bounding box of the parent text element. 40 // object bounding box of the parent text element.
40 // We search for the root text element and take its bounding box. 41 // We search for the root text element and take its bounding box.
41 // It is also necessary to take the stroke and repaint rect of 42 // It is also necessary to take the stroke and repaint rect of
42 // this element, since we need it for filters. 43 // this element, since we need it for filters.
43 virtual FloatRect objectBoundingBox() const OVERRIDE FINAL; 44 virtual FloatRect objectBoundingBox() const OVERRIDE FINAL;
44 virtual FloatRect strokeBoundingBox() const OVERRIDE FINAL; 45 virtual FloatRect strokeBoundingBox() const OVERRIDE FINAL;
(...skipping 11 matching lines...) Expand all
56 virtual void willBeDestroyed() OVERRIDE FINAL; 57 virtual void willBeDestroyed() OVERRIDE FINAL;
57 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OV ERRIDE FINAL; 58 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OV ERRIDE FINAL;
58 59
59 virtual void addChild(RenderObject* child, RenderObject* beforeChild = 0) OV ERRIDE FINAL; 60 virtual void addChild(RenderObject* child, RenderObject* beforeChild = 0) OV ERRIDE FINAL;
60 virtual void removeChild(RenderObject*) OVERRIDE FINAL; 61 virtual void removeChild(RenderObject*) OVERRIDE FINAL;
61 }; 62 };
62 63
63 } 64 }
64 65
65 #endif // !RenderSVGTSpan_H 66 #endif // !RenderSVGTSpan_H
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/RenderSVGImage.h ('k') | Source/core/rendering/svg/RenderSVGInlineText.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698