зеркало из https://github.com/mozilla/gecko-dev.git
Keep a reference to the style context for the lifetime of AttributeChanged(), so it's not deleted out from under us when the frame is destroyed. Fixes crasher bug 194584. r/sr=dbaron.
This commit is contained in:
Родитель
44456f91a9
Коммит
574c127ea3
|
@ -10680,7 +10680,7 @@ nsCSSFrameConstructor::AttributeChanged(nsIPresContext* aPresContext,
|
||||||
// check for inline style. we need to clear the data at the style
|
// check for inline style. we need to clear the data at the style
|
||||||
// context's rule node whenever the inline style property changes.
|
// context's rule node whenever the inline style property changes.
|
||||||
|
|
||||||
nsStyleContext* styleContext = nsnull;
|
nsRefPtr<nsStyleContext> styleContext;
|
||||||
nsCOMPtr<nsIStyleRule> rule;
|
nsCOMPtr<nsIStyleRule> rule;
|
||||||
PRBool inlineStyle = PR_FALSE;
|
PRBool inlineStyle = PR_FALSE;
|
||||||
if (aAttribute == nsHTMLAtoms::style) {
|
if (aAttribute == nsHTMLAtoms::style) {
|
||||||
|
|
|
@ -10680,7 +10680,7 @@ nsCSSFrameConstructor::AttributeChanged(nsIPresContext* aPresContext,
|
||||||
// check for inline style. we need to clear the data at the style
|
// check for inline style. we need to clear the data at the style
|
||||||
// context's rule node whenever the inline style property changes.
|
// context's rule node whenever the inline style property changes.
|
||||||
|
|
||||||
nsStyleContext* styleContext = nsnull;
|
nsRefPtr<nsStyleContext> styleContext;
|
||||||
nsCOMPtr<nsIStyleRule> rule;
|
nsCOMPtr<nsIStyleRule> rule;
|
||||||
PRBool inlineStyle = PR_FALSE;
|
PRBool inlineStyle = PR_FALSE;
|
||||||
if (aAttribute == nsHTMLAtoms::style) {
|
if (aAttribute == nsHTMLAtoms::style) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче