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

Side by Side Diff: Source/core/frame/Navigator.cpp

Issue 33523002: Have Frame::script() return a reference (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/frame/Frame.cpp ('k') | Source/core/html/HTMLCanvasElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2000 Harri Porten (porten@kde.org) 2 * Copyright (C) 2000 Harri Porten (porten@kde.org)
3 * Copyright (c) 2000 Daniel Molkentin (molkentin@kde.org) 3 * Copyright (c) 2000 Daniel Molkentin (molkentin@kde.org)
4 * Copyright (c) 2000 Stefan Schimanski (schimmi@kde.org) 4 * Copyright (c) 2000 Stefan Schimanski (schimmi@kde.org)
5 * Copyright (C) 2003, 2004, 2005, 2006 Apple Computer, Inc. 5 * Copyright (C) 2003, 2004, 2005, 2006 Apple Computer, Inc.
6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public 9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 Navigator::~Navigator() 58 Navigator::~Navigator()
59 { 59 {
60 } 60 }
61 61
62 // If this function returns true, we need to hide the substring "4." that would otherwise 62 // If this function returns true, we need to hide the substring "4." that would otherwise
63 // appear in the appVersion string. This is to avoid problems with old versions of a 63 // appear in the appVersion string. This is to avoid problems with old versions of a
64 // library called OpenCube QuickMenu, which as of this writing is still being us ed on 64 // library called OpenCube QuickMenu, which as of this writing is still being us ed on
65 // sites such as nwa.com -- the library thinks Safari is Netscape 4 if we don't do this! 65 // sites such as nwa.com -- the library thinks Safari is Netscape 4 if we don't do this!
66 static bool shouldHideFourDot(Frame* frame) 66 static bool shouldHideFourDot(Frame* frame)
67 { 67 {
68 const String* sourceURL = frame->script()->sourceURL(); 68 const String* sourceURL = frame->script().sourceURL();
69 if (!sourceURL) 69 if (!sourceURL)
70 return false; 70 return false;
71 if (!(sourceURL->endsWith("/dqm_script.js") || sourceURL->endsWith("/dqm_loa der.js") || sourceURL->endsWith("/tdqm_loader.js"))) 71 if (!(sourceURL->endsWith("/dqm_script.js") || sourceURL->endsWith("/dqm_loa der.js") || sourceURL->endsWith("/tdqm_loader.js")))
72 return false; 72 return false;
73 Settings* settings = frame->settings(); 73 Settings* settings = frame->settings();
74 if (!settings) 74 if (!settings)
75 return false; 75 return false;
76 return settings->needsSiteSpecificQuirks(); 76 return settings->needsSiteSpecificQuirks();
77 } 77 }
78 78
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 154
155 return true; 155 return true;
156 } 156 }
157 157
158 void Navigator::getStorageUpdates() 158 void Navigator::getStorageUpdates()
159 { 159 {
160 // FIXME: Remove this method or rename to yieldForStorageUpdates. 160 // FIXME: Remove this method or rename to yieldForStorageUpdates.
161 } 161 }
162 162
163 } // namespace WebCore 163 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/frame/Frame.cpp ('k') | Source/core/html/HTMLCanvasElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698