webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Public Member Functions | List of all members
WebCore::BreakingContext Class Reference

#include <BreakingContext.h>

Public Member Functions

 BreakingContext (LineBreaker &lineBreaker, InlineBidiResolver &resolver, LineInfo &inLineInfo, LineLayoutState &layoutState, LineWidth &lineWidth, RenderTextInfo &inRenderTextInfo, FloatingObject *inLastFloatFromPreviousLine, bool appliedStartWidth, RenderBlockFlow &block)
 
RenderObjectcurrentObject ()
 
InlineIterator lineBreak ()
 
LineWidthlineWidth ()
 
bool atEnd ()
 
bool fitsOnLineOrHangsAtEnd () const
 
void initializeForCurrentObject ()
 
void increment ()
 
void handleBR (EClear &)
 
void handleOutOfFlowPositioned (Vector< RenderBox *> &positionedObjects)
 
void handleFloat ()
 
void handleEmptyInline ()
 
void handleReplaced ()
 
bool handleText (WordMeasurements &, bool &hyphenated, unsigned &consecutiveHyphenatedLines)
 
bool canBreakAtThisPosition ()
 
void commitAndUpdateLineBreakIfNeeded ()
 
InlineIterator handleEndOfLine ()
 
float computeAdditionalBetweenWordsWidth (RenderText &, TextLayout *, UChar, WordTrailingSpace &, HashSet< const Font *> &fallbackFonts, WordMeasurements &, const FontCascade &, bool isFixedPitch, unsigned lastSpace, float lastSpaceWordSpacing, float wordSpacingForWordMeasurement, unsigned offset)
 
void clearLineBreakIfFitsOnLine (bool ignoringTrailingSpace=false)
 
void commitLineBreakClear ()
 
void commitLineBreakAtCurrentWidth (RenderObject &object, unsigned offset=0, std::optional< unsigned > nextBreak=std::optional< unsigned >())
 

Constructor & Destructor Documentation

◆ BreakingContext()

WebCore::BreakingContext::BreakingContext ( LineBreaker lineBreaker,
InlineBidiResolver resolver,
LineInfo inLineInfo,
LineLayoutState layoutState,
LineWidth lineWidth,
RenderTextInfo inRenderTextInfo,
FloatingObject inLastFloatFromPreviousLine,
bool  appliedStartWidth,
RenderBlockFlow block 
)
inline

Member Function Documentation

◆ atEnd()

bool WebCore::BreakingContext::atEnd ( )
inline

◆ canBreakAtThisPosition()

bool WebCore::BreakingContext::canBreakAtThisPosition ( )
inline

◆ clearLineBreakIfFitsOnLine()

void WebCore::BreakingContext::clearLineBreakIfFitsOnLine ( bool  ignoringTrailingSpace = false)
inline

◆ commitAndUpdateLineBreakIfNeeded()

void WebCore::BreakingContext::commitAndUpdateLineBreakIfNeeded ( )
inline

◆ commitLineBreakAtCurrentWidth()

void WebCore::BreakingContext::commitLineBreakAtCurrentWidth ( RenderObject object,
unsigned  offset = 0,
std::optional< unsigned >  nextBreak = std::optional<unsigned>() 
)
inline

◆ commitLineBreakClear()

void WebCore::BreakingContext::commitLineBreakClear ( )
inline

◆ computeAdditionalBetweenWordsWidth()

float WebCore::BreakingContext::computeAdditionalBetweenWordsWidth ( RenderText renderText,
TextLayout textLayout,
UChar  currentCharacter,
WordTrailingSpace wordTrailingSpace,
HashSet< const Font *> &  fallbackFonts,
WordMeasurements wordMeasurements,
const FontCascade font,
bool  isFixedPitch,
unsigned  lastSpace,
float  lastSpaceWordSpacing,
float  wordSpacingForWordMeasurement,
unsigned  offset 
)
inline

◆ currentObject()

RenderObject* WebCore::BreakingContext::currentObject ( )
inline

◆ fitsOnLineOrHangsAtEnd()

bool WebCore::BreakingContext::fitsOnLineOrHangsAtEnd ( ) const
inline

◆ handleBR()

void WebCore::BreakingContext::handleBR ( EClear clear)
inline

◆ handleEmptyInline()

void WebCore::BreakingContext::handleEmptyInline ( )
inline

◆ handleEndOfLine()

InlineIterator WebCore::BreakingContext::handleEndOfLine ( )
inline

◆ handleFloat()

void WebCore::BreakingContext::handleFloat ( )
inline

◆ handleOutOfFlowPositioned()

void WebCore::BreakingContext::handleOutOfFlowPositioned ( Vector< RenderBox *> &  positionedObjects)
inline

◆ handleReplaced()

void WebCore::BreakingContext::handleReplaced ( )
inline

◆ handleText()

bool WebCore::BreakingContext::handleText ( WordMeasurements wordMeasurements,
bool &  hyphenated,
unsigned &  consecutiveHyphenatedLines 
)
inline

◆ increment()

void WebCore::BreakingContext::increment ( )
inline

◆ initializeForCurrentObject()

void WebCore::BreakingContext::initializeForCurrentObject ( )
inline

◆ lineBreak()

InlineIterator WebCore::BreakingContext::lineBreak ( )
inline

◆ lineWidth()

LineWidth& WebCore::BreakingContext::lineWidth ( )
inline

The documentation for this class was generated from the following file: