| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * Copyright (C) 2006 Apple Computer, Inc. | 3 * Copyright (C) 2006 Apple Computer, Inc. |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 void setSelection(RenderObject* start, int startPos, RenderObject*, int endP
os, SelectionPaintInvalidationMode = PaintInvalidationNewXOROld); | 91 void setSelection(RenderObject* start, int startPos, RenderObject*, int endP
os, SelectionPaintInvalidationMode = PaintInvalidationNewXOROld); |
| 92 void getSelection(RenderObject*& startRenderer, int& startOffset, RenderObje
ct*& endRenderer, int& endOffset) const; | 92 void getSelection(RenderObject*& startRenderer, int& startOffset, RenderObje
ct*& endRenderer, int& endOffset) const; |
| 93 void clearSelection(); | 93 void clearSelection(); |
| 94 RenderObject* selectionStart() const { return m_selectionStart; } | 94 RenderObject* selectionStart() const { return m_selectionStart; } |
| 95 RenderObject* selectionEnd() const { return m_selectionEnd; } | 95 RenderObject* selectionEnd() const { return m_selectionEnd; } |
| 96 IntRect selectionBounds(bool clipToVisibleContent = true) const; | 96 IntRect selectionBounds(bool clipToVisibleContent = true) const; |
| 97 void selectionStartEnd(int& startPos, int& endPos) const; | 97 void selectionStartEnd(int& startPos, int& endPos) const; |
| 98 void invalidatePaintForSelection() const; | 98 void invalidatePaintForSelection() const; |
| 99 | 99 |
| 100 virtual void absoluteRects(Vector<IntRect>&, const LayoutPoint& accumulatedO
ffset) const override; | 100 virtual void absoluteRects(Vector<IntRect>&, const LayoutPoint& accumulatedO
ffset) const override; |
| 101 virtual void absoluteQuads(Vector<FloatQuad>&, bool* wasFixed) const overrid
e; | 101 virtual void absoluteQuads(Vector<FloatQuad>&) const override; |
| 102 | 102 |
| 103 virtual LayoutRect viewRect() const override; | 103 virtual LayoutRect viewRect() const override; |
| 104 | 104 |
| 105 bool shouldDoFullPaintInvalidationForNextLayout() const; | 105 bool shouldDoFullPaintInvalidationForNextLayout() const; |
| 106 bool doingFullPaintInvalidation() const { return m_frameView->needsFullPaint
Invalidation(); } | 106 bool doingFullPaintInvalidation() const { return m_frameView->needsFullPaint
Invalidation(); } |
| 107 | 107 |
| 108 LayoutState* layoutState() const { return m_layoutState; } | 108 LayoutState* layoutState() const { return m_layoutState; } |
| 109 | 109 |
| 110 virtual void updateHitTestResult(HitTestResult&, const LayoutPoint&) overrid
e; | 110 virtual void updateHitTestResult(HitTestResult&, const LayoutPoint&) overrid
e; |
| 111 | 111 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 128 virtual bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect)
const override; | 128 virtual bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect)
const override; |
| 129 | 129 |
| 130 double layoutViewportWidth() const; | 130 double layoutViewportWidth() const; |
| 131 double layoutViewportHeight() const; | 131 double layoutViewportHeight() const; |
| 132 | 132 |
| 133 void pushLayoutState(LayoutState&); | 133 void pushLayoutState(LayoutState&); |
| 134 void popLayoutState(); | 134 void popLayoutState(); |
| 135 virtual void invalidateTreeIfNeeded(const PaintInvalidationState&) override
final; | 135 virtual void invalidateTreeIfNeeded(const PaintInvalidationState&) override
final; |
| 136 | 136 |
| 137 private: | 137 private: |
| 138 virtual void mapLocalToContainer(const RenderLayerModelObject* paintInvalida
tionContainer, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool*
wasFixed = 0, const PaintInvalidationState* = 0) const override; | 138 virtual void mapLocalToContainer(const RenderLayerModelObject* paintInvalida
tionContainer, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, const
PaintInvalidationState* = 0) const override; |
| 139 virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj
ect* ancestorToStopAt, RenderGeometryMap&) const override; | 139 virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj
ect* ancestorToStopAt, RenderGeometryMap&) const override; |
| 140 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c
onst override; | 140 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c
onst override; |
| 141 virtual void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint&
layerOffset) const override; | 141 virtual void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint&
layerOffset) const override; |
| 142 | 142 |
| 143 | 143 |
| 144 bool shouldInvalidatePaint(const LayoutRect&) const; | 144 bool shouldInvalidatePaint(const LayoutRect&) const; |
| 145 | 145 |
| 146 void layoutContent(); | 146 void layoutContent(); |
| 147 #if ENABLE(ASSERT) | 147 #if ENABLE(ASSERT) |
| 148 void checkLayoutState(); | 148 void checkLayoutState(); |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 m_paintInvalidationState->m_cachedOffsetsEnabled = true; | 196 m_paintInvalidationState->m_cachedOffsetsEnabled = true; |
| 197 } | 197 } |
| 198 private: | 198 private: |
| 199 const PaintInvalidationState* m_paintInvalidationState; | 199 const PaintInvalidationState* m_paintInvalidationState; |
| 200 bool m_didDisable; | 200 bool m_didDisable; |
| 201 }; | 201 }; |
| 202 | 202 |
| 203 } // namespace blink | 203 } // namespace blink |
| 204 | 204 |
| 205 #endif // RenderView_h | 205 #endif // RenderView_h |
| OLD | NEW |