Changeset 147600 in webkit


Ignore:
Timestamp:
Apr 3, 2013 6:02:57 PM (11 years ago)
Author:
shawnsingh@chromium.org
Message:

Add comment to clarify isStackingContext() in RenderLayer.h
https://bugs.webkit.org/show_bug.cgi?id=113909

Reviewed by Simon Fraser.

It was not obvious how the implementation of isStackingContext()
was correct, a comment is appropriate here for anyone who reads
this code in the future.

Just a change in comment, no test needed.

  • rendering/RenderLayer.h:
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r147597 r147600  
     12013-04-03  Shawn Singh  <shawnsingh@chromium.org>
     2
     3        Add comment to clarify isStackingContext() in RenderLayer.h
     4        https://bugs.webkit.org/show_bug.cgi?id=113909
     5
     6        Reviewed by Simon Fraser.
     7
     8        It was not obvious how the implementation of isStackingContext()
     9        was correct, a comment is appropriate here for anyone who reads
     10        this code in the future.
     11
     12        Just a change in comment, no test needed.
     13
     14        * rendering/RenderLayer.h:
     15
    1162013-04-03  Hans Muller  <hmuller@adobe.com>
    217
  • trunk/Source/WebCore/rendering/RenderLayer.h

    r147502 r147600  
    865865    void updateNormalFlowList();
    866866
     867    // Non-auto z-index always implies stacking context here, because StyleResolver::adjustRenderStyle already adjusts z-index
     868    // based on positioning and other criteria.
    867869    bool isStackingContext(const RenderStyle* style) const { return !style->hasAutoZIndex() || isRootLayer(); }
    868870
Note: See TracChangeset for help on using the changeset viewer.