/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
if (needsPosition) { if (mX.isNothing()) {
mX.emplace(x);
} if (mY.isNothing()) {
mY.emplace(y);
}
} if (needsSize) { if (mWidth.isNothing()) {
mWidth.emplace(width);
} if (mHeight.isNothing()) {
mHeight.emplace(height);
}
}
nsresult DimensionRequest::ApplyOuterTo(nsIBaseWindow* aTarget) {
NS_ENSURE_ARG_POINTER(aTarget);
MOZ_ASSERT(mX.isSome() == mY.isSome(), "Missing dimensions should have been completed.");
MOZ_ASSERT(mWidth.isSome() == mHeight.isSome(), "Missing dimensions should have been completed."); if (mDimensionKind != DimensionKind::Outer) {
MOZ_ASSERT_UNREACHABLE("Expected outer dimensions."); return NS_ERROR_UNEXPECTED;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.