OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 #include "wtf/CurrentTime.h" | 198 #include "wtf/CurrentTime.h" |
199 #include "wtf/HashMap.h" | 199 #include "wtf/HashMap.h" |
200 | 200 |
201 using namespace WebCore; | 201 using namespace WebCore; |
202 | 202 |
203 namespace WebKit { | 203 namespace WebKit { |
204 | 204 |
205 static int frameCount = 0; | 205 static int frameCount = 0; |
206 | 206 |
207 // Key for a StatsCounter tracking how many WebFrames are active. | 207 // Key for a StatsCounter tracking how many WebFrames are active. |
208 static const char* const webFrameActiveCount = "WebFrameActiveCount"; | 208 static const char webFrameActiveCount[] = "WebFrameActiveCount"; |
209 | 209 |
210 static void frameContentAsPlainText(size_t maxChars, Frame* frame, StringBuilder
& output) | 210 static void frameContentAsPlainText(size_t maxChars, Frame* frame, StringBuilder
& output) |
211 { | 211 { |
212 Document* document = frame->document(); | 212 Document* document = frame->document(); |
213 if (!document) | 213 if (!document) |
214 return; | 214 return; |
215 | 215 |
216 if (!frame->view()) | 216 if (!frame->view()) |
217 return; | 217 return; |
218 | 218 |
(...skipping 2301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2520 | 2520 |
2521 // There is a possibility that the frame being detached was the only | 2521 // There is a possibility that the frame being detached was the only |
2522 // pending one. We need to make sure final replies can be sent. | 2522 // pending one. We need to make sure final replies can be sent. |
2523 flushCurrentScopingEffort(m_findRequestIdentifier); | 2523 flushCurrentScopingEffort(m_findRequestIdentifier); |
2524 | 2524 |
2525 cancelPendingScopingEffort(); | 2525 cancelPendingScopingEffort(); |
2526 } | 2526 } |
2527 } | 2527 } |
2528 | 2528 |
2529 } // namespace WebKit | 2529 } // namespace WebKit |
OLD | NEW |