Bug 786533 - Replace NS_MIN/NS_MAX with std::min/std::max and #include <algorithm> where needed. r=ehsan
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
#include "nsLayoutUtils.h"
|
||||
#include "nsGkAtoms.h"
|
||||
#include "SpanningCellSorter.h"
|
||||
#include <algorithm>
|
||||
|
||||
using namespace mozilla;
|
||||
using namespace mozilla::layout;
|
||||
@@ -159,7 +160,7 @@ GetWidthInfo(nsRenderingContext *aRenderingContext,
|
||||
nsGkAtoms::nowrap)) {
|
||||
minCoord = w;
|
||||
}
|
||||
prefCoord = NS_MAX(w, minCoord);
|
||||
prefCoord = std::max(w, minCoord);
|
||||
} else if (unit == eStyleUnit_Percent) {
|
||||
prefPercent = width.GetPercentValue();
|
||||
} else if (unit == eStyleUnit_Enumerated && aIsCell) {
|
||||
|
||||
Reference in New Issue
Block a user