Skip to content

Commit

Permalink
Make sure 'defs' elements do not rasterize
Browse files Browse the repository at this point in the history
  • Loading branch information
meyfa committed Oct 11, 2017
1 parent 5dc6b2c commit 2c27ab3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions src/Nodes/Structures/SVGDefs.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace SVG\Nodes\Structures;

use SVG\Nodes\SVGNodeContainer;
use SVG\Rasterization\SVGRasterizer;

/**
* Represents the SVG tag 'defs'.
Expand All @@ -15,4 +16,14 @@ public function __construct()
{
parent::__construct();
}

/**
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
*
* @param SVGRasterizer $rasterizer
*/
public function rasterize(SVGRasterizer $rasterizer)
{
// Nothing to rasterize.
}
}
2 changes: 1 addition & 1 deletion src/Nodes/Structures/SVGStyle.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
namespace SVG\Nodes\Structures;

namespace SVG\Nodes\Structures;

use SVG\Nodes\SVGNode;
use SVG\Rasterization\SVGRasterizer;
Expand Down

0 comments on commit 2c27ab3

Please sign in to comment.