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

Unified Diff: third_party/WebKit/Source/core/dom/PresentationAttributeStyle.cpp

Issue 1858753003: Remove RawPtr from core/css (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/dom/PresentationAttributeStyle.cpp
diff --git a/third_party/WebKit/Source/core/dom/PresentationAttributeStyle.cpp b/third_party/WebKit/Source/core/dom/PresentationAttributeStyle.cpp
index 9ba094387cfc2ccfb8e0b3f16fae2dd1a749ac28..f24c32f9776af475637763643b3eabf45495244b 100644
--- a/third_party/WebKit/Source/core/dom/PresentationAttributeStyle.cpp
+++ b/third_party/WebKit/Source/core/dom/PresentationAttributeStyle.cpp
@@ -173,7 +173,7 @@ RawPtr<StylePropertySet> computePresentationAttributeStyle(Element& element)
cacheValue = nullptr;
}
- RawPtr<StylePropertySet> style = nullptr;
+ StylePropertySet* style = nullptr;
if (cacheHash && cacheValue->value) {
style = cacheValue->value->value;
cacheCleaner.didHitPresentationAttributeCache();
@@ -185,7 +185,7 @@ RawPtr<StylePropertySet> computePresentationAttributeStyle(Element& element)
}
if (!cacheHash || cacheValue->value)
- return style.release();
+ return style;
RawPtr<PresentationAttributeCacheEntry> newEntry = new PresentationAttributeCacheEntry;
newEntry->key = cacheKey;
@@ -201,7 +201,7 @@ RawPtr<StylePropertySet> computePresentationAttributeStyle(Element& element)
cacheValue->value = newEntry.release();
}
- return style.release();
+ return style;
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698