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

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

Issue 217563003: Turn styleWillChange |newStyle| into a reference (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2005 Apple Computer 2 * Copyright (C) 2005 Apple Computer
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 // <button> should allow whitespace even though RenderFlexibleBox doesn't. 52 // <button> should allow whitespace even though RenderFlexibleBox doesn't.
53 virtual bool canHaveWhitespaceChildren() const OVERRIDE { return true; } 53 virtual bool canHaveWhitespaceChildren() const OVERRIDE { return true; }
54 54
55 virtual bool canHaveGeneratedChildren() const OVERRIDE; 55 virtual bool canHaveGeneratedChildren() const OVERRIDE;
56 virtual bool hasControlClip() const OVERRIDE { return true; } 56 virtual bool hasControlClip() const OVERRIDE { return true; }
57 virtual LayoutRect controlClipRect(const LayoutPoint&) const OVERRIDE; 57 virtual LayoutRect controlClipRect(const LayoutPoint&) const OVERRIDE;
58 58
59 virtual int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode , LinePositionMode) const OVERRIDE; 59 virtual int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode , LinePositionMode) const OVERRIDE;
60 60
61 private: 61 private:
62 virtual void styleWillChange(StyleDifference, const RenderStyle* newStyle) O VERRIDE; 62 virtual void styleWillChange(StyleDifference, const RenderStyle& newStyle) O VERRIDE;
63 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OV ERRIDE; 63 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OV ERRIDE;
64 64
65 virtual bool hasLineIfEmpty() const OVERRIDE { return isHTMLInputElement(nod e()); } 65 virtual bool hasLineIfEmpty() const OVERRIDE { return isHTMLInputElement(nod e()); }
66 66
67 RenderBlock* m_inner; 67 RenderBlock* m_inner;
68 }; 68 };
69 69
70 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderButton, isRenderButton()); 70 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderButton, isRenderButton());
71 71
72 } // namespace WebCore 72 } // namespace WebCore
73 73
74 #endif // RenderButton_h 74 #endif // RenderButton_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698