Commit 3a836b88 authored by Scott Violet's avatar Scott Violet Committed by Commit Bot

blink: fix AltTextContentData::Clone()

It should return AltTextContentData, not TextContentData.

I've tagged this with bug 1087667 as a patch I'm working on for
that bug triggers calling this.

BUG=1087667
TEST=none

Change-Id: I3e04f8689f3df5a17c94abeaacad05b5e6962a8c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2466058Reviewed-by: default avatarXianzhu Wang <wangxianzhu@chromium.org>
Commit-Queue: Scott Violet <sky@chromium.org>
Cr-Commit-Position: refs/heads/master@{#816333}
parent 099137cf
...@@ -175,7 +175,7 @@ class AltTextContentData final : public ContentData { ...@@ -175,7 +175,7 @@ class AltTextContentData final : public ContentData {
private: private:
ContentData* CloneInternal() const override { ContentData* CloneInternal() const override {
return MakeGarbageCollected<TextContentData>(GetText()); return MakeGarbageCollected<AltTextContentData>(GetText());
} }
String text_; String text_;
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment