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

Unified Diff: Source/core/frame/FrameView.h

Issue 1165233002: Apply :target styling even if fragment scrolling was skipped. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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 | « Source/core/dom/Document.cpp ('k') | Source/core/frame/FrameView.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/FrameView.h
diff --git a/Source/core/frame/FrameView.h b/Source/core/frame/FrameView.h
index bd953b0327053f4d434f1eabc9b14cfa70ccd00c..9646e5cac4e42e5379f375588625d0c68c99c1f7 100644
--- a/Source/core/frame/FrameView.h
+++ b/Source/core/frame/FrameView.h
@@ -239,9 +239,11 @@ public:
void forceLayoutForPagination(const FloatSize& pageSize, const FloatSize& originalPageSize, float maximumShrinkFactor);
- bool scrollToFragment(const KURL&);
- bool scrollToAnchor(const String&);
- void maintainScrollPositionAtAnchor(Node*);
+ enum UrlFragmentBehavior {
+ UrlFragmentScroll,
+ UrlFragmentDontScroll
+ };
+ bool processUrlFragment(const KURL&, UrlFragmentBehavior = UrlFragmentScroll);
// Methods to convert points and rects between the coordinate space of the layoutObject, and this view.
IntRect convertFromLayoutObject(const LayoutObject&, const IntRect&) const;
@@ -666,6 +668,8 @@ private:
void updateWidgetsTimerFired(Timer<FrameView>*);
bool updateWidgets();
+ bool processUrlFragmentHelper(const String&, UrlFragmentBehavior);
+ void maintainScrollPositionAtAnchor(Node*);
void scrollToAnchor();
void scrollPositionChanged();
void didScrollTimerFired(Timer<FrameView>*);
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698