зеркало из https://github.com/mozilla/gecko-dev.git
This change didn't seem to help, backing out.
This commit is contained in:
Родитель
e47507382c
Коммит
80588b592f
|
@ -2269,9 +2269,7 @@ nsIFrame::GetView() const
|
|||
|
||||
// Check for a property on the frame
|
||||
nsresult rv;
|
||||
void *value = GetPresContext()->PropertyTable()->GetProperty(this,
|
||||
nsLayoutAtoms::viewProperty,
|
||||
&rv);
|
||||
void *value = GetProperty(nsLayoutAtoms::viewProperty, &rv);
|
||||
|
||||
NS_ENSURE_SUCCESS(rv, nsnull);
|
||||
NS_ASSERTION(value, "frame state bit was set but frame has no view");
|
||||
|
@ -2291,11 +2289,7 @@ nsIFrame::SetView(nsIView* aView)
|
|||
aView->SetClientData(this);
|
||||
|
||||
// Set a property on the frame
|
||||
nsresult rv = GetPresContext()->PropertyTable()->SetProperty(this,
|
||||
nsLayoutAtoms::viewProperty,
|
||||
aView,
|
||||
nsnull,
|
||||
nsnull);
|
||||
nsresult rv = SetProperty(nsLayoutAtoms::viewProperty, aView, nsnull);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
// Set the frame state bit that says the frame has a view
|
||||
|
|
|
@ -2269,9 +2269,7 @@ nsIFrame::GetView() const
|
|||
|
||||
// Check for a property on the frame
|
||||
nsresult rv;
|
||||
void *value = GetPresContext()->PropertyTable()->GetProperty(this,
|
||||
nsLayoutAtoms::viewProperty,
|
||||
&rv);
|
||||
void *value = GetProperty(nsLayoutAtoms::viewProperty, &rv);
|
||||
|
||||
NS_ENSURE_SUCCESS(rv, nsnull);
|
||||
NS_ASSERTION(value, "frame state bit was set but frame has no view");
|
||||
|
@ -2291,11 +2289,7 @@ nsIFrame::SetView(nsIView* aView)
|
|||
aView->SetClientData(this);
|
||||
|
||||
// Set a property on the frame
|
||||
nsresult rv = GetPresContext()->PropertyTable()->SetProperty(this,
|
||||
nsLayoutAtoms::viewProperty,
|
||||
aView,
|
||||
nsnull,
|
||||
nsnull);
|
||||
nsresult rv = SetProperty(nsLayoutAtoms::viewProperty, aView, nsnull);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
// Set the frame state bit that says the frame has a view
|
||||
|
|
Загрузка…
Ссылка в новой задаче