Changeset 21778 in webkit
- Timestamp:
- May 25, 2007, 2:44:44 PM (17 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r21777 r21778 1 2007-05-25 dethbakin <bdakin@apple.com> 2 3 Reviewed by Oliver and Hyatt. 4 5 Fix for <rdar://problem/5228363> REGRESSION: In Mail, attempting to 6 create a To Do results in a crash 7 8 This regressed with r21635. Now that -boundingBox updates layout if 9 it is needed, we infinitely recurse when Mail draws a custom 10 highlight. The fix is to put a guard around laying out the render 11 tree. 12 13 * page/FrameView.cpp: 14 (WebCore::FrameViewPrivate::reset): 15 (WebCore::FrameView::layout): 16 1 17 2007-05-25 Patti Hoa <patti@apple.com> 2 18 -
trunk/WebCore/page/FrameView.cpp
r21555 r21778 80 80 doFullRepaint = true; 81 81 layoutSchedulingEnabled = true; 82 midLayout = false; 82 83 layoutCount = 0; 83 84 firstLayout = true; … … 100 101 101 102 bool layoutSchedulingEnabled; 103 bool midLayout; 102 104 int layoutCount; 103 105 … … 286 288 void FrameView::layout(bool allowSubtree) 287 289 { 290 if (d->midLayout) 291 return; 292 288 293 d->layoutTimer.stop(); 289 294 d->delayedLayout = false; … … 416 421 if (subtree) 417 422 root->view()->pushLayoutState(root); 423 d->midLayout = true; 418 424 root->layout(); 425 d->midLayout = false; 419 426 if (subtree) 420 427 root->view()->popLayoutState();
Note:
See TracChangeset
for help on using the changeset viewer.