From 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 27 Jun 2017 06:07:23 +0000 Subject: webkitgtk-2.16.5 --- Source/WebCore/html/HTMLBRElement.cpp | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'Source/WebCore/html/HTMLBRElement.cpp') diff --git a/Source/WebCore/html/HTMLBRElement.cpp b/Source/WebCore/html/HTMLBRElement.cpp index 5eea85ae9..db1f0ccfc 100644 --- a/Source/WebCore/html/HTMLBRElement.cpp +++ b/Source/WebCore/html/HTMLBRElement.cpp @@ -23,7 +23,6 @@ #include "config.h" #include "HTMLBRElement.h" -#include "Attribute.h" #include "CSSPropertyNames.h" #include "CSSValueKeywords.h" #include "HTMLNames.h" @@ -39,14 +38,14 @@ HTMLBRElement::HTMLBRElement(const QualifiedName& tagName, Document& document) ASSERT(hasTagName(brTag)); } -PassRefPtr HTMLBRElement::create(Document& document) +Ref HTMLBRElement::create(Document& document) { - return adoptRef(new HTMLBRElement(brTag, document)); + return adoptRef(*new HTMLBRElement(brTag, document)); } -PassRefPtr HTMLBRElement::create(const QualifiedName& tagName, Document& document) +Ref HTMLBRElement::create(const QualifiedName& tagName, Document& document) { - return adoptRef(new HTMLBRElement(tagName, document)); + return adoptRef(*new HTMLBRElement(tagName, document)); } bool HTMLBRElement::isPresentationAttribute(const QualifiedName& name) const @@ -62,7 +61,7 @@ void HTMLBRElement::collectStyleForPresentationAttribute(const QualifiedName& na // If the string is empty, then don't add the clear property. //
and
are just treated like
by Gecko, Mac IE, etc. -dwh if (!value.isEmpty()) { - if (equalIgnoringCase(value, "all")) + if (equalLettersIgnoringASCIICase(value, "all")) addPropertyToPresentationAttributeStyle(style, CSSPropertyClear, CSSValueBoth); else addPropertyToPresentationAttributeStyle(style, CSSPropertyClear, value); @@ -71,12 +70,12 @@ void HTMLBRElement::collectStyleForPresentationAttribute(const QualifiedName& na HTMLElement::collectStyleForPresentationAttribute(name, value, style); } -RenderPtr HTMLBRElement::createElementRenderer(PassRef style) +RenderPtr HTMLBRElement::createElementRenderer(RenderStyle&& style, const RenderTreePosition&) { - if (style.get().hasContent()) - return RenderElement::createFor(*this, std::move(style)); + if (style.hasContent()) + return RenderElement::createFor(*this, WTFMove(style)); - return createRenderer(*this, std::move(style)); + return createRenderer(*this, WTFMove(style)); } } -- cgit v1.2.1