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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutBox.cpp

Issue 2798903005: Return computed style for width/height for non-root SVG (Closed)
Patch Set: - Created 3 years, 8 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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) 4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com)
5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com) 5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com)
6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc.
7 * All rights reserved. 7 * All rights reserved.
8 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. 8 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved.
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 !oldStyle->border().radiiEqual(newStyle.border())) 341 !oldStyle->border().radiiEqual(newStyle.border()))
342 setNeedsPaintPropertyUpdate(); 342 setNeedsPaintPropertyUpdate();
343 } 343 }
344 } 344 }
345 345
346 if (diff.transformChanged()) { 346 if (diff.transformChanged()) {
347 if (ScrollingCoordinator* scrollingCoordinator = 347 if (ScrollingCoordinator* scrollingCoordinator =
348 document().frame()->page()->scrollingCoordinator()) 348 document().frame()->page()->scrollingCoordinator())
349 scrollingCoordinator->notifyTransformChanged(*this); 349 scrollingCoordinator->notifyTransformChanged(*this);
350 } 350 }
351 // Non-atomic inlines should be LayoutInline or LayoutText, not LayoutBox. 351 // Non-atomic inlines should be LayoutInline or LayoutText, not LayoutBox,
352 DCHECK(!isInline() || isAtomicInlineLevel()); 352 // except for SVG child.
353 DCHECK(isSVGChild() || !isInline() || isAtomicInlineLevel());
353 } 354 }
354 355
355 void LayoutBox::updateBackgroundAttachmentFixedStatusAfterStyleChange() { 356 void LayoutBox::updateBackgroundAttachmentFixedStatusAfterStyleChange() {
356 if (!frameView()) 357 if (!frameView())
357 return; 358 return;
358 359
359 // On low-powered/mobile devices, preventing blitting on a scroll can cause 360 // On low-powered/mobile devices, preventing blitting on a scroll can cause
360 // noticeable delays when scrolling a page with a fixed background image. As 361 // noticeable delays when scrolling a page with a fixed background image. As
361 // an optimization, assuming there are no fixed positoned elements on the 362 // an optimization, assuming there are no fixed positoned elements on the
362 // page, we can acclerate scrolling (via blitting) if we ignore the CSS 363 // page, we can acclerate scrolling (via blitting) if we ignore the CSS
(...skipping 5392 matching lines...) Expand 10 before | Expand all | Expand 10 after
5755 5756
5756 void LayoutBox::MutableForPainting:: 5757 void LayoutBox::MutableForPainting::
5757 savePreviousContentBoxSizeAndLayoutOverflowRect() { 5758 savePreviousContentBoxSizeAndLayoutOverflowRect() {
5758 auto& rareData = layoutBox().ensureRareData(); 5759 auto& rareData = layoutBox().ensureRareData();
5759 rareData.m_hasPreviousContentBoxSizeAndLayoutOverflowRect = true; 5760 rareData.m_hasPreviousContentBoxSizeAndLayoutOverflowRect = true;
5760 rareData.m_previousContentBoxSize = layoutBox().contentBoxRect().size(); 5761 rareData.m_previousContentBoxSize = layoutBox().contentBoxRect().size();
5761 rareData.m_previousLayoutOverflowRect = layoutBox().layoutOverflowRect(); 5762 rareData.m_previousLayoutOverflowRect = layoutBox().layoutOverflowRect();
5762 } 5763 }
5763 5764
5764 } // namespace blink 5765 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698