Skip to content

Commit

Permalink
Bug 1491846 GetFrameLoader inside child objects vtbls could not be re…
Browse files Browse the repository at this point in the history
…solved by linker. It looks like a clang bug, but requires closer look. I worked around it by having explicit forwards. r=smaug

Differential Revision: https://phabricator.services.mozilla.com/D6051

--HG--
extra : moz-landing-system : lando
  • Loading branch information
tomrittervg committed Sep 18, 2018
1 parent 2a646ae commit c9db005
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dom/html/HTMLEmbedElement.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ class HTMLEmbedElement final : public nsGenericHTMLElement
*/
void StartObjectLoad(bool aNotify, bool aForceLoad);

NS_FORWARD_NSIFRAMELOADEROWNER(nsObjectLoadingContent::)

protected:
// Override for nsImageLoadingContent.
nsIContent* AsContent() override { return this; }
Expand Down
2 changes: 2 additions & 0 deletions dom/html/HTMLFrameElement.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ class HTMLFrameElement final : public nsGenericHTMLFrameElement
using nsGenericHTMLFrameElement::GetContentDocument;
using nsGenericHTMLFrameElement::GetContentWindow;

NS_FORWARD_NSIFRAMELOADEROWNER(nsGenericHTMLFrameElement::)

protected:
virtual ~HTMLFrameElement();

Expand Down
2 changes: 2 additions & 0 deletions dom/html/HTMLObjectElement.h
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,8 @@ class HTMLObjectElement final : public nsGenericHTMLFormElement
*/
void StartObjectLoad(bool aNotify, bool aForceLoad);

NS_FORWARD_NSIFRAMELOADEROWNER(nsObjectLoadingContent::)

protected:
// Override for nsImageLoadingContent.
nsIContent* AsContent() override { return this; }
Expand Down

0 comments on commit c9db005

Please sign in to comment.