Unreviewed, revert r251637 as it caused http/tests/lazyload/scroll-element-removed...
authorcdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 29 Oct 2019 16:56:03 +0000 (16:56 +0000)
committercdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 29 Oct 2019 16:56:03 +0000 (16:56 +0000)
commit12d967ebd895e51f1581bc78878e3f93c9d48be8
tree2c4499825af3cadf36f6c172a4a34112c3cdaed3
parent6b0f3197d37deff67464c0177818465158b75290
Unreviewed, revert r251637 as it caused http/tests/lazyload/scroll-element-removed-from-document.html to crash
https://bugs.webkit.org/show_bug.cgi?id=203566

LayoutTests/imported/w3c:

* web-platform-tests/loading/lazyload/image-loading-lazy.tentative-expected.txt: Removed.
* web-platform-tests/loading/lazyload/image-loading-lazy.tentative.html:

Source/WebCore:

* Sources.txt:
* WebCore.xcodeproj/project.pbxproj:
* dom/Document.cpp:
* dom/Document.h:
* html/HTMLImageElement.cpp:
(WebCore::HTMLImageElement::parseAttribute):
(WebCore::HTMLImageElement::didMoveToNewDocument):
* html/HTMLImageElement.h:
* html/HTMLImageElement.idl:
* html/LazyLoadImageObserver.cpp: Removed.
* html/LazyLoadImageObserver.h: Removed.
* html/parser/HTMLPreloadScanner.cpp:
(WebCore::TokenPreloadScanner::StartTagScanner::createPreloadRequest):
(WebCore::TokenPreloadScanner::StartTagScanner::processAttribute):
* loader/ImageLoader.cpp:
(WebCore::ImageLoader::updateFromElement):
(WebCore::ImageLoader::notifyFinished):
* loader/ImageLoader.h:
* loader/cache/CachedImage.h:
* loader/cache/CachedResourceLoader.cpp:
(WebCore::CachedResourceLoader::requestImage):
(WebCore::CachedResourceLoader::requestResource):
(WebCore::CachedResourceLoader::determineRevalidationPolicy const):
(WebCore::CachedResourceLoader::clientDefersImage const):
(WebCore::CachedResourceLoader::shouldDeferImageLoad const):
(WebCore::CachedResourceLoader::reloadImagesIfNotDeferred):
* loader/cache/CachedResourceLoader.h:
* rendering/RenderImage.cpp:
(WebCore::RenderImage::paintReplaced):

LayoutTests:

* TestExpectations:
* http/tests/lazyload/attribute-expected.txt: Removed.
* http/tests/lazyload/attribute.html: Removed.
* http/tests/lazyload/invisible-image-expected.txt: Removed.
* http/tests/lazyload/invisible-image.html: Removed.
* http/tests/lazyload/js-image-expected.txt: Removed.
* http/tests/lazyload/js-image.html: Removed.
* http/tests/lazyload/lazy-expected.txt: Removed.
* http/tests/lazyload/lazy-image-load-in-iframes-scripting-disabled-expected.txt: Removed.
* http/tests/lazyload/lazy-image-load-in-iframes-scripting-disabled.html: Removed.
* http/tests/lazyload/lazy-image-load-in-iframes-scripting-enabled-expected.txt: Removed.
* http/tests/lazyload/lazy-image-load-in-iframes-scripting-enabled.html: Removed.
* http/tests/lazyload/lazy.html: Removed.
* http/tests/lazyload/lazy2-expected.txt: Removed.
* http/tests/lazyload/placeholder.js: Removed.
* http/tests/lazyload/resources/lazy-load-in-iframe.html: Removed.
* http/tests/lazyload/scroll-element-moved-from-document-expected.txt: Removed.
* http/tests/lazyload/scroll-element-moved-from-document.html: Removed.
* http/tests/lazyload/scroll-element-removed-from-document-expected.txt: Removed.
* http/tests/lazyload/scroll-element-removed-from-document.html: Removed.
* http/tests/lazyload/scroll-expected.txt: Removed.
* http/tests/lazyload/scroll.html: Removed.
* platform/mac-wk1/TestExpectations:
* platform/win/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@251708 268f45cc-cd09-0410-ab3c-d52691b4dbfc
45 files changed:
LayoutTests/ChangeLog
LayoutTests/TestExpectations
LayoutTests/http/tests/lazyload/attribute-expected.txt [deleted file]
LayoutTests/http/tests/lazyload/attribute.html [deleted file]
LayoutTests/http/tests/lazyload/invisible-image-expected.txt [deleted file]
LayoutTests/http/tests/lazyload/invisible-image.html [deleted file]
LayoutTests/http/tests/lazyload/js-image-expected.txt [deleted file]
LayoutTests/http/tests/lazyload/js-image.html [deleted file]
LayoutTests/http/tests/lazyload/lazy-expected.txt [deleted file]
LayoutTests/http/tests/lazyload/lazy-image-load-in-iframes-scripting-disabled-expected.txt [deleted file]
LayoutTests/http/tests/lazyload/lazy-image-load-in-iframes-scripting-disabled.html [deleted file]
LayoutTests/http/tests/lazyload/lazy-image-load-in-iframes-scripting-enabled-expected.txt [deleted file]
LayoutTests/http/tests/lazyload/lazy-image-load-in-iframes-scripting-enabled.html [deleted file]
LayoutTests/http/tests/lazyload/lazy.html [deleted file]
LayoutTests/http/tests/lazyload/lazy2-expected.txt [deleted file]
LayoutTests/http/tests/lazyload/placeholder.js [deleted file]
LayoutTests/http/tests/lazyload/resources/lazy-load-in-iframe.html [deleted file]
LayoutTests/http/tests/lazyload/scroll-element-moved-from-document-expected.txt [deleted file]
LayoutTests/http/tests/lazyload/scroll-element-moved-from-document.html [deleted file]
LayoutTests/http/tests/lazyload/scroll-element-removed-from-document-expected.txt [deleted file]
LayoutTests/http/tests/lazyload/scroll-element-removed-from-document.html [deleted file]
LayoutTests/http/tests/lazyload/scroll-expected.txt [deleted file]
LayoutTests/http/tests/lazyload/scroll.html [deleted file]
LayoutTests/imported/w3c/ChangeLog
LayoutTests/imported/w3c/web-platform-tests/loading/lazyload/image-loading-lazy.tentative-expected.txt [deleted file]
LayoutTests/imported/w3c/web-platform-tests/loading/lazyload/image-loading-lazy.tentative.html
LayoutTests/platform/mac-wk1/TestExpectations
LayoutTests/platform/win/TestExpectations
Source/WebCore/ChangeLog
Source/WebCore/Sources.txt
Source/WebCore/WebCore.xcodeproj/project.pbxproj
Source/WebCore/dom/Document.cpp
Source/WebCore/dom/Document.h
Source/WebCore/html/HTMLImageElement.cpp
Source/WebCore/html/HTMLImageElement.h
Source/WebCore/html/HTMLImageElement.idl
Source/WebCore/html/LazyLoadImageObserver.cpp [deleted file]
Source/WebCore/html/LazyLoadImageObserver.h [deleted file]
Source/WebCore/html/parser/HTMLPreloadScanner.cpp
Source/WebCore/loader/ImageLoader.cpp
Source/WebCore/loader/ImageLoader.h
Source/WebCore/loader/cache/CachedImage.h
Source/WebCore/loader/cache/CachedResourceLoader.cpp
Source/WebCore/loader/cache/CachedResourceLoader.h
Source/WebCore/rendering/RenderImage.cpp