svgstylenode.cxx (311ea6ab) svgstylenode.cxx (4374d266)
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

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

44 {
45 while(!maSvgStyleAttributes.empty())
46 {
47 delete *(maSvgStyleAttributes.end() - 1);
48 maSvgStyleAttributes.pop_back();
49 }
50 }
51
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

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

44 {
45 while(!maSvgStyleAttributes.empty())
46 {
47 delete *(maSvgStyleAttributes.end() - 1);
48 maSvgStyleAttributes.pop_back();
49 }
50 }
51
52 // #125258# no parent when we are a CssStyle holder to break potential loops because
53 // when using CssStyles we jump uncontrolled inside the node tree hierarchy
54 bool SvgStyleNode::supportsParentStyle() const
55 {
56 if(isTextCss())
57 {
58 return false;
59 }
60
61 // call parent
62 return SvgNode::supportsParentStyle();
63 }
64
52 void SvgStyleNode::parseAttribute(const rtl::OUString& rTokenName, SVGToken aSVGToken, const rtl::OUString& aContent)
53 {
54 // call parent
55 SvgNode::parseAttribute(rTokenName, aSVGToken, aContent);
56
57 // parse own
58 switch(aSVGToken)
59 {

--- 71 unchanged lines hidden ---
65 void SvgStyleNode::parseAttribute(const rtl::OUString& rTokenName, SVGToken aSVGToken, const rtl::OUString& aContent)
66 {
67 // call parent
68 SvgNode::parseAttribute(rTokenName, aSVGToken, aContent);
69
70 // parse own
71 switch(aSVGToken)
72 {

--- 71 unchanged lines hidden ---