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

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: Rebase 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
« no previous file with comments | « Source/core/rendering/RenderLayerFilterInfo.cpp ('k') | Source/core/rendering/RenderObject.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 445 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 virtual bool isSVGText() const { return false; } 456 virtual bool isSVGText() const { return false; }
457 virtual bool isSVGTextPath() const { return false; } 457 virtual bool isSVGTextPath() const { return false; }
458 virtual bool isSVGInline() const { return false; } 458 virtual bool isSVGInline() const { return false; }
459 virtual bool isSVGInlineText() const { return false; } 459 virtual bool isSVGInlineText() const { return false; }
460 virtual bool isSVGImage() const { return false; } 460 virtual bool isSVGImage() const { return false; }
461 virtual bool isSVGForeignObject() const { return false; } 461 virtual bool isSVGForeignObject() const { return false; }
462 virtual bool isSVGResourceContainer() const { return false; } 462 virtual bool isSVGResourceContainer() const { return false; }
463 virtual bool isSVGResourceFilter() const { return false; } 463 virtual bool isSVGResourceFilter() const { return false; }
464 virtual bool isSVGResourceFilterPrimitive() const { return false; } 464 virtual bool isSVGResourceFilterPrimitive() const { return false; }
465 465
466 virtual RenderSVGResourceContainer* toRenderSVGResourceContainer();
467
468 // FIXME: Those belong into a SVG specific base-class for all renderers (see above) 466 // FIXME: Those belong into a SVG specific base-class for all renderers (see above)
469 // Unfortunately we don't have such a class yet, because it's not possible f or all renderers 467 // Unfortunately we don't have such a class yet, because it's not possible f or all renderers
470 // to inherit from RenderSVGObject -> RenderObject (some need RenderBlock in heritance for instance) 468 // to inherit from RenderSVGObject -> RenderObject (some need RenderBlock in heritance for instance)
471 virtual void setNeedsTransformUpdate() { } 469 virtual void setNeedsTransformUpdate() { }
472 virtual void setNeedsBoundariesUpdate(); 470 virtual void setNeedsBoundariesUpdate();
473 virtual bool needsBoundariesUpdate() { return false; } 471 virtual bool needsBoundariesUpdate() { return false; }
474 472
475 // Per SVG 1.1 objectBoundingBox ignores clipping, masking, filter effects, opacity and stroke-width. 473 // Per SVG 1.1 objectBoundingBox ignores clipping, masking, filter effects, opacity and stroke-width.
476 // This is used for all computation of objectBoundingBox relative units and by SVGLocatable::getBBox(). 474 // This is used for all computation of objectBoundingBox relative units and by SVGLocatable::getBBox().
477 // NOTE: Markers are not specifically ignored here by SVG 1.1 spec, but we i gnore them 475 // 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
1392 void showTree(const WebCore::RenderObject*); 1390 void showTree(const WebCore::RenderObject*);
1393 void showLineTree(const WebCore::RenderObject*); 1391 void showLineTree(const WebCore::RenderObject*);
1394 void showRenderTree(const WebCore::RenderObject* object1); 1392 void showRenderTree(const WebCore::RenderObject* object1);
1395 // We don't make object2 an optional parameter so that showRenderTree 1393 // We don't make object2 an optional parameter so that showRenderTree
1396 // can be called from gdb easily. 1394 // can be called from gdb easily.
1397 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO bject* object2); 1395 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO bject* object2);
1398 1396
1399 #endif 1397 #endif
1400 1398
1401 #endif // RenderObject_h 1399 #endif // RenderObject_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderLayerFilterInfo.cpp ('k') | Source/core/rendering/RenderObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698