Fix for bug #74383: nsBoxToBlockAdaptor::Reflow() prevents TextArea contents from being reflowed

bug #100727:Javascript to modify textarea causes field to go blank/unchangeable
        bug #101122: Textarea sometimes not refreshing correctly (blank space after delete sel., etc.)
        bug #107973:Cut and paste in forms is broken

Modified Reflow() so that it allows a reflow to happen during a ResizeReflow
request when the adaptor or it's children are dirty.

r=evaughan@netscape.com  sr=attinasi@netscape.com
This commit is contained in:
kin%netscape.com 2001-11-21 14:18:26 +00:00
Родитель 280b9574e1
Коммит a2fabe9743
1 изменённых файлов: 7 добавлений и 3 удалений

Просмотреть файл

@ -747,10 +747,14 @@ nsBoxToBlockAdaptor::Reflow(nsBoxLayoutState& aState,
} break;
// if the a resize reflow then it doesn't need to be reflowed. Only if the size is different
// from the new size would we actually do a reflow
// if it's a resize reflow, and it and it's children aren't dirty, then it
// doesn't need to be reflowed unless it's size is different from the new
// size.
case eReflowReason_Resize:
needsReflow = PR_FALSE;
// blocks sometimes send resizes even when its children are dirty! We
// need to make sure we repair in these cases. So check the flags here.
needsReflow = mStyleChange || (childState & NS_FRAME_IS_DIRTY) || (childState & NS_FRAME_HAS_DIRTY_CHILDREN);
break;
// if its an initial reflow we must place the child.