Title: [141159] trunk/Source/WebCore
- Revision
- 141159
- Author
- voll...@chromium.org
- Date
- 2013-01-29 13:22:27 -0800 (Tue, 29 Jan 2013)
Log Message
Add RenderLayer::enclosingStackingContainer
https://bugs.webkit.org/show_bug.cgi?id=108211
Reviewed by Simon Fraser.
No new tests, no change in functionality.
* rendering/RenderLayer.h:
(WebCore::RenderLayer::enclosingStackingContainer):
This function is similar to RenderLayer::stackingContainer, but may return the
layer itself if it's a stacking container.
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (141158 => 141159)
--- trunk/Source/WebCore/ChangeLog 2013-01-29 21:19:31 UTC (rev 141158)
+++ trunk/Source/WebCore/ChangeLog 2013-01-29 21:22:27 UTC (rev 141159)
@@ -1,3 +1,17 @@
+2013-01-29 Ian Vollick <voll...@chromium.org>
+
+ Add RenderLayer::enclosingStackingContainer
+ https://bugs.webkit.org/show_bug.cgi?id=108211
+
+ Reviewed by Simon Fraser.
+
+ No new tests, no change in functionality.
+
+ * rendering/RenderLayer.h:
+ (WebCore::RenderLayer::enclosingStackingContainer):
+ This function is similar to RenderLayer::stackingContainer, but may return the
+ layer itself if it's a stacking container.
+
2013-01-29 Patrick Gansterer <par...@webkit.org>
Rename TextBreakIteratorWinCE to TextBreakIteratorWchar
Modified: trunk/Source/WebCore/rendering/RenderLayer.h (141158 => 141159)
--- trunk/Source/WebCore/rendering/RenderLayer.h 2013-01-29 21:19:31 UTC (rev 141158)
+++ trunk/Source/WebCore/rendering/RenderLayer.h 2013-01-29 21:22:27 UTC (rev 141159)
@@ -437,9 +437,14 @@
// necessarily be stacking contexts.
bool isStackingContainer() const { return isStackingContext() || needsCompositedScrolling(); }
- // Gets the enclosing stacking container for this layer.
+ // Gets the enclosing stacking container for this layer, excluding this
+ // layer itself.
RenderLayer* stackingContainer() const;
+ // Gets the enclosing stacking container for this layer, possibly the layer
+ // itself, if it is a stacking container.
+ RenderLayer* enclosingStackingContainer() { return isStackingContainer() ? this : stackingContainer(); }
+
void dirtyZOrderLists();
void dirtyStackingContainerZOrderLists();
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes