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

Unified Diff: Source/web/mac/WebSubstringUtil.mm

Issue 23671002: Refactoring: Add toWebFrameImpl() interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Refactoring: Add toWebFrameImpl() interface. Created 7 years, 4 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: Source/web/mac/WebSubstringUtil.mm
diff --git a/Source/web/mac/WebSubstringUtil.mm b/Source/web/mac/WebSubstringUtil.mm
index fc472b9e99d02e02ad07d00f17c71c0b34b55ac3..2f5aa44daae5de4e0ea57060f6171fe0216a6d22 100644
--- a/Source/web/mac/WebSubstringUtil.mm
+++ b/Source/web/mac/WebSubstringUtil.mm
@@ -57,7 +57,7 @@ namespace WebKit {
NSAttributedString* WebSubstringUtil::attributedSubstringInRange(WebFrame* webFrame, size_t location, size_t length)
{
- Frame* frame = static_cast<WebFrameImpl*>(webFrame)->frame();
+ Frame* frame = toWebFrameImpl(webFrame)->frame();
if (frame->view()->needsLayout())
frame->view()->layout();

Powered by Google App Engine
This is Rietveld 408576698