Bug 1513012 - Move overflow to use cbindgen. r=heycam

It's one of the most annoying / hacky mako bits we have.

Differential Revision: https://phabricator.services.mozilla.com/D14084
This commit is contained in:
Emilio Cobos Álvarez
2018-12-11 01:50:32 +01:00
parent 05c50b5525
commit afcff875f7
40 changed files with 165 additions and 195 deletions

View File

@@ -443,11 +443,11 @@ nsresult nsTextControlFrame::CreateRootNode() {
if (!IsSingleLineTextControl()) {
// We can't just inherit the overflow because setting visible overflow will
// crash when the number of lines exceeds the height of the textarea and
// setting -moz-hidden-unscrollable overflow (NS_STYLE_OVERFLOW_CLIP)
// doesn't paint the caret for some reason.
// setting -moz-hidden-unscrollable overflow doesn't paint the caret for
// some reason.
const nsStyleDisplay* disp = StyleDisplay();
if (disp->mOverflowX != NS_STYLE_OVERFLOW_VISIBLE &&
disp->mOverflowX != NS_STYLE_OVERFLOW_CLIP) {
if (disp->mOverflowX != StyleOverflow::Visible &&
disp->mOverflowX != StyleOverflow::MozHiddenUnscrollable) {
classValue.AppendLiteral(" inherit-overflow");
}
}