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

Side by Side Diff: Source/core/html/canvas/CanvasRenderingContext2D.h

Issue 208003003: Rename drawSystemFocusRing() to drawFocusIfNeeded() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2009, 2010, 2011, 2012 Apple Inc. All rights reserv ed. 2 * Copyright (C) 2006, 2007, 2009, 2010, 2011, 2012 Apple Inc. All rights reserv ed.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 PassRefPtr<TextMetrics> measureText(const String& text); 223 PassRefPtr<TextMetrics> measureText(const String& text);
224 224
225 LineCap getLineCap() const { return state().m_lineCap; } 225 LineCap getLineCap() const { return state().m_lineCap; }
226 LineJoin getLineJoin() const { return state().m_lineJoin; } 226 LineJoin getLineJoin() const { return state().m_lineJoin; }
227 227
228 bool imageSmoothingEnabled() const; 228 bool imageSmoothingEnabled() const;
229 void setImageSmoothingEnabled(bool); 229 void setImageSmoothingEnabled(bool);
230 230
231 PassRefPtr<Canvas2DContextAttributes> getContextAttributes() const; 231 PassRefPtr<Canvas2DContextAttributes> getContextAttributes() const;
232 232
233 void drawSystemFocusRing(Element*); 233 void drawFocusIfNeeded(Element*);
234 bool drawCustomFocusRing(Element*); 234 bool drawCustomFocusRing(Element*);
235 235
236 private: 236 private:
237 struct State FINAL : CSSFontSelectorClient { 237 struct State FINAL : CSSFontSelectorClient {
238 State(); 238 State();
239 virtual ~State(); 239 virtual ~State();
240 240
241 State(const State&); 241 State(const State&);
242 State& operator=(const State&); 242 State& operator=(const State&);
243 243
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 bool m_usesCSSCompatibilityParseMode; 336 bool m_usesCSSCompatibilityParseMode;
337 bool m_hasAlpha; 337 bool m_hasAlpha;
338 MutableStylePropertyMap m_fetchedFonts; 338 MutableStylePropertyMap m_fetchedFonts;
339 }; 339 };
340 340
341 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con text->is2d(), context.is2d()); 341 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con text->is2d(), context.is2d());
342 342
343 } // namespace WebCore 343 } // namespace WebCore
344 344
345 #endif 345 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698