blob: 9c8b807f0548449090190e34144f76408fb80b80 [file] [log] [blame]
/*
* Copyright (C) 2007 Eric Seidel <eric@webkit.org>
* Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org>
* Copyright (C) Research In Motion Limited 2010. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#pragma once
#if ENABLE(SVG_FONTS)
#include "SVGAnimatedBoolean.h"
#include "SVGElement.h"
#include "SVGExternalResourcesRequired.h"
#include "SVGParserUtilities.h"
namespace WebCore {
// Describe an SVG <hkern>/<vkern> element
struct SVGKerningPair {
UnicodeRanges unicodeRange1;
HashSet<String> unicodeName1;
HashSet<String> glyphName1;
UnicodeRanges unicodeRange2;
HashSet<String> unicodeName2;
HashSet<String> glyphName2;
float kerning { 0 };
};
class SVGFontElement final : public SVGElement, public SVGExternalResourcesRequired {
WTF_MAKE_ISO_ALLOCATED(SVGFontElement);
public:
static Ref<SVGFontElement> create(const QualifiedName&, Document&);
private:
SVGFontElement(const QualifiedName&, Document&);
bool rendererIsNeeded(const RenderStyle&) final { return false; }
BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGFontElement)
DECLARE_ANIMATED_BOOLEAN_OVERRIDE(ExternalResourcesRequired, externalResourcesRequired)
END_DECLARE_ANIMATED_PROPERTIES
};
} // namespace WebCore
#endif // ENABLE(SVG_FONTS)