| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights | 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights |
| 3 * reserved. | 3 * reserved. |
| 4 * Copyright (C) 2008, 2009, 2010, 2011 Google Inc. All rights reserved. | 4 * Copyright (C) 2008, 2009, 2010, 2011 Google Inc. All rights reserved. |
| 5 * Copyright (C) 2011 Igalia S.L. | 5 * Copyright (C) 2011 Igalia S.L. |
| 6 * Copyright (C) 2011 Motorola Mobility. All rights reserved. | 6 * Copyright (C) 2011 Motorola Mobility. All rights reserved. |
| 7 * | 7 * |
| 8 * Redistribution and use in source and binary forms, with or without | 8 * Redistribution and use in source and binary forms, with or without |
| 9 * modification, are permitted provided that the following conditions | 9 * modification, are permitted provided that the following conditions |
| 10 * are met: | 10 * are met: |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 static void completeURLs(DocumentFragment& fragment, const String& baseURL) { | 100 static void completeURLs(DocumentFragment& fragment, const String& baseURL) { |
| 101 HeapVector<AttributeChange> changes; | 101 HeapVector<AttributeChange> changes; |
| 102 | 102 |
| 103 KURL parsedBaseURL(ParsedURLString, baseURL); | 103 KURL parsedBaseURL(ParsedURLString, baseURL); |
| 104 | 104 |
| 105 for (Element& element : ElementTraversal::descendantsOf(fragment)) { | 105 for (Element& element : ElementTraversal::descendantsOf(fragment)) { |
| 106 AttributeCollection attributes = element.attributes(); | 106 AttributeCollection attributes = element.attributes(); |
| 107 // AttributeCollection::iterator end = attributes.end(); | 107 // AttributeCollection::iterator end = attributes.end(); |
| 108 for (const auto& attribute : attributes) { | 108 for (const auto& attribute : attributes) { |
| 109 if (element.isURLAttribute(attribute) && !attribute.value().isEmpty()) | 109 if (element.isURLAttribute(attribute) && !attribute.value().isEmpty()) |
| 110 changes.append(AttributeChange( | 110 changes.push_back(AttributeChange( |
| 111 &element, attribute.name(), | 111 &element, attribute.name(), |
| 112 KURL(parsedBaseURL, attribute.value()).getString())); | 112 KURL(parsedBaseURL, attribute.value()).getString())); |
| 113 } | 113 } |
| 114 } | 114 } |
| 115 | 115 |
| 116 for (auto& change : changes) | 116 for (auto& change : changes) |
| 117 change.apply(); | 117 change.apply(); |
| 118 } | 118 } |
| 119 | 119 |
| 120 static bool isHTMLBlockElement(const Node* node) { | 120 static bool isHTMLBlockElement(const Node* node) { |
| (...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 775 textNode->appendData(textNext->data()); | 775 textNode->appendData(textNext->data()); |
| 776 if (textNext->parentNode()) // Might have been removed by mutation event. | 776 if (textNext->parentNode()) // Might have been removed by mutation event. |
| 777 textNext->remove(exceptionState); | 777 textNext->remove(exceptionState); |
| 778 } | 778 } |
| 779 | 779 |
| 780 template class CORE_TEMPLATE_EXPORT CreateMarkupAlgorithm<EditingStrategy>; | 780 template class CORE_TEMPLATE_EXPORT CreateMarkupAlgorithm<EditingStrategy>; |
| 781 template class CORE_TEMPLATE_EXPORT | 781 template class CORE_TEMPLATE_EXPORT |
| 782 CreateMarkupAlgorithm<EditingInFlatTreeStrategy>; | 782 CreateMarkupAlgorithm<EditingInFlatTreeStrategy>; |
| 783 | 783 |
| 784 } // namespace blink | 784 } // namespace blink |
| OLD | NEW |