#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "third_party/blink/renderer/core/html/html_font_element.h"
#include "third_party/blink/renderer/core/css/css_property_names.h"
#include "third_party/blink/renderer/core/css/css_property_value_set.h"
#include "third_party/blink/renderer/core/css/css_value_list.h"
#include "third_party/blink/renderer/core/css/css_value_pool.h"
#include "third_party/blink/renderer/core/css/parser/css_parser.h"
#include "third_party/blink/renderer/core/css_value_keywords.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/execution_context/execution_context.h"
#include "third_party/blink/renderer/core/html/parser/html_parser_idioms.h"
#include "third_party/blink/renderer/core/html_names.h"
#include "third_party/blink/renderer/platform/wtf/text/parsing_utilities.h"
#include "third_party/blink/renderer/platform/wtf/text/string_to_number.h"
namespace blink {
HTMLFontElement::HTMLFontElement(Document& document)
: … { … }
template <typename CharacterType>
static bool ParseFontSize(const CharacterType* characters,
unsigned length,
int& size) { … }
static bool ParseFontSize(const String& input, int& size) { … }
static const CSSValueList* CreateFontFaceValueWithPool(
const AtomicString& string,
SecureContextMode secure_context_mode) { … }
bool HTMLFontElement::CssValueFromFontSizeNumber(const String& s,
CSSValueID& size) { … }
bool HTMLFontElement::IsPresentationAttribute(const QualifiedName& name) const { … }
void HTMLFontElement::CollectStyleForPresentationAttribute(
const QualifiedName& name,
const AtomicString& value,
MutableCSSPropertyValueSet* style) { … }
}