Closed Bug 1344533 Opened 8 years ago Closed 8 years ago

Use nsContentUtils::GetContextForContent() to obtain nsPresContext* for OwningElementRef

Categories

(Core :: DOM: Animation, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla54
Tracking Status
firefox54 --- fixed

People

(Reporter: hiro, Assigned: hiro)

References

Details

Attachments

(1 file)

I just realized that OwningElementRef has also GetPresContext(). We can replace it with nsContentUtils::GetContextForContent().
Summary: Use Use nsContentUtils::GetContextForContent() to obtain nsPresContext* for OwningElementRef → Use nsContentUtils::GetContextForContent() to obtain nsPresContext* for OwningElementRef
Comment on attachment 8843678 [details] Bug 1344533 - Replace OwningElementRef::GetRenderedPresContext with nsContentUtils::GetContextForContext(). https://reviewboard.mozilla.org/r/117278/#review119024
Attachment #8843678 - Flags: review?(boris.chiou) → review+
Comment on attachment 8843678 [details] Bug 1344533 - Replace OwningElementRef::GetRenderedPresContext with nsContentUtils::GetContextForContext(). https://reviewboard.mozilla.org/r/117278/#review119026 ::: layout/style/moz.build (Diff revision 2) > 'StyleRule.h', > ] > > UNIFIED_SOURCES += [ > 'AnimationCollection.cpp', > - 'AnimationCommon.cpp', By the way, why do we need to remove this from Unified sources?
Comment on attachment 8843678 [details] Bug 1344533 - Replace OwningElementRef::GetRenderedPresContext with nsContentUtils::GetContextForContext(). https://reviewboard.mozilla.org/r/117278/#review119026 > By the way, why do we need to remove this from Unified sources? Oh, We delete the cpp file. Thanks for making this simpler.
Pushed by hikezoe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5f82f1249b3b Replace OwningElementRef::GetRenderedPresContext with nsContentUtils::GetContextForContext(). r=boris
Yeah, I also initially misunderstood so. Where is the deleted diff? ;-)
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla54
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: