Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(565)

Side by Side Diff: Source/core/paint/DeprecatedPaintLayer.h

Issue 1304503002: Fix sub-pixel handling of transparency boxes in DPL (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved.
3 * Copyright (C) 2013 Intel Corporation. All rights reserved. 3 * Copyright (C) 2013 Intel Corporation. All rights reserved.
4 * 4 *
5 * Portions are Copyright (C) 1998 Netscape Communications Corporation. 5 * Portions are Copyright (C) 1998 Netscape Communications Corporation.
6 * 6 *
7 * Other contributors: 7 * Other contributors:
8 * Robert O'Callahan <roc+@cs.cmu.edu> 8 * Robert O'Callahan <roc+@cs.cmu.edu>
9 * David Baron <dbaron@fas.harvard.edu> 9 * David Baron <dbaron@fas.harvard.edu>
10 * Christian Biesinger <cbiesinger@web.de> 10 * Christian Biesinger <cbiesinger@web.de>
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 508
509 void didUpdateNeedsCompositedScrolling(); 509 void didUpdateNeedsCompositedScrolling();
510 510
511 bool hasSelfPaintingLayerDescendant() const 511 bool hasSelfPaintingLayerDescendant() const
512 { 512 {
513 if (m_hasSelfPaintingLayerDescendantDirty) 513 if (m_hasSelfPaintingLayerDescendantDirty)
514 updateHasSelfPaintingLayerDescendant(); 514 updateHasSelfPaintingLayerDescendant();
515 ASSERT(!m_hasSelfPaintingLayerDescendantDirty); 515 ASSERT(!m_hasSelfPaintingLayerDescendantDirty);
516 return m_hasSelfPaintingLayerDescendant; 516 return m_hasSelfPaintingLayerDescendant;
517 } 517 }
518 LayoutRect paintingExtent(const DeprecatedPaintLayer* rootLayer, const Layou tRect& paintDirtyRect, const LayoutSize& subPixelAccumulation, GlobalPaintFlags) ; 518 LayoutRect paintingExtent(const DeprecatedPaintLayer* rootLayer, const Layou tRect& paintDirtyRect, GlobalPaintFlags);
519 void appendSingleFragmentIgnoringPagination(DeprecatedPaintLayerFragments&, const DeprecatedPaintLayer* rootLayer, const LayoutRect& dirtyRect, ClipRectsCac heSlot, OverlayScrollbarSizeRelevancy = IgnoreOverlayScrollbarSize, ShouldRespec tOverflowClip = RespectOverflowClip, const LayoutPoint* offsetFromRoot = 0, cons t LayoutSize& subPixelAccumulation = LayoutSize()); 519 void appendSingleFragmentIgnoringPagination(DeprecatedPaintLayerFragments&, const DeprecatedPaintLayer* rootLayer, const LayoutRect& dirtyRect, ClipRectsCac heSlot, OverlayScrollbarSizeRelevancy = IgnoreOverlayScrollbarSize, ShouldRespec tOverflowClip = RespectOverflowClip, const LayoutPoint* offsetFromRoot = 0, cons t LayoutSize& subPixelAccumulation = LayoutSize());
520 void collectFragments(DeprecatedPaintLayerFragments&, const DeprecatedPaintL ayer* rootLayer, const LayoutRect& dirtyRect, 520 void collectFragments(DeprecatedPaintLayerFragments&, const DeprecatedPaintL ayer* rootLayer, const LayoutRect& dirtyRect,
521 ClipRectsCacheSlot, OverlayScrollbarSizeRelevancy inOverlayScrollbarSize Relevancy = IgnoreOverlayScrollbarSize, 521 ClipRectsCacheSlot, OverlayScrollbarSizeRelevancy inOverlayScrollbarSize Relevancy = IgnoreOverlayScrollbarSize,
522 ShouldRespectOverflowClip = RespectOverflowClip, const LayoutPoint* offs etFromRoot = 0, 522 ShouldRespectOverflowClip = RespectOverflowClip, const LayoutPoint* offs etFromRoot = 0,
523 const LayoutSize& subPixelAccumulation = LayoutSize(), const LayoutRect* layerBoundingBox = 0); 523 const LayoutSize& subPixelAccumulation = LayoutSize(), const LayoutRect* layerBoundingBox = 0);
524 524
525 LayoutPoint layoutBoxLocation() const { return layoutObject()->isBox() ? toL ayoutBox(layoutObject())->location() : LayoutPoint(); } 525 LayoutPoint layoutBoxLocation() const { return layoutObject()->isBox() ? toL ayoutBox(layoutObject())->location() : LayoutPoint(); }
526 526
527 enum TransparencyClipBoxBehavior { 527 enum TransparencyClipBoxBehavior {
528 PaintingTransparencyClipBox, 528 PaintingTransparencyClipBox,
529 HitTestingTransparencyClipBox 529 HitTestingTransparencyClipBox
530 }; 530 };
531 531
532 enum TransparencyClipBoxMode { 532 enum TransparencyClipBoxMode {
533 DescendantsOfTransparencyClipBox, 533 DescendantsOfTransparencyClipBox,
534 RootOfTransparencyClipBox 534 RootOfTransparencyClipBox
535 }; 535 };
536 536
537 static LayoutRect transparencyClipBox(const DeprecatedPaintLayer*, const Dep recatedPaintLayer* rootLayer, TransparencyClipBoxBehavior transparencyBehavior, 537 static LayoutRect transparencyClipBox(const DeprecatedPaintLayer*, const Dep recatedPaintLayer* rootLayer, TransparencyClipBoxBehavior transparencyBehavior,
538 TransparencyClipBoxMode transparencyMode, const LayoutSize& subPixelAccu mulation, GlobalPaintFlags = GlobalPaintNormalPhase); 538 TransparencyClipBoxMode transparencyMode, GlobalPaintFlags = GlobalPaint NormalPhase);
539 539
540 private: 540 private:
541 // Bounding box in the coordinates of this layer. 541 // Bounding box in the coordinates of this layer.
542 LayoutRect logicalBoundingBox() const; 542 LayoutRect logicalBoundingBox() const;
543 543
544 bool hasOverflowControls() const; 544 bool hasOverflowControls() const;
545 545
546 void dirtyAncestorChainHasSelfPaintingLayerDescendantStatus(); 546 void dirtyAncestorChainHasSelfPaintingLayerDescendantStatus();
547 547
548 // Returns true if the position changed. 548 // Returns true if the position changed.
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
719 719
720 } // namespace blink 720 } // namespace blink
721 721
722 #ifndef NDEBUG 722 #ifndef NDEBUG
723 // Outside the WebCore namespace for ease of invocation from gdb. 723 // Outside the WebCore namespace for ease of invocation from gdb.
724 void showLayerTree(const blink::DeprecatedPaintLayer*); 724 void showLayerTree(const blink::DeprecatedPaintLayer*);
725 void showLayerTree(const blink::LayoutObject*); 725 void showLayerTree(const blink::LayoutObject*);
726 #endif 726 #endif
727 727
728 #endif // Layer_h 728 #endif // Layer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698