| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2006, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2004, 2006, 2008 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 22 matching lines...) Expand all Loading... |
| 33 #include "wtf/Assertions.h" | 33 #include "wtf/Assertions.h" |
| 34 #include "wtf/PassRefPtr.h" | 34 #include "wtf/PassRefPtr.h" |
| 35 #include "wtf/RefPtr.h" | 35 #include "wtf/RefPtr.h" |
| 36 | 36 |
| 37 namespace WebCore { | 37 namespace WebCore { |
| 38 | 38 |
| 39 class CSSComputedStyleDeclaration; | 39 class CSSComputedStyleDeclaration; |
| 40 class Element; | 40 class Element; |
| 41 class InlineBox; | 41 class InlineBox; |
| 42 class Node; | 42 class Node; |
| 43 class Range; | |
| 44 class RenderObject; | 43 class RenderObject; |
| 45 class Text; | 44 class Text; |
| 46 | 45 |
| 47 enum PositionMoveType { | 46 enum PositionMoveType { |
| 48 CodePoint, // Move by a single code point. | 47 CodePoint, // Move by a single code point. |
| 49 Character, // Move to the next Unicode character break. | 48 Character, // Move to the next Unicode character break. |
| 50 BackwardDeletion // Subject to platform conventions. | 49 BackwardDeletion // Subject to platform conventions. |
| 51 }; | 50 }; |
| 52 | 51 |
| 53 class Position { | 52 class Position { |
| (...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 340 | 339 |
| 341 } // namespace WebCore | 340 } // namespace WebCore |
| 342 | 341 |
| 343 #ifndef NDEBUG | 342 #ifndef NDEBUG |
| 344 // Outside the WebCore namespace for ease of invocation from gdb. | 343 // Outside the WebCore namespace for ease of invocation from gdb. |
| 345 void showTree(const WebCore::Position&); | 344 void showTree(const WebCore::Position&); |
| 346 void showTree(const WebCore::Position*); | 345 void showTree(const WebCore::Position*); |
| 347 #endif | 346 #endif |
| 348 | 347 |
| 349 #endif // Position_h | 348 #endif // Position_h |
| OLD | NEW |