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

Side by Side Diff: third_party/WebKit/Source/core/frame/LocalFrame.cpp

Issue 2668903003: Replace WTF::emptyString{16Bit}() with a static global (Closed)
Patch Set: Replace WTF::emptyString{16Bit}() with a static global 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org>
3 * 1999 Lars Knoll <knoll@kde.org> 3 * 1999 Lars Knoll <knoll@kde.org>
4 * 1999 Antti Koivisto <koivisto@kde.org> 4 * 1999 Antti Koivisto <koivisto@kde.org>
5 * 2000 Simon Hausmann <hausmann@kde.org> 5 * 2000 Simon Hausmann <hausmann@kde.org>
6 * 2000 Stefan Schimanski <1Stein@gmx.de> 6 * 2000 Stefan Schimanski <1Stein@gmx.de>
7 * 2001 George Staikos <staikos@kde.org> 7 * 2001 George Staikos <staikos@kde.org>
8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All
9 * rights reserved. 9 * rights reserved.
10 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com> 10 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com>
(...skipping 728 matching lines...) Expand 10 before | Expand all | Expand 10 after
739 enclosingIntRect(paintingRect)); 739 enclosingIntRect(paintingRect));
740 return dragImageBuilder.createImage(opacity); 740 return dragImageBuilder.createImage(opacity);
741 } 741 }
742 742
743 String LocalFrame::selectedText() const { 743 String LocalFrame::selectedText() const {
744 return selection().selectedText(); 744 return selection().selectedText();
745 } 745 }
746 746
747 String LocalFrame::selectedTextForClipboard() const { 747 String LocalFrame::selectedTextForClipboard() const {
748 if (!document()) 748 if (!document())
749 return emptyString(); 749 return emptyString;
750 DCHECK(!document()->needsLayoutTreeUpdate()); 750 DCHECK(!document()->needsLayoutTreeUpdate());
751 return selection().selectedTextForClipboard(); 751 return selection().selectedTextForClipboard();
752 } 752 }
753 753
754 PositionWithAffinity LocalFrame::positionForPoint(const IntPoint& framePoint) { 754 PositionWithAffinity LocalFrame::positionForPoint(const IntPoint& framePoint) {
755 HitTestResult result = eventHandler().hitTestResultAtPoint(framePoint); 755 HitTestResult result = eventHandler().hitTestResultAtPoint(framePoint);
756 Node* node = result.innerNodeOrImageMapImage(); 756 Node* node = result.innerNodeOrImageMapImage();
757 if (!node) 757 if (!node)
758 return PositionWithAffinity(); 758 return PositionWithAffinity();
759 LayoutObject* layoutObject = node->layoutObject(); 759 LayoutObject* layoutObject = node->layoutObject();
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
938 if (m_frame && m_frame->client() && m_frame->client()->frameBlameContext()) 938 if (m_frame && m_frame->client() && m_frame->client()->frameBlameContext())
939 m_frame->client()->frameBlameContext()->Enter(); 939 m_frame->client()->frameBlameContext()->Enter();
940 } 940 }
941 941
942 ScopedFrameBlamer::~ScopedFrameBlamer() { 942 ScopedFrameBlamer::~ScopedFrameBlamer() {
943 if (m_frame && m_frame->client() && m_frame->client()->frameBlameContext()) 943 if (m_frame && m_frame->client() && m_frame->client()->frameBlameContext())
944 m_frame->client()->frameBlameContext()->Leave(); 944 m_frame->client()->frameBlameContext()->Leave();
945 } 945 }
946 946
947 } // namespace blink 947 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/Deprecation.cpp ('k') | third_party/WebKit/Source/core/frame/NavigatorID.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698