Make Java measure thread-safe.

This commit is contained in:
Tom Mulcahy
2015-03-23 17:49:47 +00:00
parent a7a8d1d40d
commit ddd7a899ac
9 changed files with 72 additions and 36 deletions

View File

@@ -278,6 +278,7 @@ var computeLayout = (function() {
if (isRowUndefined || isColumnUndefined) {
var/*css_dim_t*/ measureDim = node.style.measure(
/*(c)!node->context,*/
/*(java)!layoutContext.measureOutput,*/
width
);
if (isRowUndefined) {
@@ -397,7 +398,7 @@ var computeLayout = (function() {
// This is the main recursive call. We layout non flexible children.
if (alreadyComputedNextLayout === 0) {
layoutNode(child, maxWidth);
layoutNode(/*(java)!layoutContext, */child, maxWidth);
}
// Absolute positioned elements do not take part of the layout, so we
@@ -472,7 +473,7 @@ var computeLayout = (function() {
}
// And we recursively call the layout algorithm for this child
layoutNode(child, maxWidth);
layoutNode(/*(java)!layoutContext, */child, maxWidth);
}
}