+2013-08-15 Anders Carlsson <andersca@apple.com>
+
+ <https://webkit.org/b/119854> REGRESSION (r153379): Serious drawing issues with WebViews
+ <rdar://problem/14698870>
+
+ Reviewed by Simon Fraser.
+
+ Don't set aside subviews if they have already been set aside.
+
+ * WebView/WebHTMLView.mm:
+ (-[WebHTMLView _recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:topView:shouldChangeFontReferenceColor:]):
+
2013-08-15 Eric Carlson <eric.carlson@apple.com>
[Mac] Remove "legacy" media UI
// Don't let AppKit even draw subviews. We take care of that.
- (void)_recursive:(BOOL)recurseX displayRectIgnoringOpacity:(NSRect)displayRect inGraphicsContext:(NSGraphicsContext *)graphicsContext CGContext:(CGContextRef)ctx topView:(BOOL)isTopView shouldChangeFontReferenceColor:(BOOL)shouldChangeFontReferenceColor
{
- [self _setAsideSubviews];
+ BOOL didSetAsideSubviews = NO;
+
+ if (!_private->subviewsSetAside) {
+ [self _setAsideSubviews];
+ didSetAsideSubviews = YES;
+ }
+
[super _recursive:recurseX displayRectIgnoringOpacity:displayRect inGraphicsContext:graphicsContext CGContext:ctx topView:isTopView shouldChangeFontReferenceColor:shouldChangeFontReferenceColor];
- [self _restoreSubviews];
+
+ if (didSetAsideSubviews)
+ [self _restoreSubviews];
}
- (BOOL)_insideAnotherHTMLView