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

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

Issue 197533013: CompositingReasonFinder should use a virtual function instead of a nest of branches (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add missing file Created 6 years, 9 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
« no previous file with comments | « Source/core/rendering/RenderHTMLCanvas.cpp ('k') | Source/core/rendering/RenderObject.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) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com)
6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2009 Google Inc. All rights reserved. 7 * Copyright (C) 2009 Google Inc. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 17 matching lines...) Expand all
28 28
29 #include "core/dom/Element.h" 29 #include "core/dom/Element.h"
30 #include "core/dom/Position.h" 30 #include "core/dom/Position.h"
31 #include "core/dom/StyleEngine.h" 31 #include "core/dom/StyleEngine.h"
32 #include "core/fetch/ImageResourceClient.h" 32 #include "core/fetch/ImageResourceClient.h"
33 #include "core/rendering/compositing/CompositingState.h" 33 #include "core/rendering/compositing/CompositingState.h"
34 #include "core/rendering/PaintPhase.h" 34 #include "core/rendering/PaintPhase.h"
35 #include "core/rendering/RenderObjectChildList.h" 35 #include "core/rendering/RenderObjectChildList.h"
36 #include "core/rendering/ScrollAlignment.h" 36 #include "core/rendering/ScrollAlignment.h"
37 #include "core/rendering/SubtreeLayoutScope.h" 37 #include "core/rendering/SubtreeLayoutScope.h"
38 #include "core/rendering/compositing/CompositingTriggers.h"
38 #include "core/rendering/style/RenderStyle.h" 39 #include "core/rendering/style/RenderStyle.h"
39 #include "core/rendering/style/StyleInheritedData.h" 40 #include "core/rendering/style/StyleInheritedData.h"
40 #include "platform/geometry/FloatQuad.h" 41 #include "platform/geometry/FloatQuad.h"
41 #include "platform/geometry/LayoutRect.h" 42 #include "platform/geometry/LayoutRect.h"
43 #include "platform/graphics/CompositingReasons.h"
42 #include "platform/transforms/TransformationMatrix.h" 44 #include "platform/transforms/TransformationMatrix.h"
43 45
44 namespace WebCore { 46 namespace WebCore {
45 47
46 class AffineTransform; 48 class AffineTransform;
47 class Cursor; 49 class Cursor;
48 class Document; 50 class Document;
49 class HitTestLocation; 51 class HitTestLocation;
50 class HitTestResult; 52 class HitTestResult;
51 class InlineBox; 53 class InlineBox;
(...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after
669 void forceChildLayout(); 671 void forceChildLayout();
670 672
671 // used for element state updates that cannot be fixed with a 673 // used for element state updates that cannot be fixed with a
672 // repaint and do not need a relayout 674 // repaint and do not need a relayout
673 virtual void updateFromElement() { } 675 virtual void updateFromElement() { }
674 676
675 virtual void addAnnotatedRegions(Vector<AnnotatedRegionValue>&); 677 virtual void addAnnotatedRegions(Vector<AnnotatedRegionValue>&);
676 void collectAnnotatedRegions(Vector<AnnotatedRegionValue>&); 678 void collectAnnotatedRegions(Vector<AnnotatedRegionValue>&);
677 679
678 CompositingState compositingState() const; 680 CompositingState compositingState() const;
681 virtual CompositingReasons additionalCompositingReasons(CompositingTriggerFl ags) const;
682
679 bool acceleratedCompositingForOverflowScrollEnabled() const; 683 bool acceleratedCompositingForOverflowScrollEnabled() const;
680 // FIXME: This is a temporary flag and should be removed once accelerated 684 // FIXME: This is a temporary flag and should be removed once accelerated
681 // overflow scroll is ready (crbug.com/254111). 685 // overflow scroll is ready (crbug.com/254111).
682 bool compositorDrivenAcceleratedScrollingEnabled() const; 686 bool compositorDrivenAcceleratedScrollingEnabled() const;
683 687
684 bool hitTest(const HitTestRequest&, HitTestResult&, const HitTestLocation& l ocationInContainer, const LayoutPoint& accumulatedOffset, HitTestFilter = HitTes tAll); 688 bool hitTest(const HitTestRequest&, HitTestResult&, const HitTestLocation& l ocationInContainer, const LayoutPoint& accumulatedOffset, HitTestFilter = HitTes tAll);
685 virtual void updateHitTestResult(HitTestResult&, const LayoutPoint&); 689 virtual void updateHitTestResult(HitTestResult&, const LayoutPoint&);
686 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct ion); 690 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct ion);
687 691
688 virtual PositionWithAffinity positionForPoint(const LayoutPoint&); 692 virtual PositionWithAffinity positionForPoint(const LayoutPoint&);
(...skipping 728 matching lines...) Expand 10 before | Expand all | Expand 10 after
1417 void showTree(const WebCore::RenderObject*); 1421 void showTree(const WebCore::RenderObject*);
1418 void showLineTree(const WebCore::RenderObject*); 1422 void showLineTree(const WebCore::RenderObject*);
1419 void showRenderTree(const WebCore::RenderObject* object1); 1423 void showRenderTree(const WebCore::RenderObject* object1);
1420 // We don't make object2 an optional parameter so that showRenderTree 1424 // We don't make object2 an optional parameter so that showRenderTree
1421 // can be called from gdb easily. 1425 // can be called from gdb easily.
1422 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO bject* object2); 1426 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO bject* object2);
1423 1427
1424 #endif 1428 #endif
1425 1429
1426 #endif // RenderObject_h 1430 #endif // RenderObject_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderHTMLCanvas.cpp ('k') | Source/core/rendering/RenderObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698