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

Side by Side Diff: Source/core/layout/LayoutView.h

Issue 1217943010: Add a FrameView lifecycle method that just updates layout, style and compositing. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 | Annotate | Revision Log
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 // The root of the layout tree, corresponding to the CSS initial containing bloc k. 45 // The root of the layout tree, corresponding to the CSS initial containing bloc k.
46 // It's dimensions match that of the logical viewport (which may be different fr om 46 // It's dimensions match that of the logical viewport (which may be different fr om
47 // the visible viewport in fixed-layout mode), and it is always at position (0,0 ) 47 // the visible viewport in fixed-layout mode), and it is always at position (0,0 )
48 // relative to the document (and so isn't necessarily in view). 48 // relative to the document (and so isn't necessarily in view).
49 class CORE_EXPORT LayoutView final : public LayoutBlockFlow { 49 class CORE_EXPORT LayoutView final : public LayoutBlockFlow {
50 public: 50 public:
51 explicit LayoutView(Document*); 51 explicit LayoutView(Document*);
52 virtual ~LayoutView(); 52 virtual ~LayoutView();
53 void willBeDestroyed() override; 53 void willBeDestroyed() override;
54 54
55 // hitTest() will update layout and style first while hitTestNoLayoutAndStyl eUpdate() does not. 55 // hitTest() will update layout, style and compositing first while hitTestNo LifecycleUpdate() does not.
56 bool hitTest(HitTestResult&); 56 bool hitTest(HitTestResult&);
57 bool hitTestNoLayoutAndStyleUpdate(HitTestResult&); 57 bool hitTestNoLifecycleUpdate(HitTestResult&);
pdr. 2015/07/01 22:16:58 You missed a few of these, e.g., LayoutPart.
58 58
59 // Returns the total count of calls to HitTest, for testing. 59 // Returns the total count of calls to HitTest, for testing.
60 unsigned hitTestCount() const { return m_hitTestCount; } 60 unsigned hitTestCount() const { return m_hitTestCount; }
61 unsigned hitTestCacheHits() const { return m_hitTestCacheHits; } 61 unsigned hitTestCacheHits() const { return m_hitTestCacheHits; }
62 62
63 void clearHitTestCache() { m_hitTestCache->clear(); } 63 void clearHitTestCache() { m_hitTestCache->clear(); }
64 64
65 virtual const char* name() const override { return "LayoutView"; } 65 virtual const char* name() const override { return "LayoutView"; }
66 66
67 virtual bool isOfType(LayoutObjectType type) const override { return type == LayoutObjectLayoutView || LayoutBlockFlow::isOfType(type); } 67 virtual bool isOfType(LayoutObjectType type) const override { return type == LayoutObjectLayoutView || LayoutBlockFlow::isOfType(type); }
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 m_paintInvalidationState->m_cachedOffsetsEnabled = true; 257 m_paintInvalidationState->m_cachedOffsetsEnabled = true;
258 } 258 }
259 private: 259 private:
260 const PaintInvalidationState* m_paintInvalidationState; 260 const PaintInvalidationState* m_paintInvalidationState;
261 bool m_didDisable; 261 bool m_didDisable;
262 }; 262 };
263 263
264 } // namespace blink 264 } // namespace blink
265 265
266 #endif // LayoutView_h 266 #endif // LayoutView_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698