Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(280)

Unified Diff: third_party/WebKit/Source/core/style/ComputedStyle.h

Issue 2748993003: -webkit-box-ordinal-group cannot exceed the keyspace for a HashSet (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/deprecated-flexbox/ordinal-group-max-value-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/style/ComputedStyle.h
diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.h b/third_party/WebKit/Source/core/style/ComputedStyle.h
index 2492fa297e652d28905631df3c1f2a6928776c97..4df9164982d972065a91bd033e43350ea1e6401a 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
@@ -981,7 +981,8 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase,
}
void setBoxOrdinalGroup(unsigned og) {
SET_NESTED_VAR(m_rareNonInheritedData, m_deprecatedFlexibleBox,
- ordinalGroup, og);
+ ordinalGroup,
+ std::min(std::numeric_limits<unsigned>::max() - 1, og));
}
// -webkit-box-orient
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/deprecated-flexbox/ordinal-group-max-value-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698