Closed
Bug 267302
Opened 20 years ago
Closed 20 years ago
Views should be created by the view manager
Categories
(Core :: Web Painting, defect)
Core
Web Painting
Tracking
()
RESOLVED
FIXED
People
(Reporter: neil, Assigned: neil)
Details
Attachments
(2 files)
19.34 KB,
patch
|
Details | Diff | Splinter Review | |
28.50 KB,
patch
|
roc
:
review+
roc
:
superreview+
|
Details | Diff | Splinter Review |
Currently views are created by the component manager. This is a hack that
depends on the component manager being able to call QueryInterface on a view,
thinking that it implements nsISupports. Instead the view manager should create
and initialize views directly.
Assignee | ||
Comment 1•20 years ago
|
||
Assignee: roc → neil.parkwaycc.co.uk
Status: NEW → ASSIGNED
Assignee | ||
Updated•20 years ago
|
Attachment #164280 -
Flags: superreview?(roc)
Attachment #164280 -
Flags: review?(roc)
Comment 2•20 years ago
|
||
{ "Scroll Port View", NS_SCROLL_PORT_VIEW_CID,
"@mozilla.org/scroll-port-view;1", nsScrollPortViewConstructor },
can you remove this too?
Comment 3•20 years ago
|
||
also, is nsIView::Init still needed?
Assignee | ||
Comment 4•20 years ago
|
||
(In reply to comment #2)
> { "Scroll Port View", NS_SCROLL_PORT_VIEW_CID,
> "@mozilla.org/scroll-port-view;1", nsScrollPortViewConstructor },
>
> can you remove this too?
Not yet, but I can roll it into the patch...
(In reply to comment #3)
> also, is nsIView::Init still needed?
No, I'll remove that at the same time.
Assignee | ||
Comment 5•20 years ago
|
||
OK, so now I've fixed up scrollable and placeholder views too.
I've also removed a few includes that are no longer used.
Note that ViewWrapper still uses of nsIView::QueryInterface; the other callers
need to be replaced by nsIView::GetScrollableView (or IsScrollableView or
whatever the flavour of the month is).
Assignee | ||
Updated•20 years ago
|
Attachment #164373 -
Flags: superreview?(roc)
Attachment #164373 -
Flags: review?(roc)
Assignee | ||
Comment 6•20 years ago
|
||
Oh wait, I'll need to rev some IIDs too, sigh...
Comment on attachment 164373 [details] [diff] [review]
Proposed patch
bump the IIDs
Attachment #164373 -
Flags: superreview?(roc)
Attachment #164373 -
Flags: superreview+
Attachment #164373 -
Flags: review?(roc)
Attachment #164373 -
Flags: review+
Attachment #164280 -
Flags: superreview?(roc)
Attachment #164280 -
Flags: review?(roc)
Assignee | ||
Comment 8•20 years ago
|
||
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Seems that Camino has started to have some serious scrolling issues after this
bug was fixed. A separate Camino bug was filed to track what happened, Bug Bug
268218.
Updated•6 years ago
|
Component: Layout: View Rendering → Layout: Web Painting
You need to log in
before you can comment on or make changes to this bug.
Description
•