| Code-Review | +1 |
float GetCaretX() const { return location_.x + width_; }AscentY() and DescentY() are very similar, but they do not have the "Get" prefix. Omit that for consistency?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
ptFoot.x = ptHead.x;Also mention reducing GetCaretX() calls by reusing the results in the CL description.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
AscentY() and DescentY() are very similar, but they do not have the "Get" prefix. Omit that for consistency?
Done
Also mention reducing GetCaretX() calls by reusing the results in the CL description.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
float CaretX() const { return location_.x + width_; }One more nit: How about putting this above AscentY(), since most people think of "x/y" coordinates. As such, the x-coordinate getters should come before the y-coordinate getters.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
One more nit: How about putting this above AscentY(), since most people think of "x/y" coordinates. As such, the x-coordinate getters should come before the y-coordinate getters.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Refactor CPVT_Word caret calculations
Add `CaretX()` to simplify caret coordinate calculations. Reduce
`CaretX()` calls by reusing the results.
Bug: 40115028
Change-Id: I982471e262ac57401dcfb79aca77ff0ec65d92d6
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/150530
Commit-Queue: Seung Hyun Jin <seungh...@google.com>
Reviewed-by: Lei Zhang <the...@chromium.org>
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |