Refactor the frame property code and use it for supporting properties on dom elements. Bug 253888, r=jst, sr=dbaron.

git-svn-id: svn://10.0.0.236/trunk@161096 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bryner%brianryner.com
2004-08-21 05:09:50 +00:00
parent 75839c9942
commit e49f4fa38e
50 changed files with 1231 additions and 945 deletions

View File

@@ -787,22 +787,21 @@ nsBidiPresUtils::RemoveBidiContinuation(nsPresContext* aPresContext,
nsIFrame* thisFramesNextBidiFrame;
nsIFrame* previousFramesNextBidiFrame;
nsFrameManager* frameManager = presShell->FrameManager();
thisFramesNextBidiFrame = NS_STATIC_CAST(nsIFrame*,
frameManager->GetFrameProperty(aFrame, nsLayoutAtoms::nextBidi, 0));
thisFramesNextBidiFrame =
NS_STATIC_CAST(nsIFrame*, aFrame->GetProperty(nsLayoutAtoms::nextBidi));
if (thisFramesNextBidiFrame) {
// Remove nextBidi property, associated with the current frame
// and with all of its prev-in-flow.
frame = aFrame;
do {
frameManager->RemoveFrameProperty(frame, nsLayoutAtoms::nextBidi);
frame->DeleteProperty(nsLayoutAtoms::nextBidi);
frame->GetPrevInFlow(&frame);
if (!frame) {
break;
}
previousFramesNextBidiFrame = NS_STATIC_CAST(nsIFrame*,
frameManager->GetFrameProperty(frame, nsLayoutAtoms::nextBidi, 0));
previousFramesNextBidiFrame =
NS_STATIC_CAST(nsIFrame*, frame->GetProperty(nsLayoutAtoms::nextBidi));
} while (thisFramesNextBidiFrame == previousFramesNextBidiFrame);
} // if (thisFramesNextBidiFrame)
}