зеркало из https://github.com/mozilla/pjs.git
Add a check around the WipeContaingBlock call in ContentInserted, it checks for
the select and doesn't do it. Just like Bug 18366, r=kmcclusk Bug 19949
This commit is contained in:
Родитель
bbc2a15492
Коммит
70fda8cdbe
|
@ -6002,10 +6002,18 @@ nsCSSFrameConstructor::ContentInserted(nsIPresContext* aPresContext,
|
|||
|
||||
rv = ConstructFrame(aPresContext, state, aChild, parentFrame, frameItems);
|
||||
|
||||
// Perform special check for diddling around with the frames in
|
||||
// a special inline frame.
|
||||
if (WipeContainingBlock(aPresContext, state, blockContent, parentFrame, frameItems.childList)) {
|
||||
return NS_OK;
|
||||
// XXX Bug 19949
|
||||
// Although select frame are inline we do not want to call
|
||||
// WipeContainingBlock because it will throw away the entire select frame and
|
||||
// start over which is something we do not want to do
|
||||
//
|
||||
nsCOMPtr<nsIDOMHTMLSelectElement> selectContent(do_QueryInterface(aContainer));
|
||||
if (!selectContent) {
|
||||
// Perform special check for diddling around with the frames in
|
||||
// a special inline frame.
|
||||
if (WipeContainingBlock(aPresContext, state, blockContent, parentFrame, frameItems.childList)) {
|
||||
return NS_OK;
|
||||
}
|
||||
}
|
||||
|
||||
if (haveFirstLineStyle) {
|
||||
|
|
|
@ -6002,10 +6002,18 @@ nsCSSFrameConstructor::ContentInserted(nsIPresContext* aPresContext,
|
|||
|
||||
rv = ConstructFrame(aPresContext, state, aChild, parentFrame, frameItems);
|
||||
|
||||
// Perform special check for diddling around with the frames in
|
||||
// a special inline frame.
|
||||
if (WipeContainingBlock(aPresContext, state, blockContent, parentFrame, frameItems.childList)) {
|
||||
return NS_OK;
|
||||
// XXX Bug 19949
|
||||
// Although select frame are inline we do not want to call
|
||||
// WipeContainingBlock because it will throw away the entire select frame and
|
||||
// start over which is something we do not want to do
|
||||
//
|
||||
nsCOMPtr<nsIDOMHTMLSelectElement> selectContent(do_QueryInterface(aContainer));
|
||||
if (!selectContent) {
|
||||
// Perform special check for diddling around with the frames in
|
||||
// a special inline frame.
|
||||
if (WipeContainingBlock(aPresContext, state, blockContent, parentFrame, frameItems.childList)) {
|
||||
return NS_OK;
|
||||
}
|
||||
}
|
||||
|
||||
if (haveFirstLineStyle) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче