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

Side by Side Diff: Source/core/rendering/RenderObject.h

Issue 27648002: Refine toRenderSVGResourceContainer() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 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) 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 444 matching lines...) Expand 10 before | Expand all | Expand 10 after
455 virtual bool isSVGText() const { return false; } 455 virtual bool isSVGText() const { return false; }
456 virtual bool isSVGTextPath() const { return false; } 456 virtual bool isSVGTextPath() const { return false; }
457 virtual bool isSVGInline() const { return false; } 457 virtual bool isSVGInline() const { return false; }
458 virtual bool isSVGInlineText() const { return false; } 458 virtual bool isSVGInlineText() const { return false; }
459 virtual bool isSVGImage() const { return false; } 459 virtual bool isSVGImage() const { return false; }
460 virtual bool isSVGForeignObject() const { return false; } 460 virtual bool isSVGForeignObject() const { return false; }
461 virtual bool isSVGResourceContainer() const { return false; } 461 virtual bool isSVGResourceContainer() const { return false; }
462 virtual bool isSVGResourceFilter() const { return false; } 462 virtual bool isSVGResourceFilter() const { return false; }
463 virtual bool isSVGResourceFilterPrimitive() const { return false; } 463 virtual bool isSVGResourceFilterPrimitive() const { return false; }
464 464
465 virtual RenderSVGResourceContainer* toRenderSVGResourceContainer();
466
467 // FIXME: Those belong into a SVG specific base-class for all renderers (see above) 465 // FIXME: Those belong into a SVG specific base-class for all renderers (see above)
468 // Unfortunately we don't have such a class yet, because it's not possible f or all renderers 466 // Unfortunately we don't have such a class yet, because it's not possible f or all renderers
469 // to inherit from RenderSVGObject -> RenderObject (some need RenderBlock in heritance for instance) 467 // to inherit from RenderSVGObject -> RenderObject (some need RenderBlock in heritance for instance)
470 virtual void setNeedsTransformUpdate() { } 468 virtual void setNeedsTransformUpdate() { }
471 virtual void setNeedsBoundariesUpdate(); 469 virtual void setNeedsBoundariesUpdate();
472 virtual bool needsBoundariesUpdate() { return false; } 470 virtual bool needsBoundariesUpdate() { return false; }
473 471
474 // Per SVG 1.1 objectBoundingBox ignores clipping, masking, filter effects, opacity and stroke-width. 472 // Per SVG 1.1 objectBoundingBox ignores clipping, masking, filter effects, opacity and stroke-width.
475 // This is used for all computation of objectBoundingBox relative units and by SVGLocatable::getBBox(). 473 // This is used for all computation of objectBoundingBox relative units and by SVGLocatable::getBBox().
476 // NOTE: Markers are not specifically ignored here by SVG 1.1 spec, but we i gnore them 474 // NOTE: Markers are not specifically ignored here by SVG 1.1 spec, but we i gnore them
(...skipping 914 matching lines...) Expand 10 before | Expand all | Expand 10 after
1391 void showTree(const WebCore::RenderObject*); 1389 void showTree(const WebCore::RenderObject*);
1392 void showLineTree(const WebCore::RenderObject*); 1390 void showLineTree(const WebCore::RenderObject*);
1393 void showRenderTree(const WebCore::RenderObject* object1); 1391 void showRenderTree(const WebCore::RenderObject* object1);
1394 // We don't make object2 an optional parameter so that showRenderTree 1392 // We don't make object2 an optional parameter so that showRenderTree
1395 // can be called from gdb easily. 1393 // can be called from gdb easily.
1396 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO bject* object2); 1394 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO bject* object2);
1397 1395
1398 #endif 1396 #endif
1399 1397
1400 #endif // RenderObject_h 1398 #endif // RenderObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698