コード例 #1
0
void collectFlowOverflow(RenderBlockFlow& flow, const Layout& layout)
{
    auto resolver = lineResolver(flow, layout);
    for (auto it = resolver.begin(), end = resolver.end(); it != end; ++it) {
        auto rect = *it;
        flow.addLayoutOverflow(rect);
        flow.addVisualOverflow(rect);
    }
}
コード例 #2
0
void collectFlowOverflow(RenderBlockFlow& flow, const Layout& layout)
{
    float strokeOverflow = std::ceil(flow.style().textStrokeWidth());
    for (FloatRect lineRect : lineResolver(flow, layout)) {
        LayoutRect inflatedLineRect(lineRect);
        inflatedLineRect.inflate(strokeOverflow);
        flow.addLayoutOverflow(inflatedLineRect);
        flow.addVisualOverflow(inflatedLineRect);
    }
}
コード例 #3
0
void collectFlowOverflow(RenderBlockFlow& flow, const Layout& layout)
{
    auto resolver = lineResolver(flow, layout);
    float strokeOverflow = ceilf(flow.style().textStrokeWidth());
    for (auto it = resolver.begin(), end = resolver.end(); it != end; ++it) {
        auto rect = LayoutRect(*it);
        rect.inflate(strokeOverflow);
        flow.addLayoutOverflow(rect);
        flow.addVisualOverflow(rect);
    }
}