From 8c98c0f04fab5c6e0c55f0200f7533e4e683293d Mon Sep 17 00:00:00 2001 From: "uriber%gmail.com" Date: Sat, 8 Apr 2006 14:17:35 +0000 Subject: [PATCH] Bug 331958: Crash when selecting text, using rtl object with css generated content and designMode. r+sr=dbaron git-svn-id: svn://10.0.0.236/trunk@193941 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/base/nsFrameManager.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mozilla/layout/base/nsFrameManager.cpp b/mozilla/layout/base/nsFrameManager.cpp index e120e01be70..6f78dae60f9 100644 --- a/mozilla/layout/base/nsFrameManager.cpp +++ b/mozilla/layout/base/nsFrameManager.cpp @@ -1226,9 +1226,9 @@ nsFrameManager::ReResolveStyleContext(nsPresContext *aPresContext, localContent->IsContentOfType(nsIContent::eELEMENT) && !aFrame->IsLeaf()) { // Check for a new :before pseudo and an existing :before - // frame, but only if the frame is the first-in-flow. - nsIFrame* prevInFlow = aFrame->GetPrevInFlow(); - if (!prevInFlow) { + // frame, but only if the frame is the first continuation. + nsIFrame* prevContinuation = aFrame->GetPrevContinuation(); + if (!prevContinuation) { // Checking for a :before frame is cheaper than getting the // :before style context. if (!nsLayoutUtils::GetBeforeFrame(aFrame) && @@ -1252,10 +1252,10 @@ nsFrameManager::ReResolveStyleContext(nsPresContext *aPresContext, localContent->IsContentOfType(nsIContent::eELEMENT) && !aFrame->IsLeaf()) { // Check for new :after content, but only if the frame is the - // last-in-flow. - nsIFrame* nextInFlow = aFrame->GetNextContinuation(); + // last continuation. + nsIFrame* nextContinuation = aFrame->GetNextContinuation(); - if (!nextInFlow) { + if (!nextContinuation) { // Getting the :after frame is more expensive than getting the pseudo // context, so get the pseudo context first. if (nsLayoutUtils::HasPseudoStyle(localContent, newContext,