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

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-28T14:03:04 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
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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698