| OLD | NEW |
| 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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 void addHitRegion(ExceptionState&); | 227 void addHitRegion(ExceptionState&); |
| 228 void addHitRegion(const Dictionary&, ExceptionState&); | 228 void addHitRegion(const Dictionary&, ExceptionState&); |
| 229 void removeHitRegion(const String& id); | 229 void removeHitRegion(const String& id); |
| 230 void clearHitRegions(); | 230 void clearHitRegions(); |
| 231 HitRegion* hitRegionAtPoint(const LayoutPoint&); | 231 HitRegion* hitRegionAtPoint(const LayoutPoint&); |
| 232 unsigned hitRegionsCount() const; | 232 unsigned hitRegionsCount() const; |
| 233 | 233 |
| 234 void loseContext(); | 234 void loseContext(); |
| 235 void restoreContext(); | 235 void restoreContext(); |
| 236 | 236 |
| 237 virtual void trace(Visitor*) override; | |
| 238 | |
| 239 private: | 237 private: |
| 240 enum Direction { | 238 enum Direction { |
| 241 DirectionInherit, | 239 DirectionInherit, |
| 242 DirectionRTL, | 240 DirectionRTL, |
| 243 DirectionLTR | 241 DirectionLTR |
| 244 }; | 242 }; |
| 245 | 243 |
| 246 class State final : public CSSFontSelectorClient { | 244 class State final : public CSSFontSelectorClient { |
| 247 public: | 245 public: |
| 248 State(); | 246 State(); |
| 249 virtual ~State(); | 247 virtual ~State(); |
| 250 | 248 |
| 251 State(const State&); | 249 State(const State&); |
| 252 State& operator=(const State&); | 250 State& operator=(const State&); |
| 253 | 251 |
| 254 // CSSFontSelectorClient implementation | 252 // CSSFontSelectorClient implementation |
| 255 virtual void fontsNeedUpdate(CSSFontSelector*) override; | 253 virtual void fontsNeedUpdate(CSSFontSelector*) override; |
| 256 | 254 |
| 257 virtual void trace(Visitor*) override; | |
| 258 | |
| 259 unsigned m_unrealizedSaveCount; | 255 unsigned m_unrealizedSaveCount; |
| 260 | 256 |
| 261 String m_unparsedStrokeColor; | 257 String m_unparsedStrokeColor; |
| 262 String m_unparsedFillColor; | 258 String m_unparsedFillColor; |
| 263 RefPtr<CanvasStyle> m_strokeStyle; | 259 RefPtr<CanvasStyle> m_strokeStyle; |
| 264 RefPtr<CanvasStyle> m_fillStyle; | 260 RefPtr<CanvasStyle> m_fillStyle; |
| 265 float m_lineWidth; | 261 float m_lineWidth; |
| 266 LineCap m_lineCap; | 262 LineCap m_lineCap; |
| 267 LineJoin m_lineJoin; | 263 LineJoin m_lineJoin; |
| 268 float m_miterLimit; | 264 float m_miterLimit; |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 Timer<CanvasRenderingContext2D> m_dispatchContextLostEventTimer; | 367 Timer<CanvasRenderingContext2D> m_dispatchContextLostEventTimer; |
| 372 Timer<CanvasRenderingContext2D> m_dispatchContextRestoredEventTimer; | 368 Timer<CanvasRenderingContext2D> m_dispatchContextRestoredEventTimer; |
| 373 Timer<CanvasRenderingContext2D> m_tryRestoreContextEventTimer; | 369 Timer<CanvasRenderingContext2D> m_tryRestoreContextEventTimer; |
| 374 }; | 370 }; |
| 375 | 371 |
| 376 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con
text->is2d(), context.is2d()); | 372 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con
text->is2d(), context.is2d()); |
| 377 | 373 |
| 378 } // namespace blink | 374 } // namespace blink |
| 379 | 375 |
| 380 #endif // CanvasRenderingContext2D_h | 376 #endif // CanvasRenderingContext2D_h |
| OLD | NEW |