Closed Bug 923168 Opened 11 years ago Closed 11 years ago

Build error with --disable-accessibility: widget/gtk/nsDragService.cpp:1581:37: error: invalid use of incomplete type ‘class nsIContent’

Categories

(Core :: Widget: Gtk, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla27

People

(Reporter: dholbert, Assigned: dholbert)

References

Details

Attachments

(1 file)

Since bug 921753 part 1's changeset, I'm getting this build error: { /mozilla/widget/gtk/nsDragService.cpp: In member function ‘void nsDragService::SetDragIcon(GdkDragContext*)’: /mozilla/widget/gtk/nsDragService.cpp:1581:37: error: invalid use of incomplete type ‘class nsIContent’ nsIFrame* frame = mDragPopup->GetPrimaryFrame(); ^ In file included from /mozilla/widget/gtk/nsDragService.h:10:0, from /mozilla/widget/gtk/nsDragService.cpp:7: /mozilla/widget/gtk/../xpwidgets/nsBaseDragService.h:22:7: error: forward declaration of ‘class nsIContent’ class nsIContent; ^ } Presumably nsDragService.cpp just needs an #include for nsIContent.
Attached patch trivial fixSplinter Review
Assignee: nobody → dholbert
Status: NEW → ASSIGNED
Attachment #813154 - Flags: review?(ehsan)
Comment on attachment 813154 [details] [diff] [review] trivial fix Actually, I just went ahead and landed this without review, since it's trivial, and the sooner we fix it, the fewer people will have their local builds busted by it. https://hg.mozilla.org/integration/mozilla-inbound/rev/a50cb55cd294
Attachment #813154 - Flags: review?(ehsan)
Flags: in-testsuite-
(From brief local testing, it looks like this build error only affected --disable-accessibility builds. Presumably normal build don't hit this because nsDragService.cpp indirectly includes some accessibility-related header that (perhaps indirectly) includes nsIContent.h.)
Summary: widget/gtk/nsDragService.cpp:1581:37: error: invalid use of incomplete type ‘class nsIContent’ → Build error with --disable-accessibility: widget/gtk/nsDragService.cpp:1581:37: error: invalid use of incomplete type ‘class nsIContent’
(In reply to comment #2) > Comment on attachment 813154 [details] [diff] [review] > --> https://bugzilla.mozilla.org/attachment.cgi?id=813154 > trivial fix > > Actually, I just went ahead and landed this without review, since it's trivial, > and the sooner we fix it, the fewer people will have their local builds busted > by it. > > https://hg.mozilla.org/integration/mozilla-inbound/rev/a50cb55cd294 Thanks!
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla27
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: