Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Code cleanup: rename FloatIntervalSearchAdapter and remove unnecessar…
…y inlines https://bugs.webkit.org/show_bug.cgi?id=120378 Reviewed by Darin Adler. Rename FloatIntervalSearchAdapter to ComputeFloatOffsetAdapter. The naming of this adapter has caused much confusion in reading the code, as it wasn't apparent that calls to it were actually doing anything other than searching the interval tree. The new name is a much better description of what it actually does. Also, rename m_lowValue and m_highValue member variables to make it easier to read the code that uses them. Removed the inlines based on a change by eseidel in Blink. No new tests, no behavior change. * rendering/RenderBlock.cpp: (WebCore::::updateOffsetIfNeeded): Update for renames. (WebCore::::collectIfNeeded): Ditto. (WebCore::::getHeightRemaining): Ditto. (WebCore::RenderBlock::logicalLeftFloatOffsetForLine): Ditto. (WebCore::RenderBlock::logicalRightFloatOffsetForLine): Ditto. * rendering/RenderBlock.h: (WebCore::RenderBlock::FloatingObject::x): Remove unnecessary inline. (WebCore::RenderBlock::FloatingObject::maxX): Ditto. (WebCore::RenderBlock::FloatingObject::y): Ditto. (WebCore::RenderBlock::FloatingObject::maxY): Ditto. (WebCore::RenderBlock::FloatingObject::width): Ditto. (WebCore::RenderBlock::FloatingObject::height): Ditto. (WebCore::RenderBlock::ComputeFloatOffsetAdapter::ComputeFloatOffsetAdapter): Rename. (WebCore::RenderBlock::ComputeFloatOffsetAdapter::lowValue): Rename m_lowValue. (WebCore::RenderBlock::ComputeFloatOffsetAdapter::highValue): Rename m_highValue. Canonical link: https://commits.webkit.org/138398@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@154758 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
3 changed files
with
60 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters