Closed Bug 39532 Opened 24 years ago Closed 19 years ago

Turn on caching of widget changes

Categories

(Core :: Web Painting, defect, P4)

defect

Tracking

()

RESOLVED DUPLICATE of bug 238493
Future

People

(Reporter: kmcclusk, Assigned: kmcclusk)

References

Details

There are a number of bugs which are the result of nsIWidget's instances being 
positioned multiple times during reflow. evaughan@netscape.com built a mechanism 
which caches the widget changes and applies the changes when caching is turned 
off. He found a number of problems when he turned it on initially. These 
problems need to be resolved before it can be turned on permanently.

I was able to fix a number of bugs by adding the following code to 
nsTableOuterFrame.cpp and enabling widget caching in nsViewManager2.

 nsCOMPtr<nsIViewManager> vm;
  nsCOMPtr<nsIPresShell> shell;
  aPresContext->GetShell(getter_AddRefs(shell));

  if (shell) {
    shell->GetViewManager(getter_AddRefs(vm));
    if (nsnull != vm) {
      vm->CacheWidgetChanges(PR_TRUE);
    }
  }

  ...

  if (nsnull != vm) {
    vm->CacheWidgetChanges(PR_FALSE);
  }

After discussing it with Eric, we decided to wait for the general solution 
instead of checking this local widget caching since anything within the table 
may exhibit the problems he saw when he turned on the global widget change 
caching.
Blocks: 37039
Blocks: 34860
This has to do with that widget caching I was talking about.
Assignee: evaughan → garyf
back to evaughan
Assignee: garyf → evaughan
mass-moving all evaughan non-nsbeta3+ bugs to 'Future' milestone 
(per trudelle). 
Target Milestone: --- → Future
Taking this bug
Assignee: eric → kmcclusk
Build moving all existing future-P3 bugs to future-P4.
Priority: P3 → P4
Depends on: 238493
Well, this just seems like a duplicate of bug 238493 to me, so marking it as duplicate. This is fixed anyway.

*** This bug has been marked as a duplicate of 238493 ***
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
Component: Layout: View Rendering → Layout: Web Painting
You need to log in before you can comment on or make changes to this bug.