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

Unified Diff: third_party/WebKit/Source/core/dom/VisitedLinkState.cpp

Issue 2633633003: Changed EInsideLink to an enum class with an unsigned type. (Closed)
Patch Set: Rebase. Created 3 years, 11 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/core/dom/VisitedLinkState.cpp
diff --git a/third_party/WebKit/Source/core/dom/VisitedLinkState.cpp b/third_party/WebKit/Source/core/dom/VisitedLinkState.cpp
index 17d0f56e4b0e7d913049c3d664c28c433b90d909..dd0fec95c41f6c7734e4e22eba373408d6bdcdc9 100644
--- a/third_party/WebKit/Source/core/dom/VisitedLinkState.cpp
+++ b/third_party/WebKit/Source/core/dom/VisitedLinkState.cpp
@@ -119,22 +119,22 @@ EInsideLink VisitedLinkState::determineLinkStateSlowCase(
const AtomicString& attribute = linkAttribute(element);
if (attribute.isNull())
- return NotInsideLink; // This can happen for <img usemap>
+ return EInsideLink::kNotInsideLink; // This can happen for <img usemap>
// An empty attribute refers to the document itself which is always
// visited. It is useful to check this explicitly so that visited
// links can be tested in platform independent manner, without
// explicit support in the test harness.
if (attribute.isEmpty())
- return InsideVisitedLink;
+ return EInsideLink::kInsideVisitedLink;
if (LinkHash hash = linkHashForElement(element, attribute)) {
m_linksCheckedForVisitedState.add(hash);
if (Platform::current()->isLinkVisited(hash))
- return InsideVisitedLink;
+ return EInsideLink::kInsideVisitedLink;
}
- return InsideUnvisitedLink;
+ return EInsideLink::kInsideUnvisitedLink;
}
DEFINE_TRACE(VisitedLinkState) {

Powered by Google App Engine
This is Rietveld 408576698