LCOV - code coverage report
Current view: top level - layout/tables - TableArea.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 15 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 13 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
       2             : /* vim: set ts=8 sts=2 et sw=2 tw=80: */
       3             : /* This Source Code Form is subject to the terms of the Mozilla Public
       4             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       5             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
       6             : #ifndef mozilla_TableArea_h_
       7             : #define mozilla_TableArea_h_
       8             : 
       9             : #include "nsRect.h"
      10             : 
      11             : namespace mozilla {
      12             : 
      13             : struct TableArea
      14             : {
      15           0 :   TableArea() : mRect() { }
      16           0 :   TableArea(int32_t aStartCol, int32_t aStartRow,
      17             :             int32_t aColCount, int32_t aRowCount)
      18           0 :     : mRect(aStartCol, aStartRow, aColCount, aRowCount) { }
      19             : 
      20           0 :   int32_t& StartCol() { return mRect.x; }
      21           0 :   int32_t& StartRow() { return mRect.y; }
      22           0 :   int32_t& ColCount() { return mRect.width; }
      23           0 :   int32_t& RowCount() { return mRect.height; }
      24             : 
      25           0 :   int32_t StartCol() const { return mRect.x; }
      26           0 :   int32_t StartRow() const { return mRect.y; }
      27           0 :   int32_t ColCount() const { return mRect.width; }
      28           0 :   int32_t RowCount() const { return mRect.height; }
      29           0 :   int32_t EndCol() const { return mRect.XMost(); }
      30           0 :   int32_t EndRow() const { return mRect.YMost(); }
      31             : 
      32           0 :   void UnionArea(const TableArea& aArea1, const TableArea& aArea2)
      33           0 :     { mRect.UnionRect(aArea1.mRect, aArea2.mRect); }
      34             : 
      35             : private:
      36             :   nsIntRect mRect;
      37             : };
      38             : 
      39             : } // namespace mozilla
      40             : 
      41             : #endif // mozilla_TableArea_h_

Generated by: LCOV version 1.13