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

Side by Side Diff: Source/core/rendering/RenderView.h

Issue 390193003: [not for review] Add Draw entries to window Performance Timeline (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Code refactoring in RenderView Created 6 years, 5 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
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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 } 74 }
75 int viewLogicalHeight() const; 75 int viewLogicalHeight() const;
76 LayoutUnit viewLogicalHeightForPercentages() const; 76 LayoutUnit viewLogicalHeightForPercentages() const;
77 77
78 float zoomFactor() const; 78 float zoomFactor() const;
79 79
80 FrameView* frameView() const { return m_frameView; } 80 FrameView* frameView() const { return m_frameView; }
81 81
82 virtual void mapRectToPaintInvalidationBacking(const RenderLayerModelObject* paintInvalidationContainer, LayoutRect&, bool fixed = false, const PaintInvalid ationState* = 0) const OVERRIDE; 82 virtual void mapRectToPaintInvalidationBacking(const RenderLayerModelObject* paintInvalidationContainer, LayoutRect&, bool fixed = false, const PaintInvalid ationState* = 0) const OVERRIDE;
83 void repaintViewRectangle(const LayoutRect&) const; 83 void repaintViewRectangle(const LayoutRect&) const;
84 LayoutRect rectForPaintInvalidation(const LayoutRect* repaintRectPtr = 0) co nst;
84 85
85 void repaintViewAndCompositedLayers(); 86 void repaintViewAndCompositedLayers();
86 87
87 virtual void paint(PaintInfo&, const LayoutPoint&) OVERRIDE; 88 virtual void paint(PaintInfo&, const LayoutPoint&) OVERRIDE;
88 virtual void paintBoxDecorationBackground(PaintInfo&, const LayoutPoint&) OV ERRIDE; 89 virtual void paintBoxDecorationBackground(PaintInfo&, const LayoutPoint&) OV ERRIDE;
89 90
90 enum SelectionRepaintMode { RepaintNewXOROld, RepaintNewMinusOld, RepaintNot hing }; 91 enum SelectionRepaintMode { RepaintNewXOROld, RepaintNewMinusOld, RepaintNot hing };
91 void setSelection(RenderObject* start, int startPos, RenderObject* end, int endPos, SelectionRepaintMode = RepaintNewXOROld); 92 void setSelection(RenderObject* start, int startPos, RenderObject* end, int endPos, SelectionRepaintMode = RepaintNewXOROld);
92 void getSelection(RenderObject*& startRenderer, int& startOffset, RenderObje ct*& endRenderer, int& endOffset) const; 93 void getSelection(RenderObject*& startRenderer, int& startOffset, RenderObje ct*& endRenderer, int& endOffset) const;
93 void clearSelection(); 94 void clearSelection();
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 m_paintInvalidationState->m_cachedOffsetsEnabled = true; 228 m_paintInvalidationState->m_cachedOffsetsEnabled = true;
228 } 229 }
229 private: 230 private:
230 const PaintInvalidationState* m_paintInvalidationState; 231 const PaintInvalidationState* m_paintInvalidationState;
231 bool m_didDisable; 232 bool m_didDisable;
232 }; 233 };
233 234
234 } // namespace WebCore 235 } // namespace WebCore
235 236
236 #endif // RenderView_h 237 #endif // RenderView_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698