Esempio n. 1
0
// pDest is Null-terminated.
static void CopyFontFamilyName(char16_t* pDest, const WTF::AtomicString& name)
{
	size_t numCharsToCopy = eastl::min_alt<size_t>(name.length(), EA::WebKit::kFamilyNameCapacity - 1);
	EAW_ASSERT_MSG(numCharsToCopy < EA::WebKit::kFamilyNameCapacity, "Font family name too long. Font is not going to be detected properly");
	EA::Internal::Strncpy(pDest, name.characters(),numCharsToCopy);
	pDest[numCharsToCopy] = 0;
}
Esempio n. 2
0
WebDOMString::WebDOMString(const WTF::AtomicString& s)
    : m_private(0)
{
    assign(s.string());
}
Esempio n. 3
0
WebString::WebString(const WTF::AtomicString& s)
{
    assign(s.string());
}
Esempio n. 4
0
void DOMTokenList::add(const WTF::AtomicString& token, ExceptionCode& ec)
{
    addInternal(&token.string(), 1, ec);
}
Esempio n. 5
0
void DOMTokenList::remove(const WTF::AtomicString& token, ExceptionCode& ec)
{
    removeInternal(&token.string(), 1, ec);
}