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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLAreaElement.h

Issue 2384273007: reflow comments in core/html/*.{cpp,h},core/html/imports (Closed)
Patch Set: comments Created 4 years, 2 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 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * Copyright (C) 2004, 2008, 2009, 2011 Apple Inc. All rights reserved. 4 * Copyright (C) 2004, 2008, 2009, 2011 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 24 matching lines...) Expand all
35 class Path; 35 class Path;
36 36
37 class CORE_EXPORT HTMLAreaElement final : public HTMLAnchorElement { 37 class CORE_EXPORT HTMLAreaElement final : public HTMLAnchorElement {
38 DEFINE_WRAPPERTYPEINFO(); 38 DEFINE_WRAPPERTYPEINFO();
39 39
40 public: 40 public:
41 DECLARE_NODE_FACTORY(HTMLAreaElement); 41 DECLARE_NODE_FACTORY(HTMLAreaElement);
42 42
43 bool isDefault() const { return m_shape == Default; } 43 bool isDefault() const { return m_shape == Default; }
44 44
45 // |containerObject| in the following functions is an object (normally a Layou tImage) 45 // |containerObject| in the following functions is an object (normally a
46 // which references the containing image map of this area. There might be mult iple 46 // LayoutImage) which references the containing image map of this area. There
47 // objects referencing the same map. For these functions, the effective geomet ry of 47 // might be multiple objects referencing the same map. For these functions,
48 // this map will be calculated based on the specified container object, e.g. t he 48 // the effective geometry of this map will be calculated based on the
49 // rectangle of the default shape will be the border box rect of the container object, 49 // specified container object, e.g. the rectangle of the default shape will
50 // and effective zoom factor of the container object will be applied on non-de fault shape. 50 // be the border box rect of the container object, and effective zoom factor
51 // of the container object will be applied on non-default shape.
51 bool pointInArea(const LayoutPoint&, 52 bool pointInArea(const LayoutPoint&,
52 const LayoutObject* containerObject) const; 53 const LayoutObject* containerObject) const;
53 LayoutRect computeAbsoluteRect(const LayoutObject* containerObject) const; 54 LayoutRect computeAbsoluteRect(const LayoutObject* containerObject) const;
54 Path getPath(const LayoutObject* containerObject) const; 55 Path getPath(const LayoutObject* containerObject) const;
55 56
56 // The parent map's image. 57 // The parent map's image.
57 HTMLImageElement* imageElement() const; 58 HTMLImageElement* imageElement() const;
58 59
59 private: 60 private:
60 explicit HTMLAreaElement(Document&); 61 explicit HTMLAreaElement(Document&);
(...skipping 12 matching lines...) Expand all
73 void invalidateCachedPath(); 74 void invalidateCachedPath();
74 75
75 mutable std::unique_ptr<Path> m_path; 76 mutable std::unique_ptr<Path> m_path;
76 Vector<double> m_coords; 77 Vector<double> m_coords;
77 Shape m_shape; 78 Shape m_shape;
78 }; 79 };
79 80
80 } // namespace blink 81 } // namespace blink
81 82
82 #endif // HTMLAreaElement_h 83 #endif // HTMLAreaElement_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp ('k') | third_party/WebKit/Source/core/html/HTMLAreaElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698