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

Unified Diff: third_party/WebKit/Source/core/svg/graphics/SVGImage.h

Issue 2613853002: Phase III Step 2: Call imageNotifyFinished() and image load event after SVG loading completes (Closed)
Patch Set: Rebase 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/svg/graphics/SVGImage.h
diff --git a/third_party/WebKit/Source/core/svg/graphics/SVGImage.h b/third_party/WebKit/Source/core/svg/graphics/SVGImage.h
index 46a897a883a93a9a50b6ad0184e174685204dcfe..01067ef703f33b36bd0c41c0c7d2e7d93ba1b0cf 100644
--- a/third_party/WebKit/Source/core/svg/graphics/SVGImage.h
+++ b/third_party/WebKit/Source/core/svg/graphics/SVGImage.h
@@ -183,6 +183,10 @@ class CORE_EXPORT SVGImage final : public Image {
void ScheduleTimelineRewind();
void FlushPendingTimelineRewind();
+ void LoadCompleted();
+
+ class SVGImageLocalFrameClient;
+
Persistent<SVGImageChromeClient> chrome_client_;
Persistent<Page> page_;
std::unique_ptr<PaintController> paint_controller_;
@@ -194,6 +198,17 @@ class CORE_EXPORT SVGImage final : public Image {
// the "concrete object size". For more, see: SVGImageForContainer.h
IntSize intrinsic_size_;
bool has_pending_timeline_rewind_;
+
+ enum LoadState {
+ kDataChangedNotStarted,
+ kInDataChanged,
+ kWaitingForAsyncLoadCompletion,
+ kLoadCompleted,
+ };
+
+ LoadState load_state_ = kDataChangedNotStarted;
+
+ Persistent<SVGImageLocalFrameClient> frame_client_;
};
DEFINE_IMAGE_TYPE_CASTS(SVGImage);

Powered by Google App Engine
This is Rietveld 408576698