Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2004 Apple Computer, 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 68 return !operator==(other); | 68 return !operator==(other); |
| 69 } | 69 } |
| 70 }; | 70 }; |
| 71 | 71 |
| 72 // The print for |InlineBoxPosition| is available only for testing | 72 // The print for |InlineBoxPosition| is available only for testing |
| 73 // in "webkit_unit_tests", and implemented in | 73 // in "webkit_unit_tests", and implemented in |
| 74 // "core/editing/VisibleUnitsTest.cpp". | 74 // "core/editing/VisibleUnitsTest.cpp". |
| 75 std::ostream& operator<<(std::ostream&, const InlineBoxPosition&); | 75 std::ostream& operator<<(std::ostream&, const InlineBoxPosition&); |
| 76 | 76 |
| 77 // offset functions on Node | 77 // offset functions on Node |
| 78 CORE_EXPORT LayoutObject* associatedLayoutObjectOf(const Node&, int offsetInNode ); | |
|
tkent
2016/01/29 00:56:09
Is this |offset functions on Node|?
yosin_UTC9
2016/01/29 03:45:12
Done.
| |
| 78 CORE_EXPORT int caretMinOffset(const Node*); | 79 CORE_EXPORT int caretMinOffset(const Node*); |
| 79 CORE_EXPORT int caretMaxOffset(const Node*); | 80 CORE_EXPORT int caretMaxOffset(const Node*); |
| 80 | 81 |
| 81 // Position | 82 // Position |
| 82 // mostForward/BackwardCaretPosition are used for moving back and forth between | 83 // mostForward/BackwardCaretPosition are used for moving back and forth between |
| 83 // visually equivalent candidates. | 84 // visually equivalent candidates. |
| 84 // For example, for the text node "foo bar" where whitespace is | 85 // For example, for the text node "foo bar" where whitespace is |
| 85 // collapsible, there are two candidates that map to the VisiblePosition | 86 // collapsible, there are two candidates that map to the VisiblePosition |
| 86 // between 'b' and the space, after first space and before last space. | 87 // between 'b' and the space, after first space and before last space. |
| 87 // | 88 // |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 236 | 237 |
| 237 // Returns a hit-tested VisiblePosition for the given point in contents-space | 238 // Returns a hit-tested VisiblePosition for the given point in contents-space |
| 238 // coordinates. | 239 // coordinates. |
| 239 CORE_EXPORT VisiblePosition visiblePositionForContentsPoint(const IntPoint&, Loc alFrame*); | 240 CORE_EXPORT VisiblePosition visiblePositionForContentsPoint(const IntPoint&, Loc alFrame*); |
| 240 | 241 |
| 241 CORE_EXPORT bool rendersInDifferentPosition(const Position&, const Position&); | 242 CORE_EXPORT bool rendersInDifferentPosition(const Position&, const Position&); |
| 242 | 243 |
| 243 } // namespace blink | 244 } // namespace blink |
| 244 | 245 |
| 245 #endif // VisibleUnits_h | 246 #endif // VisibleUnits_h |
| OLD | NEW |