зеркало из https://github.com/mozilla/pjs.git
Bug 201851. Don't honor XUL 'width' and 'height' attributes on anything other than XUL elements. r+sr=dbaron,a=sspitzer
This commit is contained in:
Родитель
37fd837877
Коммит
2867c02aef
|
@ -1228,7 +1228,10 @@ nsIBox::AddCSSPrefSize(nsBoxLayoutState& aState, nsIBox* aBox, nsSize& aSize)
|
||||||
nsCOMPtr<nsIContent> content;
|
nsCOMPtr<nsIContent> content;
|
||||||
frame->GetContent(getter_AddRefs(content));
|
frame->GetContent(getter_AddRefs(content));
|
||||||
|
|
||||||
if (content) {
|
// ignore 'height' and 'width' attributes if the actual element is not XUL
|
||||||
|
// For example, we might be magic XUL frames whose primary content is an HTML
|
||||||
|
// <select>
|
||||||
|
if (content && content->IsContentOfType(nsIContent::eXUL)) {
|
||||||
nsIPresContext* presContext = aState.GetPresContext();
|
nsIPresContext* presContext = aState.GetPresContext();
|
||||||
|
|
||||||
nsAutoString value;
|
nsAutoString value;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче