Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(503)

Unified Diff: third_party/WebKit/Source/core/html/HTMLImageFallbackHelper.cpp

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/html/HTMLImageFallbackHelper.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLImageFallbackHelper.cpp b/third_party/WebKit/Source/core/html/HTMLImageFallbackHelper.cpp
index 8994abc89d7d3e8b5f940a23debdd022b3592f41..ee34821ed4c02569749f05083fb872d96795ce37 100644
--- a/third_party/WebKit/Source/core/html/HTMLImageFallbackHelper.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLImageFallbackHelper.cpp
@@ -34,7 +34,7 @@ void HTMLImageFallbackHelper::createAltTextShadowTree(Element& element)
{
ShadowRoot& root = element.ensureUserAgentShadowRoot();
- RefPtrWillBeRawPtr<HTMLDivElement> container = HTMLDivElement::create(element.document());
+ RawPtr<HTMLDivElement> container = HTMLDivElement::create(element.document());
root.appendChild(container);
container->setAttribute(idAttr, AtomicString("alttext-container", AtomicString::ConstructFromLiteral));
container->setInlineStyleProperty(CSSPropertyOverflow, CSSValueHidden);
@@ -45,7 +45,7 @@ void HTMLImageFallbackHelper::createAltTextShadowTree(Element& element)
container->setInlineStyleProperty(CSSPropertyBoxSizing, CSSValueBorderBox);
container->setInlineStyleProperty(CSSPropertyPadding, 1, CSSPrimitiveValue::UnitType::Pixels);
- RefPtrWillBeRawPtr<HTMLImageElement> brokenImage = HTMLImageElement::create(element.document());
+ RawPtr<HTMLImageElement> brokenImage = HTMLImageElement::create(element.document());
container->appendChild(brokenImage);
brokenImage->setIsFallbackImage();
brokenImage->setAttribute(idAttr, AtomicString("alttext-image", AtomicString::ConstructFromLiteral));
@@ -54,13 +54,13 @@ void HTMLImageFallbackHelper::createAltTextShadowTree(Element& element)
brokenImage->setAttribute(alignAttr, AtomicString("left", AtomicString::ConstructFromLiteral));
brokenImage->setInlineStyleProperty(CSSPropertyMargin, 0, CSSPrimitiveValue::UnitType::Pixels);
- RefPtrWillBeRawPtr<HTMLDivElement> altText = HTMLDivElement::create(element.document());
+ RawPtr<HTMLDivElement> altText = HTMLDivElement::create(element.document());
container->appendChild(altText);
altText->setAttribute(idAttr, AtomicString("alttext", AtomicString::ConstructFromLiteral));
altText->setInlineStyleProperty(CSSPropertyOverflow, CSSValueHidden);
altText->setInlineStyleProperty(CSSPropertyDisplay, CSSValueBlock);
- RefPtrWillBeRawPtr<Text> text = Text::create(element.document(), toHTMLElement(element).altText());
+ RawPtr<Text> text = Text::create(element.document(), toHTMLElement(element).altText());
altText->appendChild(text);
}
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLImageElementTest.cpp ('k') | third_party/WebKit/Source/core/html/HTMLImageLoader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698