Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 23 matching lines...) Expand all Loading... | |
| 34 #include "CSSPropertyNames.h" | 34 #include "CSSPropertyNames.h" |
| 35 | 35 |
| 36 namespace WebCore { | 36 namespace WebCore { |
| 37 | 37 |
| 38 class Document; | 38 class Document; |
| 39 class FrameView; | 39 class FrameView; |
| 40 class Node; | 40 class Node; |
| 41 | 41 |
| 42 class DocumentAnimations { | 42 class DocumentAnimations { |
| 43 public: | 43 public: |
| 44 static void serviceOnAnimationFrame(Document&, double monotonicAnimationStar tTime); | 44 static void serviceOnFrameStart(Document&, double monotonicAnimationStartTim e); |
|
abarth-chromium
2014/02/20 17:52:00
Can we rename this function to indicate what it do
dstockwell
2014/02/24 06:03:25
Done. I split and renamed the functions of Documen
| |
| 45 static void serviceBeforeGetComputedStyle(Node&, CSSPropertyID); | 45 static void serviceBeforeGetComputedStyle(Node&, CSSPropertyID); |
| 46 static void serviceAfterStyleRecalc(Document&); | 46 |
| 47 class ServiceOnFrameEndScope { | |
|
abarth-chromium
2014/02/20 17:52:00
This is a wacky pattern for calling a function. W
dstockwell
2014/02/20 18:22:01
Isn't this the same pattern as DocumentLifecycle::
| |
| 48 WTF_MAKE_NONCOPYABLE(ServiceOnFrameEndScope); | |
| 49 public: | |
| 50 ServiceOnFrameEndScope(Document& document) | |
| 51 : m_document(document) | |
| 52 { | |
| 53 } | |
| 54 ~ServiceOnFrameEndScope() | |
| 55 { | |
| 56 DocumentAnimations::serviceOnFrameEnd(m_document); | |
| 57 } | |
| 58 | |
| 59 private: | |
| 60 Document& m_document; | |
| 61 }; | |
| 47 | 62 |
| 48 private: | 63 private: |
| 49 DocumentAnimations() { } | 64 DocumentAnimations() { } |
| 65 static void serviceOnFrameEnd(Document&); | |
| 50 }; | 66 }; |
| 51 | 67 |
| 52 } // namespace | 68 } // namespace |
| 53 | 69 |
| 54 #endif | 70 #endif |
| OLD | NEW |