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

Side by Side Diff: third_party/WebKit/WebCore/rendering/RenderSelectionInfo.h

Issue 21165: Revert the merge. Mac build is mysteriously broken. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 10 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) 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 Apple Inc. All rights reserved. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 29 matching lines...) Expand all
40 } 40 }
41 41
42 RenderSelectionInfoBase(RenderObject* o) 42 RenderSelectionInfoBase(RenderObject* o)
43 : m_object(o) 43 : m_object(o)
44 , m_repaintContainer(o->containerForRepaint()) 44 , m_repaintContainer(o->containerForRepaint())
45 , m_state(o->selectionState()) 45 , m_state(o->selectionState())
46 { 46 {
47 } 47 }
48 48
49 RenderObject* object() const { return m_object; } 49 RenderObject* object() const { return m_object; }
50 RenderBoxModelObject* repaintContainer() const { return m_repaintContainer; } 50 RenderBox* repaintContainer() const { return m_repaintContainer; }
51 RenderObject::SelectionState state() const { return m_state; } 51 RenderObject::SelectionState state() const { return m_state; }
52 52
53 protected: 53 protected:
54 RenderObject* m_object; 54 RenderObject* m_object;
55 RenderBoxModelObject* m_repaintContainer; 55 RenderBox* m_repaintContainer;
56 RenderObject::SelectionState m_state; 56 RenderObject::SelectionState m_state;
57 }; 57 };
58 58
59 // This struct is used when the selection changes to cache the old and new state of the selection for each RenderObject. 59 // This struct is used when the selection changes to cache the old and new state of the selection for each RenderObject.
60 class RenderSelectionInfo : public RenderSelectionInfoBase { 60 class RenderSelectionInfo : public RenderSelectionInfoBase {
61 public: 61 public:
62 RenderSelectionInfo(RenderObject* o, bool clipToVisibleContent) 62 RenderSelectionInfo(RenderObject* o, bool clipToVisibleContent)
63 : RenderSelectionInfoBase(o) 63 : RenderSelectionInfoBase(o)
64 , m_rect(o->needsLayout() ? IntRect() : o->selectionRectForRepaint(m_rep aintContainer, clipToVisibleContent)) 64 , m_rect(o->needsLayout() ? IntRect() : o->selectionRectForRepaint(m_rep aintContainer, clipToVisibleContent))
65 { 65 {
(...skipping 29 matching lines...) Expand all
95 GapRects rects() const { return m_rects; } 95 GapRects rects() const { return m_rects; }
96 96
97 private: 97 private:
98 GapRects m_rects; // relative to repaint container 98 GapRects m_rects; // relative to repaint container
99 }; 99 };
100 100
101 } // namespace WebCore 101 } // namespace WebCore
102 102
103 103
104 #endif // SelectionInfo_h 104 #endif // SelectionInfo_h
OLDNEW
« no previous file with comments | « third_party/WebKit/WebCore/rendering/RenderSVGText.cpp ('k') | third_party/WebKit/WebCore/rendering/RenderTableCell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698