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

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

Issue 1511003003: Use refs for non-null GraphicsContext, Scrollbar, etc. in scrollbar related code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ScrollbarRemove
Patch Set: yet another mac fix Created 5 years 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/frame/FrameView.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1f1f39e7910fa5f18af21bce83bf40ad6f580dd4..025b180a0dee943c7eabd4d310f0cba2784dde0a 100644
--- a/third_party/WebKit/Source/core/css/SelectorChecker.cpp
+++ b/third_party/WebKit/Source/core/css/SelectorChecker.cpp
@@ -1160,7 +1160,7 @@ bool SelectorChecker::checkScrollbarPseudoClass(const SelectorCheckingContext& c
return part == BackButtonEndPart || part == ForwardButtonEndPart || part == ForwardTrackPart;
case CSSSelector::PseudoDoubleButton:
{
- ScrollbarButtonsPlacement buttonsPlacement = scrollbar->theme()->buttonsPlacement();
+ ScrollbarButtonsPlacement buttonsPlacement = scrollbar->theme().buttonsPlacement();
if (part == BackButtonStartPart || part == ForwardButtonStartPart || part == BackTrackPart)
return buttonsPlacement == ScrollbarButtonsPlacementDoubleStart || buttonsPlacement == ScrollbarButtonsPlacementDoubleBoth;
if (part == BackButtonEndPart || part == ForwardButtonEndPart || part == ForwardTrackPart)
@@ -1169,14 +1169,14 @@ bool SelectorChecker::checkScrollbarPseudoClass(const SelectorCheckingContext& c
}
case CSSSelector::PseudoSingleButton:
{
- ScrollbarButtonsPlacement buttonsPlacement = scrollbar->theme()->buttonsPlacement();
+ ScrollbarButtonsPlacement buttonsPlacement = scrollbar->theme().buttonsPlacement();
if (part == BackButtonStartPart || part == ForwardButtonEndPart || part == BackTrackPart || part == ForwardTrackPart)
return buttonsPlacement == ScrollbarButtonsPlacementSingle;
return false;
}
case CSSSelector::PseudoNoButton:
{
- ScrollbarButtonsPlacement buttonsPlacement = scrollbar->theme()->buttonsPlacement();
+ ScrollbarButtonsPlacement buttonsPlacement = scrollbar->theme().buttonsPlacement();
if (part == BackTrackPart)
return buttonsPlacement == ScrollbarButtonsPlacementNone || buttonsPlacement == ScrollbarButtonsPlacementDoubleEnd;
if (part == ForwardTrackPart)
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/FrameView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698