Land bug 72747 in pieces: Implement overflow-x and overflow-y. b=72747 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@161772 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1636,9 +1636,8 @@ nsTextControlFrame::CreateAnonymousContent(nsPresContext* aPresContext,
|
||||
// setting -moz-hidden-unscrollable overflow (NS_STYLE_OVERFLOW_CLIP)
|
||||
// doesn't paint the caret for some reason.
|
||||
const nsStyleDisplay* disp = GetStyleDisplay();
|
||||
if (disp->mOverflow != NS_STYLE_OVERFLOW_AUTO && // this is the default
|
||||
disp->mOverflow != NS_STYLE_OVERFLOW_VISIBLE &&
|
||||
disp->mOverflow != NS_STYLE_OVERFLOW_CLIP) {
|
||||
if (disp->mOverflowX != NS_STYLE_OVERFLOW_VISIBLE &&
|
||||
disp->mOverflowX != NS_STYLE_OVERFLOW_CLIP) {
|
||||
rv = divContent->SetAttr(kNameSpaceID_None, nsHTMLAtoms::style,
|
||||
NS_LITERAL_STRING("overflow: inherit;"),
|
||||
PR_FALSE);
|
||||
|
||||
Reference in New Issue
Block a user