Eliminate RenderedPosition::UncachedInlineBox with Optional
RenderedPosition caches two |InlineBox*|, and uses 1 as the magic value indicating the uncached value, which is a hacky approach. This patch changes them to Optional<InlineBox*> to make the caching not hacky. Bug: 771398 Change-Id: If8bef20755fcc75b04093de6c2211138d336600e Reviewed-on: https://chromium-review.googlesource.com/702924 Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org> Commit-Queue: Emil A Eklund <eae@chromium.org> Reviewed-by:Emil A Eklund <eae@chromium.org> Cr-Commit-Position: refs/heads/master@{#506861}
Showing
Please register or sign in to comment