webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Member Functions | List of all members
WebCore::LineWidth Class Reference

#include <LineWidth.h>

Public Member Functions

 LineWidth (RenderBlockFlow &, bool isFirstLine, IndentTextOrNot shouldIndentText)
 
bool fitsOnLine (bool ignoringTrailingSpace=false) const
 
bool fitsOnLineIncludingExtraWidth (float extra) const
 
bool fitsOnLineExcludingTrailingWhitespace (float extra) const
 
float currentWidth () const
 
float uncommittedWidth () const
 
float committedWidth () const
 
float availableWidth () const
 
float logicalLeftOffset () const
 
bool hasCommitted () const
 
void updateAvailableWidth (LayoutUnit minimumHeight=0)
 
void shrinkAvailableWidthForNewFloatIfNeeded (const FloatingObject &)
 
void addUncommittedWidth (float delta)
 
void commit ()
 
void applyOverhang (RenderRubyRun *, RenderObject *startRenderer, RenderObject *endRenderer)
 
void fitBelowFloats (bool isFirstLine=false)
 
void setTrailingWhitespaceWidth (float collapsedWhitespace, float borderPaddingMargin=0)
 
IndentTextOrNot shouldIndentText () const
 
bool isFirstLine () const
 
 LineWidth (RenderBlockFlow &, bool isFirstLine, IndentTextOrNot shouldIndentText)
 
bool fitsOnLine (bool ignoringTrailingSpace=false) const
 
bool fitsOnLineIncludingExtraWidth (float extra) const
 
bool fitsOnLineExcludingTrailingWhitespace (float extra) const
 
float currentWidth () const
 
float uncommittedWidth () const
 
float committedWidth () const
 
float availableWidth () const
 
float logicalLeftOffset () const
 
bool hasCommitted () const
 
void updateAvailableWidth (LayoutUnit minimumHeight=0)
 
void shrinkAvailableWidthForNewFloatIfNeeded (const FloatingObject &)
 
void addUncommittedWidth (float delta)
 
void commit ()
 
void applyOverhang (RenderRubyRun *, RenderObject *startRenderer, RenderObject *endRenderer)
 
void fitBelowFloats (bool isFirstLine=false)
 
void setTrailingWhitespaceWidth (float collapsedWhitespace, float borderPaddingMargin=0)
 
IndentTextOrNot shouldIndentText () const
 
bool isFirstLine () const
 

Constructor & Destructor Documentation

◆ LineWidth() [1/2]

WebCore::LineWidth::LineWidth ( RenderBlockFlow block,
bool  isFirstLine,
IndentTextOrNot  shouldIndentText 
)

◆ LineWidth() [2/2]

WebCore::LineWidth::LineWidth ( RenderBlockFlow ,
bool  isFirstLine,
IndentTextOrNot  shouldIndentText 
)

Member Function Documentation

◆ addUncommittedWidth() [1/2]

void WebCore::LineWidth::addUncommittedWidth ( float  delta)
inline

◆ addUncommittedWidth() [2/2]

void WebCore::LineWidth::addUncommittedWidth ( float  delta)
inline

◆ applyOverhang() [1/2]

void WebCore::LineWidth::applyOverhang ( RenderRubyRun ,
RenderObject startRenderer,
RenderObject endRenderer 
)

◆ applyOverhang() [2/2]

void WebCore::LineWidth::applyOverhang ( RenderRubyRun rubyRun,
RenderObject startRenderer,
RenderObject endRenderer 
)

◆ availableWidth() [1/2]

float WebCore::LineWidth::availableWidth ( ) const
inline

◆ availableWidth() [2/2]

float WebCore::LineWidth::availableWidth ( ) const
inline

◆ commit() [1/2]

void WebCore::LineWidth::commit ( )

◆ commit() [2/2]

void WebCore::LineWidth::commit ( )

◆ committedWidth() [1/2]

float WebCore::LineWidth::committedWidth ( ) const
inline

◆ committedWidth() [2/2]

float WebCore::LineWidth::committedWidth ( ) const
inline

◆ currentWidth() [1/2]

float WebCore::LineWidth::currentWidth ( ) const
inline

◆ currentWidth() [2/2]

float WebCore::LineWidth::currentWidth ( ) const
inline

◆ fitBelowFloats() [1/2]

void WebCore::LineWidth::fitBelowFloats ( bool  isFirstLine = false)

◆ fitBelowFloats() [2/2]

void WebCore::LineWidth::fitBelowFloats ( bool  isFirstLine = false)

◆ fitsOnLine() [1/2]

bool WebCore::LineWidth::fitsOnLine ( bool  ignoringTrailingSpace = false) const

◆ fitsOnLine() [2/2]

bool WebCore::LineWidth::fitsOnLine ( bool  ignoringTrailingSpace = false) const

◆ fitsOnLineExcludingTrailingWhitespace() [1/2]

bool WebCore::LineWidth::fitsOnLineExcludingTrailingWhitespace ( float  extra) const

◆ fitsOnLineExcludingTrailingWhitespace() [2/2]

bool WebCore::LineWidth::fitsOnLineExcludingTrailingWhitespace ( float  extra) const

◆ fitsOnLineIncludingExtraWidth() [1/2]

bool WebCore::LineWidth::fitsOnLineIncludingExtraWidth ( float  extra) const

◆ fitsOnLineIncludingExtraWidth() [2/2]

bool WebCore::LineWidth::fitsOnLineIncludingExtraWidth ( float  extra) const

◆ hasCommitted() [1/2]

bool WebCore::LineWidth::hasCommitted ( ) const
inline

◆ hasCommitted() [2/2]

bool WebCore::LineWidth::hasCommitted ( ) const
inline

◆ isFirstLine() [1/2]

bool WebCore::LineWidth::isFirstLine ( ) const
inline

◆ isFirstLine() [2/2]

bool WebCore::LineWidth::isFirstLine ( ) const
inline

◆ logicalLeftOffset() [1/2]

float WebCore::LineWidth::logicalLeftOffset ( ) const
inline

◆ logicalLeftOffset() [2/2]

float WebCore::LineWidth::logicalLeftOffset ( ) const
inline

◆ setTrailingWhitespaceWidth() [1/2]

void WebCore::LineWidth::setTrailingWhitespaceWidth ( float  collapsedWhitespace,
float  borderPaddingMargin = 0 
)

◆ setTrailingWhitespaceWidth() [2/2]

void WebCore::LineWidth::setTrailingWhitespaceWidth ( float  collapsedWhitespace,
float  borderPaddingMargin = 0 
)

◆ shouldIndentText() [1/2]

IndentTextOrNot WebCore::LineWidth::shouldIndentText ( ) const
inline

◆ shouldIndentText() [2/2]

IndentTextOrNot WebCore::LineWidth::shouldIndentText ( ) const
inline

◆ shrinkAvailableWidthForNewFloatIfNeeded() [1/2]

void WebCore::LineWidth::shrinkAvailableWidthForNewFloatIfNeeded ( const FloatingObject )

◆ shrinkAvailableWidthForNewFloatIfNeeded() [2/2]

void WebCore::LineWidth::shrinkAvailableWidthForNewFloatIfNeeded ( const FloatingObject newFloat)

◆ uncommittedWidth() [1/2]

float WebCore::LineWidth::uncommittedWidth ( ) const
inline

◆ uncommittedWidth() [2/2]

float WebCore::LineWidth::uncommittedWidth ( ) const
inline

◆ updateAvailableWidth() [1/2]

void WebCore::LineWidth::updateAvailableWidth ( LayoutUnit  minimumHeight = 0)

◆ updateAvailableWidth() [2/2]

void WebCore::LineWidth::updateAvailableWidth ( LayoutUnit  minimumHeight = 0)

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