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

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..f03d960a66ba21e48c12140252ac766270ac9776 100644
--- a/third_party/WebKit/Source/core/testing/Internals.cpp
+++ b/third_party/WebKit/Source/core/testing/Internals.cpp
@@ -2781,6 +2781,16 @@ String Internals::getImageSourceURL(Element* element) {
return element->ImageSourceURL();
}
+void Internals::forceImageReload(Element* element,
+ ExceptionState& exception_state) {
+ if (!element || !isHTMLImageElement(*element)) {
+ exception_state.ThrowDOMException(
+ kInvalidAccessError, "The element should be HTMLImageElement.");
+ }
+
+ toHTMLImageElement(*element).ForceReload();
+}
+
String Internals::selectMenuListText(HTMLSelectElement* select) {
DCHECK(select);
LayoutObject* layout_object = select->GetLayoutObject();
« no previous file with comments | « third_party/WebKit/Source/core/testing/Internals.h ('k') | third_party/WebKit/Source/core/testing/Internals.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698