svgpatternnode.cxx (79aad27f) svgpatternnode.cxx (50b37974)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 56 unchanged lines hidden (view full) ---

65 if(mpaPatternTransform) delete mpaPatternTransform;
66 if(mpPatternUnits) delete mpPatternUnits;
67 if(mpPatternContentUnits) delete mpPatternContentUnits;
68 }
69
70 const SvgStyleAttributes* SvgPatternNode::getSvgStyleAttributes() const
71 {
72 static rtl::OUString aClassStr(rtl::OUString::createFromAscii("pattern"));
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 56 unchanged lines hidden (view full) ---

65 if(mpaPatternTransform) delete mpaPatternTransform;
66 if(mpPatternUnits) delete mpPatternUnits;
67 if(mpPatternContentUnits) delete mpPatternContentUnits;
68 }
69
70 const SvgStyleAttributes* SvgPatternNode::getSvgStyleAttributes() const
71 {
72 static rtl::OUString aClassStr(rtl::OUString::createFromAscii("pattern"));
73 maSvgStyleAttributes.checkForCssStyle(aClassStr);
74
73
75 return &maSvgStyleAttributes;
74 return checkForCssStyle(aClassStr, maSvgStyleAttributes);
76 }
77
78 void SvgPatternNode::parseAttribute(const rtl::OUString& rTokenName, SVGToken aSVGToken, const rtl::OUString& aContent)
79 {
80 // call parent
81 SvgNode::parseAttribute(rTokenName, aSVGToken, aContent);
82
83 // read style attributes

--- 383 unchanged lines hidden ---
75 }
76
77 void SvgPatternNode::parseAttribute(const rtl::OUString& rTokenName, SVGToken aSVGToken, const rtl::OUString& aContent)
78 {
79 // call parent
80 SvgNode::parseAttribute(rTokenName, aSVGToken, aContent);
81
82 // read style attributes

--- 383 unchanged lines hidden ---