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

Unified Diff: third_party/WebKit/Source/web/WebDocument.cpp

Issue 2799553002: Provide a std::vector compliant empty() method for WebVector. (Closed)
Patch Set: Created 3 years, 8 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
Index: third_party/WebKit/Source/web/WebDocument.cpp
diff --git a/third_party/WebKit/Source/web/WebDocument.cpp b/third_party/WebKit/Source/web/WebDocument.cpp
index ecd8bf0faa8e65062e382db59a9aa3ad2bda91b1..4bec3b0da006c6b3403b2412c7182ef376b0f14e 100644
--- a/third_party/WebKit/Source/web/WebDocument.cpp
+++ b/third_party/WebKit/Source/web/WebDocument.cpp
@@ -194,7 +194,7 @@ void WebDocument::insertStyleSheet(const WebString& sourceCode) {
void WebDocument::watchCSSSelectors(const WebVector<WebString>& webSelectors) {
Document* document = unwrap<Document>();
CSSSelectorWatch* watch = CSSSelectorWatch::fromIfExists(*document);
- if (!watch && webSelectors.isEmpty())
+ if (!watch && webSelectors.empty())
return;
Vector<String> selectors;
selectors.append(webSelectors.data(), webSelectors.size());
« no previous file with comments | « third_party/WebKit/Source/web/ExternalPopupMenu.cpp ('k') | third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698