| 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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 Vector<Attribute> MHTMLFrameSerializerDelegate::getCustomAttributes( | 192 Vector<Attribute> MHTMLFrameSerializerDelegate::getCustomAttributes( |
| 193 const Element& element) { | 193 const Element& element) { |
| 194 Vector<Attribute> attributes; | 194 Vector<Attribute> attributes; |
| 195 | 195 |
| 196 // Disable all form elements in MTHML to tell the user that the form cannot be | 196 // Disable all form elements in MTHML to tell the user that the form cannot be |
| 197 // worked on. MHTML is loaded in full sandboxing mode which disable the form | 197 // worked on. MHTML is loaded in full sandboxing mode which disable the form |
| 198 // submission and script execution. | 198 // submission and script execution. |
| 199 if (element.isFormControlElement() && | 199 if (element.isFormControlElement() && |
| 200 !element.fastHasAttribute(HTMLNames::disabledAttr)) { | 200 !element.fastHasAttribute(HTMLNames::disabledAttr)) { |
| 201 Attribute disabledAttribute(HTMLNames::disabledAttr, ""); | 201 Attribute disabledAttribute(HTMLNames::disabledAttr, ""); |
| 202 attributes.append(disabledAttribute); | 202 attributes.push_back(disabledAttribute); |
| 203 } | 203 } |
| 204 | 204 |
| 205 return attributes; | 205 return attributes; |
| 206 } | 206 } |
| 207 | 207 |
| 208 bool cacheControlNoStoreHeaderPresent( | 208 bool cacheControlNoStoreHeaderPresent( |
| 209 const WebLocalFrameImpl& webLocalFrameImpl) { | 209 const WebLocalFrameImpl& webLocalFrameImpl) { |
| 210 const ResourceResponse& response = | 210 const ResourceResponse& response = |
| 211 webLocalFrameImpl.dataSource()->response().toResourceResponse(); | 211 webLocalFrameImpl.dataSource()->response().toResourceResponse(); |
| 212 if (response.cacheControlContainsNoStore()) | 212 if (response.cacheControlContainsNoStore()) |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 359 const WebString& baseTarget) { | 359 const WebString& baseTarget) { |
| 360 // TODO(yosin) We should call |FrameSerializer::baseTagDeclarationOf()|. | 360 // TODO(yosin) We should call |FrameSerializer::baseTagDeclarationOf()|. |
| 361 if (baseTarget.isEmpty()) | 361 if (baseTarget.isEmpty()) |
| 362 return String("<base href=\".\">"); | 362 return String("<base href=\".\">"); |
| 363 String baseString = "<base href=\".\" target=\"" + | 363 String baseString = "<base href=\".\" target=\"" + |
| 364 static_cast<const String&>(baseTarget) + "\">"; | 364 static_cast<const String&>(baseTarget) + "\">"; |
| 365 return baseString; | 365 return baseString; |
| 366 } | 366 } |
| 367 | 367 |
| 368 } // namespace blink | 368 } // namespace blink |
| OLD | NEW |