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

Side by Side Diff: third_party/WebKit/Source/core/paint/ObjectPainter.cpp

Issue 2510513002: Issue paint offset for SVGText, etc. (Closed)
Patch Set: Created 4 years, 1 month 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/paint/ObjectPainter.h" 5 #include "core/paint/ObjectPainter.h"
6 6
7 #include "core/layout/LayoutBlock.h" 7 #include "core/layout/LayoutBlock.h"
8 #include "core/layout/LayoutInline.h" 8 #include "core/layout/LayoutInline.h"
9 #include "core/layout/LayoutObject.h" 9 #include "core/layout/LayoutObject.h"
10 #include "core/layout/LayoutTheme.h" 10 #include "core/layout/LayoutTheme.h"
(...skipping 689 matching lines...) Expand 10 before | Expand all | Expand 10 after
700 DCHECK(RuntimeEnabledFeatures::slimmingPaintV2Enabled()); 700 DCHECK(RuntimeEnabledFeatures::slimmingPaintV2Enabled());
701 701
702 // TODO(pdr): Let painter and paint property tree builder generate the same 702 // TODO(pdr): Let painter and paint property tree builder generate the same
703 // paint offset for LayoutScrollbarPart. crbug.com/664249. 703 // paint offset for LayoutScrollbarPart. crbug.com/664249.
704 if (m_layoutObject.isLayoutScrollbarPart()) 704 if (m_layoutObject.isLayoutScrollbarPart())
705 return; 705 return;
706 706
707 LayoutPoint adjustedPaintOffset = paintOffset; 707 LayoutPoint adjustedPaintOffset = paintOffset;
708 if (m_layoutObject.isBox()) 708 if (m_layoutObject.isBox())
709 adjustedPaintOffset += toLayoutBox(m_layoutObject).location(); 709 adjustedPaintOffset += toLayoutBox(m_layoutObject).location();
710 DCHECK(m_layoutObject.previousPaintOffset() == adjustedPaintOffset); 710 DCHECK(m_layoutObject.previousPaintOffset() == adjustedPaintOffset)
711 << " Paint offset mismatch: " << m_layoutObject.debugName()
712 << " from PaintPropertyTreeBulder: "
pdr. 2016/11/16 03:53:49 Nit: Builder
Xianzhu 2016/11/16 04:05:47 Done.
713 << m_layoutObject.previousPaintOffset().toString()
714 << " from painter: " << adjustedPaintOffset.toString();
711 } 715 }
712 #endif 716 #endif
713 717
714 } // namespace blink 718 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698