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

Unified Diff: third_party/WebKit/Source/core/css/CSSSelector.h

Issue 2825993002: Prevent integer overflows in ANPlusB handling (Closed)
Patch Set: Remove incorrect test - testing input as -1 for unsigned doesn't make sense Created 3 years, 7 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 | « no previous file | third_party/WebKit/Source/core/css/CSSSelector.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/CSSSelector.h
diff --git a/third_party/WebKit/Source/core/css/CSSSelector.h b/third_party/WebKit/Source/core/css/CSSSelector.h
index f4feecde158591b47c6845dcc21ce06cedf170ca..91e93c38e4eeba324faa946878a8e2e2a311335b 100644
--- a/third_party/WebKit/Source/core/css/CSSSelector.h
+++ b/third_party/WebKit/Source/core/css/CSSSelector.h
@@ -284,7 +284,7 @@ class CORE_EXPORT CSSSelector {
void SetSelectorList(std::unique_ptr<CSSSelectorList>);
void SetNth(int a, int b);
- bool MatchNth(int count) const;
+ bool MatchNth(unsigned count) const;
bool IsAdjacentSelector() const {
return relation_ == kDirectAdjacent || relation_ == kIndirectAdjacent;
@@ -378,7 +378,7 @@ class CORE_EXPORT CSSSelector {
}
~RareData();
- bool MatchNth(int count);
+ bool MatchNth(unsigned count);
int NthAValue() const { return bits_.nth_.a_; }
int NthBValue() const { return bits_.nth_.b_; }
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/CSSSelector.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698