Lines Matching defs:layout
70 inline LayoutUnit computeFlowHeight(const RenderBlockFlow& flow, const Layout& layout)
72 return lineHeightFromFlow(flow) * layout.lineCount();
75 inline LayoutUnit computeFlowFirstLineBaseline(const RenderBlockFlow& flow, const Layout& layout)
77 ASSERT_UNUSED(layout, layout.runCount());
81 inline LayoutUnit computeFlowLastLineBaseline(const RenderBlockFlow& flow, const Layout& layout)
83 ASSERT(layout.runCount());
84 return flow.borderAndPaddingBefore() + lineHeightFromFlow(flow) * (layout.runCount() - 1) + baselineFromFlow(flow);
87 inline unsigned findTextCaretMinimumOffset(const RenderText&, const Layout& layout)
89 if (!layout.runCount())
91 return layout.runAt(0).start;
94 inline unsigned findTextCaretMaximumOffset(const RenderText& renderer, const Layout& layout)
96 if (!layout.runCount())
98 auto& last = layout.runAt(layout.runCount() - 1);
102 inline bool containsTextCaretOffset(const RenderText&, const Layout& layout, unsigned offset)
104 for (unsigned i = 0; i < layout.runCount(); ++i) {
105 auto& run = layout.runAt(i);
114 inline bool isTextRendered(const RenderText&, const Layout& layout)
116 for (unsigned i = 0; i < layout.runCount(); ++i) {
117 auto& run = layout.runAt(i);