Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(123)

Side by Side Diff: third_party/WebKit/Source/core/editing/VisibleUnits.h

Issue 1636373002: Make associatedLayoutObjectOf() to handle ::first-letter pseudo-element correctly (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-01-29T15:21:03 Get rid of unused variable Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/VisibleUnits.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 { 67 {
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 CORE_EXPORT LayoutObject* associatedLayoutObjectOf(const Node&, int offsetInNode );
78
77 // offset functions on Node 79 // offset functions on Node
78 CORE_EXPORT int caretMinOffset(const Node*); 80 CORE_EXPORT int caretMinOffset(const Node*);
79 CORE_EXPORT int caretMaxOffset(const Node*); 81 CORE_EXPORT int caretMaxOffset(const Node*);
80 82
81 // Position 83 // Position
82 // mostForward/BackwardCaretPosition are used for moving back and forth between 84 // mostForward/BackwardCaretPosition are used for moving back and forth between
83 // visually equivalent candidates. 85 // visually equivalent candidates.
84 // For example, for the text node "foo bar" where whitespace is 86 // For example, for the text node "foo bar" where whitespace is
85 // collapsible, there are two candidates that map to the VisiblePosition 87 // collapsible, there are two candidates that map to the VisiblePosition
86 // between 'b' and the space, after first space and before last space. 88 // between 'b' and the space, after first space and before last space.
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 238
237 // Returns a hit-tested VisiblePosition for the given point in contents-space 239 // Returns a hit-tested VisiblePosition for the given point in contents-space
238 // coordinates. 240 // coordinates.
239 CORE_EXPORT VisiblePosition visiblePositionForContentsPoint(const IntPoint&, Loc alFrame*); 241 CORE_EXPORT VisiblePosition visiblePositionForContentsPoint(const IntPoint&, Loc alFrame*);
240 242
241 CORE_EXPORT bool rendersInDifferentPosition(const Position&, const Position&); 243 CORE_EXPORT bool rendersInDifferentPosition(const Position&, const Position&);
242 244
243 } // namespace blink 245 } // namespace blink
244 246
245 #endif // VisibleUnits_h 247 #endif // VisibleUnits_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/VisibleUnits.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698