Skip to content
This repository has been archived by the owner on Apr 10, 2024. It is now read-only.

Commit

Permalink
Bug 664095 - "Wrong behavior after load html file in composer (red Ta…
Browse files Browse the repository at this point in the history
…ble border missing)" r=ehsan, a+=Callek (m-beta relbranch)

--HG--
branch : SEAMONKEY_2_3b3_RELBRANCH
  • Loading branch information
Wolfgang Germund committed Jun 23, 2011
1 parent 0c6981c commit 12a3c69
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions editor/libeditor/html/nsHTMLEditor.cpp
Expand Up @@ -168,11 +168,6 @@ nsHTMLEditor::~nsHTMLEditor()
// free any default style propItems
RemoveAllDefaultProperties();

while (mStyleSheetURLs.Length())
{
RemoveOverrideStyleSheet(mStyleSheetURLs[0]);
}

if (mLinkHandler && mDocWeak)
{
nsCOMPtr<nsIPresShell> ps = GetPresShell();
Expand Down Expand Up @@ -359,6 +354,11 @@ nsHTMLEditor::PreDestroy(PRBool aDestroyingFrames)
document->RemoveMutationObserver(this);
}

while (mStyleSheetURLs.Length())
{
RemoveOverrideStyleSheet(mStyleSheetURLs[0]);
}

return nsPlaintextEditor::PreDestroy(aDestroyingFrames);
}

Expand Down

0 comments on commit 12a3c69

Please sign in to comment.