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

Side by Side Diff: sky/engine/core/rendering/RenderView.h

Issue 850763008: Remove assorted dead paint invalidation code. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « sky/engine/core/rendering/RenderLayer.cpp ('k') | sky/engine/core/rendering/RenderView.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 return viewWidth(ExcludeScrollbars); 68 return viewWidth(ExcludeScrollbars);
69 } 69 }
70 int viewLogicalHeight() const; 70 int viewLogicalHeight() const;
71 LayoutUnit viewLogicalHeightForPercentages() const; 71 LayoutUnit viewLogicalHeightForPercentages() const;
72 72
73 FrameView* frameView() const { return m_frameView; } 73 FrameView* frameView() const { return m_frameView; }
74 74
75 virtual void paint(PaintInfo&, const LayoutPoint&) override; 75 virtual void paint(PaintInfo&, const LayoutPoint&) override;
76 virtual void paintBoxDecorationBackground(PaintInfo&, const LayoutPoint&) ov erride; 76 virtual void paintBoxDecorationBackground(PaintInfo&, const LayoutPoint&) ov erride;
77 77
78 enum SelectionPaintInvalidationMode { PaintInvalidationNewXOROld, PaintInval idationNewMinusOld, PaintInvalidationNothing }; 78 void setSelection(RenderObject* start, int startPos, RenderObject*, int endP os);
79 void setSelection(RenderObject* start, int startPos, RenderObject*, int endP os, SelectionPaintInvalidationMode = PaintInvalidationNewXOROld);
80 void getSelection(RenderObject*& startRenderer, int& startOffset, RenderObje ct*& endRenderer, int& endOffset) const; 79 void getSelection(RenderObject*& startRenderer, int& startOffset, RenderObje ct*& endRenderer, int& endOffset) const;
81 void clearSelection(); 80 void clearSelection();
82 RenderObject* selectionStart() const { return m_selectionStart; } 81 RenderObject* selectionStart() const { return m_selectionStart; }
83 RenderObject* selectionEnd() const { return m_selectionEnd; } 82 RenderObject* selectionEnd() const { return m_selectionEnd; }
84 void selectionStartEnd(int& startPos, int& endPos) const; 83 void selectionStartEnd(int& startPos, int& endPos) const;
85 84
86 virtual void absoluteRects(Vector<IntRect>&, const LayoutPoint& accumulatedO ffset) const override; 85 virtual void absoluteRects(Vector<IntRect>&, const LayoutPoint& accumulatedO ffset) const override;
87 virtual void absoluteQuads(Vector<FloatQuad>&) const override; 86 virtual void absoluteQuads(Vector<FloatQuad>&) const override;
88 87
89 virtual LayoutRect viewRect() const override; 88 virtual LayoutRect viewRect() const override;
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 unsigned m_hitTestCount; 143 unsigned m_hitTestCount;
145 144
146 WTF::HashSet<RenderIFrame*> m_iframes; 145 WTF::HashSet<RenderIFrame*> m_iframes;
147 }; 146 };
148 147
149 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderView, isRenderView()); 148 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderView, isRenderView());
150 149
151 } // namespace blink 150 } // namespace blink
152 151
153 #endif // SKY_ENGINE_CORE_RENDERING_RENDERVIEW_H_ 152 #endif // SKY_ENGINE_CORE_RENDERING_RENDERVIEW_H_
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderLayer.cpp ('k') | sky/engine/core/rendering/RenderView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698