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
This commit is contained in:
uriber%gmail.com
2006-04-08 14:17:35 +00:00
parent d3acb5bd77
commit 8c98c0f04f

View File

@@ -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,