| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2004, 2005, 2006, 2007 Apple 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 #include "core/html/HTMLDivElement.h" | 54 #include "core/html/HTMLDivElement.h" |
| 55 #include "core/html/HTMLInputElement.h" | 55 #include "core/html/HTMLInputElement.h" |
| 56 #include "core/html/HTMLLIElement.h" | 56 #include "core/html/HTMLLIElement.h" |
| 57 #include "core/html/HTMLParagraphElement.h" | 57 #include "core/html/HTMLParagraphElement.h" |
| 58 #include "core/html/HTMLSpanElement.h" | 58 #include "core/html/HTMLSpanElement.h" |
| 59 #include "core/html/HTMLTableCellElement.h" | 59 #include "core/html/HTMLTableCellElement.h" |
| 60 #include "core/html/HTMLUListElement.h" | 60 #include "core/html/HTMLUListElement.h" |
| 61 #include "core/layout/LayoutObject.h" | 61 #include "core/layout/LayoutObject.h" |
| 62 #include "core/layout/LayoutTableCell.h" | 62 #include "core/layout/LayoutTableCell.h" |
| 63 #include "platform/clipboard/ClipboardMimeTypes.h" | 63 #include "platform/clipboard/ClipboardMimeTypes.h" |
| 64 #include "wtf/Assertions.h" | 64 #include "platform/wtf/Assertions.h" |
| 65 #include "wtf/StdLibExtras.h" | 65 #include "platform/wtf/StdLibExtras.h" |
| 66 #include "wtf/text/StringBuilder.h" | 66 #include "platform/wtf/text/StringBuilder.h" |
| 67 #include "wtf/text/Unicode.h" | 67 #include "platform/wtf/text/Unicode.h" |
| 68 | 68 |
| 69 namespace blink { | 69 namespace blink { |
| 70 | 70 |
| 71 using namespace HTMLNames; | 71 using namespace HTMLNames; |
| 72 | 72 |
| 73 namespace { | 73 namespace { |
| 74 | 74 |
| 75 std::ostream& operator<<(std::ostream& os, PositionMoveType type) { | 75 std::ostream& operator<<(std::ostream& os, PositionMoveType type) { |
| 76 static const char* const kTexts[] = {"CodeUnit", "BackwardDeletion", | 76 static const char* const kTexts[] = {"CodeUnit", "BackwardDeletion", |
| 77 "GraphemeCluster"}; | 77 "GraphemeCluster"}; |
| (...skipping 2124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2202 return InputType::kDeleteSoftLineBackward; | 2202 return InputType::kDeleteSoftLineBackward; |
| 2203 if (granularity == kParagraphBoundary) | 2203 if (granularity == kParagraphBoundary) |
| 2204 return InputType::kDeleteHardLineBackward; | 2204 return InputType::kDeleteHardLineBackward; |
| 2205 return InputType::kDeleteContentBackward; | 2205 return InputType::kDeleteContentBackward; |
| 2206 default: | 2206 default: |
| 2207 return InputType::kNone; | 2207 return InputType::kNone; |
| 2208 } | 2208 } |
| 2209 } | 2209 } |
| 2210 | 2210 |
| 2211 } // namespace blink | 2211 } // namespace blink |
| OLD | NEW |