IlyaBobyr

Crude Chrome @font-face leak patch

Aug 29th, 2012
420
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.36 KB | None | 0 0
  1. Index: WebCore/dom/Document.h
  2. ===================================================================
  3. --- WebCore/dom/Document.h      (revision 121274)
  4. +++ WebCore/dom/Document.h      (working copy)
  5. @@ -528,6 +528,8 @@
  6.  
  7.      void registerCustomFont(PassOwnPtr<FontData>);
  8.  
  9. +    void deleteCustomFonts();
  10. +
  11.      // Returns true if page box (margin boxes and page borders) is visible.
  12.      bool isPageBoxVisible(int pageIndex);
  13.  
  14. @@ -1188,8 +1190,6 @@
  15.      void seamlessParentUpdatedStylesheets();
  16.      void notifySeamlessChildDocumentsOfStylesheetUpdate() const;
  17.  
  18. -    void deleteCustomFonts();
  19. -
  20.      PassRefPtr<NodeList> handleZeroPadding(const HitTestRequest&, HitTestResult&) const;
  21.  
  22.      void loadEventDelayTimerFired(Timer<Document>*);
  23. Index: WebCore/page/FrameView.cpp
  24. ===================================================================
  25. --- WebCore/page/FrameView.cpp  (revision 121274)
  26. +++ WebCore/page/FrameView.cpp  (working copy)
  27. @@ -985,6 +985,7 @@
  28.          // Viewport-dependent media queries may cause us to need completely different style information.
  29.          // Check that here.
  30.          if (document->styleResolver()->affectedByViewportChange()) {
  31. +            document->deleteCustomFonts();
  32.              document->styleResolverChanged(RecalcStyleImmediately);
  33.              InspectorInstrumentation::mediaQueryResultChanged(document);
  34.          } else
Advertisement
Add Comment
Please, Sign In to add comment