⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 175395 in webkit


Ignore:
Timestamp:
Oct 30, 2014, 4:26:17 PM (12 years ago)
Author:
Simon Fraser
Message:

Short-circuit repaints with empty rects
https://bugs.webkit.org/show_bug.cgi?id=138234

Reviewed by Zalan Bujtas.

Repaints with an empty rectangle are common enough that it's worth
short-circuiting them.

  • rendering/RenderObject.cpp:

(WebCore::RenderObject::repaintUsingContainer):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r175391 r175395  
     12014-10-30  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Short-circuit repaints with empty rects
     4        https://bugs.webkit.org/show_bug.cgi?id=138234
     5
     6        Reviewed by Zalan Bujtas.
     7       
     8        Repaints with an empty rectangle are common enough that it's worth
     9        short-circuiting them.
     10
     11        * rendering/RenderObject.cpp:
     12        (WebCore::RenderObject::repaintUsingContainer):
     13
    1142014-10-30  Chris Dumez  <cdumez@apple.com>
    215
  • trunk/Source/WebCore/rendering/RenderObject.cpp

    r175252 r175395  
    12331233void RenderObject::repaintUsingContainer(const RenderLayerModelObject* repaintContainer, const LayoutRect& r, bool shouldClipToLayer) const
    12341234{
     1235    if (r.isEmpty())
     1236        return;
     1237
    12351238    if (!repaintContainer) {
    12361239        view().repaintViewRectangle(r);
Note: See TracChangeset for help on using the changeset viewer.