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

Unified Diff: Source/web/WebLocalFrameImpl.cpp

Issue 1053123007: Invalidate paint of tickmarks on document change (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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
« Source/web/WebLocalFrameImpl.h ('K') | « Source/web/WebLocalFrameImpl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebLocalFrameImpl.cpp
diff --git a/Source/web/WebLocalFrameImpl.cpp b/Source/web/WebLocalFrameImpl.cpp
index caea872adab0f715961a1a565b5980e79acb49b9..e7a54e6053a1947d3881817905d73f8125bc772f 100644
--- a/Source/web/WebLocalFrameImpl.cpp
+++ b/Source/web/WebLocalFrameImpl.cpp
@@ -1508,7 +1508,6 @@ void WebLocalFrameImpl::setTickmarks(const WebVector<WebRect>& tickmarks)
for (size_t i = 0; i < tickmarks.size(); ++i)
tickmarksConverted[i] = tickmarks[i];
frameView()->setTickmarks(tickmarksConverted);
- invalidateScrollbar();
Xianzhu 2015/04/17 18:25:03 Now frameView will invalidate paint of tickmarks i
}
}
@@ -2089,24 +2088,6 @@ TextFinder& WebLocalFrameImpl::ensureTextFinder()
return *m_textFinder;
}
-void WebLocalFrameImpl::invalidateScrollbar() const
-{
- ASSERT(frame() && frame()->view());
- FrameView* view = frame()->view();
- // Invalidate the vertical scroll bar region for the view.
- Scrollbar* scrollbar = view->verticalScrollbar();
- if (scrollbar)
- scrollbar->invalidate();
-}
-
-void WebLocalFrameImpl::invalidateAll() const
-{
- ASSERT(frame() && frame()->view());
- FrameView* view = frame()->view();
- view->invalidateRect(view->frameRect());
- invalidateScrollbar();
-}
-
void WebLocalFrameImpl::setFrameWidget(WebFrameWidgetImpl* frameWidget)
{
m_frameWidget = frameWidget;
« Source/web/WebLocalFrameImpl.h ('K') | « Source/web/WebLocalFrameImpl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698