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

Unified Diff: third_party/WebKit/Source/core/css/SelectorChecker.cpp

Issue 2727633006: DevTools: Rename InspectorInstrumentation:: namespace into probe:: (Closed)
Patch Set: Created 3 years, 10 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/css/SelectorChecker.cpp
diff --git a/third_party/WebKit/Source/core/css/SelectorChecker.cpp b/third_party/WebKit/Source/core/css/SelectorChecker.cpp
index da7b0ec8448154b902f39bd90eaddb3883185a1e..61b2bed7044fbb540a7c5c751631a6bf61b6624c 100644
--- a/third_party/WebKit/Source/core/css/SelectorChecker.cpp
+++ b/third_party/WebKit/Source/core/css/SelectorChecker.cpp
@@ -914,8 +914,7 @@ bool SelectorChecker::checkPseudoClass(const SelectorCheckingContext& context,
}
if (!shouldMatchHoverOrActive(context))
return false;
- if (InspectorInstrumentation::forcePseudoState(&element,
- CSSSelector::PseudoHover))
+ if (probe::forcePseudoState(&element, CSSSelector::PseudoHover))
return true;
return element.isHovered();
case CSSSelector::PseudoActive:
@@ -931,8 +930,7 @@ bool SelectorChecker::checkPseudoClass(const SelectorCheckingContext& context,
}
if (!shouldMatchHoverOrActive(context))
return false;
- if (InspectorInstrumentation::forcePseudoState(&element,
- CSSSelector::PseudoActive))
+ if (probe::forcePseudoState(&element, CSSSelector::PseudoActive))
return true;
return element.isActive();
case CSSSelector::PseudoEnabled:
@@ -1308,8 +1306,8 @@ bool SelectorChecker::checkScrollbarPseudoClass(
}
bool SelectorChecker::matchesFocusPseudoClass(const Element& element) {
- if (InspectorInstrumentation::forcePseudoState(const_cast<Element*>(&element),
- CSSSelector::PseudoFocus))
+ if (probe::forcePseudoState(const_cast<Element*>(&element),
+ CSSSelector::PseudoFocus))
return true;
return element.isFocused() && isFrameFocused(element);
}

Powered by Google App Engine
This is Rietveld 408576698