Bug 1309804 - Part 3. Fix trailer space. draft
authorcku <cku@mozilla.com>
Thu, 13 Oct 2016 15:40:47 +0800
changeset 424697 9eb4f44b10cef85c59c8ff6c6b60b4ba7b8c68aa
parent 424696 45007fa0490cf3354a28e6e0f2726e29d9cc0325
child 424803 713f8fcbead4808867e89f5e30bb15a31341c7b4
child 424806 42ddb72b0571fa079fc9a2f4ecd04856892d12bd
push id32229
push userbmo:cku@mozilla.com
push dateThu, 13 Oct 2016 07:46:40 +0000
bugs1309804
milestone52.0a1
Bug 1309804 - Part 3. Fix trailer space. MozReview-Commit-ID: FNR08ApEG10
layout/base/nsDisplayListInvalidation.h
--- a/layout/base/nsDisplayListInvalidation.h
+++ b/layout/base/nsDisplayListInvalidation.h
@@ -34,26 +34,26 @@ struct Color;
  * It is used to retain information about display items so they
  * can be compared against new display items in the next paint.
  */
 class nsDisplayItemGeometry
 {
 public:
   nsDisplayItemGeometry(nsDisplayItem* aItem, nsDisplayListBuilder* aBuilder);
   virtual ~nsDisplayItemGeometry();
-  
+
   /**
    * Compute the area required to be invalidated if this
    * display item is removed.
    */
   const nsRect& ComputeInvalidationRegion() { return mBounds; }
-  
+
   /**
    * Shifts all retained areas of the nsDisplayItemGeometry by the given offset.
-   * 
+   *
    * This is used to compensate for scrolling, since the destination buffer
    * can scroll without requiring a full repaint.
    *
    * @param aOffset Offset to shift by.
    */
   virtual void MoveBy(const nsPoint& aOffset)
   {
     mBounds.MoveBy(aOffset);
@@ -79,19 +79,19 @@ public:
   virtual void MoveBy(const nsPoint& aOffset) override;
 
   nsRect mBorderRect;
 };
 
 bool ShouldSyncDecodeImages(nsDisplayListBuilder* aBuilder);
 
 /**
- * nsImageGeometryMixin is a mixin for geometry items that draw images. Geometry
- * items that include this mixin can track drawing results and use that
- * information to inform invalidation decisions.
+ * nsImageGeometryMixin is a mixin for geometry items that draw images.
+ * Geometry items that include this mixin can track drawing results and use
+ * that information to inform invalidation decisions.
  *
  * This mixin uses CRTP; its template parameter should be the type of the class
  * that is inheriting from it. See nsDisplayItemGenericImageGeometry for an
  * example.
  */
 template <typename T>
 class nsImageGeometryMixin
 {
@@ -213,17 +213,17 @@ public:
   nsRect mPositioningArea;
   bool mWindowIsActive;
 };
 
 class nsDisplayBoxShadowInnerGeometry : public nsDisplayItemGeometry
 {
 public:
   nsDisplayBoxShadowInnerGeometry(nsDisplayItem* aItem, nsDisplayListBuilder* aBuilder);
-  
+
   virtual void MoveBy(const nsPoint& aOffset) override;
 
   nsRect mPaddingRect;
 };
 
 class nsDisplayBoxShadowOuterGeometry : public nsDisplayItemGenericGeometry
 {
 public: