Open
Bug 904328
Opened 11 years ago
Updated 2 years ago
make coordinates of display items relative to scroll root
Categories
(Core :: Layout, defect)
Tracking
()
NEW
People
(Reporter: gal, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(2 files, 2 obsolete files)
9.76 KB,
patch
|
Details | Diff | Splinter Review | |
10.13 KB,
patch
|
Details | Diff | Splinter Review |
No description provided.
Reporter | ||
Comment 1•11 years ago
|
||
Comment 2•11 years ago
|
||
Comment on attachment 789316 [details] [diff] [review] patch Review of attachment 789316 [details] [diff] [review]: ----------------------------------------------------------------- ::: layout/generic/nsQueryFrame.h @@ +93,5 @@ > + } > + > + template<class Dest> > + operator Dest*() { > + return (Dest *) reinterpret_cast<const Dest *>(this); This line has two problems. 1. reinterpret_cast does not call casting operator. So, first operator Dest*() would not be called. static_cast should be used to replace reinterpret_cast. 2. operator Dest*() is applied on type do_|QueryFrame|, not on type |(do_QueryFrame *)|, so |*this| should be used instead of |this|. This line is too fancy and too elaborate to be understood XD
Comment 3•11 years ago
|
||
Fix |operator new| function of |do_QueryFrame| and translating linear spaces of |gfxContext|s for |nsDisplayItem|s.
Comment 4•11 years ago
|
||
(In reply to Thinker Li [:sinker] from comment #3) > Created attachment 799304 [details] [diff] [review] > Modified version of Andreas's patch > > Fix |operator new| function of |do_QueryFrame| and translating linear spaces > of |gfxContext|s for |nsDisplayItem|s. Native widgets are not draw correctly.
Comment 5•11 years ago
|
||
Fix the issue of drawing popup menu (native widget I had mentioned).
Attachment #799304 -
Attachment is obsolete: true
Attachment #801240 -
Flags: feedback?(dbaron)
Comment on attachment 801240 [details] [diff] [review] Modified version of Andreas's patch, v2 Could you explain what feedback you wanted?
Attachment #801240 -
Flags: feedback?(dbaron)
Comment 7•11 years ago
|
||
Comment on attachment 801240 [details] [diff] [review] Modified version of Andreas's patch, v2 Review of attachment 801240 [details] [diff] [review]: ----------------------------------------------------------------- ::: layout/base/FrameLayerBuilder.cpp @@ +3156,5 @@ > > FrameLayerBuilder *layerBuilder = aLayer->Manager()->GetLayerBuilder(); > NS_ASSERTION(layerBuilder, "Unexpectedly null layer builder!"); > > + nsIFrame *rootReferenceFrame = builder->RootReferenceFrame(); Most of your *s and &s are on the wrong side; should be next to the type, not the variable.
Comment 8•11 years ago
|
||
(In reply to David Baron [:dbaron] (needinfo? me) from comment #6) > Could you explain what feedback you wanted? Do you think the idea here is reasonable? I mean to use a reference frame without a view. It makes an exception of root referenced frame.
Let's ask Matt.
Flags: needinfo?(matt.woodrow)
Comment 10•11 years ago
|
||
As I said on the mailing list, I think we want to drop the translation code in FrameLayerBuilder, and instead make sure that we always get an nsDisplayScrollLayer (and an actual ContainerLayer) for this reference frame, and apply the necessary translation to the ContainerLayer.
Flags: needinfo?(matt.woodrow)
Comment 11•11 years ago
|
||
Fix a minor bug in FindReferenceFrameFor().
Attachment #801240 -
Attachment is obsolete: true
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•