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

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

Issue 613783002: Smaller vtbls in RenderObject (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase better. 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) 2010 University of Szeged 2 * Copyright (C) 2010 University of Szeged
3 * Copyright (C) 2010 Zoltan Herczeg 3 * Copyright (C) 2010 Zoltan Herczeg
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 25 matching lines...) Expand all
36 explicit RenderSVGResourceFilterPrimitive(SVGElement* filterPrimitiveElement ) 36 explicit RenderSVGResourceFilterPrimitive(SVGElement* filterPrimitiveElement )
37 : RenderSVGHiddenContainer(filterPrimitiveElement) 37 : RenderSVGHiddenContainer(filterPrimitiveElement)
38 { 38 {
39 } 39 }
40 40
41 virtual bool isChildAllowed(RenderObject*, RenderStyle*) const override { re turn false; } 41 virtual bool isChildAllowed(RenderObject*, RenderStyle*) const override { re turn false; }
42 42
43 virtual void styleDidChange(StyleDifference, const RenderStyle*) override; 43 virtual void styleDidChange(StyleDifference, const RenderStyle*) override;
44 44
45 virtual const char* renderName() const override { return "RenderSVGResourceF ilterPrimitive"; } 45 virtual const char* renderName() const override { return "RenderSVGResourceF ilterPrimitive"; }
46 virtual bool isSVGResourceFilterPrimitive() const override { return true; } 46 virtual bool isOfType(RenderObjectType type) const override { return type == RenderObjectSVGResourceFilterPrimitive || RenderSVGHiddenContainer::isOfType(ty pe); }
47 47
48 inline void primitiveAttributeChanged(const QualifiedName& attribute) 48 inline void primitiveAttributeChanged(const QualifiedName& attribute)
49 { 49 {
50 RenderObject* filter = parent(); 50 RenderObject* filter = parent();
51 if (!filter || !filter->isSVGResourceFilter()) 51 if (!filter || !filter->isSVGResourceFilter())
52 return; 52 return;
53 toRenderSVGResourceFilter(filter)->primitiveAttributeChanged(this, attri bute); 53 toRenderSVGResourceFilter(filter)->primitiveAttributeChanged(this, attri bute);
54 } 54 }
55 }; 55 };
56 56
57 } // namespace blink 57 } // namespace blink
58 58
59 #endif // RenderSVGResourceFilterPrimitive_h 59 #endif // RenderSVGResourceFilterPrimitive_h
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/RenderSVGResourceFilter.h ('k') | Source/core/rendering/svg/RenderSVGRoot.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698