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

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

Issue 1076623002: Remove our impressive amount of CSS Cursor code. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 8 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/page/Page.cpp ('k') | sky/engine/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 26 matching lines...) Expand all
37 #include "sky/engine/core/rendering/SubtreeLayoutScope.h" 37 #include "sky/engine/core/rendering/SubtreeLayoutScope.h"
38 #include "sky/engine/core/rendering/style/RenderStyle.h" 38 #include "sky/engine/core/rendering/style/RenderStyle.h"
39 #include "sky/engine/core/rendering/style/StyleInheritedData.h" 39 #include "sky/engine/core/rendering/style/StyleInheritedData.h"
40 #include "sky/engine/platform/geometry/FloatQuad.h" 40 #include "sky/engine/platform/geometry/FloatQuad.h"
41 #include "sky/engine/platform/geometry/LayoutRect.h" 41 #include "sky/engine/platform/geometry/LayoutRect.h"
42 #include "sky/engine/platform/transforms/TransformationMatrix.h" 42 #include "sky/engine/platform/transforms/TransformationMatrix.h"
43 43
44 namespace blink { 44 namespace blink {
45 45
46 class AffineTransform; 46 class AffineTransform;
47 class Cursor;
48 class Document; 47 class Document;
49 class HitTestLocation; 48 class HitTestLocation;
50 class HitTestResult; 49 class HitTestResult;
51 class InlineBox; 50 class InlineBox;
52 class InlineFlowBox; 51 class InlineFlowBox;
53 class Position; 52 class Position;
54 class PositionWithAffinity; 53 class PositionWithAffinity;
55 class RenderBlock; 54 class RenderBlock;
56 class RenderBox; 55 class RenderBox;
57 class RenderBoxModelObject; 56 class RenderBoxModelObject;
58 class RenderGeometryMap; 57 class RenderGeometryMap;
59 class RenderLayer; 58 class RenderLayer;
60 class RenderView; 59 class RenderView;
61 class TransformState; 60 class TransformState;
62 61
63 struct PaintInfo; 62 struct PaintInfo;
64 63
65 enum CursorDirective {
66 SetCursorBasedOnStyle,
67 SetCursor,
68 DoNotSetCursor
69 };
70
71 // Sides used when drawing borders and outlines. The values should run clockwise from top. 64 // Sides used when drawing borders and outlines. The values should run clockwise from top.
72 enum BoxSide { 65 enum BoxSide {
73 BSTop, 66 BSTop,
74 BSRight, 67 BSRight,
75 BSBottom, 68 BSBottom,
76 BSLeft 69 BSLeft
77 }; 70 };
78 71
79 enum MarkingBehavior { 72 enum MarkingBehavior {
80 MarkOnlyThis, 73 MarkOnlyThis,
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 inline Color resolveColor(const RenderStyle* styleToUse, int colorProperty) const 489 inline Color resolveColor(const RenderStyle* styleToUse, int colorProperty) const
497 { 490 {
498 return styleToUse->colorIncludingFallback(colorProperty); 491 return styleToUse->colorIncludingFallback(colorProperty);
499 } 492 }
500 493
501 inline Color resolveColor(int colorProperty) const 494 inline Color resolveColor(int colorProperty) const
502 { 495 {
503 return style()->colorIncludingFallback(colorProperty); 496 return style()->colorIncludingFallback(colorProperty);
504 } 497 }
505 498
506 virtual CursorDirective getCursor(const LayoutPoint&, Cursor&) const;
507
508 struct AppliedTextDecoration { 499 struct AppliedTextDecoration {
509 Color color; 500 Color color;
510 TextDecorationStyle style; 501 TextDecorationStyle style;
511 AppliedTextDecoration() : color(Color::transparent), style(TextDecoratio nStyleSolid) { } 502 AppliedTextDecoration() : color(Color::transparent), style(TextDecoratio nStyleSolid) { }
512 }; 503 };
513 504
514 void getTextDecorations(unsigned decorations, AppliedTextDecoration& underli ne, AppliedTextDecoration& overline, AppliedTextDecoration& linethrough, bool qu irksMode = false, bool firstlineStyle = false); 505 void getTextDecorations(unsigned decorations, AppliedTextDecoration& underli ne, AppliedTextDecoration& overline, AppliedTextDecoration& linethrough, bool qu irksMode = false, bool firstlineStyle = false);
515 506
516 // Return the RenderBox in the container chain which is responsible for pain ting this object, or 0 507 // Return the RenderBox in the container chain which is responsible for pain ting this object, or 0
517 // if painting is root-relative. This is the container that should be passed to the 'forPaintInvalidation' 508 // if painting is root-relative. This is the container that should be passed to the 'forPaintInvalidation'
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
887 void showTree(const blink::RenderObject*); 878 void showTree(const blink::RenderObject*);
888 void showLineTree(const blink::RenderObject*); 879 void showLineTree(const blink::RenderObject*);
889 void showRenderTree(const blink::RenderObject* object1); 880 void showRenderTree(const blink::RenderObject* object1);
890 // We don't make object2 an optional parameter so that showRenderTree 881 // We don't make object2 an optional parameter so that showRenderTree
891 // can be called from gdb easily. 882 // can be called from gdb easily.
892 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec t* object2); 883 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec t* object2);
893 884
894 #endif 885 #endif
895 886
896 #endif // SKY_ENGINE_CORE_RENDERING_RENDEROBJECT_H_ 887 #endif // SKY_ENGINE_CORE_RENDERING_RENDEROBJECT_H_
OLDNEW
« no previous file with comments | « sky/engine/core/page/Page.cpp ('k') | sky/engine/core/rendering/RenderObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698