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

Unified Diff: third_party/WebKit/Source/core/testing/Internals.cpp

Issue 2874073003: Add layout tests for ImageLoader::UpdateFromElement(kUpdateForcedReload) (Closed)
Patch Set: Comment Created 3 years, 7 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/testing/Internals.cpp
diff --git a/third_party/WebKit/Source/core/testing/Internals.cpp b/third_party/WebKit/Source/core/testing/Internals.cpp
index e28fde49ab24ff702ed71f5f4734960e3c902cff..86bdb0b7cb5495526658bbfd9ee1d91cab7e6129 100644
--- a/third_party/WebKit/Source/core/testing/Internals.cpp
+++ b/third_party/WebKit/Source/core/testing/Internals.cpp
@@ -2781,6 +2781,12 @@ String Internals::getImageSourceURL(Element* element) {
return element->ImageSourceURL();
}
+void Internals::forceImageReload(Element* element) {
+ DCHECK(element);
+ DCHECK(isHTMLImageElement(*element));
kouhei (in TOK) 2017/05/11 16:50:52 replace DCHECKs w/ if (element && isHTMLImageEleme
hiroshige 2017/05/11 17:11:44 Because this is Internals, and for debugging/testi
kouhei (in TOK) 2017/05/11 17:30:14 Other Intenals API throws an exception or silently
hiroshige 2017/05/11 18:12:15 Sounds good. Done.
+ toHTMLImageElement(*element).ForceReload();
+}
+
String Internals::selectMenuListText(HTMLSelectElement* select) {
DCHECK(select);
LayoutObject* layout_object = select->GetLayoutObject();

Powered by Google App Engine
This is Rietveld 408576698