Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Move RenderLayer::size() calls to a common function
https://bugs.webkit.org/show_bug.cgi?id=76972 Reviewed by Simon Fraser. Refactoring only. This change introduces RenderBox::cachedSizeForOverflowClip() that handles all the cached size requests that currently goes through the RenderLayer. This indirection helps to decouple the need for a RenderLayer so that we can lazily allocate RenderLayers as part of bug 75568. * rendering/RenderBox.cpp: (WebCore::RenderBox::cachedSizeForOverflowClip): Added this function to handle the calls to RenderLayer's size(). Unfortunately a lot of the code calls RenderLayer::size() directly so I could not make it private. * rendering/LayoutState.cpp: (WebCore::LayoutState::LayoutState): * rendering/RenderBox.cpp: (WebCore::RenderBox::computeRectForRepaint): * rendering/RenderBox.h: (RenderBox): * rendering/RenderInline.cpp: (WebCore::RenderInline::clippedOverflowRectForRepaint): (WebCore::RenderInline::computeRectForRepaint): * rendering/RenderObject.cpp: (WebCore::RenderObject::computeRectForRepaint): Fixed the call sites above. Canonical link: https://commits.webkit.org/96916@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@109157 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Julien Chaffraix
committed
Feb 28, 2012
1 parent
4994e27
commit a1494aa20fad2e06c565c49cd9f15c9c3c3f5f84
Showing
6 changed files
with
47 additions
and
9 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
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