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

Side by Side Diff: Source/core/rendering/svg/RenderSVGForeignObject.cpp

Issue 899163003: Move rendering/RenderObject to layout/LayoutObject. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Apple Computer, Inc. 2 * Copyright (C) 2006 Apple Computer, Inc.
3 * Copyright (C) 2009 Google, Inc. 3 * Copyright (C) 2009 Google, Inc.
4 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 4 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 24 matching lines...) Expand all
35 RenderSVGForeignObject::RenderSVGForeignObject(SVGForeignObjectElement* node) 35 RenderSVGForeignObject::RenderSVGForeignObject(SVGForeignObjectElement* node)
36 : RenderSVGBlock(node) 36 : RenderSVGBlock(node)
37 , m_needsTransformUpdate(true) 37 , m_needsTransformUpdate(true)
38 { 38 {
39 } 39 }
40 40
41 RenderSVGForeignObject::~RenderSVGForeignObject() 41 RenderSVGForeignObject::~RenderSVGForeignObject()
42 { 42 {
43 } 43 }
44 44
45 bool RenderSVGForeignObject::isChildAllowed(RenderObject* child, const RenderSty le&) const 45 bool RenderSVGForeignObject::isChildAllowed(LayoutObject* child, const RenderSty le& style) const
46 { 46 {
47 // Disallow arbitary SVG content. Only allow proper <svg xmlns="svgNS"> subd ocuments. 47 // Disallow arbitary SVG content. Only allow proper <svg xmlns="svgNS"> subd ocuments.
48 return !child->isSVG() || child->isSVGRoot(); 48 return !child->isSVG() || child->isSVGRoot();
49 } 49 }
50 50
51 void RenderSVGForeignObject::paint(const PaintInfo& paintInfo, const LayoutPoint &) 51 void RenderSVGForeignObject::paint(const PaintInfo& paintInfo, const LayoutPoint &)
52 { 52 {
53 SVGForeignObjectPainter(*this).paint(paintInfo); 53 SVGForeignObjectPainter(*this).paint(paintInfo);
54 } 54 }
55 55
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 return false; 135 return false;
136 136
137 // FOs establish a stacking context, so we need to hit-test all layers. 137 // FOs establish a stacking context, so we need to hit-test all layers.
138 HitTestLocation hitTestLocation(roundedLayoutPoint(localPoint)); 138 HitTestLocation hitTestLocation(roundedLayoutPoint(localPoint));
139 return RenderBlock::nodeAtPoint(request, result, hitTestLocation, LayoutPoin t(), HitTestForeground) 139 return RenderBlock::nodeAtPoint(request, result, hitTestLocation, LayoutPoin t(), HitTestForeground)
140 || RenderBlock::nodeAtPoint(request, result, hitTestLocation, LayoutPoin t(), HitTestFloat) 140 || RenderBlock::nodeAtPoint(request, result, hitTestLocation, LayoutPoin t(), HitTestFloat)
141 || RenderBlock::nodeAtPoint(request, result, hitTestLocation, LayoutPoin t(), HitTestChildBlockBackgrounds); 141 || RenderBlock::nodeAtPoint(request, result, hitTestLocation, LayoutPoin t(), HitTestChildBlockBackgrounds);
142 } 142 }
143 143
144 } 144 }
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/RenderSVGForeignObject.h ('k') | Source/core/rendering/svg/RenderSVGGradientStop.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698