OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |