Changeset 157736 in webkit


Ignore:
Timestamp:
Oct 21, 2013, 2:22:26 PM (12 years ago)
Author:
Simon Fraser
Message:

Use pink layer borders for compositing layers with a contents layer
https://bugs.webkit.org/show_bug.cgi?id=123118

Reviewed by Dean Jackson.

With the existing layer border colors, it's not possible to distinguish an empty
layer from one with solid color, image or video contents. So use a pink color
for those. This makes it easier to diagnose bugs like 122784.

  • platform/graphics/GraphicsLayer.cpp:

(WebCore::GraphicsLayer::getDebugBorderInfo):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r157735 r157736  
     12013-10-21  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Use pink layer borders for compositing layers with a contents layer
     4        https://bugs.webkit.org/show_bug.cgi?id=123118
     5
     6        Reviewed by Dean Jackson.
     7
     8        With the existing layer border colors, it's not possible to distinguish an empty
     9        layer from one with solid color, image or video contents. So use a pink color
     10        for those. This makes it easier to diagnose bugs like 122784.
     11
     12        * platform/graphics/GraphicsLayer.cpp:
     13        (WebCore::GraphicsLayer::getDebugBorderInfo):
     14
    1152013-10-21  Jer Noble  <jer.noble@apple.com>
    216
  • trunk/Source/WebCore/platform/graphics/GraphicsLayer.cpp

    r157653 r157736  
    368368        return;
    369369    }
     370
     371    if (hasContentsLayer()) {
     372        color = Color(255, 150, 255, 200); // non-painting layer with contents: pink
     373        width = 2;
     374        return;
     375    }
    370376   
    371377    if (masksToBounds()) {
     
    374380        return;
    375381    }
    376        
     382
    377383    color = Color(255, 255, 0, 192); // container: yellow
    378384    width = 2;
Note: See TracChangeset for help on using the changeset viewer.