OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2008, 2009 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2008, 2009 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
67 | 67 |
68 DECLARE_VIRTUAL_TRACE(); | 68 DECLARE_VIRTUAL_TRACE(); |
69 | 69 |
70 protected: | 70 protected: |
71 explicit SVGURIReference(SVGElement*); | 71 explicit SVGURIReference(SVGElement*); |
72 | 72 |
73 private: | 73 private: |
74 Member<SVGAnimatedHref> m_href; | 74 Member<SVGAnimatedHref> m_href; |
75 }; | 75 }; |
76 | 76 |
77 // Helper class used to resolve fragment references. Handles the 'local url | |
78 // flag' per https://drafts.csswg.org/css-values/#local-urls . | |
pdr.
2016/07/22 19:18:28
Can you add a test (maybe like http/tests/misc/inp
fs
2016/07/22 21:15:03
Done.
| |
79 class SVGURLReferenceResolver { | |
pdr.
2016/07/22 19:18:28
I'm wondering if this belongs in SVG or somewhere
pdr.
2016/07/22 20:02:31
Answering my own question, image maps don't use th
fs
2016/07/22 21:15:02
The spec is for CSS values, and subsequently refer
| |
80 STACK_ALLOCATED(); | |
81 public: | |
82 SVGURLReferenceResolver(const String& urlString, const Document&); | |
83 | |
84 bool isLocal() const; | |
pdr.
2016/07/22 19:18:28
Can you update isExternalURIReference to use this
fs
2016/07/22 21:15:02
Yes, that's a good point. isExternalURIReference o
| |
85 KURL absoluteUrl() const; | |
86 AtomicString fragmentIdentifier() const; | |
87 | |
88 private: | |
89 const String& m_relativeUrl; | |
90 Member<const Document> m_document; | |
91 mutable KURL m_absoluteUrl; | |
92 bool m_isLocal; | |
93 }; | |
94 | |
77 } // namespace blink | 95 } // namespace blink |
78 | 96 |
79 #endif // SVGURIReference_h | 97 #endif // SVGURIReference_h |
OLD | NEW |