| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2009, Google Inc. All rights reserved. | 2 * Copyright (c) 2009, Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 return type == LayoutObjectSVG || LayoutObject::isOfType(type); | 76 return type == LayoutObjectSVG || LayoutObject::isOfType(type); |
| 77 } | 77 } |
| 78 | 78 |
| 79 protected: | 79 protected: |
| 80 void addLayerHitTestRects(LayerHitTestRects&, | 80 void addLayerHitTestRects(LayerHitTestRects&, |
| 81 const PaintLayer* currentCompositedLayer, | 81 const PaintLayer* currentCompositedLayer, |
| 82 const LayoutPoint& layerOffset, | 82 const LayoutPoint& layerOffset, |
| 83 const LayoutRect& containerRect) const final; | 83 const LayoutRect& containerRect) const final; |
| 84 void willBeDestroyed() override; | 84 void willBeDestroyed() override; |
| 85 | 85 |
| 86 PaintInvalidationReason invalidatePaintIfNeeded( | |
| 87 const PaintInvalidatorContext&) const final; | |
| 88 | |
| 89 private: | 86 private: |
| 90 // LayoutSVGModelObject subclasses should use element() instead. | 87 // LayoutSVGModelObject subclasses should use element() instead. |
| 91 void node() const = delete; | 88 void node() const = delete; |
| 92 | 89 |
| 93 // This method should never be called, SVG uses a different nodeAtPoint method | 90 // This method should never be called, SVG uses a different nodeAtPoint method |
| 94 bool nodeAtPoint(HitTestResult&, | 91 bool nodeAtPoint(HitTestResult&, |
| 95 const HitTestLocation& locationInContainer, | 92 const HitTestLocation& locationInContainer, |
| 96 const LayoutPoint& accumulatedOffset, | 93 const LayoutPoint& accumulatedOffset, |
| 97 HitTestAction) final; | 94 HitTestAction) final; |
| 98 IntRect absoluteElementBoundingBoxRect() const final; | 95 IntRect absoluteElementBoundingBoxRect() const final; |
| 99 | 96 |
| 100 protected: | 97 protected: |
| 101 FloatRect m_paintInvalidationBoundingBox; | 98 FloatRect m_paintInvalidationBoundingBox; |
| 102 }; | 99 }; |
| 103 | 100 |
| 104 } // namespace blink | 101 } // namespace blink |
| 105 | 102 |
| 106 #endif | 103 #endif |
| OLD | NEW |