OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 25 matching lines...) Expand all Loading... |
36 #include "core/css/CSSImportRule.h" | 36 #include "core/css/CSSImportRule.h" |
37 #include "core/css/CSSStyleRule.h" | 37 #include "core/css/CSSStyleRule.h" |
38 #include "core/css/StylePropertySet.h" | 38 #include "core/css/StylePropertySet.h" |
39 #include "core/css/StyleRule.h" | 39 #include "core/css/StyleRule.h" |
40 #include "core/css/StyleSheetContents.h" | 40 #include "core/css/StyleSheetContents.h" |
41 #include "core/dom/Document.h" | 41 #include "core/dom/Document.h" |
42 #include "core/dom/Element.h" | 42 #include "core/dom/Element.h" |
43 #include "core/dom/Text.h" | 43 #include "core/dom/Text.h" |
44 #include "core/editing/MarkupAccumulator.h" | 44 #include "core/editing/MarkupAccumulator.h" |
45 #include "core/html/HTMLFrameOwnerElement.h" | 45 #include "core/html/HTMLFrameOwnerElement.h" |
46 #include "core/html/HTMLHeadElement.h" | |
47 #include "core/html/HTMLImageElement.h" | 46 #include "core/html/HTMLImageElement.h" |
48 #include "core/html/HTMLLinkElement.h" | 47 #include "core/html/HTMLLinkElement.h" |
49 #include "core/html/HTMLStyleElement.h" | 48 #include "core/html/HTMLStyleElement.h" |
50 #include "core/html/parser/HTMLMetaCharsetParser.h" | 49 #include "core/html/parser/HTMLMetaCharsetParser.h" |
51 #include "core/loader/cache/CachedImage.h" | 50 #include "core/loader/cache/CachedImage.h" |
52 #include "core/page/Frame.h" | 51 #include "core/page/Frame.h" |
53 #include "core/page/Page.h" | 52 #include "core/page/Page.h" |
54 #include "core/platform/MIMETypeRegistry.h" | |
55 #include "core/platform/graphics/Image.h" | 53 #include "core/platform/graphics/Image.h" |
56 #include "core/platform/network/HTTPParsers.h" | |
57 #include "core/rendering/style/StyleCachedImage.h" | 54 #include "core/rendering/style/StyleCachedImage.h" |
58 #include "core/rendering/style/StyleImage.h" | 55 #include "core/rendering/style/StyleImage.h" |
59 #include "wtf/text/CString.h" | 56 #include "wtf/text/CString.h" |
60 #include "wtf/text/StringBuilder.h" | 57 #include "wtf/text/StringBuilder.h" |
61 #include "wtf/text/TextEncoding.h" | 58 #include "wtf/text/TextEncoding.h" |
62 #include "wtf/text/WTFString.h" | 59 #include "wtf/text/WTFString.h" |
63 | 60 |
64 namespace WebCore { | 61 namespace WebCore { |
65 | 62 |
66 static bool isCharsetSpecifyingNode(Node* node) | 63 static bool isCharsetSpecifyingNode(Node* node) |
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
349 if (iter != m_blankFrameURLs.end()) | 346 if (iter != m_blankFrameURLs.end()) |
350 return iter->value; | 347 return iter->value; |
351 String url = "wyciwyg://frame/" + String::number(m_blankFrameCounter++); | 348 String url = "wyciwyg://frame/" + String::number(m_blankFrameCounter++); |
352 KURL fakeURL(ParsedURLString, url); | 349 KURL fakeURL(ParsedURLString, url); |
353 m_blankFrameURLs.add(frame, fakeURL); | 350 m_blankFrameURLs.add(frame, fakeURL); |
354 | 351 |
355 return fakeURL; | 352 return fakeURL; |
356 } | 353 } |
357 | 354 |
358 } | 355 } |
OLD | NEW |