| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2007 David Smith (catfish.man@gmail.com) | 3 * Copyright (C) 2007 David Smith (catfish.man@gmail.com) |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 #include "core/dom/Document.h" | 32 #include "core/dom/Document.h" |
| 33 #include "core/dom/NodeRareData.h" | 33 #include "core/dom/NodeRareData.h" |
| 34 | 34 |
| 35 namespace blink { | 35 namespace blink { |
| 36 | 36 |
| 37 ClassCollection::ClassCollection(ContainerNode& root_node, | 37 ClassCollection::ClassCollection(ContainerNode& root_node, |
| 38 const AtomicString& class_names) | 38 const AtomicString& class_names) |
| 39 : HTMLCollection(root_node, | 39 : HTMLCollection(root_node, |
| 40 kClassCollectionType, | 40 kClassCollectionType, |
| 41 kDoesNotOverrideItemAfter), | 41 kDoesNotOverrideItemAfter), |
| 42 class_names_(class_names, | 42 class_names_( |
| 43 GetDocument().InQuirksMode() | 43 GetDocument().InQuirksMode() ? class_names.LowerASCII() : class_names, |
| 44 ? SpaceSplitString::kShouldFoldCase | 44 SpaceSplitString::kShouldNotFoldCase) {} |
| 45 : SpaceSplitString::kShouldNotFoldCase), | |
| 46 original_class_names_(class_names) {} | |
| 47 | 45 |
| 48 ClassCollection::~ClassCollection() {} | 46 ClassCollection::~ClassCollection() {} |
| 49 | 47 |
| 50 } // namespace blink | 48 } // namespace blink |
| OLD | NEW |